1 2003-01-05 Michael Chastain <mec@shout.net>
3 * README: Remove references to deleted remote-*.c files:
4 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
5 remote-nrom.c, remote-os9k.c, remote-udi.c.
7 2003-01-05 Mark Kettenis <kettenis@gnu.org>
9 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11 i386_get_longjmp_target.
13 2003-01-05 Andrew Cagney <ac131313@redhat.com>
15 * arm-tdep.c (prologue_cache): Change to a pointer.
16 (_initialize_arm_tdep): Allocate prologue_cache.
17 (check_prologue_cache): Update.
18 (save_prologue_cache): Update.
19 (arm_gdbarch_init): Update.
21 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
23 * stabsread.c (update_method_name_from_physname): Call complaint()
26 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
28 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
29 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
30 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
32 * blockframe.c: Include "gdbcmd.h" and "command.h".
33 (backtrace_below_main): New variable.
34 (file_frame_chain_valid, func_frame_chain_valid)
35 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
36 (generic_func_frame_chain_valid): Remove functions.
37 (frame_chain_valid, do_flush_frames_sfunc): New functions.
38 (_initialize_blockframe): New function.
39 * Makefile.in (blockframe.o): Update dependencies.
40 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
41 comment. Call frame_chain_valid ().
42 * frame.h: Remove old prototypes. Add prototype for
43 frame_chain_valid and update comments to match.
44 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
46 * gdbarch.h: Regenerated.
47 * gdbarch.c: Regenerated.
49 * alpha-tdep.c (alpha_gdbarch_init): Don't call
50 set_gdbarch_frame_chain_valid.
51 * avr-tdep.c (avr_gdbarch_init): Likewise.
52 * cris-tdep.c (cris_gdbarch_init): Likewise.
53 * frv-tdep.c (frv_gdbarch_init): Likewise.
54 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
55 * i386-tdep.c (i386_svr4_init_abi): Likewise.
56 (i386_nw_init_abi): Likewise.
57 (i386_gdbarch_init): Likewise.
58 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
59 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
60 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
61 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
62 * mips-tdep.c (mips_gdbarch_init): Likewise.
63 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
64 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
65 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
66 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
67 * s390-tdep.c (s390_gdbarch_init): Likewise.
68 * sh-tdep.c (sh_gdbarch_init): Likewise.
69 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
70 * v850-tdep.c (v850_gdbarch_init): Likewise.
71 * vax-tdep.c (vax_gdbarch_init): Likewise.
72 * x86-64-tdep.c (x86_64_init_abi): Likewise.
74 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
75 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
76 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
77 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
78 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
79 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
80 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
81 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
83 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
85 * Makefile.in (acconfig_h): Remove incorrect macro.
87 (osabi.o): Update dependencies.
88 * configure.tgt: Set gdb_osabi based on target triplet.
89 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
90 * configure: Regenerated.
91 * config.in: Regenerated.
92 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
93 (GDB_OSABI_DEFAULT): Define if not already defined.
94 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
95 (set_osabi_string): New variables.
96 (gdbarch_register_osabi): Add new OS ABI to
97 gdb_osabi_available_names.
98 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
99 (set_osabi, show_osabi): New functions.
100 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
102 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
104 * arch-utils.c (gdbarch_info_init): Set osabi to
105 GDB_OSABI_UNINITIALIZED.
106 * gdbarch.sh: Add osabi to struct gdbarch and to struct
107 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
108 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
109 * gdbarch.c: Regenerated.
110 * gdbarch.h: Regenerated.
111 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
113 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
114 * osabi.h (enum gdb_osabi): Move to defs.h.
115 (gdbarch_init_osabi): Update prototype.
116 * defs.h (enum gdb_osabi): Moved here.
117 * Makefile.in: Update dependencies.
119 * alpha-tdep.h: Don't include "osabi.h".
120 (struct gdbarch_tdep): Remove osabi member.
121 * alpha-tdep.c: Include "osabi.h".
122 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
123 iterate over arches. Update call to gdbarch_init_osabi.
124 (alpha_dump_tdep): Don't dump osabi.
125 * alpha-linux-tdep.c: Include "osabi.h".
126 * alpha-osf1-tdep.c: Include "osabi.h".
127 * alphafbsd-tdep.c: Include "osabi.h".
128 * alphanbsd-tdep.c: Include "osabi.h".
130 * arm-tdep.h: Don't include "osabi.h".
131 (struct gdbarch_tdep): Remove osabi member.
132 * arm-tdep.c: Include "osabi.h".
133 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
134 iterate over arches. Update call to gdbarch_init_osabi.
135 (arm_dump_tdep): Don't dump osabi.
136 * arm-linux-tdep.c: Include "osabi.h".
137 * armnbsd-tdep.c: Include "osabi.h".
139 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
140 Update call to gdbarch_init_osabi.
142 * i386-tdep.h: Don't include "osabi.h".
143 (struct gdbarch_tdep): Remove osabi member.
144 * i386-tdep.c: Include "osabi.h".
145 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
146 iterate over arches. Update call to gdbarch_init_osabi.
147 (i386_dump_tdep): Don't dump osabi.
148 * i386-linux-tdep.c: Include "osabi.h".
149 * i386-sol2-tdep.c: Include "osabi.h".
150 * i386bsd-tdep.c: Include "osabi.h".
151 * i386gnu-tdep.c: Include "osabi.h".
152 * i386ly-tdep.c: Include "osabi.h".
153 * i386nbsd-tdep.c: Include "osabi.h".
154 * i386obsd-tdep.c: Include "osabi.h".
156 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
157 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
158 check osabi when iterating over arches. Update call to
160 (mips_dump_tdep): Don't dump osabi.
162 * ns32k-tdep.h: Don't include "osabi.h".
163 (struct gdbarch_tdep): Remove.
164 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
165 gdbarch_lookup_osabi. Don't iterate over arches. Don't
166 allocate tdep. Update call to gdbarch_init_osabi.
167 (ns32k_dump_tdep): Remove.
168 (_initialize_ns32k_tdep): Update call to gdbarch_register.
169 * ns32knbsd-tdep.c: Include "osabi.h".
171 * ppc-tdep.h: Don't include "osabi.h".
172 (struct gdbarch_tdep): Remove osabi member.
173 * rs6000-tdep.c: Include "osabi.h".
174 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
175 osabi when iterating over arches. Update call to
177 (rs6000_dump_tdep): Don't dump osabi.
178 * ppc-linux-tdep.c: Include "osabi.h".
179 * ppcnbsd-tdep.c: Include "osabi.h".
181 * sh-tdep.h: Don't include "osabi.h".
182 (struct gdbarch_tdep): Remove osabi member.
183 * sh-tdep.c: Include "osabi.h".
184 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
185 iterate over arches. Update call to gdbarch_init_osabi.
186 (sh_dump_tdep): Don't dump osabi.
187 * shnbsd-tdep.c: Include "osabi.h".
189 * sparc-tdep.c: Include "osabi.h".
190 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
191 iterate over arches. Update call to gdbarch_init_osabi.
192 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
195 * vax-tdep.h: Don't include "osabi.h".
196 (struct gdbarch_tdep): Remove.
197 * vax-tdep.c: Include "osabi.h".
198 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
199 iterate over arches. Don't allocate tdep. Update call
200 to gdbarch_init_osabi.
201 (vax_dump_tdep): Remove.
202 (_initialize_vax_tdep): Update call to gdbarch_register.
204 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
206 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
208 (breakpoint_re_set_one): Don't fetch the value for a disabled
211 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
213 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
214 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
215 (COERCE_FLOAT_TO_DOUBLE): Remove.
216 * gdbarch.c: Regenerate.
217 * gdbarch.h: Regenerate.
218 * Makefile.in: Remove value_h from gdbarch_h.
219 * valops.c (coerce_float_to_double): New variable.
220 (default_coerce_float_to_double): Remove.
221 (standard_coerce_float_to_double): Remove.
222 (value_arg_coerce): Use coerce_float_to_double.
223 (_initialize_valops): Add "set coerce-float-to-double".
224 * value.h (default_coerce_float_to_double): Remove prototype.
225 (standard_coerce_float_to_double): Remove prototype.
227 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
229 * mdebugread.c (parse_symbol): Likewise.
230 * stabsread.c (define_symbol): Mark all functions as prototyped.
232 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
233 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
234 set_gdbarch_coerce_float_to_double.
235 * arm-tdep.c (arm_gdbarch_init): Likewise.
236 * frv-tdep.c (frv_gdbarch_init): Likewise.
237 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
238 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
239 * mips-tdep.c (mips_gdbarch_init): Likewise.
240 (mips_coerce_float_to_double): Remove.
241 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
242 (rs6000_coerce_float_to_double): Remove.
243 * s390-tdep.c (s390_gdbarch_init): Likewise.
244 * sh-tdep.c (sh_gdbarch_init): Likewise.
245 (sh_coerce_float_to_double): Remove.
246 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
247 (sparc_coerce_float_to_double): Remove.
248 * v850-tdep.c (v850_gdbarch_init): Likewise.
249 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
250 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
251 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
252 (hppa_coerce_float_to_double): Remove prototype.
253 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
255 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
257 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
259 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
261 Suggested by Stewart Brown <sb24@avaya.com>:
262 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
263 in recursive calls. Handle TYPE_CODE_TYPEDEF.
264 (c_type_print_varspec_suffix): Likewise.
266 2003-01-04 Mark Kettenis <kettenis@gnu.org>
268 * configure.in: Don't set and AC_SUBST SUBDIRS.
269 * configure: Regenerated.
271 * configure.in: Remove code dealing with shared libraries.
272 * Makefile.in: Remove HLDFLAGS and HLDENV.
273 * configure: Regenerated.
275 2003-01-04 Andrew Cagney <ac131313@redhat.com>
277 * frame.c (deprecated_frame_xmalloc): New function.
278 (deprecated_set_frame_saved_regs_hack): New function.
279 (deprecated_set_frame_extra_info_hack): New function.
280 * frame.h (deprecated_frame_xmalloc): Declare.
281 (deprecated_set_frame_saved_regs_hack): Declare.
282 (deprecated_set_frame_extra_info_hack): Declare.
284 2003-01-04 Mark Kettenis <kettenis@gnu.org>
286 * configure.in: Move code that provides the --enable-gdbtk option
287 right after the code that handles the --enable-tui option, and
289 * configure: Regenerated.
291 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
292 AC_CHECK_FUNCS and remove the old check for pread64.
293 * acinclude.m4 (AC_GNU_SOURCE): New macro.
294 * acconfig.h (_GNU_SOURCE): Add.
295 (HAVE_PREAD64): Remove.
296 * configure, aclocal.m4, config.in: Regenerated.
298 2003-01-03 Andrew Cagney <ac131313@redhat.com>
300 * alpha-tdep.c: Use get_frame_saved_regs.
301 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
302 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
303 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
304 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
305 * vax-tdep.c, xstormy16-tdep.c: Ditto.
307 2003-01-03 Mark Kettenis <kettenis@gnu.org>
309 * configure.in: Remove all use of the SUBDIRS variable; add
310 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
311 code providing the --enable-multi-ice option, and move it right in
312 front of the code that checks whether gdbserver is supported.
314 * configure: Regenerated.
315 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
318 2003-01-03 Andrew Cagney <cagney@redhat.com>
320 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
321 * avr-tdep.c, cris-tdep.c: Ditto.
322 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
323 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
325 2003-01-03 Mark Kettenis <kettenis@gnu.org>
327 * configure.in: Remove --enable-netrom option.
328 * configure: Regenerated.
330 2003-01-03 Mark Kettenis <kettenis@gnu.org>
332 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
333 declaration for `struct re_pattern_buffer' instead.
334 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
336 2003-01-03 J. Brobecker <brobecker@gnat.com>
338 * mdebugread.c (parse_symbol): Count until the stEnd matching
341 2003-01-02 Mark Kettenis <kettenis@gnu.org>
343 * configure.in: Remove --with-cpu option.
344 subscripts. Remove evil changequotes here.
345 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
346 * config.in, configure: Regenerated.
348 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
349 * configure.in: Cleanup section that sources GDB and BFD configure
350 subscripts. Remove evil changequotes here.
351 * config.in, configure: Regenerated.
353 2003-01-02 Andrew Cagney <ac131313@redhat.com>
355 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
356 frame accessor methods.
357 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
358 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
359 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
360 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
361 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
362 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
365 2003-01-02 Mark Kettenis <kettenis@gnu.org>
367 * configure.in: Remove UI_OUT configuration code.
368 * ada-lang.c: Update assuming UI_OUT is always true.
369 * Makefile.in (UIOUT_CFLAGS): Remove.
370 * configure: Regenerated.
371 * TODO: Remove blurb about elimination of -DUI_OUT.
373 * configure.in: Move code that provides the --enable-gdbcli,
374 --enable-gdbmi options right before the code that handles the
375 --enable-tui option. Polish a bit.
376 * configure: Regenerated.
378 * configure.in: Rewrite check for GNU regex and the
379 --without-included regex option, and move it into the "Checks for
380 library functions" section. This makes us use the system regex
381 again by default on systems with version 2 of the GNU C library.
382 This was apparently broken.
383 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
384 * acconfig.h (USE_INCLUDED_REGEX): Remove.
385 * config.in, configure: Regenerated.
387 * configure.in: Move code that provides the --enable-tui option
388 before the "Checks for libraries" section. Polish the code
389 somewhat and set need_curses to yes if we build the TUI. Rewrite
390 code that looks for a library providing termcap functionality to
391 match more closely what's done in the Readline library, and move
392 it into to the "Checks for libraries" section.
393 * configure: Regenerated.
394 * Makefile.in (TERMCAP): Remove variable.
395 * config/i386/go32.mh (TERMCAP): Remove variable.
397 2003-01-02 Andrew Cagney <ac131313@redhat.com>
399 * MAINTAINERS: Mention gdb_mbuild.sh.
400 * gdb_mbuild.sh: Rewrite.
402 2003-01-02 Mark Kettenis <kettenis@gnu.org>
404 * configure.in: Fix typo in last change.
405 * config.in, configure: Regenerated.
407 2003-01-02 Andrew Cagney <ac131313@redhat.com>
409 * valarith.c (value_binop): Delete obsolete code and comments.
410 * configure.host: Ditto.
411 * buildsym.h (make_blockvector): Ditto.
412 * buildsym.c (make_blockvector): Ditto.
413 * defs.h (enum language): Ditto.
414 (chill_demangle): Ditto.
415 * elfread.c (elf_symtab_read): Ditto.
416 * dwarfread.c (CHILL_PRODUCER): Ditto.
417 (set_cu_language): Ditto.
418 (handle_producer): Ditto.
419 * expprint.c (print_subexp): Ditto.
420 * gdbtypes.c (chill_varying_type): Ditto.
421 * gdbtypes.h (builtin_type_chill_bool): Ditto.
422 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
423 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
424 (chill_varying_type): Ditto.
425 * language.h (_LANG_chill): Ditto.
426 * language.c (binop_result_type, integral_type): Ditto.
427 (character_type, string_type, structured_type): Ditto.
428 (lang_bool_type, binop_type_check): Ditto.
429 * stabsread.h (os9k_stabs): Ditto.
430 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
431 (define_symbol, read_type, read_struct_fields): Ditto.
432 (read_array_type, read_enum_type, read_huge_number): Ditto.
433 (read_range_type, start_stabs): Ditto.
434 * symfile.c (init_filename_language_table): Ditto.
435 (add_psymbol_with_dem_name_to_list): Ditto.
436 * symtab.c (symbol_init_language_specific): Ditto.
437 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
438 * symtab.h (struct general_symbol_info): Ditto.
439 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
440 * typeprint.c (typedef_print): Ditto.
441 * utils.c (fprintf_symbol_filtered): Ditto.
442 * valops.c (value_cast, search_struct_field, value_slice): Delete
444 (varying_to_slice): Delete function.
445 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
446 (varying_to_slice): Delete declaration.
447 * MAINTAINERS: Update.
449 2003-01-02 Mark Kettenis <kettenis@gnu.org>
451 * configure.in: Reorganize "Checks for library functions section"
452 a bit. Remove check for `btowc' and `isascii' functions.
453 * configure: Regenerated.
455 * acconfig.h (_MSE_INT_H): Remove.
456 * configure.in: Create "Checks for header files" section, and move
457 appropriate tests there. Don't check for objlist.h, wchar.h,
458 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
459 misdetection fix. Also add "Checks for types", "Checks for
460 compiler characteristics" and "Checks for library functions"
462 * config.in, configure: Regenerated.
464 * configure.in: Create "Checks for programs" section, and move
465 appropriate tests there.
467 2003-01-01 Mark Kettenis <kettenis@gnu.org>
469 * configure.in: Create "Checks for libraries" section, and move
470 appropriate tests there. Cleanup check for wctype in libw. Use
471 AC_SEARCH_LIBS to see whether we need libsocket.
472 * configure: Regenerated.
474 2002-12-31 Mark Kettenis <kettenis@gnu.org>
476 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
477 * config.in, configure: Regenerated.
479 2002-12-31 Mark Kettenis <kettenis@gnu.org>
481 * gdb_dirent.h: Cleanup and update code to match the example in
483 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
484 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
485 * configure: Regenerated.
487 2002-12-30 Adam Fedor <fedor@gnu.org>
489 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
490 (yylex): Initialize c to avoid uninitialized warning.
492 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
494 * doc/fdl.texi: Revert the last change.
496 2002-12-29 Mark Kettenis <kettenis@gnu.org>
498 * tracepoint.c (ISATTY): Removed.
500 2002-12-26 J. Brobecker <brobecker@gnat.com>
502 Continuing work to convert the hppa targets to multiarch partil.
504 * hppa-tdep.c: Add some missing forward declarations.
505 (frameless_function_invocation): Prefix the function name
506 by "hppa_" to avoid polluting the namespace. Update all calls
507 to use the new function name.
508 (saved_pc_after_call): Ditto.
509 (init_extra_frame_info): Ditto.
510 (frame_chain): Ditto.
511 (push_dummy_frame): Ditto.
512 (target_read_pc): Ditto.
513 (target_write_pc): Ditto.
514 (in_solib_call_trampoline): Ditto.
515 (in_solib_return_trampoline): Ditto.
516 (skip_trampoline_code): Ditto.
517 (hppa_read_fp): New function, renamed from target_read_fp.
518 (hppa_target_read_fp): New function, using hppa_read_fp.
519 This function conforms to the function profile for the
520 READ_FP gdbarch method.
521 (hppa_extract_struct_value_address): New function, extracted
522 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
524 (hppa_frame_num_args): New function.
525 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
527 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
528 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
529 for the switch to multiarch partial.
530 Update some of the macros definitions to match some changes
531 described above in the name of the function they are calling.
532 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
533 not be straightforward to convert. Do now wrap it inside
534 "#if !... #endif" to remember that this macro has still not
536 (FIX_CALL_DUMMY): Likewise.
538 2002-12-26 J. Brobecker <brobecker@gnat.com>
540 Continuing work to convert the hppa targets to multiarch partial.
542 * hppa-tdep.c (hppa_register_raw_size): New function replacing
543 the body of macro REGISTER_RAW_SIZE.
544 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
545 config/pa/tm-hppah.h. These functions will be used to initialize
546 the gdbarch structure.
547 (hppa_hpux_pc_in_sigtramp): New function.
548 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
549 (hppa_hpux_frame_base_before_sigtramp): New function.
550 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
551 Add gdbcore.h #include.
552 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
553 of this gdbarch-eligible macro to a call to the new associated
555 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
556 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
557 into a call to the new associated function.
558 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
559 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
560 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
562 2002-12-24 David Carlton <carlton@math.stanford.edu>
564 * config/sparc/tm-sparc.h: Delete duplicate definition of
565 DEPRECATED_PC_IN_CALL_DUMMY.
567 2002-12-24 Kevin Buettner <kevinb@redhat.com>
569 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
571 * configure.tgt: Recognize mips64*-*-linux*.
572 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
573 (supply_32_bit_reg): New function.
574 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
575 (fill_gregset): Use regcache_collect() instead of
576 deprecated_registers[].
577 (register_addr): Change name to mips_linux_register_addr().
578 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
579 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
580 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
581 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
582 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
583 (MIPS64_LINUX_JB_PC): New defines.
584 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
585 (mips64_elf_fpregset_t): New typedefs.
586 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
587 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
588 (mips64_linux_register_addr, set_mips_linux_register_addr)
589 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
590 (init_register_addr_data)
592 (fetch_core_registers): Add support for core file formats with 64-bit
594 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
595 (register_addr_data): New static global variable.
596 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
597 gdbarch_register_osabi() for each MIPS machine.
598 * config/mips/linux64.mt: New file.
599 * config/mips/tm-linux64.h: New file.
601 2002-12-23 Adam Fedor <fedor@gnu.org>
603 * maint.c (maintenance_demangle): Add switch to demangle
604 ObjC language symbols as well.
606 2002-12-23 Adam Fedor <fedor@gnu.org>
608 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
609 last argument from complaint function call.
611 2002-12-23 Kevin Buettner <kevinb@redhat.com>
613 * exec.c (print_section_info): Add FIXME comments regarding format
616 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
618 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
619 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
621 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
623 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
625 2002-12-23 David Carlton <carlton@math.stanford.edu>
627 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
628 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
629 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
630 information associated to a minsym, not lookup_symbol.
632 2002-12-21 Mark Kettenis <kettenis@gnu.org>
634 * x86-64-tdep.h (x86_64_init_abi): New prototype.
635 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
636 (x86_64_init_abi): Make non-static. Set number of pseudo
638 (x86_64_gdbarch_init): Remove function.
639 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
640 Remove code dealing with dissambly.
641 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
642 (_initialize_x86_64_linux_tdep): New function.
643 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
646 2002-12-14 Mark Kettenis <kettenis@gnu.org>
648 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
649 (struct gdb_osabi_handler): Remove member `arch'. Add member
651 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
652 construct a `struct bfd_arch_info' and store it in the `struct
653 gdb_osabi_handler' that is created.
654 (gdbarch_init_osabi): Check for compatibility based on machine
655 type and architecture.
656 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
658 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
659 second argument in call to gdbarch_register_osabi.
660 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
661 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
662 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
663 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
664 * arm-tdep.c (_initialize_arm_tdep): Likewise.
665 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
666 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
667 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
668 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
669 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
670 * i386-tdep.c (_initialize_i386_tdep): Likewise.
671 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
672 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
673 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
674 _initialize_i386bsd_tdep and updated likewise.
675 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
676 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
677 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
678 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
679 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
680 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
681 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
682 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
683 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
684 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
686 2002-12-20 Kevin Buettner <kevinb@redhat.com>
688 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
689 DT_MIPS_RLD_MAP case for 64-bit targets.
691 2002-12-20 Kevin Buettner <kevinb@redhat.com>
693 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
694 ``temp_saved_regs'', not the pointer or other storage contiguous
697 2002-12-20 Kevin Buettner <kevinb@redhat.com>
699 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
700 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
701 (mips_linux_get_longjmp_target): Delete declarations.
702 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
703 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
704 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
705 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
706 (mips_linux_get_longjmp_target)
707 (mips_linux_svr4_fetch_link_map_offsets): Make static.
708 (mips_linux_init_abi): New function.
709 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
711 2002-12-19 Keith Seitz <keiths@redhat.com>
713 patch committed by Elena Zannoni <ezannoni@redhat.com>
714 * thread.c (do_captured_list_thread_ids): Call prune_threads and
715 target_find_new_threads. Fix for PR mi/669.
717 2002-12-19 David Carlton <carlton@math.stanford.edu>
719 * linespec.c (decode_line_1): Move code into decode_all_digits.
720 (decode_all_digits): New function.
722 2002-12-19 Kevin Buettner <kevinb@redhat.com>
724 * exec.c (print_section_info): Select a format string to use with
725 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
727 2002-12-18 Andrew Cagney <ac131313@redhat.com>
729 * frame.c (deprecated_update_current_frame_pc_hack): Replace
730 deprecated_update_current_frame_pc_hack.
731 (deprecated_update_frame_base_hack): New function.
732 * frame.h (deprecated_update_frame_pc_hack): Replace
733 (deprecated_update_frame_base_hack): Declare.
734 * infrun.c (normal_stop): Update.
736 2002-12-18 Andrew Cagney <ac131313@redhat.com>
738 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
739 frame_extra_info_zalloc.
740 (rs6000_frame_args_address): Use get_frame_extra_info.
741 (frame_get_saved_regs): Use get_frame_saved_regs.
742 (frame_initial_stack_address): Use get_frame_saved_regs and
743 get_frame_extra_info.
744 (frame_initial_stack_address): Use get_frame_extra_info.
746 2002-12-17 Kevin Buettner <kevinb@redhat.com>
748 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
750 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
751 checks for r3900_regnames[].
753 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
755 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
757 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
759 2002-12-17 David Carlton <carlton@math.stanford.edu>
761 * symtab.c (lookup_partial_symbol): Don't search past the end of
764 2002-12-17 Andrew Cagney <ac131313@redhat.com>
766 * stack.c (frame_info): Use get_frame_saved_regs.
767 * breakpoint.c (until_break_command): Use get_frame_pc.
769 2002-12-16 Kevin Buettner <kevinb@redhat.com>
771 * buildsym.c (block_end_complaint, anon_block_end_complaint)
772 (innerblock_complaint, innerblock_anon_complaint)
773 (blockvector_complaint): Delete deprecated complaint structs.
774 (finish_block, make_blockvector, end_symtab): Replace calls
775 to complain() with calls to complaint().
776 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
777 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
778 (unexpected_type_complaint, bad_sclass_complaint)
779 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
780 Delete deprecated complaint structs.
781 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
782 Replace calls to complain() with calls to complaint().
783 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
784 (unknown_symtype_complaint, unknown_symchar_complaint)
785 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
786 (lbrac_mismatch_complaint, repeated_header_complaint)
787 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
788 Delete deprecated complaint structs.
789 (unknown_symtype_complaint, lbrac_mismatch_complaint)
790 (repeated_header_complaint)
791 (function_outside_compiliation_unit_complaint): New functions.
792 (add_old_header_file, find_corresponding_bincl_psymtab)
793 (set_namestring, find_stab_function_addr, read_dbx_symtab)
794 (process_one_symbol): Replace calls to complain() with, possibly
795 indirect, calls to complaint().
796 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
797 (unknown_attribute_form, unknown_attribute_length)
798 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
799 (const_ignored, botched_modified_type, op_deref2, op_deref4)
800 (basereg_not_handled, dup_user_type_allocation)
801 (dup_user_type_definition, missing_tag, bad_array_element_type)
802 (subscript_data_items, unhandled_array_subscript_format)
803 (unknown_array_subscript_format, not_row_major)
804 (missing_at_name): Delete deprecated complaint structs.
805 (bad_die_ref_complaint, unknown_attribute_form_complaint)
806 (dup_user_type_definition_complaint)
807 (bad_array_element_type_complaint): New functions.
808 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
809 (decode_subscript_data_item, dwarf_read_array_type)
810 (read_tag_string_type, read_subroutine_type, read_func_scope)
811 (locval, scan_partial_symbols, decode_modified_type)
812 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
813 (attribute_size): Replace calls to complain() with, possibly
814 indirect, calls to complaint().
815 * elfread.c (section_info_complaint, section_info_dup_complaint)
816 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
817 Delete deprecated complaint structs.
818 (elf_symtab_read, elfstab_offset_sections): Replace calls to
819 complain() with calls to complaint().
820 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
822 (stub_noname_complaint): New function.
823 (check_typedef, add_mangled_type): Replace calls to complain()
824 with calls to complaint().
825 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
826 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
827 (hpread_unhandled_type_complaint, hpread_struct_complaint)
828 (hpread_array_complaint, hpread_type_lookup_complaint)
829 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
830 (hpread_unhandled_common_complaint)
831 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
832 struct definitions and declarations.
833 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
834 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
835 Replace calls to complain() with, possibly indirect, calls to
837 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
839 * mdebugread.c (bad_file_number_complaint, index_complaint)
840 (aux_index_complaint, block_index_complaint)
841 (unknown_ext_complaint, unknown_sym_complaint)
842 (unknown_st_complaint, block_overflow_complaint)
843 (basic_type_complaint, unknown_type_qual_complaint)
844 (array_index_type_complaint, bad_tag_guess_complaint)
845 (block_member_complaint, stEnd_complaint)
846 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
847 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
848 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
849 (bad_continued_complaint, bad_rfd_entry_complaint)
850 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
851 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
852 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
853 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
855 (index_complaint, unknown_ext_complaint, basic_type_complaint)
856 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
857 (unexpected_type_code_complaint)
858 (function_outside_compilation_unit_complaint): New functions.
859 (parse_symbol, parse_type, upgrade_type, parse_procedure)
860 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
861 Replace calls to complain() with, possibly indirect calls to
863 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
864 Delete deprecated complaint structs.
865 (lookup__objc_class, lookup_child_selector): Replace complain()
867 * remote-vx.c (cant_contact_target): Delete deprecated complaint
869 (vx_lookup_symbol): Replace complain() with complaint().
870 * stabsread.c (invalid_cpp_abbrev_complaint)
871 (invalid_cpp_type_complaint, member_fn_complaint)
872 (const_vol_complaint, error_type_complaint)
873 (invalid_member_complaint, range_type_base_complaint)
874 (reg_value_complaint, vtbl_notfound_complaint)
875 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
876 (unresolved_sym_chain_complaint, stabs_general_complaint)
877 (lrs_general_complaint, multiply_defined_struct): Delete
878 deprecated complaint structs.
879 (invalid_cpp_abbrev_complaint, ref_value_complaint)
880 (stabs_general_complaint, lrs_general_complaint)
881 (msg_unknown_complaint): New functions.
882 (dbx_lookup_type, read_cfront_baseclasses)
883 (read_cfront_member_functions, resolve_symbol_reference)
884 (define_symbol, resolve_live_range, add_live_range, read_type)
885 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
886 (read_one_struct_field, read_baseclasses, read_tilde_fields)
887 (read_cfront_static_fields, attach_fields_to_type)
888 (complain_about_struct_wipeout, read_range_type)
889 (common_block_start, common_block_end, cleanup_undefined_types)
890 (scan_file_globals): Replace complain() with complaint().
891 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
892 Delete deprecated complaint struct declarations.
893 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
894 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
895 (bf_not_found_complaint, ef_complaint, eb_complaint)
896 (function_outside_compilation_unit_complaint): New functions.
897 (record_include_begin, record_include_end, enter_line_range)
898 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
899 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
900 complain() with complaint().
902 2002-12-16 Andrew Cagney <ac131313@redhat.com>
904 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
905 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
906 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
907 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
908 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
909 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
910 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
911 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
912 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
913 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
914 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
915 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
916 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
917 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
918 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
919 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
920 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
921 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
922 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
923 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
924 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
925 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
926 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
927 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
928 * config/m88k/xm-dgux.h: Delete.
929 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
930 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
931 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
932 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
933 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
934 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
935 * ch-valprint.c: Delete.
937 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
939 * infrun.c (handle_inferior_event): Rearrange code to resume if
940 no catchpoint triggers for an event.
942 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
944 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
945 and TARGET_WAITKIND_VFORKED cases.
947 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
949 * infrun.c (handle_inferior_event): Assume that catchpoints
950 are not affected by DECR_PC_AFTER_BREAK.
952 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
954 * target.c (update_current_target): Don't inherit DONT_USE.
955 * target.h (struct target_ops): Remove DONT_USE.
956 (target_next): Remove macro.
958 2002-12-15 Mark Kettenis <kettenis@gnu.org>
960 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
962 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
964 * arm-tdep.c (convert_from_extended): New argument to hold the
965 type of floating point result we want to convert to. Make input
966 argument const. Fix all callers.
967 (convert_to_extended): Similarly.
968 (arm_extract_return_value): Now takes a regcache argument. Change
969 code to use regcache accessor functions. Correctly extract
970 smaller-than-word results on big-endian machines.
971 (arm_store_return_value): Now takes a regcache argument. Change
972 code to use regcache accessor functions. Correctly zero/sign extend
973 smaller than word results before storing into r0.
974 (arm_gdbarch_init): Register new-style extract_return_value and
975 store_return_value functions.
977 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
979 * thread-db.c (thread_from_lwp): Uniquify error msg.
980 (lwp_from_thread): Ditto.
981 (check_event): Ditto.
982 (find_new_threads_callback): Ditto.
983 (thread_db_pid_to_str): Ditto.
985 2002-12-13 Andrew Cagney <ac131313@redhat.com>
987 * frame.h (get_frame_saved_regs): Declare.
988 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
990 * frame.c (get_frame_saved_regs): New function.
991 (frame_saved_regs_zalloc): Return the allocated saved_regs.
993 2002-12-13 Andrew Cagney <ac131313@redhat.com>
995 * frame.c (deprecated_update_current_frame_pc_hack): New
997 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
998 * infrun.c (normal_stop): Use said function instead of directly
999 modifying the frame's PC.
1001 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1003 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1005 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1007 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1008 config/mips/tm-irix6.h (NUM_REGS): Delete.
1009 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1010 (temp_saved_regs): Declare as a pointer rather than an array.
1011 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1012 that ``temp_saved_regs'' has storage allocated to it and that
1013 it's the correct size.
1015 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1017 * defs.h (init_last_source_visited): New prototype.
1019 * source.c (add_path): New function that adds to a specified path.
1020 (mod_path): Change to call add_path.
1021 (init_last_source_visited): New function to allow interfaces to
1022 initialize static variable: last_source_visited. Part of fix
1024 * Makefile.in: Add support for mi/mi-cmd-env.c.
1026 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1028 * frame.h (frame_id_unwind): Declare.
1029 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1031 (frame_id_unwind_ftype): Declare.
1032 * frame.c (frame_id_unwind): New function.
1033 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1034 (create_new_frame, get_prev_frame): Pass id_unwind to
1036 (frame_saved_regs_id_unwind): New function.
1037 (frame_saved_regs_id_unwind): New function.
1038 * dummy-frame.c (dummy_frame_id_unwind): New function.
1039 (struct dummy_frame): Add field id.
1040 (generic_push_dummy_frame): Initialize `id'.
1041 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1043 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1045 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1046 pass that to set_momentary_breakpoint. Move comments to where they
1048 * frame.h (set_current_frame): Delete declaration.
1049 * frame.c (set_current_frame): Delete function.
1051 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1053 * frame.c (frame_extra_info_zalloc): New function.
1054 * frame.h (frame_extra_info_zalloc): Declare.
1056 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1058 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1059 in the previous prototype change to set_momentary_breakpoint.
1061 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1063 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1065 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1066 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1067 (stop_stepping): Remove outdated check for child vfork events.
1069 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1071 * GDB 5.3 released from gdb_5_3-branch.
1073 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1075 * corelow.c (init_core_ops): Delete references to to_require_attach
1076 and to_require_detach.
1077 * exec.c (init_exec_ops): Likewise.
1078 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1079 hppa_require_detach directly.
1080 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1081 * inftarg.c (child_detach): Remove.
1082 (child_detach_from_process): Rename to child_detach, remove
1083 after_fork argument.
1084 (child_attach): Remove.
1085 (child_attach_to_process): Rename to child_attach, remove after_fork
1087 (init_child_ops): Delete references to to_require_attach
1088 and to_require_detach.
1089 * infttrace.c (hppa_require_attach): Update comment.
1090 * target.c (cleanup_target, update_current_target)
1091 (init_dummy_target, setup_target_debug): Delete references to
1092 to_require_attach and to_require_detach.
1093 (find_default_require_detach, find_default_require_attach)
1094 (debug_to_require_attach, debug_to_require_detach): Remove
1096 * target.h (struct target_ops): Remove to_require_attach
1097 and to_require_detach.
1098 (target_require_attach, target_require_detach): Delete macros.
1099 (find_default_require_detach, find_default_require_attach): Delete
1101 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1103 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1105 * frame.c (get_frame_extra_info): New function.
1106 * frame.h (get_frame_extra_info): Declare.
1108 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1110 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1111 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1112 with `struct frame_id'.
1113 (set_longjmp_resume_breakpoint): Ditto.
1114 * infrun.c (handle_inferior_event): Update.
1115 * breakpoint.c (watch_command_1, until_break_command): Update.
1116 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1117 (handle_inferior_event, step_over_function): Update.
1118 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1119 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1120 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1121 * infcmd.c (finish_command, run_stack_dummy): Update.
1123 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1125 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1126 (dwarf2_non_const_array_bound_ignored)
1127 (dwarf2_missing_line_number_section)
1128 (dwarf2_statement_list_fits_in_line_number_section)
1129 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1130 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1131 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1132 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1133 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1134 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1135 (dwarf2_missing_member_fn_type_complaint)
1136 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1137 (dwarf2_const_value_length_mismatch)
1138 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1139 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1140 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1141 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1142 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1143 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1144 complaints using deprecated struct..
1145 (dwarf2_non_const_array_bound_ignored_complaint)
1146 (dwarf2_complex_location_expr_complaint)
1147 (dwarf2_unsupported_at_frame_base_complaint)
1148 (dwarf2_const_value_length_mismatch_complaint)
1149 (dwarf2_macros_too_long_complaint)
1150 (dwarf2_macro_malformed_definition_complaint)
1151 (dwarf2_invalid_attrib_class_complaint): New functions.
1152 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1153 (read_structure_scope, read_array_type, read_common_block)
1154 (read_tag_pointer_type, read_base_type, read_partial_die)
1155 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1156 (new_symbol, dwarf2_const_value, read_type_die)
1157 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1158 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1159 complain() with, possibly indirect, calls to complaint().
1161 2002-12-11 Andrew Cagney <cagney@redhat.com>
1163 * frame.c (deprecated_get_frame_saved_regs): Rename
1164 get_frame_saved_regs.
1165 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1166 * sparc-tdep.c: Update.
1167 * hppa-tdep.c: Update.
1168 * h8500-tdep.c: Update.
1170 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1172 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1173 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1174 ``char *'' for return and parameter types.
1175 * gdbarch.h, gdbarch.c: Regenerate.
1176 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1177 return type from ``char *'' to ``const char *''.
1178 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1181 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1183 * i386-tdep.c: Include "dummy-frame.h".
1184 (i386_frame_chain, i386_frame_saved_pc): Replace
1185 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1186 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1188 2002-12-10 Andrew Cagney <cagney@redhat.com>
1190 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1191 Change to a function with predicate.
1192 * gdbarch.h, gdbarch.c: Re-generate.
1193 * frame.c (get_prev_frame): Update. Test
1194 DEPRECATED_INIT_FRAME_PC_P.
1195 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1196 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1197 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1198 * alpha-tdep.c (alpha_gdbarch_init): Update.
1199 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1200 * mips-tdep.c (mips_gdbarch_init): Update.
1201 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1202 * arm-tdep.c: Update comments.
1203 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1204 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1205 * frv-tdep.c (frv_gdbarch_init): Ditto.
1206 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1207 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1208 * s390-tdep.c (s390_gdbarch_init): Ditto.
1209 * v850-tdep.c (v850_gdbarch_init): Ditto.
1210 * vax-tdep.c (vax_gdbarch_init): Ditto.
1211 * sh-tdep.c (sh_gdbarch_init): Ditto.
1212 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1214 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1215 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1216 * i386-tdep.c (i386_gdbarch_init): Ditto.
1217 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1218 * cris-tdep.c (cris_gdbarch_init): Ditto.
1219 * avr-tdep.c (avr_gdbarch_init): Ditto.
1220 * arm-tdep.c (arm_gdbarch_init): Ditto.
1221 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1222 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1224 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1226 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1228 * hppah-nat.c (saved_vfork_pid): Add.
1229 (child_post_follow_vfork): Remove.
1230 (child_follow_fork): New function.
1231 (child_wait): Call detach_breakpoints after receiving the child vfork.
1232 Call child_resume directly instead of going through resume ().
1233 Make sure we have the exec before reporting the vfork.
1234 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1235 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1236 (follow_fork): New function. Call target_follow_fork.
1237 (follow_inferior_reset_breakpoints): New function broken out from
1238 old follow_inferior_fork.
1239 (resume): Remove hack to follow exec after vfork.
1240 * inftarg.c (child_post_follow_vfork): Remove.
1241 (child_follow_fork): New function.
1242 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1243 * target.c (cleanup_target): Replace to_post_follow_vfork with
1245 (update_current_target): Likewise.
1246 (setup_target_debug): Likewise.
1247 (debug_to_post_follow_vfork): Remove.
1248 (debug_to_follow_fork): New function.
1249 * target.h (struct target_ops): Replace to_post_folow_vfork with
1251 (child_post_follow_vfork): Remove prototype.
1252 (child_follow_fork): Add prototype.
1253 (target_post_follow_vfork): Remove macro.
1254 (target_follow_fork): Add macro.
1256 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1258 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1259 (child_post_follow_vfork): Cancel pending exec event if we follow
1261 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1262 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1263 event at the following wait call if necessary.
1264 * infrun.c (follow_vfork): Don't follow_exec here.
1265 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1266 case about HP/UX 10.20. Remove code pushed down to
1267 hppah-nat.c:child_wait.
1268 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1269 vfork_in_flight is set.
1271 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1273 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1274 for the parent's fork event.
1275 * infrun.c (handle_inferior_event): Only expect one fork event.
1276 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1277 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1279 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1281 * PROBLEMS: Delete reference to PR gdb/725.
1283 * MAINTAINERS (gdb.c++): Add David Carlton.
1285 2002-12-09 David Carlton <carlton@math.stanford.edu>
1287 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1288 * cli/cli-cmds.c: Ditto.
1290 2002-12-09 Andrew Cagney <cagney@redhat.com>
1292 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1293 function address in <>.
1294 * gdbarch.c: Re-generate.
1296 2002-12-09 David Carlton <carlton@math.stanford.edu>
1298 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1300 2002-12-09 David Carlton <carlton@math.stanford.edu>
1302 * linespec.c (symtab_from_filename): New function.
1303 (decode_line_1): Move code into symtab_from_filename.
1305 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1307 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1309 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1311 * f-valprint.c (info_common_command): Use get_frame_pc.
1312 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1313 * ax-gdb.c (agent_command): Ditto.
1314 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1315 (rs6000_pop_frame): Ditto.
1316 (rs6000_frameless_function_invocation): Ditto.
1317 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1318 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1319 * macroscope.c (default_macro_scope): Ditto.
1320 * stack.c (print_frame_info_base): Ditto.
1321 (print_frame, frame_info, print_frame_label_vars): Ditto.
1322 (return_command, func_command, get_frame_language): Ditto.
1323 * infcmd.c (finish_command): Ditto.
1324 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1325 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1326 (break_at_finish_at_depth_command_1): Ditto.
1327 (break_at_finish_command_1): Ditto.
1328 (until_break_command, get_catch_sals): Ditto.
1329 * blockframe.c (func_frame_chain_valid): Ditto.
1330 (frameless_look_for_prologue): Ditto.
1331 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1333 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1335 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1336 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1338 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1340 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1342 * gdbarch.h, gdbarch.c: Re-generate.
1343 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1344 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1346 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1347 declaration to a function returning a CORE_ADDR.
1348 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1349 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1350 (init_frame_pc_default): Ditto.
1351 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1352 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1353 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1354 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1355 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1356 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1358 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1359 to init_frame_pc_noop.
1360 (i386_interix_init_frame_pc): Delete function.
1361 * z8k-tdep.c (init_frame_pc): Delete function.
1362 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1363 (INIT_FRAME_PC_FIRST): Ditto.
1364 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1365 (INIT_FRAME_PC_FIRST): Ditto.
1366 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1367 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1369 (INIT_FRAME_PC_FIRST): Convert to an expression.
1370 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1372 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1374 * blockframe.c: Use get_frame_base instead of directly accessing
1375 the `struct frame_info' member frame.
1376 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1377 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1379 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1381 * Makefile.in (readline_h): Define.
1382 (completer.o): Depend on readline_h.
1384 (event-top.o): Ditto.
1391 (tracepoint.o): Ditto.
1393 (cli-dump.o): Ditto.
1394 (tui-hooks.o): Ditto.
1397 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1399 More cleanup from import of readline 4.3.
1400 * completer.h (complete_line, readline_line_completion_function):
1402 (line_completion_function): Removed, not used outside of completer.c.
1403 * completer.c (readline_line_completion_function,
1404 complete_function, line_completion_function): Use const for first
1406 (line_completion_function): Make static.
1407 (filename_completer): filename_completion_function is now called
1408 rl_filename_completion_function
1409 * corelow.c: Include <readline/readline.h>.
1415 * top.c (init_main): No need to coerce
1416 readline_line_completion_function anymore.
1417 * cli/cli-dump.c: Include <readline/readline.h>.
1419 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1421 * stack.c (frame_info): Use get_prev_frame.
1422 * blockframe.c (frame_address_in_block): Ditto.
1423 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1424 (rs6000_frameless_function_invocation): Ditto.
1425 (rs6000_frame_saved_pc): Ditto.
1426 (rs6000_frame_chain): Ditto.
1427 * arch-utils.c (init_frame_pc_default): Ditto.
1429 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1431 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1432 Delete redundant definition.
1434 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1436 Import of readline 4.3:
1437 * cli/cli-cmds.c: Include readline/tilde.h.
1438 * cli/cli-setshow.c: Ditto.
1439 * defs.h: Don't declare tilde_expand anymore, since readline
1442 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1444 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1445 -Werror on this file.
1447 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1449 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1451 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1452 * gdbarch.c: Regenerate.
1454 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1456 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1457 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1458 provide a default value.
1459 * gdbarch.h, gdbarch.c: Regenerate.
1460 * frame.c (get_prev_frame): Update. Check
1461 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1462 * s390-tdep.c (s390_gdbarch_init): Update.
1463 * mips-tdep.c (mips_gdbarch_init): Update.
1464 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1465 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1466 * alpha-tdep.c (alpha_gdbarch_init): Update.
1468 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1470 * ia64-linux-nat.c: Include gdb_string.h.
1471 * alpha-nat.c: Ditto.
1472 * ppc-linux-nat.c: Ditto.
1473 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1474 Update dependencies.
1476 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1478 * gdbthread.h: Include "frame.h".
1479 (struct thread_info): Replace step_frame_address with
1481 * inferior.h: Include "frame.h".
1482 (step_frame_id): Replace external variable step_frame_address.
1483 * gdbthread.h (save_infrun_state): Replace step_frame_address
1484 parameter with step_frame_id parameter.
1485 (load_infrun_state): Ditto.
1486 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1487 * infcmd.c (step_frame_id, step_1, step_once): Update.
1488 * thread.c (load_infrun_state, save_infrun_state): Update.
1489 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1490 (handle_inferior_event, step_over_function): Update.
1491 (normal_stop, context_switch, restore_inferior_status): Update.
1492 (struct inferior_status): Replace step_frame_address with
1495 2002-12-05 David Carlton <carlton@math.stanford.edu>
1497 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1498 DW_TAG_member as well as a declaration as being a C++ static data
1500 (read_structure_scope): Combine tests for DW_TAG_member and
1503 2002-12-05 David Carlton <carlton@math.stanford.edu>
1505 * linespec.c (decode_compound): New function.
1506 (decode_line_1): Move code into decode_compound.
1508 2002-12-05 David Carlton <carlton@math.stanford.edu>
1510 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1512 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1513 the static block. See PR gdb/804.
1515 2002-12-05 David Carlton <carlton@math.stanford.edu>
1517 * symtab.c (lookup_symbol_aux_block): New function.
1518 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1520 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1522 * gdbarch.sh: Dump the predicate function and macro values.
1523 (read): Print error on standard error.
1524 * gdbarch.c: Regenerate.
1526 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1528 * Makefile.in (mips_tdep_h): Define.
1529 (mips-tdep.o): Add mips_tdep_h to dependency list.
1530 * mips-tdep.h: New file.
1531 * mips-tdep.c (mips-tdep.h): Include.
1532 (enum mips_abi): Move to mips-tdep.h.
1533 (mips_abi): New function.
1535 2002-12-04 David Carlton <carlton@math.stanford.edu>
1537 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1539 2002-12-04 David Carlton <carlton@math.stanford.edu>
1541 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1543 (lookup_symbol_aux_minsyms): New function.
1545 2002-12-04 J. Brobecker <brobecker@gnat.com>
1547 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1549 2002-12-04 J. Brobecker <brobecker@gnat.com>
1551 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1552 which is an obsolete macro name.
1554 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1556 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1557 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1559 2002-12-03 H.J. Lu (hjl@gnu.org)
1561 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1562 (create_breakpoints): Make sure the addr_string field is not
1565 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1567 * sparc-nat.c (fetch_inferior_registers)
1568 (store_inferior_registers): Add comment on problem of LWP vs
1571 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1572 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1573 (lin_lwp_store_registers): Remove.
1574 (init_lin_lwp_ops): Use fetch_inferior_registers
1575 and store_inferior_registers directly.
1576 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1577 (store_inferior_registers): Likewise.
1580 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1582 * frame.h (get_frame_id): Convert to a function.
1583 (null_frame_id, frame_id_p): Declare.
1584 (frame_id_eq, frame_id_inner): Declare.
1585 (frame_id_build): New function.
1586 * frame.c (get_frame_id): Update. Use null_frame_id.
1587 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1589 (null_frame_id, frame_id_p): Define.
1590 (frame_id_eq, frame_id_inner): Define.
1591 (frame_id_build): New function.
1592 * varobj.c (varobj_create): Update.
1593 (varobj_update): Update.
1594 * valops.c (value_assign): Update.
1595 (new_root_variable): Update.
1596 * infrun.c (save_inferior_status): Update.
1597 * breakpoint.c (watch_command_1): Update.
1599 2002-12-03 J. Brobecker <brobecker@gnat.com>
1601 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1604 2002-12-03 Andrew Cagney <cagney@redhat.com>
1606 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1609 * PROBLEMS: Mention PR gdb/725.
1611 2002-12-03 Andreas Schwab <schwab@suse.de>
1613 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1615 2002-12-02 Adam Fedor <fedor@gnu.org>
1616 Klee Dienes <kdienes@apple.com>
1618 * objc-lang.c (objc_printstr): Add width arg to match
1620 (compare_selectors): Add 'const' to arg types.
1621 (compare_classes): Likewise.
1622 (find_imps): Cast msym pointer to avoid compiler warning.
1623 (print_object_command): Validate the address before
1624 passing it to the print routine.
1625 (find_objc_msgcall_submethod): Change function argument to
1627 * objc-lang.h: Add 'extern' to all function declarations.
1628 (value_nsstring): Add declaration.
1630 2002-12-02 J. Brobecker <brobecker@gnat.com>
1632 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1633 Fixes a build failure on HP/UX.
1635 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1637 (hpread_has_name): Advance declaration to avoid a compilation warning.
1638 (pst_syms_count): Add missing variable type. By change, the compiler
1639 was defaulting to int, which seems a good choice. Fixes a compilation
1641 (pst_syms_size): Likewise.
1643 2002-12-02 J. Brobecker <brobecker@gnat.com>
1645 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1646 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1647 later to set the proper gdbarch methods depending on the osabi.
1648 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1650 2002-12-02 J. Brobecker <brobecker@gnat.com>
1652 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1653 * osabi.c (gdb_osabi_name): Add strings images for the two new
1655 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1657 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1659 * MAINTAINERS (Java): Global maintainers are responible for Java.
1660 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1661 part Java maintainers.
1663 2002-12-02 J. Brobecker <brobecker@gnat.com>
1665 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1666 Fixes a compilation failure on AiX.
1668 2002-12-02 J. Brobecker <brobecker@gnat.com>
1670 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1671 why aix-thread.o is not listed.
1673 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1675 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1676 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1677 * gdbarch.h, gdbarch.c: Re-generate.
1678 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1679 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1680 * config/pa/tm-hppa.h, frame.h: Update.
1681 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1682 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1683 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1684 * cris-tdep.c, alpha-tdep.c: Update.
1685 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1686 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1687 (get_prev_frame): Ditto.
1689 2002-11-30 Andrew Cagney <cagney@redhat.com>
1691 * exec.c (xfer_memory): Replace boolean with int.
1692 * p-exp.y: Use 0 instead of false.
1693 * corelow.c (gdb_check_format): Change return type to int from
1695 * utils.c: Don't include <curses.h> or <term.h> first.
1697 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1699 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1700 (m68hc11_register_byte): Remove.
1701 (m68hc11_gdbarch_init): Don't set the above.
1703 2002-11-29 Andrew Cagney <cagney@redhat.com>
1705 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1706 by calling get_selected_frame.
1707 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1708 set_current_frame, create_new_frame, select_frame and
1710 * remote-e7000.c (e7000_start_remote): Ditto.
1711 * remote-mips.c (common_open): Ditto
1712 * remote-rdp.c (remote_rdp_open): Ditto.
1714 2002-11-29 Andreas Schwab <schwab@suse.de>
1716 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1717 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1718 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1719 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1720 read_memory_unsigned_integer instead of read_memory_integer when
1721 dealing with addresses and instruction opcodes.
1722 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1723 (m68k_linux_frame_saved_pc): Likewise.
1725 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1727 * stack.c (selected_frame, select_frame): Move from here ...
1728 * frame.c (selected_frame, select_frame): ... to here. Include
1730 * Makefile.in (frame.o): Update dependencies.
1731 * frame.c (get_selected_frame): New function.
1732 * frame.h (get_selected_frame): Declare.
1733 (deprecated_selected_frame): Rename selected_frame.
1734 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1735 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1736 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1737 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1738 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1739 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1740 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1741 * z8k-tdep.c, cli/cli-cmds.c: Update.
1743 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1745 * frame.h (get_selected_block): Add comments.
1747 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1749 * frame.c (pc_notcurrent): New function.
1750 (find_frame_sal): New function.
1751 * frame.h (find_frame_sal): Declare.
1752 (struct symtab_and_line): Add opaque declaration.
1753 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1755 (frame_info): Ditto.
1756 * ada-lang.c (find_printable_frame): Ditto.
1758 2002-11-28 J. Brobecker <brobecker@gnat.com>
1760 * configure.in: Check that the pthdebug library is recent enough
1761 before enabling thread support on native AiX.
1762 * configure: Regenerate.
1764 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1765 from the list of object files as it is now appended by configure
1766 if thread support is enabled.
1767 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1768 if thread support is enabled.
1770 2002-11-28 Andrew Cagney <cagney@redhat.com>
1772 * stack.c (get_selected_block): In-line get_current_block.
1773 * frame.h (get_current_block): Delete declaration.
1774 * blockframe.c (get_current_block): Delete function.
1776 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1778 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1779 USE_GENERIC_DUMMY_FRAMES.
1780 * gdbarch.h, gdbarch.c: Regenerate.
1781 * valops.c, frame.c: Update.
1782 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1783 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1784 * config/pa/tm-hppa.h, blockframe.c: Update.
1785 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1786 * m68k-tdep.c, alpha-tdep.c: Ditto.
1788 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1789 * mips-tdep.c: Ditto.
1791 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1793 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1794 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1795 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1796 * gdbarch.c, gdbarch.h: Re-generate.
1797 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1798 (CALL_DUMMY_LOCATION): Delete macro definition.
1799 (PC_IN_CALL_DUMMY): Delete macro definitions.
1801 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1802 default is already generic_pc_in_call_dummy.
1803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1804 * v850-tdep.c (v850_gdbarch_init): Ditto.
1805 * sh-tdep.c (sh_gdbarch_init): Ditto.
1806 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1807 * mips-tdep.c (mips_gdbarch_init): Ditto.
1808 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1809 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1810 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1811 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1812 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1813 * avr-tdep.c (avr_gdbarch_init): Ditto.
1815 * arm-tdep.c (arm_gdbarch_init): Do not set
1816 use_generic_dummy_frames, default is already 1.
1817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1818 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1819 * v850-tdep.c (v850_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.
1835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1836 call_dummy_location, default is already AT_ENTRY_POINT.
1837 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1838 * v850-tdep.c (v850_gdbarch_init): Ditto.
1839 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1840 * sh-tdep.c (sh_gdbarch_init): Ditto.
1841 * s390-tdep.c (s390_gdbarch_init): Ditto.
1842 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1843 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1844 * mips-tdep.c (mips_gdbarch_init): Ditto.
1845 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1847 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1848 * i386-tdep.c (i386_gdbarch_init): Ditto.
1849 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1850 * frv-tdep.c (frv_gdbarch_init): Ditto.
1851 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1852 * cris-tdep.c (cris_gdbarch_init): Ditto.
1853 * avr-tdep.c (avr_gdbarch_init): Ditto.
1854 * arm-tdep.c (arm_gdbarch_init): Ditto.
1855 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1857 2002-11-28 Andrew Cagney <cagney@redhat.com>
1859 * frame.h: Update comments on set_current_frame, create_new_frame,
1860 flush_cached_frames, reinit_frame_cache, select_frame and
1863 2002-11-27 Andrew Cagney <cagney@redhat.com>
1865 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1866 deprecated pc_in_call_dummy function.
1867 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1868 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1869 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1870 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1871 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1873 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1875 * Makefile.in: Remove Tix dependencies.
1876 * acinclude.m4: Ditto.
1877 * aclocal.m4: Ditto.
1878 * configure.in: Ditto.
1879 * configure: Regenerated.
1881 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1883 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1884 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1885 * gdbarch.c: Re-generate.
1887 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1889 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1890 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1891 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1892 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1893 pc_in_call_dummy_at_entry_point.
1894 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1895 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1896 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1897 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1898 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1899 pc_in_call_dummy_on_stack.
1900 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1901 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1902 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1903 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1904 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1906 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1908 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1909 pc_in_call_dummy_before_text_end
1910 (deprecated_pc_in_call_dummy_after_text_end): Rename
1911 pc_in_call_dummy_after_text_end.
1912 (deprecated_pc_in_call_dummy_on_stack): Rename
1913 pc_in_call_dummy_on_stack.
1914 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1915 pc_in_call_dummy_at_entry_point.
1916 * m68k-tdep.c (m68k_gdbarch_init): Update.
1917 * s390-tdep.c (s390_gdbarch_init): Update.
1918 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1919 * vax-tdep.c (vax_gdbarch_init): Update.
1920 * sparc-tdep.c (sparc_gdbarch_init): Update.
1921 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1922 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1923 * i386-tdep.c (i386_gdbarch_init): Update.
1924 * frv-tdep.c (frv_gdbarch_init): Update.
1925 * cris-tdep.c (cris_gdbarch_init): Update.
1926 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1927 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1928 (deprecated_pc_in_call_dummy_after_text_end)
1929 (deprecated_pc_in_call_dummy_on_stack)
1930 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1931 * alpha-tdep.c (alpha_gdbarch_init): Update.
1933 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1935 * acconfig.h (HAVE_PREAD64): Add.
1936 * configure.in: Check for pread64.
1937 * config.in: Regenerated.
1938 * configure: Regenerated.
1939 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1940 * linux-proc.c (linux_proc_xfer_memory): New function.
1941 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1943 2002-11-25 David Carlton <carlton@math.stanford.edu>
1945 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1948 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1950 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1951 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1953 2002-11-25 Jim Blandy <jimb@redhat.com>
1955 * symfile.c (init_objfile_sect_indices): New function.
1956 (default_symfile_offsets): Move the section-index-initializing
1957 stuff into init_objfile_sect_indices, and call that.
1959 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1960 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1962 * symfile.c (syms_from_objfile): Adjust indentation.
1964 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1965 || info_verbose isn't true.
1967 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1969 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1970 default to get_frame_base.
1971 * gdbarch.h, gdbarch.c: Regenerate.
1972 * arch-utils.c (default_frame_address): Delete function.
1973 * arch-utils.h (default_frame_address): Delete declaration
1975 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1977 * varobj.c (find_frame_addr_in_frame_chain):
1978 Use get_frame_base instead of FRAME_FP,
1981 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1983 * frame.h (FRAME_FP): Delete macro.
1984 (get_frame_base): New function declaration.
1985 * frame.c (get_frame_base): New function.
1986 (get_frame_id): Use ->frame.
1987 (frame_find_by_id): Rewrite to use get_frame_id.
1988 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1989 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1990 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1991 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1992 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1993 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1994 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1996 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1998 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2000 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2002 * frame.c (set_unwind_by_pc): Revert change below, use
2004 (get_prev_frame): Ditto.
2006 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2008 * dummy-frame.c (pc_in_dummy_frame): New function.
2009 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2010 (find_dummy_frame): Update comment.
2011 (generic_pop_current_frame): Use get_frame_type.
2012 * dummy-frame.h (pc_in_dummy_frame): Declare.
2013 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2014 (create_new_frame): Use pc_in_dummy_frame.
2015 (get_prev_frame): Use pc_in_dummy_frame.
2016 (frame_saved_regs_register_unwind): Use get_prev_frame.
2017 (deprecated_generic_get_saved_register): Use get_prev_frame.
2019 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2021 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2023 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2024 (varobj_create): Note that frame ID should be used.
2025 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2027 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2029 * breakpoint.c: Include "gdb_assert.h".
2030 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2032 * Makefile.in (breakpoint.o): Update dependencies.
2033 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2034 deprecated_frame_in_dummy.
2035 * stack.c (print_frame_info_base): Ditto.
2036 (frame_info): Ditto.
2037 (print_frame_info_base): Ditto. Delete dead code.
2039 2002-11-23 Andreas Schwab <schwab@suse.de>
2041 * Makefile.in (m68k_tdep_h): Define.
2042 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2043 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2044 * m68k-tdep.c: Move register number enum ...
2045 * m68k-tdep.h: ... to this new file and rename the constants from
2046 E_* to M68K_*. All uses changed.
2047 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2048 * abug-rom.c: Include "m68k-tdep.h". Use
2049 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2050 * cpu32bug-rom.c: Likewise.
2051 * dbug-rom.c: Likewise.
2052 * m68k-tdep.c: Likewise.
2053 * m68klinux-nat.c: Likewise.
2054 * remote-est.c: Likewise.
2055 * rom68k-rom.c: Likewise.
2056 * config/m68k/tm-linux.h: Likewise.
2058 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2060 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2061 dummy frame initialization code.
2062 * mips-tdep.c (mips_gdbarch_init): Ditto.
2064 2002-11-22 Christopher Faylor <cgf@redhat.com>
2066 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2069 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2071 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2072 to default_frame_address.
2073 * gdbarch.h, gdbarch.c: Re-generate.
2075 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2076 or frame_locals_address to default_frame_address.
2077 * m68k-tdep.c (m68k_gdbarch_init): Update.
2078 * i386-tdep.c (i386_gdbarch_init): Update.
2079 * frv-tdep.c (frv_gdbarch_init): Update.
2080 * sh-tdep.c (sh_gdbarch_init): Update.
2081 * v850-tdep.c (v850_gdbarch_init): Update.
2082 * sparc-tdep.c (sparc_gdbarch_init): Update.
2083 * mips-tdep.c (mips_gdbarch_init): Update.
2084 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2085 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2086 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2088 * cris-tdep.c (cris_frame_args_address): Delete function.
2089 (cris_frame_locals_address): Delete function.
2090 (cris_gdbarch_init): Do not set frame_args_address or
2091 frame_locals_address.
2093 2002-11-22 Michael Snyder <msnyder@redhat.com>
2095 * thread-db.c (thread_db_load): Tell the user what's going on
2096 if dlopen fails on libthread_db.
2098 2002-11-23 Andreas Schwab <schwab@suse.de>
2100 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2101 invariant return values.
2103 2002-11-22 Andreas Schwab <schwab@suse.de>
2105 * valops.c (value_slice): Move declaration of `offset' to avoid
2108 2002-11-22 Christopher Faylor <cgf@redhat.com>
2110 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2111 (struct so_stuff): Add end_addr field.
2112 (register_loaded_dll): Calculate and store end address of loaded dll.
2113 (solib_address): New function.
2114 (child_solib_loaded_library_pathname): Pass carefully constructed
2115 section info to safe_symbol_file_add rather than ignoring it.
2116 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2118 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2119 (child_create_inferior): Fix a compiler warning.
2120 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2121 (solib_address): Declare new function.
2123 2002-11-22 Andreas Schwab <schwab@suse.de>
2125 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2128 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2130 * maint.c (_initialize_maint_cmds): Fix typo. From
2131 Francesco Potorti` <pot@gnu.org>.
2133 2002-11-21 Andrew Cagney <cagney@redhat.com>
2135 * mips-tdep.c (mips_dump_tdep): Delete references to
2136 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2137 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2138 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2139 * printcmd.c (build_address_symbolic): Delete calls to
2140 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2141 (address_info): Ditto.
2144 2002-11-19 Klee Dienes <kdienes@apple.com>
2145 Adam Fedor <fedor@gnu.org>
2147 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2148 the ability to explicitly specify the quote characters and word
2149 break characters; if NULL is specified for either, use the old
2150 behavior of using the characters used by the completer.
2151 (skip_chars): New function. Convenience wrapper around
2152 skip_quoted_chars to provide the original skip_chars behavior.
2153 * completer.h (skip_quoted_chars): Add prototype.
2155 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2157 Problems reported by Paul Eggert.
2158 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2160 2002-11-19 Andreas Schwab <schwab@suse.de>
2162 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2163 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2164 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2165 (m68k_linux_frame_saved_pc): Move to ...
2166 * m68klinux-tdep.c: ... here. New file.
2167 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2168 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2170 2002-11-19 Adam Fedor <fedor@gnu.org>
2172 * objc-exp.y: Revert to old skip_quoted usage.
2174 2002-11-19 Adam Fedor <fedor@gnu.org>
2176 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2177 (objc_lang_h): Define.
2178 (YYFILES): Add objc-exp.tab.c.
2179 (local-maintainer-clean): Remove objc-exp.tab.c.
2180 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2182 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2184 * p-exp.y (typecast rule): Add automatic dereference of
2185 pascal classes if needed.
2186 (THIS): Set current_type.
2187 Automatically dereference pascal classes.
2188 (typebase rule): Add ^typebase recognition.
2190 2002-11-18 Adam Fedor <fedor@gnu.org>
2192 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2193 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2194 (op_name): Handle OP_OBJC_SELF.
2195 * Makefile.in (expprint.o): Add additional depends.
2197 2002-11-18 Adam Fedor <fedor@gnu.org>
2199 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2200 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2201 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2202 * objc-exp.y: Likewise.
2204 2002-11-18 Adam Fedor <fedor@gnu.org>
2206 * gdb/parser-defs.h: (struct objc_class_str): New structure
2207 for parsing ObjC classes.
2209 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2211 * stack.c (frame_relative_level): Copy function from here ...
2212 * frame.c (frame_relative_level): ...to here.
2214 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2216 * frame.h (enum frame_type): Define.
2217 (get_frame_type): Declare.
2218 (struct frame_info): Add field `type'. Delete field
2219 signal_handler_caller.
2220 (deprecated_set_frame_signal_handler_caller): Declare.
2221 * frame.c (get_frame_type): New function.
2222 (deprecated_set_frame_type): New function.
2223 (create_new_frame): Set the frame's type.
2224 (get_prev_frame): Similar.
2225 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2226 * s390-tdep.c: Ditto.
2227 * m68klinux-nat.c: Ditto.
2228 * ns32k-tdep.c: Ditto.
2229 * x86-64-linux-tdep.c: Ditto.
2230 * vax-tdep.c: Ditto.
2231 * rs6000-tdep.c: Ditto.
2232 * ppc-linux-tdep.c: Ditto.
2233 * i386-interix-tdep.c: Ditto.
2234 * mips-tdep.c: Ditto.
2235 * m68k-tdep.c: Ditto.
2236 * hppa-tdep.c: Ditto.
2237 * ia64-tdep.c: Ditto.
2238 * cris-tdep.c: Ditto.
2239 * arm-tdep.c: Ditto.
2240 * alpha-tdep.c: Ditto.
2241 * i386-tdep.c: Ditto.
2243 * ada-lang.c: Ditto.
2244 * blockframe.c: Update.
2245 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2246 deprecated_set_frame_type instead of signal_handler_caller.
2247 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2248 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2249 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2251 2002-11-18 Klee Dienes <kdienes@apple.com>
2253 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2255 2002-11-18 Klee Dienes <kdienes@apple.com>
2257 * buildsym.c (pop_context): Add comment.
2259 2002-11-18 Klee Dienes <kdienes@apple.com>
2261 * buildsym.h (pop_context): Convert to function, defined in
2263 * buildsym.c: Include gdb_assert.h.
2264 (pop_context): Implement as C function. Add check for stack
2266 * dbxread.c (process_one_symbol): Complain and stop processing
2267 that symbol if we are already at the top of the context stack for
2268 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2269 when processing N_RBRAC.
2271 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2273 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2275 (struct target_waitstatus): Add opaque definition.
2276 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2277 * exec.c (init_exec_ops): Likewise.
2278 * fork-child.c (clone_and_follow_inferior): Remove.
2279 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2280 * inferior.h (clone_and_follow_inferior): Remove prototype.
2281 * infrun.c (follow_fork_mode_both): Remove.
2282 (follow_fork_mode_kind_names): Remove commented out "both".
2283 (follow_inferior_fork): Remove follow_fork_mode_both support.
2284 * inftarg.c (child_clone_and_follow_inferior): Remove.
2285 (child_post_follow_inferior_by_clone): Remove.
2286 (init_child_ops): Don't set to_clone_and_follow_inferior
2287 or to_post_follow_inferior_by_clone.
2288 * target.c (default_clone_and_follow_inferior): Remove.
2289 (cleanup_target): Don't set to_clone_and_follow_inferior
2290 or to_post_follow_inferior_by_clone.
2291 (find_default_clone_and_follow_inferior): Remove.
2292 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2293 (debug_to_clone_and_follow_inferior): Remove.
2294 (debug_to_post_follow_inferior_by_clone): Remove.
2295 (setup_target_debug): Don't set to_clone_and_follow_inferior
2296 or to_post_follow_inferior_by_clone.
2297 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2298 and to_post_follow_inferior_by_clone.
2299 (child_clone_and_follow_inferior): Remove prototype.
2300 (child_post_follow_inferior_by_clone): Remove prototype.
2301 (target_clone_and_follow_inferior): Remove macro.
2302 (target_post_follow_inferior_by_clone): Remove macro.
2303 (find_default_clone_and_follow_inferior): Remove prototype.
2305 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2307 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2308 inferior_has_vforked, and inferior_has_execd instead of
2309 target_has_forked, target_has_vforked, and target_has_execd.
2310 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2311 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2312 (CHILD_WAIT): Define.
2313 (child_wait): Add prototype.
2314 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2316 (hpux_has_vforked): Likewise, from child_has_vforked.
2317 (hpux_has_execd): Likewise, from child_has_execd.
2318 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2319 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2320 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2321 and hpux_has_syscall_event instead of the target hooks.
2322 * infrun.c (inferior_has_forked, inferior_has_vforked)
2323 (inferior_has_execd): New functions.
2324 * inftarg.c (not_same_real_pid): Remove.
2325 (child_wait): Remove references to not_same_real_pid,
2326 target_has_forked, target_has_vforked, target_has_execd,
2327 and target_has_syscall_event.
2328 (child_has_forked, child_has_vforked, child_has_execd)
2329 (child_has_syscall_event): Remove.
2330 (init_child_ops): Remove references to child_has_forked,
2331 child_has_vforked, child_has_execd, and child_has_syscall_event.
2332 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2333 (hpux_has_vforked): Likewise, from child_has_vforked.
2334 (hpux_has_execd): Likewise, from child_has_execd.
2335 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2336 * target.c (cleanup_target): Remove references to
2337 to_has_forked, to_has_vforked, to_has_execd, and
2338 to_has_syscall_event.
2339 (update_current_target): Likewise.
2340 (setup_target_debug): Likewise.
2341 (debug_to_has_forked): Remove.
2342 (debug_to_has_vforked): Remove.
2343 (debug_to_has_execd): Remove.
2344 (debug_to_has_syscall_event): Remove.
2345 * target.h (struct target_ops): Remove to_has_forked.
2346 to_has_vforked, to_has_execd, and to_has_syscall_event.
2347 (child_has_forked, child_has_vforked, child_has_execd)
2348 (child_has_syscall_event): Remove prototypes.
2349 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2351 (target_has_forked, target_has_vforked, target_has_execd)
2352 (target_has_syscall_event): Remove macros.
2354 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2356 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2357 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2358 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2359 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2360 * target.c (cleanup_target): Remove reference to
2361 to_can_follow_vfork_prior_to_exec.
2362 (update_current_target): Likewise.
2363 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2364 (setup_target_debug): Remove reference to
2365 to_can_follow_vfork_prior_to_exec.
2366 * target.h (struct target_ops): Remove
2367 to_can_follow_vfork_prior_to_exec.
2368 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2369 (target_can_follow_vfork_prior_to_exec): Remove definition.
2370 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2372 * infrun.c (follow_vfork_when_exec): Remove.
2373 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2374 (follow_exec): Likewise.
2375 (handle_inferior_event): Likewise.
2376 (keep_going): Likewise.
2378 2002-11-15 Andrew Cagney <cagney@redhat.com>
2380 * frame.c (generic_unwind_get_saved_register): Make static.
2381 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2382 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2383 defaults to generic_unwind_get_saved_register.
2384 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2385 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2386 * frv-tdep.c (frv_gdbarch_init): Ditto.
2387 * i386-tdep.c (i386_gdbarch_init): Ditto.
2388 * s390-tdep.c (s390_gdbarch_init): Ditto.
2389 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2390 * v850-tdep.c (v850_gdbarch_init): Ditto.
2391 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2392 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2393 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2395 2002-11-15 Andrew Cagney <cagney@redhat.com>
2397 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2400 2002-11-15 Andrew Cagney <cagney@redhat.com>
2402 * frame.h (sigtramp_saved_pc): Delete declaration.
2403 * blockframe.c (sigtramp_saved_pc): Delete function.
2404 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2405 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2406 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2407 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2409 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2411 * frame.c (frame_pc_unwind): New function.
2412 (frame_saved_regs_pc_unwind): New function.
2413 (frame_register_unwind): Pass unwind_cache instead of
2414 register_unwind_cache.
2415 (set_unwind_by_pc): Add unwind_pc parameter, set.
2416 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2417 (get_prev_frame): Ditto.
2418 * frame.h (frame_pc_unwind_ftype): Declare.
2419 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2420 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2421 (frame_pc_unwind): Declare.
2422 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2423 (struct dummy_frame): Add comment mentioning that values are for
2425 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2426 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2427 (generic_file_frame_chain_valid): Ditto.
2428 * stack.c (frame_info): Ditto.
2430 2002-11-15 David Carlton <carlton@math.stanford.edu>
2432 * linespec.c (locate_first_half): New function.
2433 (decode_line_1): Move code into locate_first_half.
2435 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2437 * complaints.h: Add comment explaining how to eliminate a
2438 deprecated_complain call.
2439 * complaints.h: Fix spelling errors.
2441 2002-11-15 David Carlton <carlton@math.stanford.edu>
2443 * printcmd.c: Remove #include "disasm.h".
2445 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2447 * frame.h: Move the most relevant interface functions to the start
2450 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2452 * regcache.h (deprecated_registers): Rename registers.
2453 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2454 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2455 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2456 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2457 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2458 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2459 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2460 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2461 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2462 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2463 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2464 * v850ice.c: Update.
2466 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2468 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2471 2002-11-13 Andrew Cagney <cagney@redhat.com>
2473 * regcache.h (deprecated_read_register_bytes): Rename
2474 read_register_bytes.
2475 (deprecated_write_register_bytes): Rename write_register_bytes.
2476 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2477 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2478 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2479 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2480 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2481 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2482 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2483 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2484 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2485 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2486 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2487 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2488 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2489 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2491 2002-11-13 Jim Blandy <jimb@redhat.com>
2493 * findvar.c (read_var_value): Doc fix.
2495 2002-11-13 Andrew Cagney <cagney@redhat.com>
2497 * regcache.c (struct regcache): Replace passthough_p with
2499 (regcache_xmalloc): Initialize readonly_p.
2500 (build_regcache): Initialize readonly_p.
2501 (regcache_save): New function.
2502 (regcache_restore): New function.
2503 (regcache_cpy): Re-implement using regcache_save and
2505 (regcache_raw_read): Update.
2506 (regcache_cooked_read): When a read-only cache, checked for cached
2507 pseudo register values.
2508 (regcache_raw_write): Assert that the cache is not read-only.
2509 Remove code handling a non-passthrough cache.
2510 * regcache.h (regcache_save): Declare.
2511 (regcache_restore): Declare.
2513 2002-11-13 Andrew Cagney <cagney@redhat.com>
2515 * regcache.c (struct regcache_descr): Add fields
2516 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2517 (init_legacy_regcache_descr): Compute the size of a cooked
2518 register cache and then assign that to sizeof_raw_registers. Set
2519 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2520 (init_legacy_regcache_descr): Ditto.
2522 2002-11-13 Andrew Cagney <cagney@redhat.com>
2524 * regcache.c (register_buffer): Move to near start of file, update
2526 (regcache_raw_read): Use.
2527 (regcache_raw_write): Use.
2528 (struct regcache): Rename raw_registers to registers and
2529 raw_register_valid_p to register_valid_p.
2530 (regcache_xmalloc): Update.
2531 (regcache_xfree): Update.
2532 (register_buffer): Update.
2533 (regcache_cpy): Update.
2534 (regcache_cpy_no_passthrough): Update.
2535 (regcache_valid_p): Update.
2536 (deprecated_grub_regcache_for_registers): Update.
2537 (deprecated_grub_regcache_for_register_valid): Update.
2538 (set_register_cached): Update.
2539 (regcache_raw_write): Update.
2541 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2543 * p-exp.y (name_not_typename): Use copy_name to
2544 set current_type variable for fields of THIS.
2546 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2548 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2549 * monitor.c (init_base_monitor_ops): Likewise.
2550 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2551 * remote-array.c (init_array_ops): Likewise.
2552 * remote-e7000.c (init_e7000_ops): Likewise.
2553 * remote-es.c (init_es1800_ops): Likewise.
2554 (init_es1800_child_ops): Likewise.
2555 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2556 * remote-sim.c (init_gdbsim_ops): Likewise.
2557 * remote-st.c (init_st2000_ops): Likewise.
2558 * sol-thread.c (init_sol_core_ops): Likewise.
2559 (init_sol_thread_ops): Likewise.
2560 * v850ice.c (init_850ice_ops): Likewise.
2561 * win32-nat.c (init_child_ops): Likewise.
2562 * wince.c (init_child_ops): Likewise.
2564 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2566 * utils.c (gdb_realpath): Make rp a constant pointer.
2568 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2570 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2571 a constant buffer; cannonicalize_file_name(); realpath() with a
2572 pathconf() defined buffer, xstrdup().
2574 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2576 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2577 to hang2.C; hang3.c to hang3.C.
2579 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2581 * findvar.c (read_var_value): Reenable TLS code.
2583 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2584 Jim Blandy <jimb@redhat.com>
2586 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2587 * target.c (update_current_target): Add
2588 to_get_thread_local_address.
2589 * target.h (to_get_thread_local_address): Export.
2590 (target_get_thread_local_address): Define.
2591 (target_get_thread_local_address_p): Define.
2592 * thread-db.c: Include solib-svr4.h.
2593 (td_thr_tls_get_addr_p): Define.
2594 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2595 (thread_db_get_thread_local_address): New function.
2596 (init_thread_db_ops): Initialize to_get_thread_local_address.
2597 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2598 * configure: Regenerate.
2599 * config.in: Regenerate.
2601 2002-11-11 David Carlton <carlton@math.stanford.edu>
2603 * linespec.c (set_flags): New function.
2604 (decode_line_1): Move code into set_flags.
2606 2002-11-11 David Carlton <carlton@math.stanford.edu>
2608 * linespec.c (decode_line_1): Move chunks of code to separate
2610 (initialize_defaults): New function.
2611 (decode_indirect): New function.
2613 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2615 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2616 instead of void_code_ptr.
2617 (sigtramp_saved_pc): Ditto.
2619 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2622 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2624 * gdbtypes.h (struct main_type): Move artificial flag out of
2625 loc. New member of ``struct field'' named static_kind. Reduce
2626 overloaded meaning of bitsize.
2627 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2628 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2629 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2631 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2633 (template_to_fixed_record_type, template_to_static_fixed_type)
2634 (to_record_with_fixed_variant_part): Likewise.
2635 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2636 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2637 * dwarfread.c (struct_type, enum_type): Likewise.
2638 * hpread.c (hpread_read_enum_type)
2639 (hpread_read_function_type, hpread_read_doc_function_type)
2640 (hpread_read_struct_type): Likewise.
2641 * mdebugread.c (parse_symbol): Likewise.
2643 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2645 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2646 * stack.c (print_frame_info_base): Update.
2647 (print_frame_info_base, frame_info): Update.
2648 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2649 (sparc_frame_saved_pc): Update.
2650 * ada-lang.c (find_printable_frame): Update.
2651 * breakpoint.c (deprecated_frame_in_dummy): Update.
2653 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2655 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2657 (regmap): Extend to cover all registers.
2658 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2659 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2661 (fetch_register, sore_register): Simplify.
2662 (old_fetch_inferior_registers, old_store_inferior_registers):
2664 (cannot_fetch_register, cannot_store_register): Change
2665 implementation to use regmap array to decide which registers
2666 cannot be fetched/stored. This removes $orig_eax from the
2667 registers that cannot be fetched/stored.
2668 (fetch_inferior_registers): Call fetch_register directly instead
2669 of calling old_fetch_inferior_registers.
2670 (store_inferior_registers): Call store_register directly instead
2671 of calling old_store_inferior_registers.
2672 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2673 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2674 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2676 2002-11-09 Klee Dienes <kdienes@apple.com>
2678 * i387-tdep.c (i387_supply_register): When called with NULL as a
2679 buffer, mark the register as not provided (to mirror the behavior
2680 of supply_register).
2681 (i387_supply_fxsave): Ditto.
2682 (i387_supply_fsave): Ditto (inherits the behavior from
2683 i387_supply_register).
2685 2002-11-09 Klee Dienes <kdienes@apple.com>
2687 * blockframe.c (sigtramp_saved_pc): Use
2688 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2689 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2690 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2692 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2694 * frame.c (get_prev_frame): Test prev_p to identify a previously
2695 unwound frame. Initialize prev_p.
2696 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2699 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2701 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2702 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2703 more comments. Zap dead code.
2705 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2707 * infcmd.c (print_vector_info, print_float_info): Move code that
2708 checks whether the target has any registers and whether there is a
2709 selected frame up, such that it is also used if a target provides
2710 multi-arch definitions of these functions.
2712 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2714 * Makefile.in (DESTDIR): Define.
2715 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2718 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2719 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2721 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2723 * i386-linux-tdep.c: Include "reggroups.h".
2724 (i386_linux_register_reggroup_p): New function.
2725 (i386_linux_init_abi): Set register_reggroup_p to
2726 i386_linux_register_reggroup_p.
2727 * i386-tdep.h (i386_register_reggroup_p): Declare.
2728 * i386-tdep.c: Include "reggroups.h".
2729 (i386_init_reggroups): New function.
2730 (i386_add_reggroups): New function.
2731 (i386_register_reggroup_p): New function.
2732 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2733 (_initialize_i386_tdep): Call i386_init_reggroups.
2734 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2737 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2739 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2740 request that's available in *BSD.
2742 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2744 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2747 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2749 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2750 * dummy-frame.c (find_dummy_frame): Rename
2751 generic_find_dummy_frame, make static. Return the dummy frame
2752 instead of the regcache.
2753 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2754 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2755 (dummy_frame_register_unwind): Rename
2756 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2757 * dummy-frame.h (dummy_frame_register_unwind): Rename
2758 generic_call_dummy_register_unwind.
2760 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2762 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2763 except the inclusion of "i386/tm-i386.h", to...
2764 * config/i386/nm-i386v42mp.h: ...here.
2765 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2767 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2769 * Makefile.in (frame.o): Update dependencies.
2770 * blockframe.c (current_frame, frame_obstack_alloc)
2771 (frame_saved_regs_zalloc, get_current_frame)
2772 (set_current_frame, create_new_frame)
2773 (set_unwind_by_pc, get_next_frame)
2774 (flush_cached_frames, reinit_frame_cache)
2775 (frame_saved_regs_register_unwind)
2776 (deprecated_generic_get_saved_register)
2777 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2778 (_initialize_blockframe): Move frame code from here...
2779 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2780 "annotate.h" and "dummy-frame.h".
2781 (_initialize_frame): New function.
2783 2002-11-08 Jim Blandy <jimb@redhat.com>
2785 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2786 when we finish a function a context.
2787 * buildsym.h (outermost_context_p): New macro.
2788 (Bug analyzed by David Edelsohn.)
2790 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2792 * blockframe.c: Include "dummy-frame.h".
2793 (struct dummy_frame, dummy_frame_stack)
2794 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2795 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2796 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2797 (generic_save_call_dummy_addr, generic_pop_current_frame)
2798 (generic_pop_dummy_frame, generic_fix_call_dummy)
2799 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2800 dummy frame code from here...
2801 * dummy-frame.c: ...to here. New file.
2802 * dummy-frame.h: New file.
2803 (generic_call_dummy_register_unwind): Declare.
2804 (generic_find_dummy_frame): Declare.
2805 * Makefile.in (SFILES): Add dummy-frame.c.
2806 (dummy-frame.o): Specify dependencies.
2807 (dummy_frame_h): Define.
2808 (COMMON_OBS): Add dummy-frame.o.
2809 (blockframe.o): Update dependencies.
2811 2002-11-08 Jim Blandy <jimb@redhat.com>
2813 * dwarf2read.c (read_func_scope): Restore local_symbols and
2814 param_symbols after we finish the function context. (Based on a
2815 patch from David Edelsohn.)
2817 2002-11-08 David Carlton <carlton@math.stanford.edu>
2819 * linespec.c (symbol_found): New function.
2820 (minsym_found): New function.
2821 (decode_line_1): Separate out some code into separate functions.
2823 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2825 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2826 the benefit of the interix target.
2827 * i386-tdep.h (i386_frameless_signal_p): Declare.
2829 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2831 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2832 declaration that snuck in from change below.
2834 2002-11-06 Andrew Cagney <cagney@redhat.com>
2836 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2838 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2839 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2840 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2841 (i386_mxcsr_regnum_p): new function. Use instead of
2843 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2844 (i386_sse_regnum_p): Declare.
2845 (i386_mxcsr_regnum_p): Declare.
2846 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2847 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2848 (IS_FP_REGNUM): Update definition.
2849 (IS_FPU_CTRL_REGNUM): Update definition..
2850 (IS_SSE_REGNUM): Update definition..
2851 * i386v-nat.c (register_u_addr): Update.
2852 * go32-nat.c (fetch_register): Update.
2853 (store_register): Update.
2855 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2857 Preparation work to convert the hppa targets to multiarch partial.
2859 * hppa-tdep.c: Add new functions replacing macro bodies from
2860 config/pa/tm-hppa.h. These function will be used to initialize
2861 the gdbarch structure. Import some comments from tm-hppa.h,
2862 and place them where appropriate, to avoid loosing them when
2863 we cleanup this file.
2864 (hppa_reg_struct_has_addr): New function.
2865 (hppa_inner_than): New function.
2866 (hppa_stack_align): New function.
2867 (hppa_pc_requires_run_before_use): New function.
2868 (hppa_instruction_nullified): New function.
2869 (hppa_register_byte): New function.
2870 (hppa_register_virtual_type): New function.
2871 (hppa_store_struct_return): New function.
2872 (hppa_cannot_store_register): New function.
2873 (hppa_frame_args_address): New function.
2874 (hppa_frame_locals_address): New function.
2875 (hppa_smash_text_address): New function.
2876 (hppa_coerce_float_to_double): New function. Requires the inclusion
2879 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2881 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2882 gdbarch-eligible macro to a call to the new associated function
2883 created in hppa-tdep.c.
2884 (INNER_THAN): Likewise.
2885 (STACK_ALIGN): Likewise.
2886 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2887 (INSTRUCTION_NULLIFIED): Likewise.
2888 (REGISTER_BYTE): Likewise.
2889 (REGISTER_VIRTUAL_TYPE): Likewise.
2890 (STORE_STRUCT_RETURN): Likewise.
2891 (CANNOT_STORE_REGISTER): Likewise.
2892 (FRAME_ARGS_ADDRESS): Likewise.
2893 (FRAME_LOCALS_ADDRESS): Likewise.
2894 (SMASH_TEXT_ADDRESS): Likewise.
2895 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2896 (ABOUT_TO_RETURN): Delete, as no longer used.
2898 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2900 * printcmd.c (disassemble_command): Remove obsolete function.
2901 (_initialize_printcmd): Do not create disassemble command here.
2902 * cli/cli-cmds.c (disassemble_command): New function. Implements
2903 disassemble command.
2904 (init_cli_cmds): Create disassemble command here instead.
2906 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2908 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2910 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2912 * regcache.h (regcache_cooked_read_using_offset_hack)
2913 (regcache_cooked_write_using_offset_hack): Delete declarations.
2914 (register_changed): Delete declaration.
2915 * regcache.c (regcache_cooked_read_using_offset_hack)
2916 (regcache_cooked_write_using_offset_hack): Delete functions.
2917 (cooked_xfer_using_offset_hack): Delete function.
2918 (register_changed): Delete function.
2920 2002-11-07 Jim Blandy <jimb@redhat.com>
2922 * macroscope.c: #include "complaints.h".
2923 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2924 but not in the macro table.
2925 * Makefile.in (macroscope.o): Record dependency.
2927 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2929 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2931 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2933 * regcache.c (deprecated_registers_fetched): Update.
2934 * regcache.h (deprecated_registers_fetched): Rename
2936 * remote-vxsparc.c (vx_read_register): Update.
2937 * remote-vxmips.c (vx_read_register): Update.
2938 * remote-vx68.c (vx_read_register): Update.
2939 * irix5-nat.c (fetch_core_registers): Update.
2940 * mipsm3-nat.c (fetch_inferior_registers): Update.
2941 * sun3-nat.c (fetch_inferior_registers): Update.
2942 * symm-nat.c (fetch_inferior_registers): Update.
2943 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2944 (fetch_core_registers): Update.
2945 (fetch_kcore_registers): Update.
2946 * mips-nat.c (fetch_inferior_registers): Update.
2947 * corelow.c (get_core_registers): Update.
2948 * a68v-nat.c (fetch_inferior_registers): Update.
2950 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2952 Put in place the framework necessary for multiarching the hppa targets.
2953 * hppa-tdep.c (hppa_gdbarch_init): New function.
2954 (hppa_dump_tdep): New function.
2955 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2956 tdep structure dumper.
2957 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2958 until the multi-arching conversion has partially been completed.
2960 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2962 * valops.c (value_assign): Merge lval_register case into
2963 lval_reg_frame_relative. Use frame_register and
2964 regcache_cooked_write instead of get_saved_register and
2965 write_register_bytes. After flushing the register cache, try to
2966 re-select the selected frame.
2968 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2970 * regcache.h (deprecated_register_valid): Rename register_valid.
2971 * regcache.c: Update.
2972 * ia64-aix-nat.c: Update.
2973 * i386gnu-nat.c: Update.
2974 * alpha-nat.c: Update.
2975 * sparc-nat.c: Update.
2976 * lynx-nat.c: Update.
2977 * remote-mips.c: Update.
2979 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2981 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2982 to end of file, to be more consistent with the pratice followed
2985 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2987 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2988 (print_float_info): Print registers in float_reggroup.
2989 (print_vector_info): Print registers in vector_reggroup.
2990 (default_print_registers_info): When all, print registers in
2991 all_reggroup. Otherwize, print registers in general_reggroup.
2992 (registers_info): Rewrite. Add support for register groups.
2995 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2997 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2999 (symtab_symbol_info): Remove eons old ifdeffed out code.
3000 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3003 2002-11-06 Theodore A. Roth <troth@openavr.org>
3005 * c-exp.y: Add missing semi-colons.
3006 * f-exp.y: Add missing semi-colons.
3007 * m2-exp.y: Add missing semi-colons.
3008 * p-exp.y: Add missing semi-colons.
3009 Add empty action to start rule to avoid a type clash error when
3010 building with bison >= 1.50.
3012 2002-11-06 Jim Blandy <jimb@redhat.com>
3014 * macrotab.h (struct macro_source_file): Doc fix.
3016 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3018 * varobj.c (child_exists, cplus_number_of_children): Change
3019 STREQ macro references to strcmp.
3020 (cplus_name_of_child): Change code to handle the fact that
3021 fields are not necessarily contiguous with regards to their
3022 access control. This is a fix for PR gdb/792.
3024 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3026 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3027 * gdbarch.h, gdbarch.c: Regnerate.
3028 * frame.h (frame_register): Declare.
3029 * frame.c (frame_register): New function.
3030 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3031 GET_SAVED_REGISTER, otherwize call
3032 generic_unwind_get_saved_register.
3033 (frame_register_read): Use frame_register instead of
3036 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3038 From Jim Ingham <jingham@apple.com>:
3039 * event-top.c (gdb_disable_readline): New function.
3040 (_initialize_event_loop): Move comment.
3042 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3044 * event-loop.c (start_event_loop): Add comment.
3047 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3049 * infcmd.c (default_print_registers_info): Do not call
3050 PRINT_REGISTER_HOOK.
3052 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3054 * sparc-tdep.c (sparc_print_register_hook): Make static.
3055 (sparc_print_registers_info): New function.
3056 (sparc_do_registers_info): New function.
3057 (sparclet_print_registers_info): New function.
3058 (sparclet_do_registers_info): New function.
3059 (do_sparc_print_registers_info): New function.
3060 (sparc_print_registers): New static function, clone of infcmd.c's
3061 default_print_registers_info.
3062 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3063 (sparclet_do_registers_info): Declare.
3064 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3065 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3067 (sparc_do_registers_info): Declare.
3068 (PRINT_REGISTER_HOOK): Delete macro.
3069 (sparc_print_register_hook): Delete declaration.
3071 2002-11-05 David Carlton <carlton@math.stanford.edu>
3073 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3075 (lookup_symbol_aux_local): New function.
3076 (lookup_symbol_aux_symtabs): New function.
3077 (lookup_symbol_aux_psymtabs): New function.
3079 2002-11-05 David Carlton <carlton@math.stanford.edu>
3081 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3082 previous values of 'objfile' and 'block'.
3084 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3086 * values.c (value_change_enclosing_type): Set
3087 enclosing_type field correctly also for the case where
3088 more memory needs to be allocated.
3090 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3092 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3095 * i387-tdep.c (i387_print_float_info): Replace calls to
3096 register_read and deprecated_read_register_gen with calls to
3097 frame_register_read, and make the necessary adjustments to the
3100 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3102 * gdbarch.sh (register_reggroup_p): Allow default value.
3103 * gdbarch.h, gdbarch.c: Regenerate.
3105 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3107 * regcache.h: Add coment indicating replacements for deprecated
3110 2002-11-02 Andrew Cagney <cagney@redhat.com>
3112 * reggroups.h, reggroups.c: New files.
3113 * regcache.c: Include "reggroups.h".
3114 (enum regcache_dump_what): Add `regcache_dump_groups'.
3115 (regcache_dump): Contract size of the "Type" column. When
3116 specified, dump the register's groups.
3117 (maintenance_print_register_groups): New function.
3118 (_initialize_regcache): Add command `maint print register-groups'.
3119 * Makefile.in (COMMON_OBS): Add reggroups.o
3120 (SFILES): Add reggroups.c.
3121 (reggroups_h): Define.
3122 (regcache.o, gdbarch.o): Update dependencies.
3123 (reggroups.o): Specify dependencies.
3124 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3125 Add opaque declaration for `struct reggroup' in generated .h file.
3126 Include "reggroups.h" in generated .c file.
3127 gdbarch.h, gdbarch.c: Re-generate.
3129 2002-11-02 Andrew Cagney <cagney@redhat.com>
3131 * regcache.h (deprecated_read_register_gen): Rename
3133 (deprecated_write_register_gen): Rename write_register_gen.
3134 * i387-tdep.c: Update.
3135 * x86-64-linux-nat.c: Update
3137 * thread-db.c: Update.
3138 * win32-nat.c: Update.
3139 * mips-tdep.c: Update.
3140 * d10v-tdep.c: Update.
3141 * cris-tdep.c: Update.
3142 * remote-sim.c: Update.
3143 * remote-rdi.c: Update.
3144 * remote-rdp.c: Update.
3147 * blockframe.c: Update.
3148 * x86-64-tdep.c: Update.
3149 * xstormy16-tdep.c: Update.
3150 * sh-tdep.c: Update.
3151 * s390-tdep.c: Update.
3152 * rs6000-tdep.c: Update.
3153 * sparc-tdep.c: Update.
3154 * i386-tdep.c: Update.
3155 * dwarf2cfi.c: Update.
3156 * regcache.c: Update.
3158 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3160 New interix-specific files:
3161 * config/i386/nm-interix.h: New file.
3162 * config/i386/interix.mh: New file.
3163 * config/i386/interix.mt: New file.
3164 * i386-interix-nat.c: New file.
3165 * i386-interix-tdep.c: New file.
3167 2002-11-01 Andrew Cagney <cagney@redhat.com>
3169 * frame.h (deprecated_generic_get_saved_register): Rename
3170 generic_get_saved_register.
3171 * blockframe.c (deprecated_generic_get_saved_register): Update.
3172 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3173 (xstormy16_frame_saved_register): Update.
3174 * sh-tdep.c (sh_gdbarch_init): Update.
3175 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3176 * ia64-tdep.c (ia64_get_saved_register): Update.
3177 * cris-tdep.c (cris_gdbarch_init): Update.
3178 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3179 * arm-tdep.c (arm_gdbarch_init): Update.
3181 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3183 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3185 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3187 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3188 trampolines in sigaction.
3190 2002-10-31 Andrew Cagney <cagney@redhat.com>
3192 * h8300-tdep.c: Include "gdb_assert.h".
3193 (h8300_print_register): Add gdbarch, file and frame parameters.
3194 Use frame_read_unsigned_register to read the register's value.
3195 Use fprintf_filtered to display output.
3196 (h8300_print_registers_info): Replace h8300_do_registers_info.
3197 (h8300_gdbarch_init): Set print_registers_info.
3199 2002-10-31 Andrew Cagney <cagney@redhat.com>
3201 * frame.c (frame_read_unsigned_register): New function.
3202 (frame_read_signed_register): New function.
3203 * frame.h (frame_read_unsigned_register): Declare.
3204 (frame_read_signed_register): Declare.
3206 2002-10-31 Andrew Cagney <cagney@redhat.com>
3208 * h8500-tdep.c (h8500_print_registers_info): New static function,
3209 clone of infcmd.c's default_print_registers_info.
3210 (h8500_do_registers_info): New funtion.
3211 (h8500_print_register_hook): Rename print_register_hook, make
3214 * config/h8500/tm-h8500.h: Update copyright.
3215 (DEPRECATED_DO_REGISTERS_INFO): Define.
3216 (h8500_do_registers_info: Declare.
3217 (PRINT_REGISTER_HOOK): Delete macro.
3218 (print_register_hook): Delete function.
3220 2002-10-31 Andrew Cagney <cagney@redhat.com>
3222 * z8k-tdep.c (z8k_print_register_hook): Make static.
3223 (z8k_print_registers_info): New static function, clone of
3224 infcmd.c's default_print_registers_info.
3225 (z8k_do_registers_info): New function. Wrap
3226 z8k_print_registers_info.
3227 * config/z8k/tm-z8k.h: Update copyright.
3228 (PRINT_REGISTER_HOOK): Delete macro.
3229 (z8k_print_register_hook): Delete declaration.
3230 (DEPRECATED_DO_REGISTERS_INFO): Define.
3231 (z8k_do_registers_info): Declare.
3233 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3235 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3236 as this is already provided by value.h, and was actually causing
3237 a compilation error because of a conflict in parameter type
3238 declaration due to a missing const keyword.
3239 (low_text_segment_addres): Fix a compilation warning.
3241 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3243 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3244 registers without a name.
3245 (mips_linux_cannot_store_register): Don't store registers without
3248 2002-10-28 David Carlton <carlton@math.stanford.edu>
3250 * symtab.c (find_addr_symbol): Delete. (It was already commented
3252 * symtab.h: Delete prototype for find_addr_symbol.
3254 2002-10-26 Andrew Cagney <cagney@redhat.com>
3256 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3258 gdbarch.h, gdbarch.c: Re-generate.
3259 * infcmd.c (default_print_registers_info): Update reference.
3260 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3261 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3262 * sh-tdep.c (sh_gdbarch_init): Ditto.
3263 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3264 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3266 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3268 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3269 cfi_init_extra_frame_info.
3270 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3271 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3273 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3274 target where necessary. Add more comments and remove the ones
3275 that don't provide any useful information.
3277 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3278 deprecated_read_register_dummy with
3279 frame_unwind_unsigned_register.
3281 * i386-tdep.c (i386_extract_struct_value_address): Use
3282 regcache_raw_read_unsigned instead of
3283 regcache_cooked_read_unsigned since we know that the register
3284 we're reading isn't a pseudo register. Rename variable 'val' into
3285 the more descriptive 'addr'.
3287 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3288 (x86_64_push_return_address): Add comment.
3289 (x86_64_pop_frame): Make static.
3290 (examine_argument): Clarify comment.
3291 (x86_64_skip_prologue): Make prolog_expact variable static.
3293 * dwarf2cfi.c: Fix some formatting problems.
3294 (context_cpy, read_encoded_pointer): Clarify comments.
3296 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3297 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3298 i386 target back into x86_64_gdbarch_init. Add some comments and
3299 remove meaningless ones.
3301 2002-10-25 Andrew Cagney <cagney@redhat.com>
3303 * complaints.h (struct deprecated_complaint): Rename `struct
3305 * complaints.c (complain): Update.
3306 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3307 incorrect comment indicating that "symfile.h" was being included
3308 for the `struct complaint' definition.
3309 * remote-vx.c: Update.
3310 * objc-lang.c: Update.
3311 * xcoffread.c: Update.
3313 * mdebugread.c: Update.
3314 * stabsread.c: Update.
3315 * dwarf2read.c: Update.
3316 * dwarfread.c: Update.
3317 * elfread.c: Update.
3318 * coffread.c: Update.
3319 * stabsread.h: Update.
3320 * dbxread.c: Update.
3321 * buildsym.c: Update.
3322 * gdbtypes.c: Update.
3323 * macrotab.c: Update.
3325 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3327 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3328 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3329 (x86_64_init_abi): ...new function.
3331 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3332 * i386v-nat.c: Include "i386-tdep.h".
3334 2002-10-25 Andrew Cagney <cagney@redhat.com>
3336 * gdbtypes.c (address_space_name_to_int): Update.
3337 (address_space_int_to_name): Update.
3338 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3339 multi-arch predicate.
3340 (address_class_name_to_type_flags): Ditto.
3341 * gdbarch.h, gdbarch.c: Re-generate.
3343 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3345 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3347 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3349 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3351 * symtab.h (INIT_SAL): Delete macro.
3353 * symtab.c (init_sal): New function.
3355 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3356 to init_sal function call.
3357 (find_sal_from_funcs_and_line): Ditto.
3358 (all_sals_for_line): Ditto.
3359 * breakpoint.c (create_internal_breakpoint): Ditto.
3360 (create_fork_vfork_event_catchpoint): Ditto.
3361 (create_exec_event_catchpoint): Ditto.
3362 (parse_breakpoint_sals): Ditto.
3363 (watch_command_1): Ditto.
3364 (handle_gnu_4_16_catch_command): Ditto.
3365 (clear_command): Ditto.
3366 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3367 * infcmd.c (run_stack_dummy): Ditto.
3368 * infrun.c (process_event_stop_test): Ditto.
3369 (check_sigtramp2): Ditto.
3370 (step_over_function): Ditto.
3371 * linespec.c (decode_line_2): Ditto.
3372 (decode_line_1): Ditto.
3373 * source.c (line_info): Ditto.
3374 * symtab.c (find_pc_sect_line): Ditto.
3376 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3378 * dwarf2cfi.c (struct context)
3379 (struct context_reg): Moved to dwarf2cfi.h
3380 (context_alloc, frame_state_alloc, context_cpy):
3381 Made extern instead of static, removed prototypes.
3382 * dwarf2cfi.h (struct context)
3383 (struct context_reg): New, moved from dwarf2cfi.c
3384 (context_alloc, frame_state_alloc, context_cpy):
3386 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3387 Changed from static to extern.
3388 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3389 (LINUX_SIGCONTEXT_FP_OFFSET)
3390 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3391 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3392 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3393 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3394 set_gdbarch_*() calls now use x86-64 specific functions
3395 instead of DWARF2 CFI ones.
3396 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3397 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3398 (x86_64_init_extra_frame_info): New prototypes.
3400 2002-10-23 David Carlton <carlton@math.stanford.edu>
3402 * linespec.c: #include "parser-defs.h".
3403 Delete prototype for find_template_name_end.
3404 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3406 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3408 * NEWS: add recent mi fixes.
3409 * varobj.c (struct varobj): Add new "updated" flag.
3410 (new_variable): Default "updated" flag to 0.
3411 (varobj_set_value): Set "updated" flag to 1 if value
3413 (varobj_update): Check varobj "updated" flag before
3414 comparing old and refreshed values. Fix for
3417 2002-10-23 David Carlton <carlton@math.stanford.edu>
3419 * parse.c (parse_exp_1): Use BLOCK_START.
3420 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3422 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3424 2002-10-23 David Carlton <carlton@math.stanford.edu>
3426 * symtab.c: Delete cplusplus_hint.
3427 Delete prototype for find_template_name_end.
3429 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3431 * symtab.h: Update comment.
3433 2002-10-23 Michael Snyder <msnyder@redhat.com>
3435 * printcmd.c (address_info): Restore quotes in output.
3436 * valops.c (value_of_local): Restore quotes in error message.
3438 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3440 * symtab.c (symbol_demangled_name): New function.
3441 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3442 turning most of it into a function.
3443 (symbol_demangled_name): Export.
3445 2002-10-23 Michael Snyder <msnyder@redhat.com>
3447 * valops.c (value_of_local): Restore quotes in error message.
3449 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3451 * symtab.c (symbol_init_language_specific): New function.
3452 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3453 turning most of it into a function.
3454 (symbol_init_language_specific): Export.
3456 2002-10-23 David Carlton <carlton@math.stanford.edu>
3458 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3459 (dwarf_attr_name): Ditto.
3460 (dwarf_type_encoding_name): Ditto.
3461 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3462 (process_die): Handle DW_TAG_namespace,
3463 DW_TAG_imported_declaration, DW_TAG_imported_module.
3464 (read_namespace): New function.
3466 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3468 * configure.in: Define NEW_PROC_API on Interix too.
3469 * configure: Regenerate.
3471 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3473 * configure: Regenerate using the proper version of autoconf.
3475 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3477 * findvar.c (read_var_value): Temporarily disable TLS code, until
3478 complete TLS support is added.
3480 2002-10-21 Jim Blandy <jimb@redhat.com>
3481 Elena Zannoni <ezannoni@redhat.com>
3483 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3484 for thread local storage locations.
3485 (struct symbol): Add objfile field.
3486 (SYMBOL_OBJFILE): Define.
3487 * dwarf2read.c (is_thread_local): New static variable.
3488 (new_symbol): If variable is in thread local fill in address class
3489 and objfile appropriately.
3490 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3492 * printcmd.c (address_info): Print the information for thread
3493 local storage variable.
3494 * findvar.c (read_var_value): In case of thread local variable,
3495 defer to the target vector code to compute address.
3497 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3499 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3500 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3502 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3504 * symtab.h (address_class): Rename
3505 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3506 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3507 * printcmd.c (address_info): Ditto.
3508 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3510 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3512 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3513 DBREG_DRX macro to acces debug registers.
3515 * Makefile.in (i386obsd-tdep.o): New target.
3517 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3518 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3520 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3521 * config/i386/obsd.mt: New file.
3522 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3523 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3524 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3525 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3526 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3527 * i386obsd-tdep.c: New file.
3529 2002-10-19 Adam Fedor <fedor@gnu.org>
3531 * objc-exp.y (name_not_typename): Fix invalid comment.
3533 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3535 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3536 to allocate partial syms and macro byte caches.
3538 2002-10-18 David Carlton <carlton@math.stanford.edu>
3540 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3542 2002-10-18 Adam Fedor <fedor@gnu.org>
3544 * stabsread.c (find_name_end): New function.
3545 (define_symbol): Use it.
3547 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3549 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3550 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3551 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3552 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3554 2002-10-17 David Carlton <carlton@math.stanford.edu>
3556 * symfile.h: Add opaque declaration for struct obstack.
3557 Declare obsavestring to take a const char *.
3558 * symfile.c (obsavestring): Make first argument a const char *.
3560 2002-10-16 Adam Fedor <fedor@gnu.org>
3562 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3563 names when matching breakpoints in current file.
3565 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3567 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3568 (read_tag_pointer_type): Add address class support.
3569 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3570 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3572 * gdbarch.h, gdbarch.c: Regenerate.
3573 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3574 (make_type_with_address_space, recursive_type_dump): Add address
3576 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3577 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3578 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3580 2002-10-16 Klee Dienes <kdienes@apple.com>
3582 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3583 to get the last character of a char[] buffer, not
3584 name[sizeof(vptr_name)-1].
3586 2002-10-14 Adam Fedor <fedor@gnu.org>
3588 * symtab.h: New objc_specific struct.
3589 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3590 (SYMBOL_DEMANGLED_NAME): Likewise.
3592 2002-10-14 Adam Fedor <fedor@gnu.org>
3594 * symfile.c (init_filename_language_table): Add ObjC file extension.
3596 2002-10-14 Adam Fedor <fedor@gnu.org>
3598 * utils.c (puts_filtered_tabular): New function.
3599 (fprintf_symbol_filtered): Get ObjC demangled name.
3600 * defs.h (puts_filtered_tabular): Declared.
3602 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3604 * c-lang.h (c_type_print_varspec_prefix): Delete.
3605 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3606 ``need_post_space'' parameter. Adjust all callers.
3608 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3610 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3611 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3612 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3613 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3615 2002-10-13 Adam Fedor <fedor@gnu.org>
3617 * source.c (print_source_lines): Update comments.
3619 2002-10-13 Adam Fedor <fedor@gnu.org>
3621 * valops.c (value_of_local): New function.
3622 (value_of_this): Use it.
3623 * value.h (value_of_local): Declared.
3625 2002-10-13 Adam Fedor <fedor@gnu.org>
3627 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3628 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3630 2002-10-12 Adam Fedor <fedor@gnu.org>
3632 * language.c (binop_result_type): Add language_objc to case.
3633 (integral_type): Likewise.
3634 (character_type): Likewise.
3635 (string_type): Likewise.
3636 (boolean_type): Likewise.
3637 (structured_type): Likewise.
3638 (binop_type_check): Likewise.
3640 2002-10-11 Adam Fedor <fedor@gnu.org>
3642 * printcmd.c (address_info): Print 'self' for ObjC.
3644 2002-10-11 Adam Fedor <fedor@gnu.org>
3646 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3649 2002-10-11 Adam Fedor <fedor@gnu.org>
3651 * language.h (CAST_IS_CONVERSION): Add language_objc.
3653 2002-10-11 Adam Fedor <fedor@gnu.org>
3655 * defs.h (enum language): Add language_objc.
3657 2002-10-11 Klee Dienes <kdienes@apple.com>
3659 * corefile.c (read_memory_typed_address): New function.
3660 * gdbcore.h (read_memory_typed_address): Add prototype.
3661 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3662 to read a value destined for a CORE_ADDR, not read_memory_integer.
3663 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3664 (f77_get_dynamic_lowerbound): Ditto.
3666 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3668 * utils.c (string_to_core_addr): After turning string into
3669 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3670 which will do necessary sign-extension, etc.
3672 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3674 * c-exp.y (THIS): Delete token and grammar rule.
3675 (yylex): Don't return THIS.
3676 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3677 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3678 * demangle.c (cplus_markers): Update comment. Put '$'
3679 first. Remove CPLUS_MARKER.
3680 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3681 * jv-exp.y (THIS): Delete token and grammar rule.
3682 (yylex): Don't return THIS.
3683 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3684 * objc-exp.y (THIS): Delete token and grammar rule.
3685 (yylex): Don't return THIS.
3686 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3687 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3688 (read_member_functions): Likewise for opname.
3689 (read_tilde_fields): Use is_cplus_marker.
3691 * defs.h (CPLUS_MARKER): Don't define.
3692 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3693 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3694 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3695 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3696 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3698 * config/i386/tm-i386v4.h: Delete file.
3699 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3700 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3701 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3702 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3703 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3704 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3705 * config/i386/i386v4.mt (TM_FILE): Likewise.
3706 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3708 2002-10-10 Marko Mlinar <markom@opencores.org>
3710 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3711 accidentially not commited 2002-10-09
3712 * gdbarch.h, gdbarch.c: Re-generate.
3714 2002-10-09 Marko Mlinar <markom@opencores.org>
3716 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3717 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3718 * gdbarch.h, gdbarch.c: Re-generate.
3720 2002-10-08 Petr Sorfa <petrs@caldera.com>
3722 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3724 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3725 so we can work on more than one compilation unit at a time. This
3726 helps prepare GDB to handle inter-CU die references.
3727 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3728 the code to be defined before struct comp_unit_head.
3729 (comp_unit_head): Added new members - offset, cu_head,
3730 begin_die, next and dwarf2_abbrevs.
3731 (dwarf2_abbrevs): Removed single static var; now member of
3732 struct comp_unit_head.
3733 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3735 (psymtab_to_symtab_1): Changed to work with the new
3736 struct comp_unit_head.
3737 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3738 constructs the dwarf2_abbrevs[] inside the cu_header.
3739 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3740 dwarf2_abbrev table to clean up.
3741 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3742 handling of dwarf2_abbrevs inside the cu_header.
3743 (read_partial_die): Now supports the call to the new
3744 dwarf2_lookup_abbrev.
3745 (read_full_die): Now supports the call to the new
3746 dwarf2_lookup_abbrev.
3748 2002-10-06 Christopher Faylor <cgf@redhat.com>
3750 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3751 insure that shell variables, such as "transformed_name" are propagated
3752 to later shell statements in rule.
3754 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3756 * config/i386/nm-i386sco.h: Add protection against
3757 multiple-inclusion. Include "i386/nm-i386v.h".
3758 (REGISTER_U_ADDR): Remove define.
3759 (i386_register_u_addr): Remove prototype.
3761 2002-10-04 Michael Snyder <msnyder@redhat.com>
3763 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3764 before treating it as a single-step event.
3766 2002-10-03 Adam Fedor <fedor@gnu.org>
3768 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3769 (objc_demangle): Remove assignment in if statements, Replace
3771 (add_msglist): Likewise.
3772 (end_msglist): Likewise.
3773 (complare_selectors): Likewise.
3774 (selectors_info): Likewise.
3775 (compare_classes): Likewise.
3776 (classes_info): Likewise.
3777 (print_object_command): Likewise.
3778 (find_objc_msgcall_submethod): Replace PTR with void *.
3779 * objc-lang.h: Remove check for __STDC__.
3781 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3783 * ui-out.h (ui_out_field_fmt_int): New prototype.
3784 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3785 of field width and alignment.
3786 * stack.c (print_frame_info_base): When printing frame level, use
3787 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3790 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3792 * MAINTAINERS: Add self to Write After Approval list.
3794 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3796 * infcmd.c (interrupt_target_command_wrapper): Delete.
3797 (interrupt_target_command): Make non static.
3798 (nofp_registers_info): Make static.
3799 * stack.c (return_command_wrapper): Delete.
3800 (return_command): Make non static.
3802 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3804 * event-top.c (gdb_setup_readline): New function. Code moved from
3805 _initialize_event_loop().
3806 (_initialize_event_loop): Call gdb_setup_readline().
3808 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3810 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3811 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3812 * gdbarch.h, gdbarch.c: Re-generate.
3814 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3817 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3819 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3820 of fill_in_vptr_fieldno.
3822 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3824 * inferior.h (registers_info, stepi_command, nexti_command,
3825 continue_command, interrupt_target_command): Export from infcmd.c.
3826 * frame.h (args_info, selected_frame_level_changed_hook,
3827 return_command): Export from stack.c.
3828 * v850ice.c (stepi_command, nexti_command, continue_command): use
3829 prototypes from inferior.h.
3830 * tracepoint.c (registers_info, args_info, locals_info): Use
3831 prototypes from frame.h and inferior.h.
3832 * Makefile.in (mi-main.o): Add dependency on frame.h.
3834 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3836 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3837 value in register 3 adjusted by ppc_gp0_regnum.
3839 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3841 2002-10-02 Marko Mlinar <markom@opencores.org>
3843 * MAINTAINERS: Add myself to the Write After Approval list.
3845 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3847 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3848 of the section for the N64 ABI, fixed.
3850 * config/mips/tm-irix6.h: Include solib.h.
3852 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3854 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3857 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3859 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3860 and that "mi0" syntax has been removed.
3862 2002-09-30 David Carlton <carlton@math.stanford.edu>
3864 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3865 * ppc-sysv-tdep.c: #include "gdb_string.h".
3866 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3869 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3871 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3872 "vrsave"'s register number.
3874 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3876 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3877 use frame_unwind_signed_register to obtain the PC.
3878 (mips_frame_chain): Handle a generic dummy frame.
3879 (mips_init_extra_frame_info): When a generic dummy frame, don't
3880 re-compute the frame base.
3881 (mips_pop_frame): Handle generic dummy frames.
3882 (mips_gdbarch_init): When generic dummy frames, set
3883 use_generic_dummy_frames, push_dummy_frame to
3884 generic_push_dummy_frame, pc_in_call_dummy to
3885 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3886 generic_save_dummy_frame_tos.
3888 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3890 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3891 against TOP when TOP was explictly set.
3892 (generic_push_dummy_frame): Set TOP to zero.
3894 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3896 * event-loop.c (start_event_loop): Rename variable 'result' to
3897 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3899 2002-09-30 Keith Seitz <keiths@redhat.com>
3901 * gdb-events.sh (selected_thread_changed): New event.
3902 * gdb-events.c: Regenerated.
3903 * gdb-events.h: Regenerated.
3905 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3907 * MAINTAINERS: Add self to Write After Approval list.
3909 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3911 * disasm.c: New file.
3912 * disasm.h: New file.
3913 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3914 (compare_lines): Ditto.
3915 (dump_insns): Ditto.
3916 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3918 (do_assembly_only): Ditto.
3919 (do_disassembly): Renamed to gdb_disassembly and moved to
3920 disasm.c. Sdded uiout argument.
3921 * Makefile.in: Add new files. Reorder SFILES list. Update
3922 dependencies. Include libgdb.a later in the insight executable.
3924 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3926 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3927 bfd/elf64-alpha-fbsd.c.
3929 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3931 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3934 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3936 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3938 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3940 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3941 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3942 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3943 (S_msg_sig_post_reply): Ditto.
3945 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3947 * sh-tdep.c (sh_use_struct_convention): Use definition according
3949 (sh_push_arguments): Store in register with correct endianess.
3950 (sh_default_store_return_value): Ditto.
3951 (sh_gdbarch_init): Set sizeof long double to 8.
3953 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3955 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3956 Fix some whitespace problems.
3958 2002-09-27 David Carlton <carlton@math.stanford.edu>
3960 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3961 (mcore-tdep.o): Ditto.
3962 (ns32k-tdep.o): Ditto.
3963 (ns32knbsd-tdep.o): Ditto.
3965 (vax-tdep.o): Ditto.
3966 * cris-tdep.c: #include "gdb_string.h"
3967 * mcore-tdep.c: Ditto.
3968 * ns32k-tdep.c: Ditto.
3969 * ns32knbsd-tdep.c: Ditto.
3971 * vax-tdep.c: Ditto.
3973 2002-09-27 David Carlton <carlton@math.stanford.edu>
3975 * config/djgpp/fnchange.lst: Add entries for
3976 gdb/testsuite/gdb.c++/m-static files.
3978 2002-09-27 Jim Wilson <wilson@redhat.com>
3980 * MAINTAINERS: Add myself to the Write After Approval list.
3982 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3984 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3987 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3989 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3992 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3994 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3995 (rs6000_struct_return_address): Delete variable.
3996 (rs6000_store_struct_return): Update.
3997 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3998 deprecated_extract_struct_value_address.
3999 (rs6000_frame_align): New function.
4000 (rs6000_gdbarch_init): Set frame_align.
4002 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4004 From Grace Sainsbury <graces@redhat.com>:
4005 * Makefile.in (gdbtk-main.o): New target.
4006 (gdb.o): New target.
4008 (main.o): Update dependencies.
4009 (gdb$(EXEEXT)): Add gdb.o.
4010 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4011 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4012 (SUBDIR_GDBTK_CLEAN): Set.
4013 (install-gdbtk): Install the insight binary.
4014 (uninstall-gdbtk): New target.
4015 (all-gdbtk, clean-gdbtk): New rule.
4016 * top.c (use_windows): Default to zero.
4017 * main.c: Include "main.h".
4019 (struct captured_main_args): Delete.
4020 (gdb_main): New function.
4024 2002-09-25 Andrew Cagney <cagney@redhat.com>
4026 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4027 (frame_map_regnum_to_name): New function.
4028 (frame_map_name_to_regnum): New function.
4029 * frame.h (frame_map_name_to_regnum): Declare.
4030 (frame_map_regnum_to_name): Declare.
4031 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4032 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4033 * parse.c: Do not include "builtin-regs.h".
4034 (target_map_name_to_register): Delete function.
4035 (write_dollar_variable): Use frame_map_name_to_regnum.
4036 * parser-defs.h (target_map_name_to_register): Delete declaration.
4037 * expprint.c: Include "frame.h".
4038 (print_subexp): Use frame_map_regnum_to_name.
4039 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4040 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4042 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4044 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4045 wasn't saved, and the next innermost frame is a dummy, return the
4046 dummy frame's link register.
4048 2002-09-24 Jim Blandy <jimb@redhat.com>
4050 Fix from Paul Breed:
4051 * main.c (captured_main): Add a `break' after the case for 'b'.
4053 2002-09-24 Keith Seitz <keiths@redhat.com>
4055 * varobj.c (c_type_of_child): Use get_target_type instead
4056 of TYPE_TARGET_TYPE.
4058 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4060 * source.c (get_current_or_default_source_symtab_and_line): Remove
4062 (set_default_source_symtab_and_line): New function. Attempts to
4063 determine a source file to list lines from if one is not currently
4065 (get_current_source_symtab_and_line): Initialize sal.pc and
4067 (set_current_source_symtab_and_line): Mark argument as const.
4068 * source.h: Update declarations and comments.
4069 * linespec.c (decode_line_1): Replace call to removed routine above.
4070 * stack.c (print_frame_info_base): Ditto.
4071 * cli/cli-cmds.c (edit_command): Ditto.
4072 (list_command): Ditto.
4074 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4076 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4077 sal.pc and sal.end fields.
4078 (get_current_or_default_source_symtab_and_line): Ditto.
4079 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4080 so we do not cause a new source symtab to be searched for (reverting an
4081 unintentional change from the 2002-09-20 patch).
4082 * scm-lang.c (scm_unpac): Ditto.
4084 2002-09-21 Andrew Cagney <cagney@redhat.com>
4086 * complaints.c (symfile_explanations): Remove new-line from
4087 ``isolated_message''.
4088 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4089 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4091 2002-09-20 Nick Clifton <nickc@redhat.com>
4093 * NEWS: Announce that V850EA ISA is no longer supported.
4094 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4096 2002-09-20 David Carlton <carlton@math.stanford.edu>
4098 * Makefile.in (c-lang.o): Correct dependencies.
4099 (utils.o): Gather dependencies.
4101 * c-lang.c: #include "gdb_string.h"
4103 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4105 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4106 * cli/cli-cmds.c (list_command): New function. Implements the new
4108 (_init_cli_cmds): Add new command definition.
4109 * gdb.1: Document edit command.
4110 * doc/gdb.texinfo: Document edit command.
4112 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4114 * source.c: Make global variables current_source_symtab and
4115 current_source_line static.
4116 (list_command): Moved to cli/cli-cmds.c.
4117 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4118 (get_first_line_listed): New accessor function.
4119 (get_lines_to_list): New accessor function.
4120 (get_current_source_symtab_and_line): New function. Retrieves the
4121 position in the source code that we consider current.
4122 (get_current_or_default_source_symtab_and_line): New function.
4123 Like the above but attempts to determine a default position if one
4124 is not currently defined.
4125 (set_current_source_symtab_and_line): New function. Sets the source
4126 code position considered current and returns the previously set one.
4127 (clear_current_source_symtab_and_line): Reset stored information about
4128 a current source line.
4129 (_initialize_source): Remove registration for the "list" command and
4131 * source.h: Add declarations for the new functions above.
4132 * symtab.h: Remove declarations for the global variables mentioned
4134 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4135 obtain current source line.
4136 * linespec.c (decode_line_1): Ditto.
4137 * macroscope.c (default_macro_scope): Ditto.
4138 * scm-lang.c (scm_unpac): Ditto.
4139 * stack.c (print_frame_info_base): Ditto.
4140 * symfile.c (clear_symtab_users): Ditto.
4141 * symtab.c (decode_line_spec): Ditto.
4142 * cli/cli-cmds.c (list_command): Moved here from source.c.
4143 (ambiguous_line_spec): Moved here from source.c.
4144 (_init_cli_cmds): Add definition for "list" and its alias.
4145 * Makefile.in: Update dependencies.
4147 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4149 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4150 with what gcc thinks is correct.
4152 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4154 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4155 multiple register push instruction.
4157 2002-09-19 Jim Blandy <jimb@redhat.com>
4159 Add support for distinct host and target character sets.
4160 * charset.c, charset.h: New files.
4161 * c-exp.y: #include "charset.h".
4162 (yylex): Convert character and string literals to the target
4163 character set, before returning them as the semantic value of the
4165 * c-lang.c: #include "charset.h".
4166 (c_emit_char): Use charset-specific methods to recognize
4167 characters with backslash escape forms, to decide which characters
4168 to print literally and which to print using numeric escape
4169 sequences, and to convert target characters to host characters
4171 * utils.c: #include "charset.h".
4172 (no_control_char_error): New function.
4173 (parse_escape): Use charset-specific methods to recognize
4174 backslash escapes, parse `control character' notation, and convert
4175 characters from the host character set to the target character set.
4176 * configure.in: Set the default host character set.
4177 Check where to find iconv, and what its argument types might be.
4178 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4179 * Makefile.in (SFILES): List charset.c.
4180 (COMMON_OBS): List charset.o.
4181 (charset.o): New rule.
4182 (charset_h): New header dependency variable.
4183 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4184 (LIBICONV): New variable, set by configure.
4185 (CLIBS): Include $(LIBICONV) here.
4186 * aclocal.m4, config.in, configure: Regenerated.
4188 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4190 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4193 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4195 * gdb_mbuild.sh: New file.
4197 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4199 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4201 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4203 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4204 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4205 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4206 valops.c, value.h: Revert previous change.
4208 2002-09-18 Michael Snyder <msnyder@redhat.com>
4210 Preliminary support for Objective-C:
4211 * defs.h (language_objc): New enum value.
4212 (puts_filtered_tabular): Declaration only, exported from utils.c.
4213 (skip_quoted): Delete, declared in completer.h.
4214 * c-exp.y: Include completer.h.
4217 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4218 New operator enum values.
4219 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4220 * language.c (binop_result_type): Handle language_objc case.
4221 (integral_type, character_type, string_type, boolean_type,
4222 structured_type, binop_type_check): Ditto.
4223 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4224 (struct objc_specific): Add to general_symbol_info.
4225 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4226 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4227 * parser-defs.h (struct objc_class_str): New struct type.
4228 (start_msglist, end_msglist, add_msglist): Declaration only,
4229 exported from objc-lang.c.
4230 * value.h (value_of_local, value_nsstring,
4231 call_function_by_hand_expecting_type): Exported from valops.c.
4232 * valops.c (find_function_addr): Export.
4233 (call_function_by_hand_expecting_type): New function.
4234 (value_of_local): New function.
4235 * symfile.c (init_filename_language_table): Add ".m" extension
4237 * utils.c (puts_filtered_tabular): New function.
4238 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4239 (set/show demangle): Extend help-string to refer to ObjC.
4240 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4241 * stabsread.c (symbol_reference_defined): Objective-C symbols
4242 may contain colons: make allowances when scanning stabs strings
4244 (objc_find_colon): New function.
4245 * printcmd.c (address_info): If language == objc then print
4246 "self" instead of "this".
4247 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4248 OP_NSSTRING, and OP_SELF.
4249 (prefixify_subexp): Ditto.
4250 * source.c (print_source_lines): Mention objc in comment.
4251 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4254 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4256 * complaints.h: Update copyright.
4257 (struct complaints): Declare.
4258 (struct complaint): Make `message' constant.
4259 (internal_complaint): Declare.
4260 (complaint): Declare.
4261 (complaint_root): Delete declaration.
4262 (symfile_complaints): Delete declaration.
4263 (struct complaints): Add opaque declaration.
4264 (clear_complaints): Add a complaints parameter.
4265 * complaints.c: Update copyright.
4266 (enum complaint_series): Define.
4267 (complaint_root): Delete.
4268 (struct complaints): Define.
4269 (complaint_sentinel, symfile_complaint_book): New variables.
4270 (symfile_explanations, symfile_complaints): New variables.
4272 (get_complaints): New function.
4273 (vcomplaint): New function.
4274 (complaint): New function.
4275 (internal_complaint): New function.
4276 (complain): Call vcomplain with symfile_complaint.
4277 (clear_complaints): Rewrite.
4278 (_initialize_complaints): Use add_setshow_command.
4279 * Makefile.in (complaints.o): Update dependencies.
4280 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4281 to call to clear_complaints.
4282 (new_symfile_objfile, reread_symbols): Ditto.
4283 (oldsyms_complaint): Delete.
4284 (empty_symtab_complaint, unknown_option_complaint): Delete.
4285 (free_named_symtabs): Use complaint instead of complain.
4287 2002-09-18 Michael Snyder <msnyder@redhat.com>
4289 Contributed by Apple Computer, Inc. Merged with current sources
4290 by Adam Fedor <fedor@doc.com> [cagney].
4292 * objc-lang.c: First clean-up round: comments, indentation.
4293 * objc-lang.h: Ditto.
4294 * objc-lang.y: Ditto.
4296 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4298 * maint.c (maintenance_internal_error): Print the parameter as the
4300 (maintenance_internal_warning): New function.
4301 (_initialize_maint_cmds): Add command `maint internal-warning'.
4303 * defs.h (internal_warning, internal_vwarning): Declare.
4304 * utils.c (struct internal_problem): Define.
4305 (internal_vproblem): New function.
4306 (internal_warning): New function.
4307 (internal_vwarning): New function.
4308 (internal_warning_problem, internal_error_problem): New variables.
4309 (internal_verror): Just call internal_vproblem.
4311 2002-09-18 Michael Snyder <msnyder@redhat.com>
4313 * objc-lang.c: New file, support for Objective-C.
4314 Preliminary check-in, not yet integrated into gdb.
4315 * objc-lang.h: New file.
4316 * objc-exp.y: New file.
4318 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4320 * infrun.c (signal_stop_update): Convert definition to ISO C.
4321 (signal_print_update): Ditto.
4322 (signal_pass_update): Ditto.
4323 * inflow.c (terminal_save_ours): Ditto.
4325 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4328 * config/djgpp/fnchange.lst: Handle name clashes between
4329 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4332 * i386-linux-tdep.h: Fix tipo.
4334 2002-09-18 Adam Fedor <fedor@gnu.org>
4336 * MAINTAINERS: Add myself to the Write After Approval list.
4338 2002-09-18 Jim Blandy <jimb@redhat.com>
4340 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4341 texthigh and textlow to reader-specific structs caused
4342 objfile_relocate to miss them. This is fixable, but the work that
4343 the change was supposed to prepare GDB for never got done anyway.
4345 2002-09-18 David Carlton <carlton@math.stanford.edu>
4347 * MAINTAINERS: Alphabetize Write After Approval list.
4349 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4352 * values.c (value_static_field): Call read_var_value.
4354 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4356 * valops.c (hand_function_call): Align the initial stack pointer
4357 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4358 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4360 * mips-tdep.c (mips_frame_align): New function.
4361 (mips_gdbarch_init): Set frame_align.
4362 * gdbarch.sh (FRAME_ALIGN): New method.
4363 * gdbarch.h, gdbarch.c: Re-generate.
4365 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4367 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4370 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4372 * NEWS: Mention that MIPS $fp behavior changed.
4373 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4374 reference to FP_REGNUM.
4375 (mipsnbsd_cannot_store_register): Ditto.
4376 * mips-linux-nat.c: Update copyright.
4377 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4378 (mips_linux_cannot_store_register): Ditto.
4379 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4380 * config/mips/tm-mips.h: Update copyright.
4381 (FP_REGNUM): Delete macro.
4382 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4383 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4384 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4385 (mips_r3041_reg_names, mips_r3051_reg_names)
4386 (mips_r3081_reg_names): Replace "fp" with "".
4389 2002-09-17 Theodore A. Roth <troth@verinet.com>
4391 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4392 generic_read_register_dummy() (PR gdb/703).
4393 (avr_push_return_address): #if 0 out unused vars.
4394 (avr_gdbarch_init): Enable use of avr_push_return_address().
4396 2002-09-17 Michael Snyder <msnyder@redhat.com>
4398 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4399 RTE will take care of it.
4401 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4403 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4404 invalid, return SP_REGNUM.
4406 2002-09-17 Michael Snyder <msnyder@redhat.com>
4408 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4409 point registers without sign extension.
4411 2002-09-17 Andrew Cagney <cagney@redhat.com>
4413 * blockframe.c (deprecated_read_register_dummy): Rename
4414 generic_read_register_dummy.
4415 * frame.c (frame_unwind_signed_register): New function.
4416 (frame_unwind_unsigned_register): New function.
4417 * frame.h (frame_unwind_signed_register): Declare.
4418 (frame_unwind_unsigned_register): Declare.
4419 (deprecated_read_register_dummy): Rename
4420 generic_read_register_dummy.
4422 * h8300-tdep.c (h8300_frame_chain): Update.
4423 (h8300_frame_saved_pc): Update.
4424 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4425 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4426 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4427 (s390_frame_chain): Update.
4428 * v850-tdep.c (v850_find_callers_reg): Update.
4429 (v850_frame_saved_pc): Update.
4430 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4431 (m32r_find_callers_reg): Update.
4432 (m32r_frame_saved_pc): Update.
4433 * sh-tdep.c (sh_find_callers_reg): Update.
4434 (sh64_get_saved_pr): Update.
4435 (sh_init_extra_frame_info): Update.
4436 (sh_init_extra_frame_info): Update.
4437 (sh64_init_extra_frame_info): Update.
4438 (sh64_init_extra_frame_info): Update.
4439 * mcore-tdep.c (mcore_find_callers_reg): Update.
4440 (mcore_frame_saved_pc): Update.
4441 (mcore_init_extra_frame_info): Update.
4442 * i386-tdep.c (i386_frame_saved_pc): Update.
4443 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4444 (ia64_init_extra_frame_info): Update.
4445 (ia64_init_extra_frame_info): Update.
4446 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4447 * cris-tdep.c (cris_init_extra_frame_info): Update.
4448 * avr-tdep.c (avr_frame_chain): Update.
4449 (avr_init_extra_frame_info): Update.
4450 (avr_frame_saved_pc): Update.
4451 * arm-tdep.c (arm_find_callers_reg): Update.
4452 (arm_init_extra_frame_info): Update.
4453 (arm_frame_saved_pc): Update.
4455 2002-09-17 Tom Tromey <tromey@redhat.com>
4457 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4460 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4462 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4463 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4465 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4468 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4470 * osfsolib.c: Remove file, replaced by solib-osf.c.
4471 * Makefile.in: Remove compilation rules for osfsolib.c.
4473 2002-09-16 David Carlton <carlton@math.stanford.edu>
4475 * cp-valprint.c (cp_print_class_method): Correct args to
4476 check_stub_method_group.
4478 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4480 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4481 `set architecture'. Unify naming convention of functions.
4482 (h8300_skip_prologue): Improve prologue analysis.
4483 (h8300_push_arguments): Rewritten to more closely match GCC's
4484 bizarre argument-passing behavior, along with the comment describing
4486 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4487 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4488 sim, remote-e7000.c, remote-hms.c and remote.c
4490 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4492 * i386-tdep.c (gdb_print_insn_i386): Removed.
4493 (i386_print_insn): New function.
4494 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4495 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4498 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4500 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4503 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4505 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4506 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4507 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4509 2002-09-13 Christopher Faylor <cgf@redhat.com>
4511 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4513 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4515 * gdbtypes.c (check_stub_method): Make static.
4516 (check_stub_method_group): New function.
4517 * gdbtypes.h: Update prototypes.
4518 * cp-support.c: New file.
4519 * cp-support.h: New file.
4521 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4522 (update_method_name_from_physname): New function.
4523 (read_member_functions): Correct method names for operators
4524 and v3 constructors/destructors. Separate v2 constructors and
4526 * Makefile.in (stabsread.o): Update dependencies.
4527 (SFILES): Add cp-support.c.
4528 (COMMON_OBS): Add cp-support.o.
4529 (cp_support_h, cp-support.o): Add.
4531 * cp-valprint.c (cp_print_class_method): Call
4532 check_stub_method_group instead of check_stub_method. Remove
4534 * p-valprint.c (pascal_object_print_class_method): Likewise.
4535 * valops.c (search_struct_method): Likewise.
4536 (find_method_list, value_struct_elt_for_reference): Likewise.
4538 2002-09-13 Andrew Cagney <cagney@redhat.com>
4540 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4541 * gdbarch.h, gdbarch.c: Regenerate.
4543 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4545 * frame.c (find_saved_register): Delete function.
4546 * frame.h (find_saved_register): Delete declaration.
4549 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4551 * mips-tdep.c (read_next_frame_reg): Re-hack using
4552 frame_register_unwind.
4554 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4556 * mips-tdep.c (mips_get_saved_register): Re-hack using
4557 frame_register_unwind.
4559 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4561 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4562 vector. Will be useful for Interix.
4563 * gdbarch.h, gdbarch.c: Regenerate.
4565 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4566 name of the malloc function by NAME_OF_MALLOC.
4568 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4570 * value.h (find_function_in_inferior): Add const keyword to
4571 one of the parameters. Allows us to invoke this function with
4573 * valops.c (find_function_in_inferior): Likewise.
4575 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4577 * exec.c (xfer_memory): Fix compilation warning with old versions
4579 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4581 2002-09-12 David Carlton <carlton@math.stanford.edu>
4583 * symtab.h: Run through gdb_indent.h.
4584 Add 2002 to Copyright year list.
4586 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4588 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4590 * MAINTAINERS: Add myself to write after approval list.
4592 2002-09-11 J. Brobecker <brobecker@gnat.com>
4594 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4596 2002-09-11 J. Brobecker <brobecker@gnat.com>
4598 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4601 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4603 * procfs.c (do_detach): Clear current signal, not just fault.
4604 Corrects problem with breakpoint trap signal leaking to detached
4607 2002-09-10 Michael Snyder <msnyder@redhat.com>
4609 * buildsym.c (finish_block): Protect against null pointer.
4611 2002-09-10 Andrew Cagney <cagney@redhat.com>
4613 * infcmd.c (default_print_registers_info): Send all output to
4614 ``file'' instead of ``gdb_stdout''.
4616 2002-09-10 Michael Snyder <msnyder@redhat.com>
4618 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4619 LONGEST, and use signed register read (addresses are sign-
4622 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4624 * event-loop.c (gdb_do_one_event): Make public.
4625 * event-loop.h (gdb_do_one_event): Declare.
4627 2002-09-10 Jeff Law <law@redhat.com>
4629 * infttrace.c (child_resume): Simplify and rework to avoid
4632 2002-09-09 Fred Fish <fnf@intrinsity.com>
4634 * printcmd.c (print_scalar_formatted): "len" is the number of
4635 target bytes, NOT the number of target bits.
4637 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4639 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4640 * top.c (init_main): Set rl_terminal_name.
4642 2002-09-08 Aidan Skinner <aidan@velvet.net>
4644 * ada-lang.c (ada_array_bound, ada_type_match,
4645 _initialize_ada_language): Fix K&R definitions.
4646 * ada-tasks.c (get_current_task): Fix K&R definitions.
4647 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4649 2002-09-07 Christopher Faylor <cgf@redhat.com>
4651 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4654 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4656 * i386-tdep.c (i386_register_virtual_type,
4657 i386_register_convertible, i386_register_convert_to_virtual,
4658 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4659 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4660 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4661 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4662 Don't set push_arguments twice.
4664 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4665 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4666 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4667 sigtramp_end to NULL.
4668 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4670 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4672 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4675 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4676 * gdbarch.h, gdbarch.c: Re-generate.
4677 * blockframe.c (find_pc_sect_partial_function): Convert to use
4678 SIGTRAMP_START_P predicate.
4680 2002-09-05 Michael Snyder <msnyder@redhat.com>
4682 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4683 generic_dummy_frame method and old method. Also distinguish
4684 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4685 (arm_extract_return_value): Use new regcache method.
4687 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4688 adjustment that doesn't conform to the ABI.
4689 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4690 saved regcache, not from current regcache.
4692 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4694 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4697 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4699 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4700 if arm_apcs_32 is false.
4702 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4704 GDB 5.3 branch created.
4706 2002-09-03 Theodore A. Roth <troth@verinet.com>
4708 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4709 generic_unwind_get_saved_register.
4711 2002-09-03 David Carlton <carlton@math.stanford.edu>
4713 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4714 argument (PR gdb/653). Update call to smash_to_method_type.
4715 (read_structure_scope): Update call to dwarf2_add_member_fn.
4717 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4719 * x86-64-linux-tdep.c: Include gdb_string.h
4720 * x86-64-linux-nat.c: Ditto.
4722 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4724 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4725 when YYDEBUG is set to 1.
4726 * c-exp.y: Likewise.
4727 * f-exp.y: Likewise.
4728 * jv-exp.y: Likewise.
4729 * m2-exp.y: Likewise.
4730 * p-exp.y: Likewise.
4732 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4734 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4736 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4737 solib_svr4_fetch_link_map_offsets to
4738 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4739 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4740 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4741 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4742 solib-svr4.o, and solib-legacy.o.
4743 * config/i386/tm-nbsd.h: Include solib.h.
4745 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4747 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4748 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4749 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4750 comment noting that this needs its own target configuration.
4751 * config/i386/nbsd.mt: New file.
4752 * config/i386/nbsdaout.mt: Remove.
4753 * config/i386/nbsdelf.mt: Ditto.
4754 * config/i386/tm-nbsdaout.h: Ditto.
4756 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4758 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4759 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4760 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4762 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4763 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4764 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4766 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4768 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4769 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4770 * i386-tdep.h (i386bsd_init_abi): New prototype.
4771 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4772 function declaration.
4773 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4774 for NetBSD-a.out or NetBSD-ELF.
4775 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4776 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4777 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4778 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4780 (i386nbsd_pc_in_sigtramp): New function.
4781 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4782 i386nbsd_pc_in_sigtramp.
4783 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4784 and i386nbsdelf_init_abi OS ABI handlers.
4785 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4786 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4788 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4790 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4791 registers if the target really has them.
4793 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4795 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4798 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4800 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4802 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4803 (alphanbsd_skip_sigtramp_frame): New functions.
4804 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4805 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4806 to alphanbsd_sigcontext_addr.
4808 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4810 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4812 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4813 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4814 nbsd_pc_in_sigtramp.
4815 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4816 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4817 * nbsd-tdep.c: Include gdb_string.h.
4818 (nbsd_pc_in_sigtramp): New function.
4819 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4820 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4821 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4822 ppcnbsd_pc_in_sigtramp.
4823 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4824 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4825 shnbsd_pc_in_sigtramp.
4826 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4827 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4828 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4830 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4832 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4833 watchpoints to NULL.
4834 (insert_breakpoints): set val field of watchpoints if NULL.
4837 2002-08-29 Jim Blandy <jimb@redhat.com>
4839 * symtab.c (lookup_symbol_aux): In the cases where we find a
4840 minimal symbol of an appropriate name and use its address to
4841 select a symtab to read and search, use `name' (as passed to us)
4842 as the demangled name when searching the symtab's global and
4843 static blocks, not the minsym's name.
4845 2002-08-29 Keith Seitz <keiths@redhat.com>
4847 * stack.c (print_frame_info_base): Always set current_source_symtab
4848 and current_source_line.
4850 2002-08-29 Donn Terry <donnte@microsoft.com>
4852 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4854 2002-08-28 Keith Seitz <keiths@redhat.com>
4856 * stack.c (select_frame): Add FIXME concerning selected-frame
4858 (select_frame_command): Send selected-frame-level-changed
4859 event notification, but only if the level actually changed.
4860 (up_silently_base): Add selected-frame-level-changed event
4862 (down_silently_base): Likewise.
4864 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4866 * Makefile.in: Update dependencies for all gdb/*.c files.
4868 2002-08-27 Tom Tromey <tromey@redhat.com>
4870 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4871 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4872 Update dependencies.
4873 * i387-tdep.c: Include gdb_string.h.
4874 * osabi.c: Likewise.
4875 * i386-linux-nat.c: Likewise.
4876 * lin-lwp.c: Likewise.
4877 * ax-gdb.c: Likewise.
4878 * signals/signals.c: Likewise.
4879 * jv-valprint.c: Likewise.
4880 * p-lang.c: Likewise.
4881 * c-valprint.c: Likewise.
4882 * cp-abi.c: Likewise.
4884 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4886 * cli/cli-script.h (copy_command_lines): Export.
4887 * breakpoint.c: Include cli/cli-script.h.
4888 * Makefile.in (breakpoint.o): Update dependencies.
4890 2002-08-26 Michael Snyder <msnyder@redhat.com>
4892 * breakpoint.c (insert_breakpoints): Protect all references
4893 to 'process_warning'. Shorten long lines.
4895 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4897 * cli/cli-script.c (copy_command_lines): New function.
4898 * defs.h (copy_command_lines): Export.
4899 * testsuite/gdb.base/commands.exp: New tests for commands
4900 attached to a temporary breakpoint, and for commands that
4901 delete the breakpoint they are attached to.
4903 2002-08-26 Michael Snyder <msnyder@redhat.com>
4905 * breakpoint.c (bpstat_stop_status): Instead of copying the
4906 pointer to the breakpoint commands struct, make a new copy
4907 of the struct and point to that.
4908 (bpstat_clear): Free the commands struct.
4909 (bpstat_clear_actions): Free the commands struct.
4910 (bpstat_do_actions): Free the command actions. Also execute
4911 the local cleanups, instead of deleting them.
4912 (delete_breakpoint): Leave the commands field of the bpstat
4913 chain alone -- it will be freed later.
4915 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4917 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4918 deleted in 2002-08-20 commit. This function is still used by
4921 2002-08-26 Keith Seitz <keiths@redhat.com>
4923 * gdb-events.sh: Add selected-frame-level-changed event.
4924 * gdb-events.c: Regenerated.
4925 * gdb-events.h: Regenerated.
4927 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4930 * inflow.c (terminal_save_ours): New function to save terminal
4932 * inferior.h (terminal_save_ours): Declare.
4933 * target.c (debug_to_terminal_save_ours): New function.
4934 (cleanup_target): Defaults to_terminal_save_ours.
4935 (update_current_target): Inherit to_terminal_save_ours.
4936 (setup_target_debug): Set to_terminal_save_ours.
4937 * target.h (target_terminal_save_ours): New to save terminal settings.
4938 (target_ops): New member to_terminal_save_ours.
4939 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4940 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4941 * inftarg.c (init_child_ops): Likewise.
4942 * m3-nat.c (init_m3_ops): Likewise.
4943 * procfs.c (init_procfs_ops): Likewise.
4944 * wince.c (init_child_ops): Likewise.
4945 * win32-nat.c (init_child_ops): Likewise.
4946 * sol-thread.c (init_sol_thread_ops): Likewise.
4948 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4950 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4951 use regcache_* functions.
4952 (i386_gdbarch_init): Set store_return_value instead of
4953 deprecated_store_return_value.
4955 * regcache.c (regcache_raw_write_signed,
4956 regcache_raw_write_unsigned): New functions.
4957 * regcache.h (regcache_raw_write_signed,
4958 regcache_raw_write_unsigned): New prototypes.
4960 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4962 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4963 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4964 source file dependencies. Cleanup corresponding generator rules.
4966 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4968 * regcache.h (register_offset_hack): Declare.
4969 (regcache_cooked_read_using_offset_hack): Declare.
4970 (regcache_cooked_write_using_offset_hack): Declare.
4972 * regcache.c (register_offset_hack): New function.
4973 (regcache_cooked_read_using_offset_hack): New function.
4974 (regcache_cooked_write_using_offset_hack): New function.
4975 (regcache_dump): Check that the registers, according to their
4976 offset, are packed hard against each other.
4977 (cooked_xfer_using_offset_hack): New function.
4979 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4981 * regcache.c (struct regcache_descr): Add field register_type.
4982 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4984 (init_regcache_descr): Initialize register_type. Pass the descr
4985 to init_legacy_regcache_descr. Use register_type instead of
4986 REGISTER_VIRTUAL_TYPE.
4987 (register_type): New function.
4988 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4989 * regcache.h (register_type): Declare.
4991 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4993 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4994 instead of deprecated_store_return_value. Fix fallout from
4995 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4997 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4999 * regcache.c (max_register_size): New function.
5000 (init_legacy_regcache_descr): Ensure that max_register_size is
5001 large enough for REGISTER_VIRTUAL_SIZE.
5002 * regcache.h (max_register_size): Declare.
5004 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5006 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5008 (e500_extract_return_value): Change type of valbuf pointer to
5011 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5013 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5016 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5017 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5018 long long) to prevent compiler warning on 64-bit systems.
5020 2002-08-23 Andrew Cagney <cagney@redhat.com>
5022 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5023 (DEPRECATED_STORE_RETURN_VALUE): New method.
5024 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5025 * gdbarch.h, gdbarch.c: Re-generate.
5027 * values.c (set_return_value): Pass current_regcache to
5029 * arch-utils.h (legacy_store_return_value): Declare.
5030 * arch-utils.c (legacy_store_return_value): New function.
5031 (legacy_extract_return_value): Update parameters.
5033 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5035 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5036 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5037 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5038 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5039 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5040 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5041 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5042 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5043 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5044 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5047 * i386-tdep.c (i386_extract_return_value): Update.
5048 * arch-utils.c (legacy_extract_return_value): Update.
5049 * frv-tdep.c (frv_gdbarch_init): Update.
5050 * cris-tdep.c (cris_gdbarch_init): Update.
5051 * d10v-tdep.c (d10v_gdbarch_init): Update.
5052 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5053 * m68k-tdep.c (m68k_gdbarch_init): Update.
5054 * mcore-tdep.c (mcore_gdbarch_init): Update.
5055 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5056 * s390-tdep.c (s390_gdbarch_init): Update.
5057 * sparc-tdep.c (sparc_gdbarch_init): Update.
5058 * sh-tdep.c (sh_gdbarch_init): Update.
5059 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5060 * v850-tdep.c (v850_gdbarch_init): Update.
5061 * avr-tdep.c (avr_gdbarch_init): Update.
5062 * ia64-tdep.c (ia64_gdbarch_init): Update.
5063 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5064 * vax-tdep.c (vax_gdbarch_init): Update.
5065 * alpha-tdep.c (alpha_gdbarch_init): Update.
5066 * arm-tdep.c (arm_gdbarch_init): Update.
5067 * mips-tdep.c (mips_gdbarch_init): Update.
5068 * i386-tdep.c (i386_gdbarch_init): Update.
5070 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5072 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5073 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5075 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5077 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5080 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5082 * infrun.c (handle_inferior_event): Move a comment outside of a
5083 function call, in order to avoid indent reformatting this part
5084 of the code in an unreadable way.
5086 2002-08-23 Grace Sainsbury <graces@redhat.com>
5088 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5089 when breakpoints fail. Move general breakpoint error messages to
5091 * breakpoint.c (insert_breakpoints): Change warnings when
5092 breakpoints are nto inserted to specify the type. Remove call to
5093 memory_error when hardware breakpoints can't be inserted. Remove
5094 multiple calls to warning so all messages are sent to the user at
5096 (delete_breakpoints): Make insert error messsages more explicit.
5098 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5100 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5101 gdbserver/ChangeLog.
5103 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5105 * i386-tdep.c: Include "objfiles.h".
5106 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5107 skip_trampoline_code.
5108 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5109 (CPLUS_MARKER): Define to '.'.
5111 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5113 (linux_corefile_thread_callback): Increase args->num_notes.
5114 (linux_make_note_section): Initialize thread_args.num_notes, and
5115 use it to determine whether notes for any threads were created.
5117 2002-08-23 Donn Terry <donnte@microsoft.com>
5119 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5120 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5122 (write_with_trace): Conditionalize out the switch branch handling
5123 PCSHOLD if the corresponding macro is not defined. Likewise for
5124 PRSABORT and PRSTOP.
5125 This change will be needed by the Interix port.
5127 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5129 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5130 write_register wherever possible instead of manipulating the
5131 register bytes directly.
5132 Assign VALUE_CONTENTS to a variable and use that.
5133 The GPR numbers are now dependent on the architecture.
5135 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5137 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5139 (skip_prologue): Add support for BookE/e500 instructions.
5140 (e500_extract_return_value): New function.
5141 (frame_get_saved_regs): Add support for saving ev registers and
5143 (e500_store_return_value): New function.
5144 (rs6000_gdbarch_init): Move up default intializations of
5145 deprecated_extract_return_value and store_return_value. Overwrite
5146 init of store_return_value with e500 specific version.
5147 Set extract_return_value for e500.
5149 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5151 * blockframe.c (generic_call_dummy_register_unwind): Use
5152 regcache_cooked_read to catch cases in which the variable is
5153 stored in a pseudo register.
5155 2002-08-22 Andrew Cagney <cagney@redhat.com>
5157 * NEWS: Mention that the i960 has been made obsolete.
5158 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5160 (remote-nrom.o): Obsolete target.
5161 (remote-nindy.o, i960-tdep.o): Ditto.
5162 * remote-nrom.c: Make file obsolete.
5163 * remote-nindy.c, remote-vx960.c: Ditto.
5164 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5165 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5166 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5167 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5168 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5169 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5170 i960-*-vxworks* obsolete.
5171 * MAINTAINERS: Note that the i960 is obsolete.
5173 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5175 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5176 detach to allow reinitialization.
5178 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5180 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5183 2002-08-22 Jim Blandy <jimb@redhat.com>
5185 * coffread.c (coff_symfile_read): Don't try to read the line
5186 number table from disk if the image file doesn't have a symbol
5187 table; we'll never actually look at the info anyway, and Windows
5188 ships DLL's with bogus file offsets for the line number data.
5190 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5192 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5195 2002-08-21 Michael Snyder <msnyder@redhat.com>
5197 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5198 (MSYMBOL_SIZE): Replace macro with function.
5199 (DEFAULT_MIPS_TYPE): Delete unused macro.
5200 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5201 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5203 2002-08-21 Jim Blandy <jimb@redhat.com>
5205 * valops.c (value_cast): Simplify and correct logic for doing a
5206 static cast from a pointer to a base class to a pointer to a
5209 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5211 * infcmd.c (default_print_registers_info): Replace
5213 (registers_info): Use gdbarch_print_registers_info instead of
5215 * inferior.h (default_print_registers_info): Replace
5217 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5218 (DO_REGISTERS_INFO): Change to a predicate function.
5219 * gdbarch.h, gdbarch.c: Regenerate.
5221 2002-08-21 Keith Seitz <keiths@redhat.com>
5223 * gdb-events.sh: Add target-changed event.
5224 * gdb-events.c: Regenerated.
5225 * gdb-events.c: Regenerated.
5226 * valops.c (value_assign): Add target-changed event notification
5227 to inlval_register, lval_memory, and lval_reg_frame_relative.
5229 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5231 * NEWS: Add an entry regarding the improvement of the next/step
5232 operation on Alpha Tru64 multi-processor machines.
5234 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5236 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5238 * Makefile.in: Update all _h macro definitions.
5239 * Makefile.in (install-gdbtk): Move to install section.
5240 (rdi-share/libangsd.a): Move to end of file.
5242 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5244 * frame.c (frame_register_unwind): When a register, set addrp to
5245 the register's byte.
5247 2002-08-20 Michael Snyder <msnyder@redhat.com>
5249 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5250 used locally, so move them from the target machine header to here.
5251 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5252 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5254 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5256 2002-08-20 Andrew Cagney <cagney@redhat.com>
5258 * NEWS: Mention that the Apollo line was made obsolete.
5259 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5260 m68*-hp-hpux* obsolete.
5261 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5262 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5263 * buildsym.c (make_blockvector): Make static.
5264 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5265 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5266 (ALLDEPFILES): Remove dstread.c.
5267 (dstread.o): Obsolete make rule.
5268 * dstread.c: Makefile obsolete.
5270 * config/m68k/hp300hpux.mt: Ditto.
5271 * config/m68k/hp300hpux.mh: Ditto.
5272 * config/m68k/hp300bsd.mt: Ditto.
5273 * config/m68k/hp300bsd.mh: Ditto.
5274 * config/m68k/apollo68b.mt: Ditto.
5275 * config/m68k/apollo68v.mh: Ditto.
5276 * config/m68k/apollo68b.mh: Ditto.
5278 2002-08-20 Michael Snyder <msnyder@redhat.com>
5280 * mips-tdep.c (mips_in_return_stub): Make static.
5281 (mips_gdbarch_init): Set in_solib_return_trampoline.
5282 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5284 2002-08-20 Michael Snyder <msnyder@redhat.com>
5286 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5287 * gdbarch.c, gdbarch.h: Regenerate.
5288 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5290 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5292 2002-08-20 Michael Snyder <msnyder@redhat.com>
5294 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5295 (mips_gdbarch_init): Set skip_trampoline_code,
5296 in_solib_call_trampoline.
5297 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5298 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5300 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5302 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5304 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5305 vector type for ev registers.
5306 (e500_pseudo_register_read): New function.
5307 (e500_pseudo_register_write): New function.
5308 (e500_dwarf2_reg_to_regnum): New function.
5309 (PPC_UISA_NOFP_SPRS): New macro.
5310 (PPC_EV_REGS): New macro.
5311 (PPC_GPRS_PSEUDO_REGS): New macro.
5312 (registers_e500): New register set for e500.
5313 (variants): Add e500 variant.
5314 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5315 before setting architectural dependent variations. Initialize ev
5316 registers numbers. Add case for e500 architecture. Set the
5317 number of pseudo registers.
5319 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5321 * rs6000-tdep.c: Clean up comments.
5323 2002-08-20 Andrew Cagney <cagney@redhat.com>
5325 * h8300-tdep.c: Re-indent file.
5327 2002-08-20 Jim Blandy <jimb@redhat.com>
5329 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5332 2002-08-20 Keith Seitz <keiths@redhat.com>
5334 * breakpoints.c (watch_command_1): Use internal breakpoint
5335 when setting a watchpoint_scope breakpoint.
5337 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5339 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5340 (build_builtin_type_vec64i): Ditto.
5341 (build_builtin_type_vec128): Ditto.
5342 (build_builtin_type_vec128i): Ditto.
5344 2002-08-19 Michael Snyder <msnyder@redhat.com>
5346 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5347 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5348 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5349 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5350 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5351 CALL_DUMMY_ADDRESS): Delete.
5352 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5353 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5354 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5355 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5356 push_return_address.
5357 (mips_register_raw_size, mips_eabi_use_struct_convention,
5358 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5359 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5360 mips_init_extra_frame_info, mips_eabi_push_arguments,
5361 mips_n32n64_push_arguments, mips_push_return_address,
5362 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5363 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5365 2002-08-19 Michael Snyder <msnyder@redhat.com>
5367 * mips-tdep.c (mips_frame_num_args): New function.
5368 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5369 frame_saved_pc, frame_args_address, frame_locals_address,
5370 frame_num_args, and frame_args_skip.
5371 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5372 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5373 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5374 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5376 2002-08-20 Michael Snyder <msnyder@redhat.com>
5378 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5379 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5380 * mips-tdep.c (mips_store_struct_return): New function.
5381 (mips_extract_struct_value_address): New function.
5382 (mips_gdbarch_init): Set store_struct_return and
5383 extract_struct_value_address.
5385 2002-08-20 David Carlton <carlton@math.stanford.edu>
5387 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5388 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5389 (read_file_scope): Check that line_header is nonzero before
5390 decoding macro information.
5392 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5394 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5395 flag the general-purpose registers as floating-point on targets
5396 that don't support the floating-point registers.
5398 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5400 * rs6000-tdep.c (altivec_register_p): Delete.
5401 (rs6000_do_altivec_registers): Delete.
5402 (rs6000_altivec_registers_info): Delete.
5403 (rs6000_do_registers_info): Delete.
5404 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5405 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5407 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5409 * infcmd.c (do_registers_info): Print vector registers in hex
5411 (print_vector_info): Check that printing registers
5413 (print_float_info): Ditto.
5415 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5417 * mips-tdep.c (mips_gdbarch_init): Update.
5418 (mips_o32_extract_return_value): Rewrite.
5419 (mips_o32_store_return_value): Rewrite.
5420 (mips_o32_xfer_return_value): New function.
5421 (mips_xfer_register): Tweak debug print message. Allow for
5422 buf_offset when dumping the value transfered.
5424 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5426 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5427 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5428 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5429 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5430 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5432 2002-08-14 Michael Snyder <msnyder@redhat.com>
5434 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5436 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5438 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5440 (P): New macro to define a register as a pseudo register.
5441 (R, R4, R8, R16, FR32, R64, R0): Updated.
5442 (struct variant): Add new fields for number of pseudo registers
5443 and number of total registers.
5444 (tot_num_registers): New macro replacing....
5445 (num_registers): ...deleted macro.
5446 (num_registers): New function.
5447 (num_pseudo_registers): New function.
5448 (variants): Update all variants to intialize new fields correctly.
5449 Postpone initialization of number of pseudo regs and real regs.
5450 (init_variants): New function.
5451 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5454 2002-08-19 David Carlton <carlton@math.stanford.edu>
5456 * valops.c (search_struct_field): Change error message to treat
5457 return value of 0 from value_static_field as meaning that field is
5459 (value_struct_elt_for_reference): Ditto.
5460 * values.c (value_static_field): Treat an unresolved location the
5461 same as a nonexistent symbol. Fix PR gdb/635.
5462 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5463 enclosed. Fix PR gdb/574.
5464 * MAINTAINERS: Add self to Write After Approval list.
5466 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5468 * mips-tdep.c (mips_xfer_register): New function.
5469 (mips_n32n64_extract_return_value): Rewrite.
5470 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5471 instead of deprecated_extract_return_value.
5473 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5475 * rs6000-tdep.c (TDEP): Delete macro.
5476 (branch_dest): Replace use of TDEP macro with its body.
5477 (rs6000_pop_frame): Ditto.
5478 (rs6000_push_arguments): Ditto.
5479 (rs6000_skip_trampoline_code): Ditto.
5480 (rs6000_frame_saved_pc): Ditto.
5481 (rs6000_frame_chain): Ditto.
5482 (rs6000_register_name): Ditto.
5483 (rs6000_register_byte): Ditto.
5484 (rs6000_register_raw_size): Ditto.
5485 (rs6000_register_virtual_type): Ditto.
5486 (rs6000_register_convertible): Ditto.
5487 (rs6000_convert_from_func_ptr_addr): Ditto.
5489 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5491 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5493 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5494 MIPS_LINUX_JB_ELEMENT_SIZE.
5495 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5496 for MAX_REGISTER_RAW_SIZE arrays.
5497 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5498 MIPS_LINUX_JB_ELEMENT_SIZE.
5500 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5502 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5504 2002-08-19 Aidan Skinner <aidan@velvet.net>
5506 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5507 ada-valprint.c ada-tasks.c.
5508 (YYFILES): Add ada-exp.y.
5509 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5510 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5511 (ada-exp.tab.o): New target.
5513 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5515 * regcache.c (regcache_xfer_part): New function.
5516 (regcache_raw_read_part): New function.
5517 (regcache_raw_write_part): New function.
5518 (regcache_cooked_read_part): New function.
5519 (regcache_cooked_write_part): New function.
5520 * regcache.h (regcache_raw_read_part): Declare.
5521 (regcache_raw_write_part): Declare.
5522 (regcache_cooked_read_part): Declare.
5523 (regcache_cooked_write_part): Declare.
5525 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5527 * remote.c (remote_open_1): Add async_p.
5528 (remote_async_open_1): Delete.
5529 (open_remote_target): Delete.
5530 (remote_open, extended_remote_open): Update calls to remote_open_1.
5531 (remote_async_open, extended_remote_async_open): Call
5532 remote_open_1 instead of remote_async_open_1.
5534 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5536 * blockframe.c: Fix a few coding standard violations.
5538 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5540 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5542 * config/i386/tm-i386sco5.h: ... here. File removed.
5543 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5545 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5546 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5547 (TM_FILE): Set to tm-i386.h.
5548 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5549 * config/i386/tm-i386v.h: Remove file.
5550 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5551 instead of "i386/tm-i386v.h".
5552 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5553 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5555 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5556 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5559 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5561 * config/i386/nm-i386v.h: Add protection against
5563 (i386_register_u_addr): Remove prototype.
5564 (register_u_addr): New prototype.
5565 (REGISTER_U_ADDR): Redefine accordingly.
5566 * i386v-nat.c: Improve several comments.
5567 (i386_register_u_addr): Change signature and rename to
5568 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5571 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5573 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5574 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5575 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5576 deprecated_extract_return_value.
5577 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5578 rename mips_o32o64_push_arguments.
5579 (mips_gdbarch_init): Update.
5580 (mips_extract_return_value): Delete.
5581 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5582 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5583 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5584 (mips_n32n64_extract_return_value): Clone
5585 mips_extract_return_value.
5586 (mips_store_return_value): Delete.
5587 (mips_o32_store_return_value): Clone mips_store_return_value.
5588 (mips_o64_store_return_value): Clone mips_store_return_value.
5589 (mips_eabi_store_return_value): Clone mips_store_return_value.
5590 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5592 2002-08-18 Aidan Skinner <aidan@velvet.net>
5594 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5595 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5597 2002-08-18 Aidan Skinner <aidan@velvet.net>
5599 * ada-lang.c: Run through gdb_indent.sh.
5600 * ada-lang.h: Run through gdb_indent.sh.
5601 * ada-tasks.c: Run through gdb_indent.sh.
5602 * ada-typeprint.c: Run through gdb_indent.sh.
5603 * ada-valprint.c: Run through gdb_indent.sh.
5605 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5607 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5610 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5612 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5614 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5615 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5617 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5618 write_register_gen instead of write_register_bytes.
5620 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5621 i[3456]-*-osf1mk* configurations have been made obsolete.
5622 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5623 i[3456]86-*-osf1mk* hosts obsolete.
5624 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5626 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5627 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5628 config/i386/i386m3.mt, config/i386/nm-m3.h,
5629 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5630 config/i386/i386mk.mh, config/i386/i386mk.mt,
5631 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5633 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5634 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5635 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5637 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5639 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5640 (hppa_value_returned_from_stack): Declare.
5641 (hppa_extract_return_value): Declare.
5642 * config/pa/hppa.mt: New file.
5643 * configure.tgt: Recognize hppa*-*-*.
5644 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5646 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5648 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5651 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5653 * top.c (gdb_rl_operate_and_get_next): Make sure
5654 operate-and-get-next functions correctly even when the history
5655 list is completely filled.
5657 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5659 * MAINTAINERS (Target Instruction Set Architectures): Rename
5660 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5661 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5662 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5663 already listed under Host/Native.
5665 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5666 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5669 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5671 * config/ia64/ia64.mt: New file.
5672 * config/alpha/alpha.mt: New file.
5673 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5674 ia64-linux-gnu. Mention that ia64-elf is broken.
5675 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5677 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5679 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5680 generic_func_frame_valid instead of func_frame_valid.
5682 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5684 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5685 procfs appears to be broken when debugging on multi-processor
5686 machines. So enable software single stepping in order to avoid
5687 using the procfs interface to do next/step operations, using
5688 internal breakpoints instead.
5690 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5691 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5692 make this pc address equal to the value it would have if the
5693 system stepping capability was used. Also set a new flag used
5694 to ensure that we don't readjust the PC one more time later.
5696 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5697 address by DECR_PC_AFTER_BREAK when software single step is
5698 in use for this architecture, as this has already been taken
5699 care of in handle_inferior_event().
5701 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5703 * infrun.c (handle_inferior_event): Minor reformatting, to make
5704 a rather long condition expression easier to read.
5706 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5708 * Makefile.in (gdbtk.o): Move to end of file.
5709 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5710 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5711 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5712 (gdbtk-wrapper.o, gdbres.o): Ditto.
5714 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5716 * Makefile.in (copying.o): Separate out compile rule.
5717 (hpux-thread.o, procfs.o, signals.o): Ditto.
5718 (v850ice.o, z8k-tdep.o): Ditto.
5719 (tui-file.o): Move to TUI section.
5720 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5721 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5723 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5725 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5726 skip_trampoline_code, for better namespace-proofing.
5728 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5730 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5732 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5734 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5736 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5737 signal, check whether we hit a breakpoint before checking for a
5738 single step breakpoint. Otherwise, GDB fails to notice that a
5739 breakpoint has been hit when stepping onto a breakpoint.
5741 2002-08-16 Keith Seitz <keiths@redhat.com>
5743 * gdb-events.sh (clear_gdb_event_hooks): New function.
5744 * gdb-events.c: Regenerate.
5745 * gdb-events.h: Regenerate.
5747 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5749 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5750 not_a_sw_breakpoint.
5751 * breakpoint.h (bpstat_stop_status): Add parameter names.
5753 2002-08-16 Grace Sainsbury <graces@redhat.com>
5755 * remote.c (remote_insert_hw_breakpoint)
5756 (remote_remove_hw_breakpoint): Fix calculation of length field
5759 2002-08-15 Michael Snyder <msnyder@redhat.com>
5761 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5762 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5763 (supply_fpregset): Ditto.
5765 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5766 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5767 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5768 (TARGET_READ_SP): Delete.
5769 (DO_REGISTERS_INFO): Delete.
5770 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5772 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5773 from macros to functions.
5775 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5776 (mips_register_convertible, mips_register_convert_to_virtual,
5777 mips_register_convert_to_raw): Make static.
5778 (mips_read_sp): New function.
5779 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5780 (mips_do_registers_info): Make static.
5781 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5782 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5783 (mips_register_convert_from_type, mips_register_convert_to_type):
5785 (mips_gdbarch_init): Set up function_start_offset,
5786 register_virtual_size, pc_in_sigtramp.
5788 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5790 * infcmd.c (vector_info): New function.
5791 (_initialize_infcmd): Add command "info vector".
5792 (print_vector_info): New function.
5794 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5795 * gdbarch.h, gdbarch.c: Regenerate.
5797 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5799 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5800 ``print_all''. Only print vector registers when ``print_all''.
5802 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5804 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5805 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5807 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5808 Add `args' parameter.
5809 * gdbarch.h, gdbarch.c: Regenerate.
5811 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5813 * infcmd.c (float_info): Call print_float_info.
5814 (print_float_info): New function. By default, print the
5815 floating-point registers.
5817 * arch-utils.h (default_print_float_info): Delete declaration.
5818 * arch-utils.c (default_print_float_info): Delete function.
5820 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5822 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5825 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5828 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5829 * configure.host: Make i[3456]86-*-aix host obsolete.
5830 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5831 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5832 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5833 config/i386/xm-i386aix.h: Make files obsolete.
5834 * i386aix-nat.c: Make file obsolete.
5835 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5836 (i386aix-nat.o): Make target obsolete.
5838 * config/i386/nm-gnu.h: Removed.
5839 * config/i386/nm-i386gnu.h: New file.
5840 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5841 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5843 * config/i386/tm-i386gnu.h: ... here. Removed.
5844 * config/i386/xm-i386gnu.h: Removed.
5845 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5846 (NAT_FILE): Set to nm-i386gnu.h.
5847 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5848 * i386-tdep.c: New file.
5849 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5850 (i386gnu-tdep.o): Specify dependencies.
5852 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5854 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5855 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5856 Adjust a few comments to reflect reality a bit closer.
5857 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5858 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5859 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5860 target_insert_watchpoint, target_remove_watchpoint):
5862 * config/i386/nm-i386sco5.h: ... here.
5863 (kernel_u_size): Add prototype. Improve a few comments and add
5864 protection against multiple inclusion.
5866 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5869 * uw-thread.c (SP_ARG0): Define if not already defined.
5870 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5872 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5874 * config/i386/tm-i386.h: Don't include "regcache.h".
5876 * i387-tdep.h (i387_print_float_info): New prototype.
5877 * i387-tdep.c (print_i387_value, print_i387_ext,
5878 print_i387_status_word, print_i387_control_word): Add `struct
5879 ui_file *' argument and use it for output.
5880 (i387_print_float_info): Renamed from i387_float_info. Add
5881 `struct gdbarch *' and `struct ui_file *' arguments and use the
5883 * i386-tdep.c: Include "i387-tdep.h".
5884 (i386_gdbarch_init): Set print_float_info.
5885 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5886 (FLOAT_INFO): Remove define.
5888 2002-08-13 Michael Snyder <msnyder@redhat.com>
5890 * mips-tdep.c (mips_push_arguments): Rename to
5891 mips_eabi_push_arguments, and tune for EABI.
5892 (MIPS_REGS_HAVE_HOME_P): Delete.
5893 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5894 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5895 Delete references to mips_regs_have_home_p.
5897 2002-08-14 Keith Seitz <keiths@redhat.com>
5899 * Makefile.in (install-gdbtk): Create insight plugin directory.
5900 Install plugins.tcl file.
5902 2002-08-14 Keith Seitz <keiths@redhat.com>
5904 * configure.in: Move SUBDIRS to near top of the file so that
5905 --enable options may add things to it.
5906 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5907 * configure: Regenerate.
5909 2002-08-13 Michael Snyder <msnyder@redhat.com>
5911 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5912 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5913 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5915 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5917 * vax-tdep.c (vax_get_saved_register): Delete function.
5918 (vax_gdbarch_init): Update.
5919 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5920 (ns32k_gdbarch_init): Update.
5921 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5922 (alpha_gdbarch_init): Update.
5924 2002-08-13 Andrew Cagney <cagney@redhat.com>
5926 * regcache.c (init_regcache_descr): Overallocate the
5927 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5928 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5930 (set_register_cached): Add range checking assertions. Use
5933 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5935 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5936 numbers for MMX registers.
5938 2002-08-13 Andrew Cagney <cagney@redhat.com>
5940 * i386-tdep.c (i386_gdbarch_init): Use
5941 generic_unwind_get_saved_register.
5943 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5945 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5946 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5948 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5949 Delete. Add comment regarding this now-deleted target method.
5951 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5953 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5954 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5955 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5956 real PC and the page number (if it's within the memory bank window).
5957 (m68hc11_pseudo_register_write): Likewise when saving.
5958 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5959 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5960 (m68hc11_register_raw_size): And use 32-bit for it.
5961 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5962 16K memory bank is used by the prog; also use the virtual pc.
5964 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5966 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5967 (m68hc11_gdbarch_init): Install it in gdbarch.
5968 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5969 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5970 (MSYMBOL_SIZE): New for documentation.
5971 (insn_return_kind): Enum to specify how a function returns.
5972 (frame_extra_info): Cleanup and record the return mode.
5973 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5974 register in address computation.
5975 (m68hc11_get_return_insn): New to obtain the return instruction used
5977 (m68hc11_frame_init_saved_regs): Take into account the return
5978 instruction used by the function for far and interrupt functions.
5979 (m68hc11_init_extra_frame_info): Take into account page register.
5980 (m68hc11_frame_args_address): Adjust according to the return mode.
5981 (show_regs): Print page register only when it's used.
5983 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5985 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5986 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5987 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5989 (m68hc11_register_raw_size): Likewise.
5991 2002-08-13 Andrew Cagney <cagney@redhat.com>
5993 * i386-tdep.c (i386_register_name): Handle mmx registers.
5994 (mmx_regnum_p): New function.
5995 (i386_mmx_names): New array.
5996 (mmx_num_regs): New variable.
5997 (i386_pseudo_register_read): New function.
5998 (i386_pseudo_register_write): New function.
5999 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6001 * regcache.c (regcache_raw_read_unsigned): New function.
6002 (regcache_raw_read_signed): New function.
6003 * regcache.h (regcache_raw_read_unsigned): Declare.
6004 (regcache_raw_read_signed): Declare.
6006 2002-08-13 Andrew Cagney <cagney@redhat.com>
6008 * regcache.c (regcache_raw_read_as_address): Delete function.
6009 (regcache_cooked_read_signed): New function.
6010 (regcache_cooked_read_unsigned): New function.
6011 * regcache.h (regcache_cooked_read_signed): Declare.
6012 (regcache_cooked_read_unsigned): Declare.
6013 (regcache_raw_read_as_address): Delete declaration.
6015 * blockframe.c (generic_read_register_dummy): Use
6016 regcache_cooked_read_unsigned.
6017 * i386-tdep.c (i386_extract_struct_value_address): Use
6018 regcache_cooked_read_unsigned.
6020 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6022 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6023 double sizes according to ELF ABI flags.
6024 (gdbarch_tdep): Record elf_flags.
6026 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6028 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6029 (m6812_prolog): They can appear in 68HC12 function prologue.
6030 (m68hc11_frame_chain): Cleanup.
6032 2002-08-12 Andrew Cagney <cagney@redhat.com>
6034 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6036 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6037 (i386_linux_register_raw_size): Delete function.
6038 (i386_linux_init_abi): Update.
6039 * i386-tdep.c (i386_register_raw_size): Delete function.
6040 (i386_register_byte): Delete function.
6041 (i386_gdbarch_init): Update.
6042 (i386_register_size): Delete array.
6043 (i386_register_offset): Delete array.
6045 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6046 (REGISTER_RAW_SIZE): Delete macro.
6047 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6048 (REGISTER_BYTE): Delete macro.
6050 2002-08-11 Aidan Skinner <aidan@velvet.net>
6052 * ada-lang.c (ada_lookup_partial_symbol)
6053 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6054 prototype names so that grep ^func works properly.
6056 * ada-lang.c (ada_array_element_type)
6057 (ada_lookup_partial_symbol): Fix typos in parameter list.
6059 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6060 Fix prototype names so that grep ^func works properly.
6062 2002-08-10 Andrew Cagney <cagney@redhat.com>
6063 Elena Zannoni <ezannoni@redhat.com>
6064 Martin M. Hunt <hunt@redhat.com>
6066 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6067 (build_builtin_type_vec128i): Set the vector bit.
6068 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6069 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6070 (build_builtin_type_vec64): New function.
6071 (build_builtin_type_vec64i): New function.
6072 (build_gdbtypes): Initialize builtin_type_vec64 and
6073 builtin_type_vec64i.
6075 2002-08-09 Andrew Cagney <cagney@redhat.com>
6077 * regcache.c (regcache_dump): Compare the register offset
6079 * arch-utils.c (generic_register_byte): New function.
6080 * arch-utils.h (generic_register_byte): Declare.
6081 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6082 * gdbarch.h, gdbarch.c: Regenerate.
6084 2002-08-09 Andrew Cagney <cagney@redhat.com>
6086 * regcache.c: Include "gdbcmd.h"
6087 (_initialize_regcache): Add commands "maintenance print
6088 registers", "maintenance print raw-registers" and "maintenance
6089 print cooked-registers".
6090 (enum regcache_dump_what): Define.
6091 (dump_endian_bytes): New function.
6092 (regcache_dump): New function.
6093 (regcache_print): New function.
6094 (maintenance_print_registers): New function.
6095 (maintenance_print_raw_registers): New function.
6096 (maintenance_print_cooked_registers): New function.
6097 * Makefile.in (regcache.o): Update dependencies.
6099 2002-08-09 Michael Snyder <msnyder@redhat.com>
6101 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6102 (mips_push_arguments): Correct some comments. Use paddr_nz
6103 for printing addresses in debug output. Replace static
6104 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6105 (mips_n32n64_push_arguments): New function, cloned from
6106 mips_push_arguments and tuned for the n32/n64 ABI.
6107 (mips_push_register): Buffer needs dynamic allocation.
6108 (mips_print_register): Ditto.
6109 (do_gp_register_row): Ditto.
6110 (mips_store_return_value): Ditto.
6111 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6113 2002-08-09 Don Howard <dhoward@redhat.com>
6115 * memattr.c (mem_info_command): Print special case of upper bound
6116 as max CORE_ADDR + 1.
6118 2002-08-08 Michael Snyder <msnyder@redhat.com>
6120 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6121 returns structs by ref if they're too big to fit in two registers.
6123 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6125 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6127 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6128 mips_find_saved_regs().
6129 (mips_pop_frame): Likewise.
6131 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6133 * blockframe.c (frame_saved_regs_register_unwind): Revise
6134 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6137 2002-08-09 Grace Sainsbury <graces@redhat.com>
6139 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6140 T-packets; the 'a' is not taken as a register number.
6141 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6142 (remote_stopped_data_address): New functions; add to target
6144 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6145 prototypes to match other implementations of this
6146 function. replace integer argument with pointer -- the length
6147 field in the Z-packet is the length of what is pointed to or 1 if
6148 pointer is null. Add to target vector.
6149 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6153 * remote.c (remote_wait): Add support to extract optional
6154 watchpoint information from T-packet. Ignore unrecognized
6155 optional info in T-packet.
6156 (remote_async_wait): Ditto.
6158 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6160 * cli/cli-dump.c: Change fopen modes to use binary open modes
6161 as defined in include/fopen-bin.h throughout.
6163 2002-08-08 Michael Snyder <msnyder@redhat.com>
6165 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6167 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6169 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6170 assertion failure by returning early after a warning.
6172 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6174 * mips-tdep.c (mips_find_saved_regs): Make static.
6175 (mips_frame_init_saved_regs): New function.
6176 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6177 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6178 (mips_find_saved_regs): Delete declaration.
6180 2002-08-08 Grace Sainsbury <graces@redhat.com>
6182 * remote.c (remote_wait, remote_async_wait): Change
6183 thread_num from int to ULONGEST.
6184 (unpack_varlen_hex): Change result parameter from
6185 int * to ULONGEST *.
6187 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6189 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6190 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6192 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6194 2002-08-08 Andrew Cagney <cagney@redhat.com>
6196 * gcore.c (override_derive_stack_segment): Delete variable.
6197 (preempt_derive_stack_segment): Delete function.
6198 (derive_stack_segment): Delete function.
6199 (default_derive_stack_segment): Renamed to derive_stack_segment.
6200 (override_derive_heap_segment): Delete variable.
6201 (preempt_derive_heap_segment): Delete function.
6202 (derive_heap_segment): Delete function.
6203 (default_derive_heap_segment): Rename to derive_heap_segment.
6205 2002-08-06 Michael Snyder <msnyder@redhat.com>
6207 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6208 * mips-tdep.c (mips_EABI_use_struct_convention,
6209 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6210 New functions. (mips_use_struct_convention): Delete.
6211 (mips_gdbarch_init): set use_gdbarch_convention.
6213 2002-08-06 Michael Snyder <msnyder@redhat.com>
6215 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6216 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6217 mips_o32_reg_struct_has_addr): New functions.
6218 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6220 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6222 * regcache.c (pseudo_register): Delete function.
6223 (fetch_register): Delete function.
6224 (store_register): Delete function.
6225 (regcache_raw_read, legacy_read_register_gen): Use
6226 target_fetch_registers instead of fetch_register.
6227 (legacy_write_register_gen, regcache_raw_write): Use
6228 target_store_register instead of store_register.
6229 (write_register_bytes): Ditto.
6231 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6232 (STORE_PSEUDO_REGISTER): Delete.
6233 * gdbarch.h, gdbarch.c: Regenerate.
6235 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6237 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6238 write dump file binary.
6240 2002-08-05 Michael Snyder <msnyder@redhat.com>
6242 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6243 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6244 (mips_gdbarch_init): Set N32 target to be mips64.
6246 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6248 * frame.c (find_saved_register): Break out of loop once saved
6249 register address is found. Don't mention sparc in loop comment
6252 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6254 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6255 mips_default_saved_regsize to 8.
6257 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6259 * gcore.c: Do not include <sys/procfs.h>.
6260 * Makefile.in (gcore.o): Update dependencies.
6262 2002-08-06 Andrew Cagney <cagney@redhat.com>
6264 * configure.tgt: Make arc-*-* obsolete.
6265 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6266 * MAINTAINERS: Make arc-elf obsolete.
6267 * arc-tdep.c: Make file obsolete.
6268 * config/arc/arc.mt: Ditto.
6269 * config/arc/tm-arc.h: Ditto.
6271 2002-08-05 Theodore A. Roth <troth@verinet.com>
6273 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6275 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6277 * mcore-tdep.c (mcore_gdbarch_init): Use
6278 generic_unwind_get_saved_register instead of
6279 generic_get_saved_register.
6280 * v850-tdep.c (v850_gdbarch_init): Ditto.
6281 * frv-tdep.c (frv_gdbarch_init): Ditto.
6282 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6283 * s390-tdep.c (s390_gdbarch_init): Ditto.
6284 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6285 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6286 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6288 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6290 * objfiles.h: Add missing #include "symfile.h"
6292 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6294 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6296 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6297 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6300 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6302 * NEWS: Cleanup and nitpick.
6304 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6306 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6308 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6310 * Makefile.in (gdbtk-bp.o): Update dependencies.
6311 (gdbtk-register.o): Ditto.
6312 (gdbtk-varobj.o): Ditto.
6314 2002-08-03 Andrew Cagney <cagney@redhat.com>
6316 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6317 m68hc11_fetch_pseudo_register.
6318 (m68hc11_pseudo_register_write): Replace
6319 m68hc11_store_pseudo_register.
6320 (m68hc11_gdbarch_init): Update.
6322 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6324 * gdbarch.sh: Include "gdb_string.h".
6325 * gdbarch.c: Regenerate.
6327 * regcache.c: Include "gdb_string.h".
6328 * ax-general.c: Ditto.
6330 * std-regs.c: Ditto.
6331 * fbsd-proc.c: Ditto.
6334 * Makefile.in (regcache.o): Update dependencies.
6335 (thread.o, gdbarch.o): Ditto.
6336 (ax-general.o, gdbarch.o): Ditto.
6337 (varobj.o, std-regs.o): Ditto.
6338 (fbsd-proc.o): Specify dependencies.
6340 2002-08-02 Andrew Cagney <cagney@redhat.com>
6342 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6344 (regcache_cooked_write): Ditto.
6346 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6348 * regcache.c (regcache_cooked_read): New function.
6349 (regcache_cooked_write): New function.
6350 (read_register_gen): Rewrite using regcache_cooked_read.
6351 (write_register_gen): Rewrite using regcache_cooked_write.
6353 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6356 2002-08-02 Andrew Cagney <cagney@redhat.com>
6358 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6359 Replace the architecture methods register_read and register_write.
6360 * gdbarch.h, gdbarch.c: Regenerate.
6361 * regcache.c (init_regcache_descr): Update.
6362 (read_register_gen): Update.
6363 (write_register_gen): Update.
6364 (supply_register): Update comment.
6366 * sh-tdep.c (sh_gdbarch_init): Update.
6367 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6368 `regcache' and `gdbarch' parameters. Make `buffer' a void
6369 pointer. Update code.
6370 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6371 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6372 void pointer. Update code.
6373 (sh64_register_write): Delete.
6374 (sh4_register_read): Delete.
6375 (sh64_register_read): Delete.
6376 (sh4_register_write): Delete.
6377 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6378 void pointer, `to' parameter a void pointer.
6379 (sh_sh64_register_convert_to_raw): Ditto.
6381 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6383 * mips-tdep.c (mips_register_virtual_type): Use architecture
6384 invariant return values.
6386 2002-08-01 Andrew Cagney <cagney@redhat.com>
6388 * linux-proc.c: Include "gdb_string.h".
6389 * Makefile.in (linux-proc.o): Update dependency list.
6391 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6393 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6396 2002-08-01 Grace Sainsbury <graces@redhat.com>
6398 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6399 to_insert_watchpoint, to_remove_watchpoint,
6400 to_stopped_by_watchpoint, to_stopped_data_address,
6401 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6402 target vecctor. Define their corresponding macros so they call
6405 * target.c: Add default and debug versions of for
6406 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6407 to_insert_watchpoint, to_remove_watchpoint,
6408 to_stopped_by_watchpoint, to_stopped_data_address,
6409 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6411 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6413 * mips-tdep.c (mips_register_virtual_type): New function.
6414 (mips_gdbarch_init): Register mips_register_virtual_type()
6415 with gdbarch machinery.
6416 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6417 this file instead of tm-bigmips.h.
6418 (MIPS_REGSIZE): Delete this macro.
6419 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6420 multiarch version in mips-tdep.c will be found.
6422 2002-08-01 Andrew Cagney <cagney@redhat.com>
6424 * NEWS: Menion that CHILL has been made obsolete.
6426 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6427 * stabsread.c (read_range_type): Ditto.
6428 * gdbtypes.h: Ditto.
6429 * language.c (binop_type_check): Ditto.
6430 (binop_result_type): Ditto.
6431 (integral_type): Ditto.
6432 (character_type): Ditto.
6433 (string_type): Ditto.
6434 (boolean_type): Ditto.
6435 (structured_type): Ditto.
6436 (lang_bool_type): Ditto.
6437 (binop_type_check): Ditto.
6438 * language.h (_LANG_chill): Ditto.
6439 * dwarfread.c (set_cu_language): Ditto.
6440 * dwarfread.c (CHILL_PRODUCER): Ditto.
6441 * dwarfread.c (handle_producer): Ditto.
6442 * expression.h (enum exp_opcode): Ditto.
6443 * eval.c: Ditto for comments.
6444 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6445 * expprint.c (print_subexp): Ditto.
6446 (print_subexp): Ditto.
6447 * valops.c (value_cast): Ditto.
6448 (search_struct_field): Ditto.
6449 * value.h (COERCE_VARYING_ARRAY): Ditto.
6450 * symfile.c (init_filename_language_table): Ditto.
6451 (add_psymbol_with_dem_name_to_list): Ditto.
6452 * valarith.c (value_binop): Ditto.
6454 * valops.c (value_slice): Ditto.
6455 * symtab.h (union language_specific): Ditto.
6456 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6457 (SYMBOL_DEMANGLED_NAME): Ditto.
6458 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6459 * defs.h (enum language): Ditto.
6460 * symtab.c (got_symtab): Ditto.
6461 * utils.c (fprintf_symbol_filtered): Ditto.
6463 * ch-typeprint.c: Make file obsolete.
6464 * ch-valprint.c: Make file obsolete.
6465 * ch-lang.h: Make file obsolete.
6466 * ch-exp.c: Make file obsolete.
6467 * ch-lang.c: Make file obsolete.
6469 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6471 (TARGET_FLAGS_TO_PASS): Ditto.
6472 (CHILLFLAGS): Obsolete.
6474 (CHILL_FOR_TARGET): Obsolete.
6475 (CHILL_LIB): Obsolete.
6476 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6478 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6479 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6481 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6484 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6486 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6487 This does not change anything at the moment, but will be helpful
6488 later when full Ada support is integrated.
6490 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6492 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6495 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6497 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6498 and save it in a local variable. Use variable in later test.
6500 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6502 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6503 test. (Thanks to Daniel Jacobowitz.)
6505 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6507 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6508 (mips_abi_strings): Add "n64".
6509 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6511 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6513 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6514 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6516 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6518 * utils.c (host_pointer_to_address, address_to_host_pointer):
6519 Use gdb_assert() instead of explicit call to internal_error().
6521 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6523 * Makefile.in (rs6000-nat.o): Update dependencies.
6525 From Nicholas Duffek:
6526 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6527 (aix-thread.o): New rule.
6528 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6529 * config/powerpc/aix432.mh: New file.
6531 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6533 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6534 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6535 (fetch_core_registers, ppc_linux_supply_gregset)
6536 (ppc_linux_supply_fpregset): New functions.
6537 (ppc_linux_regset_core_fns): New.
6538 (_initialize_ppc_linux_tdep): Call add_core_fns.
6539 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6540 and ppc_linux_supply_gregset.
6541 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6542 (supply_fpregset): Call ppc_linux_supply_fpregset.
6543 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6545 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6547 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6549 * symtab.c (lookup_symbol): Demangle before lowercasing.
6551 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6553 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6555 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6556 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6557 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6558 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6560 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6561 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6562 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6563 (avr-tdep.o, mon960-rom.o): Ditto.
6564 (aout_stabs_gnu_h): Define.
6565 (symtab_h): Remove $(gdb_obstack_h).
6567 2002-07-30 Jim Blandy <jimb@redhat.com>
6569 Patch from David Carlton <carlton@math.stanford.edu>:
6570 * gdbinit.in: Move the `dir' commands that add GDB's own source
6571 directory to the search path to the end, so that the `gdb' source
6572 directory will be searched first.
6574 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6576 * gdb_obstack.h: New file.
6577 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6578 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6579 * objfiles.h: Include "gdb_obstack.h".
6580 * Makefile.in (gdb_obstack_h): Define.
6581 (symtab_h): Add $(gdb_obstack_h).
6582 (objfiles_h): Add $(gdb_obstack_h).
6584 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6585 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6586 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6587 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6588 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6589 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6590 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6591 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6593 * Makefile.in (bcache.o): Update dependencies.
6594 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6595 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6596 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6597 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6598 (stabsread.o, symfile.o, symmisc.o): Ditto.
6599 (symtab.o, typeprint.o, macroexp.o): Ditto.
6600 (macrotab.o, mdebugread.o): Ditto.
6601 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6602 (coff_ecoff_h, aout_aout64_h): Define.
6603 (aout_stabs_gnu_h, libaout_h): Define.
6605 2002-07-29 Andrew Cagney <cagney@redhat.com>
6607 * regcache.c (struct regcache_descr): Rename nr_registers to
6608 nr_cooked_registers. Revise comments describing the structure
6610 (init_regcache_descr): Update.
6611 (init_legacy_regcache_descr): Update.
6612 (read_register_gen, write_register_gen): When a cooked register in
6613 the raw register range, directly access the value from the raw
6616 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6618 * z8k-tdep.c: Do not include "obstack.h".
6619 * h8300-tdep.c, h8500-tdep.c: Ditto.
6620 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6621 * valprint.c, v850-tdep.c: Ditto.
6622 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6623 * mn10200-tdep.c: Ditto.
6625 * Makefile.in (z8k-tdep.o): Update dependencies.
6626 (m68hc11-tdep.o, valprint.o): Ditto.
6627 (v850-tdep.o, d10v-tdep.o): Ditto.
6628 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6629 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6630 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6631 (sh_opc_h, gdb_sim_sh_h): Define.
6632 (elf_sh_h, elf_bfd_h): Define.
6633 (opcode_m68hc11_h): Define.
6634 (OPCODES_SRC, OPCODES_DIR): define.
6635 (OPCODES): Use $(OPCODES_DIR).
6636 (gdb_sim_d10v_h): Rename sim_d10v_h.
6637 (gdb_sim_arm_h): Rename sim_arm_h.
6639 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6641 * utils.c (host_pointer_to_address, address_to_host_pointer):
6642 Change internal_error() message to indicate function responsible
6645 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6647 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6648 calls to local_hex_string_custom().
6650 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6652 * irix5-nat.c: Move IRIX shared library support from here...
6653 * solib-irix.c: ...to here. Revised substantially to work with
6654 generic solib framework.
6656 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6657 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6658 * mips-irix-tdep.c: New file.
6660 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6661 (mips-irix-tdep.o, solib-irix.o): New rules.
6662 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6664 * config/mips/irix6.mt (TDEPFILES): Likewise.
6665 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6667 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6669 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6670 disabled (via ``#if 0'') includes.
6672 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6674 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6675 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6676 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6677 Add support for the fpscr register.
6678 * rs6000-nat.c (regmap, fetch_inferior_registers)
6679 (store_inferior_registers, fetch_core_registers): Likewise.
6681 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6683 * rs6000-nat.c (language.h): Include.
6684 (special_regs): Delete this array.
6685 (regmap): New function.
6686 (fetch_register, store_register): Use regmap() to map gdb
6687 register numbers to ptrace register numbers. Also, use
6688 outputs from regmap() to make decisions regarding type of
6689 ptrace() call to make. In particular, don't compare against
6690 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6691 (fetch_inferior_registers, store_inferior_registers): Where
6692 possible, obtain register numbers from tdep struct. Don't
6693 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6694 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6695 (LAST_UISA_SP_REGNUM): Delete.
6697 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6699 * rs6000-nat.c (ppc-tdep.h): Include.
6700 (fetch_registers, store_register, fetch_core_registers): Don't
6701 access registers[] directly. Instead, use supply_register() or
6702 regcache_collect() as appropriate.
6703 (find_toc_address): Format hex address with local_hex_string().
6705 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6707 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6710 2002-07-24 Tom Tromey <tromey@redhat.com>
6712 * jv-exp.y: Marked all strings with _().
6713 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6715 (MethodInvocation, CastExpression, parse_number, yyerror,
6716 java_type_from_name, push_expression_name, yylex): Typo fixes.
6718 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6720 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6721 (tee_file_flush, tee_file_write, tee_file_fputs)
6722 (tee_file_isatty): New.
6723 * ui-file.h (tee_file_new): Add prototype.
6725 2002-07-24 Aidan Skinner <aidan@velvet.net>
6727 * ada-lang.c: Change k&r style function definitions to prototyped
6729 * ada-typeprint.c: Change k&r style function definitions to prototyped
6731 * ada-valprint.c: Change k&r style function definitions to prototyped
6734 2002-07-24 Andrew Cagney <cagney@redhat.com>
6736 * README: Remove reference to remote-bug.
6737 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6739 (m88k-nat.o): Delete rule.
6740 (m88k-tdep.o): Delete rule.
6741 (remote-bug.o): Delete rule.
6742 * MAINTAINERS: Mark as obsolete.
6743 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6744 * m88k-tdep.c: Make file obsolete.
6745 * config/m88k/m88k.mh: Ditto.
6746 * config/m88k/delta88v4.mh: Ditto.
6747 * config/m88k/delta88v4.mt: Ditto.
6748 * config/m88k/delta88.mt: Ditto.
6749 * config/m88k/delta88.mh: Ditto.
6750 * remote-bug.c: Ditto.
6751 * config/m88k/tm-delta88.h: Ditto.
6752 * config/m88k/nm-delta88v4.h: Ditto.
6753 * config/m88k/xm-delta88.h: Ditto.
6754 * config/m88k/xm-dgux.h: Ditto.
6755 * config/m88k/tm-m88k.h: Ditto.
6756 * config/m88k/nm-m88k.h: Ditto.
6757 * config/m88k/tm-delta88v4.h: Ditto.
6758 * m88k-nat.c: Ditto.
6759 * cxux-nat.c: Ditto.
6760 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6761 and m88*-*-* obsolete.
6762 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6765 2002-07-24 Andrew Cagney <cagney@redhat.com>
6767 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6768 constant. Same for local pointer variables.
6769 (extract_signed_integer): Ditto.
6770 * defs.h (extract_unsigned_integer): Update.
6771 (extract_signed_integer): Update.
6773 2002-07-24 Andrew Cagney <cagney@redhat.com>
6775 * regcache.c (regcache_raw_write): Change buf parameter to a
6776 constant void pointer.
6777 (regcache_raw_read): Change buf parameter to a void pointer.
6778 (legacy_write_register_gen): Change myaddr parameter a constant
6780 (supply_register): Change val parameter to a const void pointer.
6781 * regcache.h (regcache_raw_write): Update declaration.
6782 (regcache_raw_read): Update declaration.
6783 (supply_register): Update declaration.
6785 2002-07-24 Tom Tromey <tromey@redhat.com>
6787 * defs.h (gdb_readline_wrapper): Declare.
6788 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6789 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6790 * top.c (gdb_readline_wrapper): New function.
6791 (command_line_input): Use it.
6793 2002-07-24 Andrew Cagney <cagney@redhat.com>
6795 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6796 regcache_read and regcache_write.
6797 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6798 * regcache.c: Update.
6799 * sh-tdep.c (sh64_push_arguments): Update comment.
6800 (sh_pseudo_register_read): Update.
6801 (sh_pseudo_register_write): Update.
6802 (sh4_register_read): Update.
6803 (sh4_register_write): Update.
6804 (sh64_pseudo_register_read): Update.
6805 (sh64_pseudo_register_write): Update.
6806 (sh64_register_read): Update.
6807 (sh64_register_write): Update.
6808 * i386-tdep.c (i386_extract_return_value): Update.
6809 (i386_extract_struct_value_address): Update.
6810 (i386_extract_return_value): Update.
6811 * blockframe.c (generic_read_register_dummy): Update.
6812 (generic_call_dummy_register_unwind): Update
6813 * infrun.c (write_inferior_status_register): Update.
6815 2002-07-23 Jim Blandy <jimb@redhat.com>
6817 * parser-defs.h (expression_context_pc): Make this extern.
6818 (Thanks to Michael Snyder.)
6820 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6822 GDB 5.2.1 released from 5.2 branch.
6823 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6824 * README: Update to mention 5.2.1.
6826 2002-07-23 Mark Salter <msalter@redhat.com>
6828 * remote.c (remote_read_bytes): Fix check for error.
6830 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6832 * aix-thread.c (language.h): Include.
6833 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6834 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6835 Print newlines at end of debug messages.
6836 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6837 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6839 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6841 * aix-thread.c (ppc-tdep.h): Include.
6842 (special_register_p): New function.
6843 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6844 (store_regs_user_thread): Use register number information from
6845 gdbarch_tdep struct instead of hardcoded offsets relative to
6846 FIRST_UISA_SP_REGNUM.
6847 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6848 special_register_p() instead of using FPLAST_REGNUM and
6849 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6850 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6851 will be MQ's register number.
6853 2002-07-22 Michael Snyder <msnyder@redhat.com>
6855 * aix-thread.c (ops): Rename to aix_thread_ops.
6856 (base_ops): Rename to base_target.
6857 (ops_attach): Rename to aix_thread_attach.
6858 (ops_detach): Rename to aix_thread_detach.
6859 (ops_resume): Rename to aix_thread_detach.
6860 (ops_wait): Rename to aix_thread_wait.
6861 (ops_kill): Rename to aix_thread_kill.
6862 (init_ops): Rename to init_aix_thread_ops.
6863 (ops_fetch_register): Rename to aix_thread_fetch_register.
6864 (ops_store_register): Rename to aix_thread_store_register.
6865 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6866 (ops_thread_alive): Rename to aix_thread_thread_alive.
6867 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6868 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6869 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6870 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6871 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6872 (store_regs_lib): Rename to store_regs_user_thread.
6873 (store_regs_kern): Rename to store_regs_kernel_thread.
6875 2002-07-22 Michael Snyder <msnyder@redhat.com>
6877 * aix-thread.c (ops_prepare_to_store): Eliminate.
6878 (init_ops): Don't initialize ops.prepare_to_store.
6879 (store_regs_kern): Pre-fetch register buffers from child,
6880 because some registers may not be in the cache. Copy
6881 regs from register cache only if they are cached.
6882 (store_regs_lib): Copy regs from register cache only
6884 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6885 fill_gprs64): Ditto.
6887 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6889 * aix-thread.c (gdb_assert.h): Include.
6890 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6891 register sizes (from register cache) match size of buffer holding
6893 (fill_sprs32): Change parameter types to match those in the ptrace()
6895 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6896 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6898 2002-07-22 Michael Snyder <msnyder@redhat.com>
6900 * aix-thread.c (supply_sprs64): Cosmetic change.
6901 (supply_sprs32): Cosmetic change.
6902 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6903 (fill_sprs64): Use regcache_collect instead of read_register.
6904 (store_regs_lib): Use regcache_collect instead of
6905 read_register. Use fill_sprs32 instead of fill_sprs64,
6906 if debugging a 32-bit architecture.
6907 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6908 out of the register cache, instead of passing a pointer into
6909 the register cache directly to ptrace. Use regcache_collect
6910 insteaad of read_register.
6911 (ops_prepare_to_store): Use target_read_registers instead
6912 of read_register_bytes.
6914 2002-07-20 Aidan Skinner <aidan@velvet.net>
6916 * MAINTAINERS: Add self under write after approval.
6918 2002-07-20 Aidan Skinner <aidan@velvet.net>
6920 * ada-tasks.c: Change k&r style function definitions to prototyped
6923 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6925 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6926 * x86-64-tdep.c: Include "objfiles.h".
6927 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6928 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6930 2002-07-17 Michal Ludvig <michal@suse.cz>
6932 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6933 (update_context): Initialise cfa variable.
6935 2002-07-17 Michael Snyder <msnyder@redhat.com>
6937 * aix-thread.c: Shorten some long lines.
6938 Bring comments into line with code spec.
6940 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6942 * infrun.c: Re-indent using gdb_indent.sh.
6944 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6946 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6947 Leave the indentation temporarily untouched, to minimize the diffs.
6949 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6951 * stabsread.c: Make os9k sections of the code obsolete,
6953 * stabsread.h: Make os9k sections of the code obsolete.
6955 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6957 * linux-low.c (regsets_store_inferior_registers): Add free()
6958 at the end of a loop to prevent memory leak.
6959 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6960 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6961 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6963 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6965 2002-07-17 Jim Blandy <jimb@redhat.com>
6967 * macrocmd.c (info_macro_command): Remove newline from error
6970 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6972 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6973 (sh_gdbarch_init): Use it for sh-dsp.
6975 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6977 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6978 64-bit DWARF2 format.
6980 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6982 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6983 <sys/proc.h> when not available.
6985 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6987 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6988 * stabsread.c: Make os9k sections of the code obsolete.
6989 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6990 * config/i386/i386os9k.mt: Make file obsolete.
6991 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6992 (COMMON_OBS): Remove os9kread.o
6993 (SFILES): Remove os9kread.c.
6994 (os9kread.o, remote-os9k.o): Make target obsolete.
6995 * remote-os9k.c: Make file obsolete.
6996 * os9kread.c: Make file obsolete.
6999 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7001 * NEWS: Mention that the FR30 has been made obsolete.
7002 * fr30-tdep.c: Make file obsolete.
7003 * config/fr30/tm-fr30.h: Ditto.
7004 * config/fr30/fr30.mt: Ditto.
7005 * configure.tgt: Make fr30-*-elf obsolete.
7006 * MAINTAINERS: Make fr30-elf obsolete.
7008 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7010 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7011 found is not inside a section.
7013 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7015 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7017 (pdc_realloc): Use xrealloc() instead of realloc().
7019 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7021 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7022 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7023 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7026 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7028 * aix-thread.c (ptrace_check): Eliminate goto.
7029 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7032 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7034 * aix-thread.c (gdbcmd.h): Include.
7035 (DEBUG, DBG, DBG2, dbg): Eliminate.
7036 (debug_aix_thread): New static global.
7037 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7038 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7039 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7040 invocations to DBG and DBG2 macros to test against
7041 ``debug_aix_thread'' and call fprintf_unfiltered().
7042 (_initialize_aix_thread): Add new command "set debug aix-thread".
7044 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7046 From Gerhard Tonn <TON@de.ibm.com>:
7047 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7048 instead of supply_register.
7050 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7052 * dwarf2cfi.c: Include "gdb_assert.h".
7053 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7055 (update_context): Do not use __func__. Add missing ``break''.
7056 (update_context): Do not use __func__.
7058 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7060 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7061 and its setting. Set gdbarch instruction printing functions
7062 directly. For non-rs6000 case use new function
7063 gdb_print_insn_powerpc.
7064 (gdb_print_insn_powerpc): New function.
7066 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7068 * NEWS: Mention that the d30v has been marked obsolete.
7069 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7070 * configure.tgt: Mark d30v-*-* as obsolete.
7071 * d30v-tdep.c: Mark file as obsolete.
7072 * config/d30v/d30v.mt: Ditto.
7073 * config/d30v/tm-d30v.h: Ditto.
7075 2002-07-13 Aidan Skinner <aidan@velvet.net>
7077 * ada-tasks.c (add_task_entry): replace calls to
7078 malloc() with xmalloc
7079 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7081 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7082 ada_finish_decode_line_1, all_sals_for_line
7083 ada_breakpoint_rewrite): replace calls to free() with xfree()
7085 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7087 From Nicholas Duffek (with minor changes by Martin Hunt,
7088 Louis Hamilton, and Kevin Buettner):
7089 * aix-thread.c: New file.
7091 2002-07-12 Petr Sorfa <petrs@caldera.com>
7093 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7094 complaint for invalid attribute class or form.
7095 (read_func_scope): DW_AT_frame_base
7096 better handling of DW_AT_block*.
7097 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7098 better handling of DW_AT_block*.
7099 (read_common_block): DW_AT_location
7100 better handling of DW_AT_block*.
7101 (read_partial_die): DW_AT_location better handling
7103 (new_symbol): DW_AT_external better handling of
7104 DW_AT_block*. Proper initialization of variable
7106 (attr_form_is_block): New function that returns true
7107 if the attribute's form is of DW_FORM_block*.
7109 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7111 * valops.c (find_method_list): Remove comment about
7112 removed STATIC_MEMFUNCP argument.
7113 (value_find_oload_method_list): Likewise.
7115 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7117 From Nicholas Duffek:
7118 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7119 target_new_objfile_hook.
7121 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7123 From Nicholas Duffek:
7124 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7127 2002-07-12 Andrew Cagney <cagney@redhat.com>
7129 * MAINTAINERS: Mention --enable-sim-build-warnings.
7130 (m68hc11-elf): Disable sim build warnings.
7131 (m32r-elf): Mark as broken obsolete candidate.
7132 (x86_64-linux-gnu): Mark as buildable with -Werror.
7133 (arm-elf): Change -w to ``,'' which enables warnings but not
7136 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7138 * bcache.h: Update copyright.
7139 (struct bstring, struct bcache): Move definition to "bcache.c".
7140 Replaced by opaque declaration.
7141 (bcache_xfree): Replace free_bcache.
7142 (bcache_xmalloc, bcache_memory_used): Declare.
7144 * bcache.c: Update copyright.
7145 (struct bstring, struct bcache): Moved to here from "bcache.h".
7147 (bcache_xmalloc, bcache_memory_used): New functions.
7148 (bcache_xfree): Replace function free_bcache.
7150 * Makefile.in (objfiles.o): Add $(bcache_h).
7151 (objfiles_h): Remove $(bcache_h).
7152 (symfile.o): Add $(bcache_h).
7154 * symmisc.c: Update copyright.
7155 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7156 (print_objfile_statistics): Use bcache_memory_used.
7158 * symfile.c: Include "bcache.h".
7159 (reread_symbols): Use bcache_xfree.
7160 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7161 (add_psymbol_to_list): Pass psymbol_cache by value.
7162 (add_psymbol_with_dem_name_to_list): Ditto.
7164 * objfiles.h: Update copyright.
7165 (struct bcache): Declare opaque. Do not include "bcache.h".
7166 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7168 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7170 * objfiles.c: Include "bcache.h". Update copyright.
7171 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7173 (free_objfile): Use bcache_xfree.
7175 2002-07-11 Grace Sainsbury <graces@redhat.com>
7177 * monitor.c (monitor_fetch_register): Make name a constant.
7178 (monitor_store_register): Same.
7180 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7182 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7183 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7184 (finish_block) For non-function blocks, hash the symbol table. For
7185 function blocks, mark the symbol table as unhashed.
7186 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7187 (msymbol_hash_iw): Likewise.
7188 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7190 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7191 (lookup_minimal_symbol): Likewise for both.
7192 * symtab.h (struct block): Add `hashtable' flag. Comment the
7194 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7195 (ALL_BLOCK_SYMBOLS): Update.
7196 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7197 (struct symbol): Add `hash_next' pointer.
7198 * symtab.c (lookup_block_symbol): Search using the hash table when
7200 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7201 (search_symbols, find_addr_symbol): Likewise.
7203 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7204 (read_dst_symtab): Likewise.
7205 * jv-lang.c (get_java_class_symtab): Likewise.
7206 * mdebugread.c: Include "gdb_assert.h".
7207 (shrink_block): Assert that the block being modified is not hashed.
7208 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7209 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7211 (dump_symtab): Recognize hashed blocks.
7212 * printcmd.c (print_frame_args): Assert that function blocks do not
7213 have hashed symbol tables.
7214 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7215 (fill_in_ada_prototype, debug_print_block): Likewise.
7216 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7218 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7220 * stack.c (print_frame): Use result of frame_address_in_block()
7221 instead of fi->pc when evaluating symbols.
7222 (backtrace_command_1): Ditto.
7224 2002-07-11 Andrew Cagney <cagney@redhat.com>
7226 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7229 * arm-tdep.c (arm_register_name): Make return type constant.
7231 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7233 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7235 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7236 * s390-tdep.c (s390_fp_regnum): Ditto.
7237 (s390_read_fp): Ditto.
7238 (s390_pop_frame): Ditto.
7239 (_initialize_s390_tdep): Ditto.
7240 * remote.c (get_remote_state): Ditto.
7241 * procfs.c (mappingflags): Ditto.
7242 * memattr.c (_initialize_mem): Ditto.
7243 * mcore-tdep.c (mcore_pop_frame): Ditto.
7244 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7245 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7246 * language.c (set_case_str): Ditto.
7247 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7248 * frv-tdep.c (new_variant): Ditto.
7249 (frv_stopped_data_address): Ditto.
7250 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7251 (context_alloc): Ditto.
7252 (frame_state_alloc): Ditto.
7253 (unwind_tmp_obstack_init): Ditto.
7254 (unwind_tmp_obstack_free): Ditto.
7255 (cfi_read_fp): Ditto.
7256 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7257 (cris_pop_frame): Ditto.
7258 * c-lang.c (scanning_macro_expansion): Ditto.
7259 (finished_macro_expansion): Ditto.
7260 (c_preprocess_and_parse): Ditto.
7261 * gdbarch.sh: Ditto.
7262 * gdbarch.h, gdbarch.c: Regenerate.
7263 * config/mn10200/tm-mn10200.h: Adjust indentation.
7264 * target.c: Adjust indentation.
7265 * symtab.h: Adjust indentation.
7266 * stabsread.h: Adjust indentation.
7267 * remote-es.c: Adjust indentation.
7268 * os9kread.c: Adjust indentation.
7270 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7272 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7273 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7275 2002-07-10 Grace Sainsbury <graces@redhat.com>
7277 * NEWS: Mention m68k, mcore multi-arching.
7278 * MAINTAINERS: Change status of m68k, mcore to reflect
7281 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7283 * valops.c (find_overload_match): Free oload_syms.
7285 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7287 Define HAVE_SYS_PROC_H if sys/proc.h exists
7288 * configure.in: Add check for sys/proc.h
7289 * config.in: Regenerate.
7290 * configure: Regenerate.
7292 2002-07-09 Grace Sainsbury <graces@redhat.com>
7294 * config/m68k/tm-m68k.h: Remove macros wrapped in
7295 #if !GDB_MULTI_ARCH.
7297 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7299 * config.in, configure: Regenerate.
7301 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7303 * dwarf2cfi.c: Include "gcore.h".
7304 (execute_stack_op): Fix implementation of the
7305 DW_OP_deref and DW_OP_deref_size operators by letting do their
7306 lookup in the target.
7308 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7310 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7311 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7314 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7316 Fix PR gdb/595, gdb/602
7317 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7318 Don't call value_cast, just read the vtable pointer; update comments
7321 2002-07-05 Grace Sainsbury <graces@redhat.com>
7323 * config/mcore/tm-mcore.h: Remove file.
7324 * config/mcore/mcore.mt: Remove definition of TM_FILE
7325 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7327 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7329 * i386bsd-tdep.c: Include "gdb_string.h".
7331 2002-07-04 Grace Sainsbury <graces@redhat.com>
7333 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7334 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7336 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7337 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7338 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7339 (RETVAL_REGNUM): Move macros from tm-mcore.h
7340 (mcore_reg_struct_has_addr): New function.
7341 (mcore_gdbarch_init): Added initializations for the macros removed
7344 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7346 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7347 traditonal string branding within the ELF header.
7349 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7351 * symtab.c (remove_params): New function.
7352 (make_symbol_overload_list): Use it instead of cplus_demangle.
7353 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7355 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7357 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7359 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7361 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7362 and tdep->sigtramp_end.
7363 * i386obsd-nat.c: New file.
7364 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7366 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7367 Don't call get_current_frame().
7369 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7371 * i386-nat.c (child_post_startup_inferior): New function
7372 calling i386_cleanup_dregs if
7373 I386_USE_GENERIC_WATCHPOINTS is defined.
7374 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7375 conditional to acknowledge that i386-nat.c has its
7376 own child_post_startup_inferior function.
7378 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7380 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7381 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7382 instead of MAX_REGISTER_RAW_SIZE.
7383 (i386_extract_return_value, i386_extract_struct_value_address):
7384 Convert to use regcache.
7385 (i386_gdbarch_init): Set max_register_raw_size and
7386 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7387 Set extract_return_value and extract_struct_value_address instead
7388 of their deprecated variants.
7390 Convert i386 target to generic dummy frames.
7391 * i386-tdep.c: Include "symfile.h".
7392 (i386_frameless_signal_p): Consider a function to be frameless if
7393 the pc points at the first instruction of the function.
7394 (i386_frame_chain): Handle (generic) call dummies.
7395 (i386_frame_saved_pc): Likewise.
7396 (i386_frame_init_saved_regs): Remove code dealing with call
7397 dummies on the stack.
7398 (i386_push_dummy_frame): Removed.
7399 (i386_call_dummy_words): Removed.
7400 (i386_fix_call_dummy): Removed.
7401 (i386_push_return_address): New function.
7402 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7403 parameter, and don't call get_current_frame.
7404 (i386_pop_frame): New function.
7405 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7406 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7407 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7408 call_dummy_length to 0, set call_dummy_words to NULL, set
7409 sizeof_call_dummy_words to 0, set fix_call_dummy to
7410 generic_fix_call_dummy, set pc_in_call_dummy to
7411 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7412 generic_push_dummy_frame, set push_return_address to
7413 i386_push_return_address and set frame_chain_valid to
7414 generic_file_frame_chain_valid.
7416 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7418 * gdbarch.sh (struct regcache): Add opaque declaration.
7419 (EXTRACT_RETURN_VALUE): New architecture method.
7420 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7421 * gdbarch.h, gdbarch.c: Regenerate.
7422 * arch-utils.c (legacy_extract_return_value): New function.
7423 * arch-utils.h (legacy_extract_return_value): Declare.
7424 * values.c (value_being_returned): Re-enable code handling
7425 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7426 deprecated_grub_regcache_for_registers call to block handling
7427 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7428 (EXTRACT_RETURN_VALUE): Do not define.
7430 2002-07-03 Grace Sainsbury <graces@redhat.com>
7432 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7433 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7434 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7435 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7436 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7437 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7438 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7439 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7440 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7441 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7442 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7443 argument so the function fits the prototype in the architecture
7445 (mcore_pop_frame): Remove argument so the function fits the
7446 prototype. Use get_current_frame instead of the argument.
7447 (mcore_push_arguments): Change type of struct_return so the
7448 function can be used in the architecture vector.
7449 (mcore_store_struct_return): Add.
7450 (mcore_frame_init_saved_regs): Add.
7451 (mcore_gdbarch_init): Add function calls to replace the macros
7452 removed from tm-mcore.h
7454 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7456 * infcmd.c (print_return_value): Remove compatibility code calling
7457 deprecated_grub_regcache_for_registers.
7459 * values.c: Include "regcache.h".
7460 (value_being_returned): Update. Use
7461 deprecated_grub_regcache_for_registers to extract the register
7463 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7464 ``struct regcache''.
7465 * Makefile.in (values.o): Add dependency on $(regcache_h).
7467 * inferior.h (run_stack_dummy): Change type of second parameter to
7468 a ``struct regcache''.
7469 * valops.c (hand_function_call): Change type of retbuf to ``struct
7470 regcache''. Allocate using regcache_xmalloc, clean using
7471 make_cleanup_regcache_xfree.
7472 * infcmd.c (run_stack_dummy): Update. Use
7473 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7475 * regcache.c (do_regcache_xfree): New function.
7476 (make_cleanup_regcache_xfree): New function.
7477 * regcache.h (make_cleanup_regcache_xfree): Declare.
7479 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7481 * event-top.c (command_line_handler): Don't read past
7482 beginning of buffer.
7484 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7486 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7488 (varobj_create): Store frame_id for root.
7489 (varobj_gen_name): Use xasprintf.
7490 (varobj_update): Save and restore frame using get_frame_id() and
7492 (create_child): Use xasprintf.
7493 (new_root_variable): Initialize frame_id.
7494 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7495 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7496 to prevent memory leak.
7498 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7500 * valops.c (hand_function_call): Move declaration of retbuf to
7501 start of function, allocate using malloc, add a cleanup but before
7502 the inf_status cleanup, cleanup the buffer. Rename local variable
7503 old_chain to inf_status_cleanup.
7505 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7507 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7509 * cli/cli-decode.c (cmd_func_p): New function.
7510 (cmd_func): New function.
7512 * command.h: Add cmd_func() and cmd_func_p().
7514 2002-07-03 Grace Sainsbury <graces@redhat.com>
7516 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7517 (REGISTER_SIZE): Remove.
7518 (MAX_REGISTER_RAW_SIZE): Remove.
7519 (REGISTER_VIRTUAL_TYPE): Remove.
7520 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7521 (REGISTER_NAME): Remove.
7522 (USE_GENERIC_DUMMY_FRAMES): Remove.
7523 (CALL_DUMMY): Remove.
7524 (CALL_DUMMY_START_OFFSET): Remove.
7525 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7526 (CALL_DUMMY_LOCATION): Remove.
7527 (FIX_CALL_DUMMY): Remove.
7528 (CALL_DUMMY_ADDRESS): Remove.
7529 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7530 (SAVE_DUMMY_FRAME_TOS): Remove.
7531 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7532 (mcore_register_virtual_type): New function.
7533 (mcore_register_byte): New function.
7534 (mcore_register_size): New function.
7535 (mcore_register_name): New function.
7536 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7537 macros removed from tm-mcore.h.
7538 (mcore_dump_tdep): Add.
7539 (_initialize_mcore_tdep): Add gdbarch_register call.
7541 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7543 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7544 frameless_look_for_prologue, such that we actually call this
7547 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7549 * frame.h (frame_address_in_block): New function.
7551 * blockframe.c (frame_address_in_block): New function extracted
7552 from get_frame_block().
7553 (get_frame_block): Use frame_address_in_block().
7554 (block_innermost_frame): Use frame_address_in_block() to match
7555 the frame pc address against the block boundaries rather than
7556 the frame pc directly. This prevents a failure when a frame pc
7557 is actually a return-address pointing immediately after the end
7560 2002-07-02 Grace Sainsbury <graces@redhat.com>
7562 * MAINTAINERS: Add self under write after approval.
7564 2002-07-02 Grace Sainsbury <graces@redhat.com>
7566 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7567 used in architecture vector. The default is
7568 m68k_local_breakpoint_from_pc.
7569 (m68k_local_breakpoint_from_pc): Add.
7570 (enum): Add register numbers from tm-m68k.h.
7571 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7573 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7574 GDB_MULTI_ARCH_PARTIAL.
7575 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7576 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7578 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7579 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7580 to enum in m68k-tdep.c
7582 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7584 * solib-osf.c (open_map): Compute the list of shared libraries
7585 loaded by the inferior, rather than the list of libraries loaded
7586 by GDB itself. Otherwise, GDB ends up reading the symbols from
7587 the wrong shared libraries...
7589 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7591 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7592 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7594 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7596 (FRAMELESS_SIGNAL): Remove function.
7597 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7598 i386_linux_saved_pc_after_call): Removed.
7599 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7600 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7601 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7603 * i386-tdep.c (i386_frameless_signal_p): New function.
7604 (i386_frame_chain): Deal with frameless signals.
7605 (i386_sigtramp_saved_sp): New function.
7606 (i386_frame_saved_pc): Deal with frameless signals.
7607 (i386_saved_pc_after_call): Make sure the correct value is
7608 returned just after entry into a sigtramp.
7609 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7610 i386fbsd4_sc_sp_offset): New variables.
7611 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7612 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7613 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7614 similiar to what we already did for sc_pc_offset.
7615 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7618 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7620 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7622 * config/i386/tm-x86-64linux.h: New.
7623 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7625 * config/i386/nm-x86-64.h: Rename to ...
7626 * config/i386/nm-x86-64linux.h: ... this one.
7627 * config/i386/x86-64linux.mh: Reflect the above change.
7629 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7631 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7632 with sigcontext_addr. Add sc_sp_offset.
7633 (i386bsd_sigtramp_saved_pc): Remove prototype.
7634 (i386bsd_sicontext_addr): Add prototype.
7635 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7636 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7637 (i386_svr4_sigtramp_saved_pc): Removed.
7638 (i386_svr4_sigcontext_addr): New function.
7639 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7640 Initialize tdep->sigcontext_addr instead. Initialize
7641 tdep->sc_pc_offset and tdep->sc_sp_offset.
7642 (i386_gdbarch_init): Likewise.
7643 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7645 (i386bsd_sigtramp_saved_pc): Remove function.
7646 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7647 Initialize tdep->sigcontext_addr instead. Initialize
7649 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7650 of tdep->sigtramp_saved_pc.
7651 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7652 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7655 * i386-tdep.c (i386_frameless_function_invocation,
7656 i386_frame_num_args, i386_frame_init_saved_regs,
7657 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7658 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7659 i386_extract_return_value, i386_store_return_value,
7660 i386_extract_struct_value_address, i386_register_virtual_type,
7661 i386_register_convertible, i386_register_convert_to_virtual,
7662 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7663 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7666 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7668 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7670 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7671 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7672 this macro. Include "value.h".
7674 2002-06-30 Aidan Skinner <aidan@velvet.net>
7676 * ada-exp.tab.c: remove as it's a generated file
7677 * ada-lex.c: remove as it's a generated file
7679 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7681 * config/i386/tm-i386.h (struct frame_info, struct
7682 frame_saved_regs, struct value, struct type): Remove forward
7685 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7686 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7687 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7688 (FILL_FPXREGSET): Define.
7690 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7692 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7693 i[3456]86-*-netbsd* case.
7694 * config/i386/tm-obsd.h: Removed.
7695 * config/i386/obsd.mt: Removed.
7696 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7698 (MH_CFLAGS): Add -DYYDEBUG=0.
7700 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7701 i386nbsd_sc_pc_offset on OpenBSD too.
7703 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7704 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7705 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7707 * i386bsd-tdep.c: Include "arch-utils.h".
7708 (i386bsd_aout_in_solib_call_trampoline): New function.
7709 (i386bsd_init_abi): Set in_solib_call_trampoline to
7710 i386bsd_aout_in_solib_call_trampoline.
7711 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7712 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7714 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7716 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7717 (struct obstack, struct bcache): Add opaque declarations.
7718 * Makefile.in (macrotab_h): Update
7720 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7722 * blockframe.c (generic_find_dummy_frame): Change return type to
7723 ``struct regcache''.
7724 (struct dummy_frame): Replace field ``registers'' with regcache, a
7725 struct regcache object.
7726 (generic_find_dummy_frame): Update.
7727 (generic_push_dummy_frame): Update. Use regcache_xfree,
7728 regcache_xmalloc and regcache_cpy.
7729 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7731 (deprecated_generic_find_dummy_frame): Update.
7732 (generic_read_register_dummy): Update. Use
7733 regcache_read_as_address.
7734 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7735 (generic_get_saved_register): Update. Use regcache_read.
7737 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7739 * Makefile.in (objfiles_h): Add $(bcache_h).
7740 * objfiles.h: Include "bcache.h".
7742 * Makefile.in (symtab_h): Remove $(bcache_h).
7743 * symtab.h: Do not include "bcache.h".
7745 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7747 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7748 generic_func_frame_chain_valid.
7750 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7752 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7753 * config/i386/tm-fbsd.h: Likewise.
7755 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7757 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7758 generic_unwind_get_saved_register.
7760 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7762 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7763 * regcache.c (supply_register): Add missing argument to
7764 register_buffer call.
7766 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7768 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7769 Solaris /bin/grep does not not like it. From Peter Schauer.
7771 2002-06-26 Tom Tromey <tromey@redhat.com>
7773 * command.h (add_setshow_cmd): Declare.
7774 (add_setshow_cmd_full): Declare.
7775 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7776 returns void. Use add_setshow_cmd_full.
7777 (add_setshow_cmd_full): New function.
7778 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7779 (add_setshow_boolean_cmd): Likewise.
7781 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7783 * config/vax/tm-vax.h: Protect from multiple inclusion.
7784 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7785 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7786 * config/vax/tm-vaxbsd.h: ...here. New file.
7787 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7789 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7791 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7792 (BELIEVE_PCC_PROMOTION): Remove.
7793 (AP_REGNUM): Move to...
7794 * config/vax/nm-vax.h: ...here.
7795 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7796 (vax_breakpoint_from_pc): New function.
7797 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7798 and gdbarch_believe_pcc_promotion.
7800 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7802 * Makefile.in (vax_tdep_h): Define.
7803 (vax-tdep.o): Use $(vax_tdep_h).
7804 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7805 (vax_dump_tdep): New function.
7806 (_initialize_vax_tdep): Register vax_dump_tdep.
7807 * vax-tdep.h: Include osabi.h.
7808 (struct gdbarch_tdep): New.
7810 2002-06-26 Andrew Cagney <cagney@redhat.com>
7812 * frame.h (deprecated_generic_find_dummy_frame): Rename
7813 generic_find_dummy_frame.
7814 * blockframe.c (generic_find_dummy_frame): Make static.
7815 (deprecated_generic_find_dummy_frame): New function.
7816 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7817 generic_find_dummy_frame with deprecated_find_dummy_frame.
7818 (sh64_nofp_frame_init_saved_regs): Ditto.
7819 (sh_fp_frame_init_saved_regs): Ditto.
7820 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7821 (s390_frame_chain): Ditto.
7822 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7824 2002-06-26 Grace Sainsbury <graces@redhat.com>
7826 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7827 gdbarch vector are at the top.
7829 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7830 (FRAME_ARGS_ADDRESS): Remove.
7831 (FRAME_LOCALS_ADDRESS): Remove.
7832 (FRAME_NUM_ARGS): Remove.
7833 (FRAME_ARGS_SKIP): Remove.
7834 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7835 (m68k_gdbarch_init): Add gdbarch initializations for macros
7836 undefined in tm-m68k.h
7838 2002-06-26 Grace Sainsbury <graces@redhat.com>
7840 * monitor.h: Add the function regname to monitor_ops
7841 structure. This way NUM_REGS does not have to be a constant.
7842 * monitor.c (monitor_fetch_register): Added support for regname
7843 function. The function is called if the array regnames is NULL.
7844 (monitor_store_register): Same.
7845 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7847 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7848 cpu32bug_cmds.regname to point to new function.
7849 * abug-rom.c (abug_regname): Same as above.
7850 (init_abug_cmds): Same.
7851 * dbug-rom.c (dbug_regname): Same as above.
7852 (init_dbug_cmds): Same.
7853 * remote-est.c (est_regname): Same.
7854 (init_est_cmds): Same.
7855 * rom68k-rom.c (rom68k_regname): Same.
7856 (init_rom68k_cmds): Same.
7858 2002-06-25 Tom Tromey <tromey@redhat.com>
7860 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7862 2002-06-25 Andrew Cagney <cagney@redhat.com>
7864 * infrun.c (stop_registers): Change variable's type to ``struct
7866 (xmalloc_inferior_status): Delete function.
7867 (free_inferior_status): Delete function.
7868 (normal_stop): Use regcache_cpy.
7869 (struct inferior_status): Change type of fields ``stop_registers''
7870 and ``registers'' to ``struct regcache''.
7871 (write_inferior_status_register): Use regcache_write.
7872 (save_inferior_status): Instead of calling
7873 xmalloc_inferior_status, allocate the inf_status buffer directly.
7874 Use regcache_dup_no_passthrough and regcache_dup to save the
7876 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7877 Replace the stop_registers regcache instead of overriding it. Use
7878 regcache_xfree. Instead of calling free_inferior_status, xfree
7879 the buffer directly.
7880 (discard_inferior_status): Use regcache_xfree. Instead of calling
7881 free_inferior_status, xfree the buffer directly.
7882 (build_infrun): Use regcache_xmalloc.
7883 (_initialize_infrun): Delete redundant call to build_infrun.
7885 * Makefile.in (infcmd.o): Add $(regcache_h).
7887 * infcmd.c: Include "regcache.h".
7888 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7889 obtain the address of `stop_registers' register buffer.
7890 (print_return_value): Ditto.
7892 * inferior.h (struct regcache): Add opaque declaration.
7893 (stop_registers): Change variable's declared type to ``struct
7896 2002-06-24 Tom Tromey <tromey@redhat.com>
7898 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7899 * target.c (initialize_targets): Fixed typo in
7900 trust-readonly-sections `show' documentation.
7902 * main.c: Marked all strings with _().
7904 2002-06-24 Don Howard <dhoward@redhat.com>
7906 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7907 that means max CORE_ADDR+1.
7908 (lookup_mem_region): Ditto.
7909 (mem_info_command): Ditto.
7911 2002-06-24 Grace Sainsbury <graces@redhat.com>
7913 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7914 (REGISTER_BYTES_OK): Remove.
7915 (REGISTER_BYTES): Remove.
7916 (STORE_STRUCT_RETURN): Remove.
7917 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7918 (STORE_RETURN_VALUE): Remove.
7919 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7920 (FRAME_CHAIN): Remove.
7921 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7922 (FRAME_SAVED_PC): Remove.
7923 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7924 (m68k_store_struct_return): Add.
7925 (m68k_deprecated_extract_return_value): Add.
7926 (m68k_deprecated_extract_struct_value_address): Add.
7927 (m68k_store_return_value): Add.
7928 (m68k_frame_chain): Add.
7929 (m68k_frameless_function_invocation): Add.
7930 (m68k_frame_saved_pc): Add.
7931 (m68k_gdbarch_init): added set_gdbarch calls for new
7932 functions and deleted macros.
7934 2002-06-23 Tom Tromey <tromey@redhat.com>
7936 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7937 (ALLDEPFILES): Likewise.
7938 (udiheaders): Removed.
7939 (udip2soc.o): Likewise.
7940 (udi2go32.o): Likewise.
7942 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7944 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7946 * infrun.c (_initialize_infrun): Delete unnecessary call to
7949 * regcache.h: Update comments describing the regcache_cpy family
7951 (regcache_save, regcache_restore): Delete declaration.
7952 (regcache_save_no_passthrough): Delete declaration.
7953 (regcache_restore_no_passthrough): Delete declaration.
7954 * regcache.c (regcache_save): Delete function.
7955 (regcache_save_no_passthrough): Delete function.
7956 (regcache_restore): Delete function.
7957 (regcache_restore_no_passthrough): Delete function.
7959 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7961 * config/m68k/tm-m68k.h: Fix typo.
7962 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7963 (m68k_frame_init_saved_regs): Declare.
7965 2002-06-21 Jim Blandy <jimb@redhat.com>
7967 Remove some vestiges of Harris 88k support.
7968 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7969 register numbering quirk.
7970 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7971 odd symbols occurring in Harris 88k ELF targets.
7973 2002-06-21 Tom Tromey <tromey@redhat.com>
7975 * gdb_locale.h: New file.
7976 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7977 (defs_h): Added gdb_locale.h.
7978 * configure, config.in: Rebuilt.
7979 * configure.in (PACKAGE): Define.
7980 * defs.h: Include gdb_locale.h.
7981 * main.c (captured_main): Call setlocale, bindtextdomain,
7984 2002-06-21 Dave Brolley <brolley@redhat.com>
7986 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7987 * config/frv/frv.mt: New file.
7988 * config/frv/tm-frv.h: New file.
7989 * configure.tgt: Support frv-*-*.
7990 * Makefile.in (frv-tdep.o): New target.
7991 * frv-tdep.c: New file.
7992 * NEWS: Mention frv.
7994 2002-06-21 Dave Brolley <brolley@redhat.com>
7996 * MAINTAINERS: Add self to "Write After Approval" list.
7998 2002-06-21 Grace Sainsbury <graces@redhat.com>
8000 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8001 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8002 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8003 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8004 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8006 * m68k-tdep.c: Include arch-utils.h
8007 (m68k_register_raw_size): Add.
8008 (m68k_register_virtual_size): Add.
8009 (m68k_register_virtual_type): Add.
8010 (m68k_register_name): Add.
8011 (m68k_stack_align): Add.
8012 (m68k_register_byte): Add.
8013 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8016 2002-06-21 Grace Sainsbury <graces@redhat.com>
8018 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8019 m68k_find_saved_regs.
8020 (m68k_pop_frame): Removed saved_regs structure, and replaced
8021 references to it with frame->saved_regs.
8022 (m68k_gdbarch_init): Added function calls to initialize the
8024 (m68k_fix_call_dummy): Add.
8025 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8026 (CALL_DUMMY): Remove.
8027 (CALL_DUMMY_LENGTH): Remove.
8028 (CALL_DUMMY_START_OFFSET): Remove.
8029 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8030 (FIX_CALL_DUMMY): Remove.
8031 (PUSH_DUMMY_FRAME): Remove.
8032 (POP_FRAME): Remove.
8034 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8036 * parse.c (parse_fprintf): New function used to avoid calls to
8037 fprintf in bison parser generated debug code.
8038 * parser-defs.h: Declaration of new parse_fprintf function.
8039 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8040 Set YYDEBUG to 1 by default.
8041 Set YYFPRINTF as parse_fprintf.
8043 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8045 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8047 (pointer_encoding, enum ptr_encoding): New.
8048 (execute_cfa_program): Take care about pointer encoding.
8049 (dwarf2_build_frame_info): Only call parse_frame_info for
8050 .debug_frame and .eh_frame.
8051 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8052 fixed augmentation handling, added relative addressing,
8053 ignore duplicate FDEs. Added comments.
8054 * dwarf2cfi.c: Reindented.
8056 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8058 * event-top.c (command_handler): Don't use space_at_cmd_start
8059 unless there is sbrk() on the host. Assign time and space data
8060 to union fields of the appropriate length.
8062 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8064 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8065 x86_64_register_name. Return type changed to 'const char *'.
8066 (x86_64_register_name2nr): Rename to x86_64_register_number.
8067 (x86_64_gdbarch_init): Update to reflect the change.
8068 * x86-64-tdep.h: Ditto.
8069 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8070 (supply_fpregset): Ditto.
8072 2002-06-19 Andrew Cagney <cagney@redhat.com>
8074 * regcache.h: Update copyright.
8075 (struct regcache, struct gdbarch): Add opaque declarations.
8076 (current_regcache): Declare global variable.
8077 (regcache_read, regcache_write): Add gdbarch parameter.
8078 (regcache_save, regcache_save_no_passthrough)
8079 (regcache_restore, regcache_restore_no_passthrough)
8080 (regcache_dup, regcache_dup_no_passthrough)
8081 (regcache_cpy, regcache_cpy_no_passthrough)
8082 (deprecated_grub_regcache_for_registers)
8083 (deprecated_grub_regcache_for_register_valid)
8084 (regcache_valid_p): Add function declarations.
8086 * regcache.c: Update copyright.
8087 (regcache_descr_handle): New global variable.
8088 (struct regcache_descr): Define.
8089 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8090 (regcache_descr, xfree_regcache_descr): New functions.
8091 (struct regcache): Define.
8092 (regcache_xmalloc, regcache_xfree): New functions.
8093 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8094 (regcache_dup, regcache_dup_no_passthrough): New functions.
8095 (regcache_valid_p, regcache_read_as_address): New functions.
8096 (deprecated_grub_regcache_for_registers): New function.
8097 (deprecated_grub_regcache_for_register_valid): New function.
8098 (current_regcache): New global variable.
8099 (register_buffer): Add regcache parameter. Update calls.
8100 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8101 (read_register_gen, write_register_gen): Update register_buffer
8102 call. Test for legacy_p instead of gdbarch_register_read_p or
8103 gdbarch_register_write_p.
8104 (regcache_collect): Update register_buffer call.
8105 (build_regcache): Rewrite. Use deprecated grub functions.
8106 (regcache_save, regcache_save_no_passthrough): New functions.
8107 (regcache_restore, regcache_restore_no_passthrough): New
8109 (_initialize_regcache): Create the regcache_data_handle. Swap
8110 current_regcache global variable.
8112 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8113 parameter to regcache_read and regcache_write calls.
8114 (sh4_register_read): Ditto.
8115 (sh64_pseudo_register_read): Ditto.
8116 (sh64_register_read): Ditto.
8117 (sh_pseudo_register_write): Ditto.
8118 (sh4_register_write): Ditto.
8119 (sh64_pseudo_register_write): Ditto.
8120 (sh64_register_write): Ditto.
8122 * defs.h (XCALLOC): Define.
8124 2002-06-19 Grace Sainsbury <graces@redhat.com>
8126 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8127 * m68k-tdep.c (m68k_gdbarch_init): Added.
8128 (m68k_dump_tdep): Added.
8130 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8132 * ada-lang.c (fill_in_ada_prototype): Update comment.
8134 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8136 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8138 (mips_abi_string, mips_abi_strings): New.
8139 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8140 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8141 tdep->mips_abi_string. Honor mips_abi_string. Default to
8142 O32 if no ABI is found.
8143 (mips_dump_tdep): Use mips_abi_strings.
8144 (mips_abi_update): New function.
8145 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8146 ``set mips abi'' and ``show mips abi''. Check the size of
8149 2002-06-19 Andrew Cagney <cagney@redhat.com>
8151 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8154 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8156 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8157 current frame using only the first stack size adjustment. All
8158 subsequent size adjustments are not considered to be part of
8159 the "static" part of the current frame.
8160 Compute the address of the saved registers relative to the
8161 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8162 in use in this frame.
8164 2002-06-18 Don Howard <dhoward@redhat.com>
8166 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8167 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8168 suggesting this solution.
8170 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8172 * config/romp/xm-rtbsd.h: Delete file.
8173 * config/romp/rtbsd.mh: Delete file.
8175 2002-06-18 Keith Seitz <keiths@redhat.com>
8177 * breakpoint.c (condition_command): Post breakpoint_modify
8178 when a condition is added to an existing breakpoint.
8179 (commands_command): Likewise for commands.
8180 (set_ignore_count): Likewise for ignore counts.
8181 If no tty, do not simply return, still need to send event
8183 (ignore_command): Only print a newline if the command came
8185 Don't call breakpoints_changed, since this is now properly
8186 handled by set_ignore_count.
8188 2002-06-18 Andrew Cagney <cagney@redhat.com>
8190 * MAINTAINERS: Note that cris-elf target can be compiled with
8192 * cris-tdep.c (cris_register_name): Make return type constant.
8193 (cris_breakpoint_from_pc): Ditto.
8195 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8197 * frame.h (struct frame_info): Change type of context to
8200 2002-06-17 Andrew Cagney <cagney@redhat.com>
8202 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8204 * gdbarch.h, gdbarch.c: Regenerate.
8205 * config/mips/tm-mips.h (mips_register_name): Update.
8206 * i386-tdep.h (i386_register_name): Update.
8207 * mips-tdep.c (mips_register_name): Update
8208 * alpha-tdep.c (alpha_register_name): Update.
8209 * arch-utils.c (legacy_register_name): Update.
8210 * arch-utils.h (legacy_register_name): Update.
8211 * avr-tdep.c (avr_register_name): Update.
8212 * ia64-tdep.c (ia64_register_name): Update.
8213 * i386-tdep.c (i386_register_name): Update.
8214 * sparc-tdep.c (sparc32_register_name): Update.
8215 (sparc64_register_name): Update.
8216 (sparclite_register_name): Update.
8217 (sparclet_register_name): Update.
8218 * sh-tdep.c (sh_generic_register_name): Update.
8219 (sh_sh_register_name): Update.
8220 (sh_sh3_register_name): Update.
8221 (sh_sh3e_register_name): Update.
8222 (sh_sh_dsp_register_name): Update.
8223 (sh_sh3_dsp_register_name): Update.
8224 (sh_sh4_register_name): Update.
8225 (sh_sh64_register_name): Update.
8226 * s390-tdep.c (s390_register_name): Update.
8227 * rs6000-tdep.c (rs6000_register_name): Update.
8228 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8229 (ns32k_register_name_32382): Update.
8230 * d10v-tdep.c (d10v_ts2_register_name): Update.
8231 (d10v_ts3_register_name): Update.
8232 * xstormy16-tdep.c (xstormy16_register_name): Update.
8233 * vax-tdep.c (vax_register_name): Update.
8234 * v850-tdep.c (v850_register_name): Update.
8235 * m68hc11-tdep.c (m68hc11_register_name): Update.
8236 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8237 (am33_register_name): Update.
8239 2002-06-17 Grace Sainsbury <graces@redhat.com>
8241 * m68k-tdep.c: Reindented.
8243 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8245 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8246 list of predefined types.
8248 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8250 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8251 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8252 REGISTER_CONVERT_TO_RAW): Remove defines.
8253 (i386_register_virtual_type, i386_register_convertible,
8254 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8256 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8257 macros mentioned above.
8259 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8260 (i386lynx_saved_pc_after_call): Remove prototype.
8261 * i386ly-tdep.c: Include "i386-tdep.h".
8262 (i386lynx_saved_pc_after_call): Make static. Use
8263 read_memory_nobpt instead of read_memory. Use
8264 read_memory_unsigned_integer instead of read_memory_integer.
8265 (i386lynx_init_abi): New function.
8266 (i386lynx_coff_osabi_sniffer): New function.
8267 (_initialize_i386bsd_tdep): New function.
8269 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8270 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8271 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8272 (i386_fix_call_dummy): Remove prototype.
8273 * i386-tdep.c (i386_call_dummy_words): New variable.
8274 (i386_gdbarch_init): Adjust for removal of the
8275 macros mentioned above.
8277 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8279 * command.h (add_setshow_auto_boolean_cmd): Replace
8280 add_set_auto_boolean_cmd.
8281 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8282 add_set_auto_boolean_cmd.
8283 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8284 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8285 mask-address'' command.
8286 (show_mask_address): Add cmd parameter.
8287 * remote.c (add_packet_config_cmd): Update. Change type of
8288 set_func and show_func to cmd_sfunc_ftype.
8289 (_initialize_remote): Update `set remote Z-packet'
8290 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8291 (show_remote_protocol_e_packet_cmd): Ditto.
8292 (show_remote_protocol_E_packet_cmd): Ditto.
8293 (show_remote_protocol_P_packet_cmd): Ditto.
8294 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8295 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8296 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8297 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8298 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8299 (show_remote_protocol_Z_packet_cmd): Ditto.
8300 (show_remote_protocol_binary_download_cmd): Ditto.
8301 (show_remote_cmd): Pass NULL to all of above.
8303 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8305 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8306 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8307 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8308 POP_FRAME): Remove defines.
8309 (i386_push_arguments, i386_store_struct_return,
8310 i386_extract_return_value, i386_store_return_value,
8311 i386_extract_struct_value_address, i386_push_dummy_frame,
8312 i386_pop_frame): Renove prototypes.
8313 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8314 macros mentioned above.
8316 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8318 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8319 add_set_boolean_cmd.
8320 (add_setshow_cmd): New function.
8321 * command.h (add_setshow_boolean_cmd): Replace
8322 add_set_boolean_cmd.
8323 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8324 and ``set rdiromatzero''.
8325 * maint.c (_initialize_maint_cmds): Update commented out code.
8326 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8327 * target.c (initialize_targets): Update `set
8328 trust-readonly-sections'.
8329 * remote.c (_initialize_remote): Update `set remotebreak'.
8331 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8333 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8334 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8335 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8336 fit into multi-arch framework.
8337 (i386_breakpoint_from_pc): New function.
8338 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8341 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8342 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8343 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8344 (i386_frameless_function_invocation, i386_frame_num_args,
8345 i386_frame_init_saved_regs): Remove prototypes.
8346 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8347 macros mentioned above.
8349 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8351 * cli/cli-decode.c (set_cmd_cfunc): Update.
8352 (set_cmd_sfunc): Update.
8353 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8354 (set_cmd_sfunc, set_cmd_cfunc): Update.
8355 * cli/cli-decode.h: Update.
8357 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8359 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8360 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8362 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8364 * defs.h (auto_boolean): Declare enum.
8365 * command.h (cmd_auto_boolean): Delete enum.
8366 * mips-tdep.c (mask_address_var): Update.
8367 (mips_mask_address_p): Update.
8368 (show_mask_address): Update.
8369 * remote.c (struct packet_config): Update.
8370 (update_packet_config): Update.
8371 (show_packet_config_cmd): Update.
8372 (packet_ok): Update.
8373 (add_packet_config_cmd): Update.
8374 (_initialize_remote):
8375 * command.h: Update.
8376 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8377 (do_setshow_command): Update.
8378 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8379 * cli/cli-decode.h: Update.
8381 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8383 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8384 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8385 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8386 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8387 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8388 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8390 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8391 list of DJGPP COFF targets.
8393 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8394 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8395 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8396 (FP0_REGNUM): Remove define.
8397 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8398 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8399 (i386_register_virtual_size): Remove protoype.
8400 * i386-tdep.c (i386_register_virtual_size): Removed.
8401 (i386_extract_return_value, i386_store_return_value): Use
8402 FP0_REGNUM instead of NUM_FREGS to determine whether the
8403 floating-point registers are available.
8404 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8405 Adjust for removal of macros mentioned above.
8407 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8409 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8411 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8413 (supply_gregset, fill_gregset): Remove use of register keyword and
8414 remove declaration for regmap. Use I386_NUM_GREGS instead of
8415 NUM_REGS and NUM_FREGS.
8416 (FPREGSET_FSAVE_OFFSET): Remove.
8417 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8418 NUM_FREGS to determine whether the floating-point registers are
8421 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8422 gnu_store_registers): Replace usage of NUM_GREGS with
8425 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8426 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8427 usage of NUM_GREGS with I386_NUM_GREGS.
8429 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8431 * i386bsd-nat.c: Include "i386-tdep.h".
8432 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8435 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8436 and associated comment. They no longer make any sense, since we
8437 don't use this file anymore on Linux.
8439 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8440 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8441 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8442 elements in these arrays.
8443 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8446 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8448 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8449 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8451 2002-06-14 Andrew Cagney <cagney@redhat.com>
8453 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8454 EXTRACT_RETURN_VALUE.
8455 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8456 EXTRACT_STRUCT_VALUE_ADDRESS.
8457 * gdbarch.h, gdbarch.c: Regenerate.
8459 * values.c (value_being_returned): Handle
8460 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8461 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8463 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8464 * arm-tdep.c (arm_gdbarch_init): Update.
8465 * avr-tdep.c (avr_gdbarch_init): Update.
8466 * cris-tdep.c (cris_gdbarch_init): Update.
8467 * d10v-tdep.c (d10v_gdbarch_init): Update.
8468 * ia64-tdep.c (ia64_gdbarch_init): Update.
8469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8470 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8471 * s390-tdep.c (s390_gdbarch_init): Update.
8472 * sh-tdep.c (sh_gdbarch_init): Update.
8473 * s390-tdep.c (s390_gdbarch_init): Update.
8474 * sparc-tdep.c (sparc_gdbarch_init): Update.
8475 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8476 * v850-tdep.c (v850_gdbarch_init): Update.
8477 * vax-tdep.c (vax_gdbarch_init): Update.
8478 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8481 * config/arc/tm-arc.h: Update.
8482 * config/d30v/tm-d30v.h: Update.
8483 * config/fr30/tm-fr30.h: Update.
8484 * config/h8300/tm-h8300.h: Update.
8485 * config/h8500/tm-h8500.h: Update.
8486 * config/i386/tm-i386.h: Update.
8487 * config/i386/tm-ptx.h: Update.
8488 * config/i386/tm-symmetry.h: Update.
8489 * config/i960/tm-i960.h: Update.
8490 * config/m32r/tm-m32r.h: Update.
8491 * config/m68k/tm-delta68.h: Update.
8492 * config/m68k/tm-linux.h: Update.
8493 * config/m68k/tm-m68k.h: Update.
8494 * config/m88k/tm-m88k.h: Update.
8495 * config/mcore/tm-mcore.h: Update.
8496 * config/mips/tm-mips.h: Update.
8497 * config/mn10200/tm-mn10200.h: Update.
8498 * config/pa/tm-hppa.h: Update.
8499 * config/pa/tm-hppa64.h: Update.
8500 * config/sparc/tm-sp64.h: Update.
8501 * config/sparc/tm-sparc.h: Update.
8502 * config/sparc/tm-sparclet.h: Update.
8503 * config/z8k/tm-z8k.h: Update.
8505 2002-06-14 Andrew Cagney <cagney@redhat.com>
8507 * Makefile.in (i386_linux_tdep_h): Define.
8508 (i386_tdep_h, i387_tdep_h): Define.
8509 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8510 $(i386_tdep_h) and $(i387_tdep_h).
8511 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8513 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8515 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8516 Already covered by the default.
8518 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8519 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8520 (i386_gdbarch_init): Initialize long_double_format and long_double
8523 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8524 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8526 * config/i386/i386sol2.mh: ... here.
8527 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8528 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8529 (SIGCONTEXT_PC_OFFSET): Remove define.
8530 (IN_SIGTRAMP): Remove define.
8531 * i386-sol2-tdep.c: New file.
8533 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8534 * config/i386/tm-i386nw.h: Removed.
8536 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8537 USE_STRUCT_CONVENTION): Remove defines.
8538 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8539 (get_longjmp_target): Remove prototype.
8540 (IN_SIGTRAMP): Remove define.
8541 (i386bsd_in_sigtramp): Remove prototype.
8542 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8543 function. Update comment accordingly
8544 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8545 (FRAME_SAVED_PC): Remove define.
8546 (i386bsd_frame_saved_pc): Remove prototype.
8547 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8548 GET_LONGJMP_TARGET): Remove defines.
8549 (get_longjmp_target): Remove prototype.
8550 (IN_SIGTRAMP): Remove define.
8551 (i386bsd_in_sigtramp): Remove prototype.
8552 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8553 function. Update comment accordingly
8554 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8555 (FRAME_SAVED_PC): Remove define.
8556 (i386bsd_frame_saved_pc): Remove prototype.
8557 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8559 (USE_STRUCT_CONVENTION): Remove prototype.
8560 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8562 (_initialize_i386bsd_nat): Revise logic to determine some
8563 constants at compile time when compiling a native GDB. Warn if
8564 things don't match up with what we expect.
8565 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8567 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8568 to use date stored in `struct gdbarch_tdep'.
8569 (i386bsd_sigcontext_offset): Remove varaible.
8570 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8571 stored in `struct gdbarch_tdep'.
8572 (i386bsd_frame_saved_pc): Make static.
8573 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8574 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8575 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8576 i386fbsd4_sc_pc_offset): New variables.
8577 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8578 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8580 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8582 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8583 Modify the value of i386fbsd_sigtramp_start and
8584 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8585 i386fbsd_sigtramp_end.
8586 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8589 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8590 define to i386-linux-tdep.h.
8591 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8592 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8594 (i386_linux_register_name, i386_linux_register_byte,
8595 i386_linux_register_raw_size): Remove prototypes.
8596 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8597 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8598 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8599 TARGET_WRITE_PC): Remove defines.
8600 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8601 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8602 i386_linux_write_pc): Remove prototypes.
8603 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8604 (get_longjmp_target): Remove prototype.
8605 * i386-linux-tdep.h: New file.
8606 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8607 * i386-linux-tdep.c: Include "i386-tdep.h" and
8608 "i386-linux-tdep.h".
8609 (i386_linux_register_name, i386_linux_register_byte,
8610 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8611 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8613 (i386_linux_init_abi): New function.
8614 (_initialize_i386_linux_tdep): New function.
8616 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8617 (i386_saved_pc_after_call): Remove prototype.
8618 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8619 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8620 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8621 (i386_register_name, i386_stab_reg_to_regnum,
8622 i386_dwarf_reg_to_regnum): Remove prototypes.
8623 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8624 SIZEOF_SSE_REGS): Remove defines.
8625 (REGISTER_BYTES): Remove define.
8626 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8627 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8628 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8629 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8630 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8631 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8632 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8633 (get_longjmp_target): Remove prototype.
8634 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8635 (sigtramp_saved_pc): Remove define.
8636 (i386v4_sigtramp_saved_pc): Remove prototype.
8637 * config/i386/tm-go32.h (FRAME_CHAIN,
8638 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8639 (i386go32_frame_saved_pc): Remove prototype.
8640 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8641 (get_longjmp_target): Remove prototype.
8642 * i386-tdep.h: Include "osabi.h".
8643 (enum i386_abi): Removed.
8644 (enum struct_return): New enum.
8645 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8646 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8647 sc_pc_offset members.
8648 (i386_gdbarch_register_os_abi): Remove prototype.
8649 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8650 I386_SSE_NUM_REGS): New defines.
8651 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8652 I386_SSE_SIZEOF_REGS): New defines.
8653 (i386_register_name, i386_register_byte, i386_register_raw_size):
8655 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8656 (i386bsd_sigtramp_saved_pc): New prototype.
8657 * i386-tdep.c: Don't include "elf-bfd.h".
8658 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8659 i386_frame_chain, i386_saved_pc_after_call): Make static.
8660 (i386_frame_saved_pc): Rewrite to call architecture dependent
8661 function to deal with signal handlers. Make static.
8662 (i386go32_frame_saved_pc): Removed.
8663 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8665 (i386_get_longjmp_target): New function.
8666 (default_struct_convention, pcc_struct_convention,
8667 reg_struct_convention, valid_conventions, struct_convention): New
8669 (i386_use_struct_convention): New function.
8670 (i386v4_sigtramp_saved_pc): Renamed to
8671 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8672 (i386_pc_in_sigtramp): New function.
8673 (i386_abi_names): Removed.
8674 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8675 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8677 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8678 i386_gdbarch_register_os_abi): Removed.
8679 (struct i386_abi_handler): Removed.
8680 (i386_abi_handler_list): Removed.
8681 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8683 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8684 i386_nw_init_abi): New functions.
8685 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8686 Use set_gdbarch_xxx() calls instead of relying on macros for a
8688 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8689 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8690 Register the various architecture variants defined in this file.
8692 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8694 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8695 (struct main_type): Remove arg_types member. Update comments for
8697 (TYPE_ARG_TYPES): Remove.
8698 (TYPE_FN_FIELD_ARGS): Update.
8699 (smash_to_method_type): Update prototype.
8701 * c-typeprint.c (cp_type_print_method_args): Take method type
8702 instead of argument list. Use new argument layout. Simplify.
8703 (c_type_print_args): Use new argument layout. Simplify.
8704 (c_type_print_base): Update call to cp_type_print_method_args.
8705 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8706 argument; use die->type instead. Update call to
8707 smash_to_method_type.
8708 (read_structure_scope): Update call to dwarf2_add_member_fn.
8709 * gdbtypes.c (allocate_stub_method): Update comment.
8710 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8711 Use new argument layout.
8712 (check_stub_method): Use new argument layout. Don't count
8713 void as an argument.
8714 (print_arg_types): Update comments. Use new argument layout.
8715 (recursive_dump_type): Don't print arg_types member.
8716 * hpread.c (hpread_read_struct_type): Use new argument layout.
8717 (fixup_class_method_type): Likewise.
8718 (hpread_type_lookup): Likewise.
8719 * stabsread.c (read_type): Update calls to read_args and
8720 smash_to_method_type.
8721 (read_args): Use new argument layout. Simplify.
8722 * valops.c (typecmp): Use new argument layout. Update parameters
8723 and comments. Simplify.
8724 (hand_function_call): Use new argument layout.
8725 (search_struct_method): Update call to typecmp.
8726 (find_overload_match): Use new argument layout.
8728 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8730 * NEWS: Mention multithreaded debug support for gdbserver.
8732 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8734 * MAINTAINERS: Mention NEWS.
8736 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8738 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8739 (struct mips_objfile_private, compare_pdr_entries): New.
8740 (non_heuristic_proc_desc): Read the ".pdr" section if it
8743 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8745 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8746 (arm_debug): New static variable.
8747 (_initialize_arm_tdep): Add ``set debug arm'' command.
8749 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8751 * Makefile.in (sim_arm_h): Define.
8752 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8753 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8754 (arm_register_sim_regno): New function, map an internal REGNUM
8755 onto a simulator register number.
8756 (arm_gdbarch_init): Set register_sim_regno.
8758 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8760 * MAINTAINERS: Add self.
8762 2002-06-11 Jim Blandy <jimb@redhat.com>
8764 * source.c (source_info): Mention whether the symtab has
8765 information about preprocessor macros.
8767 Call the command `info macro', not `show macro'.
8768 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8770 (_initialize_macrocmd): Register `info_macro_command' in
8771 `infolist', not `showlist'.
8773 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8775 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8776 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8777 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8778 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8779 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8781 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8782 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8783 (_initialize_mips_tdep): Remove dead code.
8784 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8785 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8786 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8787 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8788 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8789 MIPS_LAST_FP_ARG_REGNUM): Remove.
8791 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8793 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8794 (unwind_tmp_obstack_free, parse_frame_info)
8795 (update_context, cfi_read_fp, cfi_write_fp)
8796 (cfi_frame_chain, cfi_init_extra_frame_info)
8797 (cfi_virtual_frame_pointer): Use the above function.
8798 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8800 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8802 * v850-tdep.c (v850_type_is_scalar): New function.
8803 (v850_use_struct_convention): Match current gcc implementation
8804 as close as possible.
8805 (v850_push_arguments): Fix stack_offset handling. Don't write
8806 struct_addr into register. This is done by v850_store_struct_return.
8807 (v850_extract_return_value): Care for structs.
8808 (v850_store_return_value): Ditto.
8809 (v850_store_struct_return): Actually write address.
8811 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8813 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8814 without debug information too.
8816 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8818 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8819 Make multi-arch pure.
8820 * gdbarch.h, gdbarch.c: Re-generate.
8821 * arm-tdep.c (arm_print_float_info): Update.
8822 * arch-utils.h (default_print_float_info): Update.
8823 * arch-utils.c (default_print_float_info): Update.
8824 * infcmd.c (float_info): Update call.
8826 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8828 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8829 the front of the initialize list.
8831 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8833 * infrun.c (struct inferior_status): Replace fields
8834 selected_frame_address and selected_level with field
8836 (save_inferior_status): Update. Use get_frame_id.
8837 (struct restore_selected_frame_args): Delete.
8838 (restore_selected_frame): Update. Use frame_find_by_id.
8839 (restore_inferior_status): Update.
8841 * breakpoint.h (struct breakpoint): Change type of
8842 watchpoint_frame to frame_id.
8843 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8844 call to get_current_frame.
8845 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8847 (watchpoint_check): Use frame_find_by_id.
8849 * frame.h (record_selected_frame): Delete declaration.
8850 * stack.c (record_selected_frame): Delete function.
8852 * frame.h (struct frame_id): Define.
8853 (get_frame_id): Declare.
8854 (frame_find_by_id): Declare.
8855 * frame.c (frame_find_by_id): New function.
8856 (get_frame_id): New function.
8858 2002-06-10 Andrey Volkov <avolkov@transas.com>
8860 * ser-e7kpc.c: Fix duplicated define and call of
8861 _initialize_ser_e7000pc
8863 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8865 * signals/signals.c (target_signal_from_host): Fix #ifdef
8867 (do_target_signal_to_host): Likewise.
8869 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8871 * mips-tdep.c (mips_find_abi_section): New function.
8872 (mips_gdbarch_init): Call it.
8874 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8876 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8877 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8878 after Andrew's 2002-06-08 gdbarch change.
8880 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8882 * i386-linux-nat.c (suppy_gregset): Don't supply
8883 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8885 (fill_gregset): Don't fetch it under the same circumstances.
8887 2002-06-09 Andrew Cagney <cagney@redhat.com>
8889 * Makefile.in (callback_h): Define.
8890 (remote_sim_h): Update path to remote-sim.h.
8891 (remote-rdp.o): Add $(callback_h).
8892 (remote-sim.o): Use $(callback_h).
8893 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8894 * remote-rdp.c: Include "gdb/callback.h".
8896 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8898 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8899 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8901 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8903 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8904 * rdi-share/serpardr.c: Ditto.
8905 * rdi-share/unixcomm.c: Ditto.
8906 * rdi-share/serdrv.c: Ditto.
8907 * rdi-share/hostchan.h: Ditto.
8908 * rdi-share/hostchan.c: Ditto.
8909 * rdi-share/host.h: Ditto.
8910 * rdi-share/devsw.c: Ditto.
8912 * objfiles.h: Change type of obj_private to void pointer.
8913 * pa64solib.c: Update copyright. Don't include "assert.h", use
8914 strcmp instead of STREQ, use LONGEST, do not use PTR
8915 * somsolib.c: Ditto.
8917 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8918 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8919 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8921 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8923 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8924 (default_get_saved_register): Delete function.
8925 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8926 generic_unwind_get_saved_register.
8927 * gdbarch.h, gdbarch.c: Re-generate.
8929 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8931 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8932 generic_func_frame_chain_valid.
8933 * gdbarch.h, gdbarch.c: Re-generate.
8934 * blockframe.c (generic_func_frame_chain_valid): Only check
8935 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8936 passing FP to PC_IN_CALL_DUMMY.
8939 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8941 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8942 (register_gdbarch_data): Initialize init_p.
8943 (gdbarch_data): Initialize data pointer using the init function.
8944 (init_gdbarch_data): Delete function.
8945 (gdbarch_update_p): Update.
8946 (initialize_non_multiarch): Update.
8947 (struct gdbarch): Add field initialized_p.
8948 * gdbarch.h, gdbarch.c: Re-generate.
8950 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8952 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8953 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8954 better do the things actually here.
8955 * x86-64-tdep.c (x86_64_register_name2nr): New.
8956 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8957 (x86_64_gdbarch_init): Respect the above change.
8958 * x86-64-tdep.h (x86_64_register_name2nr)
8959 (x86_64_register_nr2name): Add prototypes.
8960 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8962 2002-06-06 Michael Snyder <msnyder@redhat.com>
8964 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8965 Delete extra braces and re-indent.
8966 (d10v_store_return_value): Char return values
8967 must be shifted over by one byte in R0.
8968 (d10v_extract_return_value): Delete extra braces, re-indent.
8970 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8972 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8973 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8974 (d10v_integer_to_address): Rewrite.
8975 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8976 the d10v specific functions which take care of converting to the
8979 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8981 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8982 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8984 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8986 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8988 * config/tm-linux.h: Ditto.
8989 * config/alpha/tm-alphalinux.h: Ditto.
8990 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8991 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8992 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8993 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8994 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8995 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8996 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8997 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8998 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8999 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9000 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9001 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9002 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9003 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9004 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9005 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9006 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9007 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9008 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9009 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9010 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9011 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9012 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9013 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9014 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9015 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9016 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9017 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9018 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9019 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9020 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9021 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9022 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9023 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9024 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9025 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9026 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9028 2002-05-04 Aidan Skinner <aidan@velvet.net>
9030 * ada-exp.tab.c: New file
9031 * ada-exp.y: New file
9032 * ada-lang.c: New file
9033 * ada-lang.h: New file
9034 * ada-lex.c: New file
9035 * ada-lex.l: New file
9036 * ada-tasks.c: New file
9037 * ada-typeprint.c: New file
9038 * ada-valprint.c: New file
9040 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9042 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9043 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9045 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9047 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9048 insetead of ppc-linux-tdep.o.
9049 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9050 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9052 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9054 2002-05-07 Christian Groessler <chris@groessler.org>
9055 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9056 bit register contents for little endian hosts.
9058 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9060 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9063 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9065 * gdbarch.h: Regenerate.
9067 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9069 * MAINTAINERS: Add everyone to write-after-approval list.
9071 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9073 * stack.c (frame_info): Use frame_register_unwind instead of
9074 saved_regs. Mention when the SP is on the stack or in a register.
9076 * frame.h (frame_register_unwind_ftype): Define. Document.
9077 (struct frame_info): Add field register_unwind and
9078 register_unwind_cache.
9079 (frame_register_unwind): Declare.
9080 (generic_unwind_get_saved_register): Declare.
9082 * frame.c (frame_register_unwind): New function.
9083 (generic_unwind_get_saved_register): New function.
9085 * blockframe.c (generic_call_dummy_register_unwind): New function.
9086 (frame_saved_regs_register_unwind): New function.
9087 (set_unwind_by_pc): New function.
9088 (create_new_frame): New function.
9089 (get_prev_frame): New function.
9091 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9093 * a29k-share/: Delete directory.
9094 * remote-vx29k.c: Delete file.
9096 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9098 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9099 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9101 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9103 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9104 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9107 (sparcnbsd-tdep.o): New dependency lists.
9108 * NEWS: Note new UltraSPARC NetBSD native configuration.
9109 * configure.host (sparc64-*-netbsd*): New host.
9110 * configure.tgt (sparc-*-netbsdelf*)
9111 (sparc-*-netbsd*): Set gdb_target to nbsd.
9112 (sparc64-*-netbsd*): New target.
9113 * sparc64nbsd-nat.c: New file.
9114 * sparcnbsd-nat.c: New file.
9115 * sparcnbsd-tdep.c: New file.
9116 * sparcnbsd-tdep.h: New file.
9117 * config/sparc/nbsd.mt: New file.
9118 * config/sparc/nbsd64.mh: New file.
9119 * config/sparc/nbsd64.mt: New file.
9120 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9121 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9123 * config/sparc/nbsdaout.mt: Remove.
9124 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9125 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9127 * config/sparc/nbsdelf.mt: Remove.
9128 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9129 sparc-nat.c compatiblity defines.
9130 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9131 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9132 * config/sparc/tm-nbsd64.h: New file.
9133 * config/sparc/tm-nbsdaout.h: Remove.
9134 * config/sparc/xm-nbsd.h: Remove.
9136 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9138 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9139 * sparc-tdep.c: Include osabi.h.
9140 (gdbarch_tdep): Add osabi member.
9141 (_initialize_sparc_tdep): Use gdbarch_register.
9142 (sparc_gdbarch_init): Use generic OS ABI framework.
9143 (sparc_dump_tdep): New function.
9145 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9147 * corefile.c (do_captured_read_memory_integer): Return non-zero
9149 (safe_read_memory_integer): Copy result of memory read when
9150 status is non-zero. Also, add comments.
9152 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9154 * Makefile.in (ppc_tdep_h): Define.
9157 (rs6000-tdep.o): Use $(ppc_tdep_h).
9160 (ppcnbsd-tdep.o): New dependency lists.
9161 * ppc-tdep.h: Use generic OS ABI framework.
9162 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9163 (ppc_linux_init_abi): New functions.
9164 (ppc_sysv_abi_broken_use_struct_convention)
9165 (ppc_sysv_abi_use_struct_convention)
9166 (ppc_sysv_abi_push_arguments): Move to...
9167 * ppc-sysv-tdep.c: ...here.
9168 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9169 * rs6000-tdep.c (process_note_abi_tag_sections)
9170 (get_elfosabi): Remove.
9171 (rs6000_gdbarch_init): Use generic OS ABI framework.
9172 (rs6000_dump_tdep): New function.
9173 (_initialize_rs6000_tdep): Use gdbarch_register.
9174 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9175 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9176 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9177 of ppc-linux-tdep.o.
9178 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9179 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9180 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9181 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9182 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9183 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9185 2002-05-29 Jim Blandy <jimb@redhat.com>
9187 * macroscope.c (default_macro_scope): Put `void' in empty argument
9190 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9192 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9193 * arch-utils.c: Include "sim-regno.h".
9194 * gdbarch.sh: Don't include "sim-regno.h".
9195 * gdbarch.h, gdbarch.c: Regenerate.
9196 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9198 * arch-utils.h (legacy_register_sim_regno): To here.
9199 * remote-sim.c (legacy_register_sim_regno): Move function from
9201 * arch-utils.c (legacy_register_sim_regno): To here.
9203 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9205 * sim-regno.h: New file.
9206 * Makefile.in (sim_regno_h): Define.
9207 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9208 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9209 (legacy_register_sim_regno): New function.
9210 (one2one_register_sim_regno): New function.
9211 (gdbsim_fetch_register): Rewrite.
9212 (gdbsim_store_register): Only store a register when
9213 REGISTER_SIM_REGNO is valid.
9214 * d10v-tdep.c: Include "sim-regno.h".
9215 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9216 (d10v_ts3_register_sim_regno): Ditto.
9217 * gdbarch.sh: Include "sim-regno.h".
9218 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9219 * gdbarch.h, gdbarch.c: Regenerate.
9220 * arch-utils.h (default_register_sim_regno): Delete declaration.
9221 * arch-utils.c (default_register_sim_regno): Delete function.
9223 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9225 * ppcnbsd-nat.c: Rewrite.
9226 * ppcnbsd-tdep.c: New file.
9227 * ppcnbsd-tdep.h: New file.
9228 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9229 solib.o, and solib-svr4.o.
9230 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9231 nbsd-tdep.o, and corelow.o.
9233 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9235 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9236 `tr' and `sed'. Mention that `broken' targets are not expected to
9239 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9241 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9242 Let PC point right after the prologue before looking up symbols.
9244 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9246 * i386-tdep.c (i386_register_virtual_type): Return
9247 builtin_type_vec128i for SSE registers.
9249 * gdbtypes.h (builtin_type_vec128i): Declare.
9251 * gdbtypes.c (build_builtin_type_vec128i): New function.
9252 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9253 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9254 (build_gdbtypes): Initialize new builtin vector types.
9255 (_initialize_gdbtypes): Register new vector types with gdbarch.
9257 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9259 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9260 since it has been multi-arch'd.
9261 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9262 Move Alpha and VAX multi-arch news entries to same section
9263 as other multi-arch news.
9265 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9267 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9268 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9269 static. Rename some register numbers to put them in ns32k-tdep
9271 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9272 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9274 (_initialize_ns32k_tdep): Use gdbarch_register.
9275 * ns32k-tdep.h: New file.
9276 * ns32knbsd-tdep.c: New file.
9277 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9278 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9279 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9280 REGISTER_BYTES, REGISTER_BYTE): Remove.
9281 * config/ns32k/tm-ns32k.h: New file.
9282 * config/ns32k/tm-umax.h: Remove.
9284 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9286 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9287 ns32k_store_struct_return, ns32k_extract_return_value,
9288 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9290 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9291 ns32k_saved_pc_after_call.
9292 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9293 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9294 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9295 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9296 ns32k_extract_struct_value_address.
9298 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9300 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9301 ns32k_fix_call_dummy): New.
9302 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9303 ns32k_call_dummy_words.
9304 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9305 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9306 CALL_DUMMY_NARGS): Remove.
9307 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9309 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9311 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9312 ns32k_frame_saved_pc, ns32k_frame_args_address,
9313 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9314 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9315 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9316 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9317 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9318 (BREAKPOINT): Remove..
9319 (FRAME_CHAIN): Define as ns32k_frame_chain.
9320 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9321 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9322 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9323 (FRAME_FIND_SAVED_REGS): Remove.
9324 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9325 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9326 (POP_FRAME): Define as ns32k_pop_frame.
9328 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9330 * ns32k-tdep.c (ns32k_register_byte_32082,
9331 ns32k_register_byte_32382, ns32k_register_raw_size,
9332 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9334 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9335 ns32k_register_byte_32382.
9336 * config/ns32k/tm-umax.h: Update copyright years.
9337 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9338 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9339 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9340 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9341 (ns32k_get_enter_addr): Fix prototype.
9343 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9345 * ns32k-tdep.c: Update copyright years.
9346 (ns32k_register_name_32082): New function.
9347 (ns32k_register_name_32382): Ditto.
9348 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9349 (REGISTER_NAME): Define as ns32k_register_name_32382.
9350 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9351 (REGISTER_NAME): Define as ns32k_register_name_32082.
9353 2002-05-24 Jim Blandy <jimb@redhat.com>
9355 * dwarf2read.c (free_line_header): Use xfree, not free.
9357 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9359 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9360 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9362 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9364 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9366 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9368 From Ross Alexander at NEC Europe:
9369 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9371 2002-05-23 Michael Snyder <msnyder@redhat.com>
9373 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9374 for input, rather than parse_and_eval_address.
9376 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9378 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9379 * Makefile.in (sim_d10v_h): Update definition.
9381 2002-05-24 Andrew Cagney <cagney@redhat.com>
9383 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9384 change `2002-05-22 Michael Snyder' below.
9385 (d10v_push_arguments): Ditto.
9386 (d10v_extract_return_value): Ditto.
9388 2002-05-23 Jim Blandy <jimb@redhat.com>
9390 * macrotab.c (check_for_redefinition): Don't complain if the new
9391 definition is the same as the previous one. Take more arguments
9392 to allow the comparison.
9393 (macro_define_object, macro_define_function): Pass more arguments
9394 to check_for_redefinition.
9396 2002-05-22 Michael Snyder <msnyder@redhat.com>
9398 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9399 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9400 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9401 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9402 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9403 Add a temp variable to save a call (and a memory read).
9404 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9405 if possible (so that PC_IN_CALL_DUMMY will work).
9407 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9409 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9411 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9413 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9415 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9416 (dwarf2_build_frame_info): Add offset to fde->initial_location
9417 so that frames of shared libraries are mapped correctly.
9418 (execute_stack_op): Change type of 'result' from ULONGEST to
9421 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9423 * config/alpha/tm-nbsd.h: Include solib.h.
9425 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9427 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9428 assumptions about the host's byte order.
9430 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9432 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9434 * alphanbsd-tdep.c: Include solib-svr4.h.
9435 * shnbsd-tdep.c: Ditto.
9437 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9439 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9440 nbsd-tdep.h to dependency list.
9441 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9442 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9443 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9444 nbsdaout.mh and nbsdelf.mh consistently.
9445 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9446 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9447 nbsdaout.mt and nbsdelf.mh consistently.
9448 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9449 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9450 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9451 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9452 a.out shared library stuff from here...
9453 * config/nm-nbsdaout.h: ...to here.
9454 * config/tm-nbsd.h: Remove.
9455 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9456 * config/arm/nbsd.mh: Remove.
9457 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9459 * config/arm/nbsdaout.mh: New file.
9460 * config/arm/nbsdelf.mh: New file.
9461 * config/arm/nm-nbsdaout.h: New file.
9462 * config/i386/nbsd.mh: Remove.
9463 * config/i386/nbsd.mt: Remove.
9464 * config/i386/nbsdaout.mh: New file.
9465 * config/i386/nbsdaout.mt: New file.
9466 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9467 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9468 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9469 i386_register_u_addr): Remove.
9470 * config/i386/nm-nbsdaout.h: New file.
9471 * config/i386/nm-nbsdelf.h: Remove.
9472 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9473 (USE_STRUCT_CONVENTION): Remove.
9474 * config/i386/tm-nbsdaout.h: New file.
9475 * config/i386/tm-nbsdelf.h: Remove.
9476 * config/m68k/nbsd.mh: Remove.
9477 * config/m68k/nbsd.mt: Remove.
9478 * config/m68k/nbsdaout.mh: New file.
9479 * config/m68k/nbsdaout.mt: New file.
9480 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9481 * config/m68k/nm-nbsdaout.h: New file.
9482 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9483 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9484 * config/ns32k/nbsd.mh: Remove.
9485 * config/ns32k/nbsd.mt: Remove.
9486 * config/ns32k/nbsdaout.mh: New file.
9487 * config/ns32k/nbsdaout.mt: New file.
9488 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9489 * config/ns32k/nm-nbsdaout.h: New file.
9490 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9491 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9492 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9493 (SVR4_SHARED_LIBS): Remove.
9494 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9495 * config/sparc/nbsd.mh: Remove.
9496 * config/sparc/nbsd.mt: Remove.
9497 * config/sparc/nbsdaout.mh: New file.
9498 * config/sparc/nbsdaout.mt: New file.
9499 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9500 * config/sparc/nbsdelf.mt: New file.
9501 * config/sparc/nm-nbsdaout.h: New file.
9502 * config/sparc/nm-nbsdelf.h: Remove.
9503 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9504 * config/sparc/tm-nbsdaout.h: New file.
9506 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9508 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9510 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9512 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9514 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9516 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9518 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9520 * NEWS: Note new MIPS NetBSD native configuration.
9521 * configure.host (mips*-*-netbsd*): New host.
9522 * configure.tgt (mips*-*-netbsd*): New target.
9523 * mipsnbsd-nat.c: New file.
9524 * mipsnbsd-tdep.c: New file.
9525 * mipsnbsd-tdep.h: New file.
9526 * config/mips/nbsd.mh: New file.
9527 * config/mips/nbsd.mt: New file.
9528 * config/mips/nm-nbsd.h: New file.
9529 * config/mips/tm-nbsd.h: New file.
9531 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9533 * Makefile.in (SFILES): Add osabi.c.
9534 (COMMON_OBS): Add osabi.o.
9535 (osabi.o): New dependency list.
9536 * osabi.c: New file.
9537 * osabi.h: New file.
9538 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9540 * Makefile.in (alpha_tdep_h): Define and use instead of
9542 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9543 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9545 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9546 * alpha-tdep.h: Include osabi.h.
9547 (alpha_abi): Remove.
9548 (gdbarch_tdep): Use generic OS ABI framework.
9549 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9550 gdbarch_register_osabi.
9551 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9552 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9553 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9555 * Makefile.in (sh_tdep_h): Add osabi.h.
9556 * sh-tdep.h (sh_osabi): Remove.
9557 (gdbarch_tdep): Use generic OS ABI framework.
9558 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9559 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9560 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9561 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9563 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9564 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9565 gdbarch_register_osabi.
9566 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9567 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9568 (get_elfosabi): Rename to...
9569 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9570 ABI framework support routines.
9571 (arm_gdbarch_init): Use generic OS ABI framework.
9572 (arm_dump_tdep): Likewise.
9573 (_initialize_arm_tdep): Likewise.
9574 * arm-tdep.h: Include osabi.h.
9576 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9578 (arm_gdbarch_register_os_abi): Remove prototype.
9579 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9580 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9582 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9583 * mips-tdep.c: Include osabi.h.
9584 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9587 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9589 * h8300-tdep.c: Fix formatting.
9591 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9593 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9594 printing vector registers.
9596 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9598 From Fernando Nasser:
9599 * remote.c (remote_async_open_1): Re-throw the exception when the
9601 (remote_cisco_open): Ditto.
9602 (remote_open_1): Ditto.
9604 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9606 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9607 (remote_start_remote): Add uiout parameter. Pass through to
9608 remote_start_remote_dummy.
9609 (remote_open_1): Use catch_exception instead of catch_errors.
9610 (remote_async_open_1): Ditto.
9611 (remote_cisco_open): Ditto.
9613 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9615 * remote.c (remote_start_remote): Replace PTR with void pointer.
9616 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9619 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9621 * gdb_indent.sh: Allow the script to be run in the sim directory.
9623 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9625 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9626 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9628 * corelow.c (core_open): Only call set_gdbarch_from_file if
9631 2002-05-17 Andrey Volkov <avolkov@transas.com>
9633 * h8300-tdep.c: Add support of EXR register
9634 * config/h8300/tm-h8300.h: Ditto.
9636 2002-05-17 Andrey Volkov <avolkov@transas.com>
9638 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9640 2002-05-17 Andrey Volkov <avolkov@transas.com>
9642 * h8300-tdep.c: Change literal regnums to REGNO.
9644 2002-05-17 Jim Blandy <jimb@redhat.com>
9646 * NEWS: Note addition of macro support.
9648 Expand preprocessor macros in C expressions.
9649 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9650 (scan_macro_expansion, scanning_macro_expansion,
9651 finished_macro_expansion): New function declarations.
9652 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9653 variable declarations.
9654 * parser-defs.h (expression_context_pc): New declaration.
9655 * parse.c (expression_context_pc): New variable.
9656 (parse_exp_1): Set expression_context_pc, as well as
9657 expression_context_block.
9658 * c-exp.y (yylex): If we're not already reading the result of a
9659 macro expansion, try to macro-expand the next token. When we're
9660 done scanning a macro expansion, switch back to the mainline text.
9661 Commas and `if's in a macro's expansion don't terminate the input.
9662 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9663 (macro_original_text, macro_expanded_text,
9664 expression_macro_lookup_func, expression_macro_lookup_baton): New
9666 (scan_macro_expansion, scanning_macro_expansion,
9667 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9668 c_preprocess_and_parse): New functions.
9669 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9670 c_preprocess_and_parse, instead of c_parse.
9671 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9672 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9674 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9676 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9677 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9678 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9680 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9682 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9684 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9686 * Makefile.in (sh_tdep_h): Define and use.
9687 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9688 register enum): Move to...
9689 * * sh-tdep.h: ...here.
9690 * sh-tdep.c: Include sh-tdep.h.
9691 * sh3-rom.c: Likewise.
9692 * shnbsd-tdep.c: Likewise.
9694 2002-05-16 Michael Snyder <msnyder@redhat.com>
9696 * arm-tdep.c: Spelling fix in comment.
9698 2002-05-16 Jim Blandy <jimb@redhat.com>
9700 Add commands for manually expanding macros and showing their
9702 * macrocmd.c, macroscope.c, macroscope.h: New files.
9703 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9704 (macroscope_h): New variable.
9705 (HFILES_NO_SRCDIR): Add macroscope.h.
9706 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9707 (macroscope.o, macrocmd.o): New rules.
9709 Teach the Dwarf 2 reader to read macro information.
9710 * dwarf2read.c: #include "macrotab.h".
9711 (dwarf_macinfo_buffer): New variable.
9712 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9714 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9715 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9716 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9717 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9718 dwarf2_macro_spaces_in_definition): New complaints.
9719 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9720 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9721 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9722 the partial symbol table.
9723 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9724 from what's recorded in the partial symbol table.
9725 (read_file_scope): If the compilation unit has a
9726 `DW_AT_macro_info' attribute, read its macro information.
9727 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9729 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9732 * ser-tcp.c: Don't include <netinet/udp.h>.
9734 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9736 * MAINTAINERS: Update my email address.
9738 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9740 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9741 include file of the same name.
9743 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9745 * configure.tgt: Mark v850 as multi-arched.
9746 * config/v850/tm-v850.h: Remove file.
9747 * config/v850/v850.mt: Eliminate TM_FILE.
9749 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9751 * v850-tdep.c: Full multi-arch.
9752 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9753 Define GDB_MULTI_ARCH to 2.
9755 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9757 * p-exp.y (current_type): New static variable.
9758 Carries the type of the expression at the position that is parsed.
9759 (push_current_type, pop_current_type): Two new functions. Used
9760 to store/restore current_type in expression on specific tokens.
9761 (search_field): New static variable. Set to one after parsing a point
9762 as at that point only a FIELDNAME token should be searched.
9763 (FIELDNAME): New token. After a point only a token belonging to
9764 current_type type definition is allowed.
9765 (all over token rules): reset and change current_type according
9767 (exp '[' rule): insert implicit array index field if
9768 exp is a pascal string type.
9770 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9772 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9773 frame info. Use frame_info's saved_regs instead of matching member
9774 in extra_frame_info throughout.
9775 (v850_frame_init_saved_regs): New function.
9776 (v850_init_extra_frame_info): Move most functionality into
9777 v850_frame_init_saved_regs().
9778 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9779 (v850_frame_find_saved_regs): Remove declaration.
9780 (FRAME_FIND_SAVED_REGS): Remove definition.
9781 (v850_frame_init_saved_regs): Add declaration.
9782 (FRAME_INIT_SAVED_REGS): Add definition.
9784 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9786 * v850-tdep.c: Begin multi-arch'ing v850.
9787 (v850_target_architecture_hook): Remove function.
9788 (v850_gdbarch_init): New function. Add code previously in
9789 v850_target_architecture_hook().
9790 (_initialize_v850_tdep): Don't set target_architecture_hook.
9791 Call register_gdbarch_init() instead.
9793 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9795 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9796 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9797 (fixup_class_method_type): Likewise.
9799 2002-05-15 Jim Blandy <jimb@redhat.com>
9801 Add macro structures to GDB's symbol tables. Nobody puts anything
9803 * symtab.h (struct symtab): New member: `macro_table'.
9804 * buildsym.h (pending_macros): New global variable.
9805 * buildsym.c: #include "macrotab.h".
9806 (buildsym_init): Initialize `pending_macros'.
9807 (end_symtab): If we found macro information while reading a CU's
9808 debugging info, do build a symtab structure for it. Make the
9809 symtab point to the macro information, and clear the
9810 `pending_macros' pointer which held it while we were reading the
9812 (really_free_pendings): Free any pending macro table.
9813 * objfiles.h (struct objfile): New member: `macro_cache'.
9814 * objfiles.c (allocate_objfile): Set allocate and free functions
9815 for the macro cache's objstack.
9816 (free_objfile): Empty the macro cache's obstack.
9817 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9818 set new allocate and free functions for it.
9819 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9820 free functions for the macro cache's objstack. (Why is this
9821 function building its own objfile?)
9822 * symmisc.c (print_objfile_statistics): Print statistics on the
9824 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9826 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9828 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9829 (REGISTER_U_ADDR): Delete definition.
9830 (arm_register_u_addr): Delete declaration.
9832 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9834 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9835 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9837 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9839 * regcache.c (register_valid): Revise comments refering to "Not
9840 available" and "unavailable".
9841 * frame.c (frame_register_read): Ditto.
9842 * findvar.c (value_of_register): Ditto.
9844 2002-05-15 Andrew Cagney <cagney@redhat.com>
9846 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9847 (remote-sim.o): Update dependencies.
9848 (d10v-tdep.o): Specify dependencies.
9849 (sim_d10v_h): Define.
9851 2002-05-14 Jim Blandy <jimb@redhat.com>
9853 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9854 * macrotab.c (macro_lookup_inclusion, find_definition,
9855 new_macro_table): Same.
9857 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9858 not `! strcmp ()'. This is a dubious improvement.
9859 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9861 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9862 although it's not necessary, to avoid a warning.
9864 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9866 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9867 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9868 TYPE_INSTANCE_FLAGS.
9869 (struct main_type): New.
9870 (struct type): Move most members to struct main_type. Change
9871 cv_type and as_type to new type_chain member. Add instance_flags.
9872 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9873 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9874 (finish_cv_type): Remove prototype.
9875 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9877 (alloc_type_instance): New function.
9878 (smash_type): New function.
9879 (make_pointer_type, make_reference_type, make_function_type)
9880 (smash_to_member_type, smash_to_method_type): Call smash_type.
9881 (make_qualified_type): New function.
9882 (make_type_with_address_space): Call make_qualified_type.
9883 (make_cv_type): Likewise.
9884 (finish_cv_type): Remove unnecessary function.
9885 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9886 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9887 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9888 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9889 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9890 * hpread.c (hpread_read_struct_type): Likewise.
9891 * stabsread.c (read_struct_type): Likewise.
9893 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9895 * configure.tgt: Add a catch all sh* target, for cases like
9896 sh[2,3,4]-elf and sh-hms.
9898 2002-05-14 Keith Seitz <keiths@redhat.com>
9900 * event-loop.c (create_file_handler): Don't do anything but
9901 update data when we are given a fd which we are already
9904 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9906 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9907 (update_context): Use __func__ in warnings.
9909 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9911 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9912 and tcp_close to net_open and net_close.
9913 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9914 using UDP if requested. Don't try to disable Nagle on UDP
9916 * remote.c (remote_serial_open): New function. Warn about UDP.
9917 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9919 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9921 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9923 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9925 * configure.tgt: Remove sh-hms target.
9926 * MAINTAINERS: Don't list sh-hms as a separate target.
9928 2002-05-13 Jim Blandy <jimb@redhat.com>
9930 Add first preprocessor macro-expansion files.
9931 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9932 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9933 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9934 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9935 (COMMON_OBS): Add macrotab.o, macroexp.o.
9936 (macroexp.o, macrotab.o): New rules.
9938 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9940 * config/m88k/tm-m88k.h: Update copyright.
9941 (m88k_target_write_pc): Declare
9942 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9943 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9944 (SHIFT_INST_REGS): Update definition.
9945 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9946 using old definition of TARGET_WRITE_PC.
9947 * regcache.c (generic_target_write_pc): Delete code handling
9949 * gdbarch.sh (NNPC_REGNUM): Delete.
9950 * gdbarch.h, gdbarch.c: Regenerate.
9952 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9954 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9957 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9959 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9960 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9961 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9963 * c-typeprint.c (cp_type_print_method_args): Likewise.
9964 (c_type_print_args): Likewise.
9965 * d10v-tdep.c (d10v_push_arguments): Likewise.
9966 (d10v_extract_return_value): Likewise.
9967 * expprint.c (print_subexp): Likewise.
9968 * gdbtypes.c (lookup_primitive_typename): Likewise.
9969 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9970 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9971 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9972 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9973 (TYPE_VECTOR): Likewise.
9974 * hpread.c (hpread_read_struct_type)
9975 (fix_static_member_physnames, fixup_class_method_type)
9976 (hpread_type_lookup): Likewise.
9977 * mdebugread.c (parse_symbol, parse_type): Likewise.
9978 * p-lang.c (is_pascal_string_type): Likewise.
9979 * valops.c (hand_function_call): Likewise.
9980 * x86-64-tdep.c (classify_argument): Likewise.
9982 * hpread.c (hpread_read_function_type)
9983 (hpread_read_doc_function_type): Call replace_type.
9984 * dstread.c (create_new_type): Delete.
9985 (decode_dst_structure, process_dst_function): Call alloc_type.
9986 Use type access macros.
9988 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9990 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9991 the're not supported by the current architecture.
9992 (i387_fill_fxsave): Likewise.
9994 2002-05-12 Fred Fish <fnf@redhat.com>
9996 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9997 sect_index_xxx members to index the first slot in section_offsets
9998 if all of the section_offsets are zero.
10000 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10002 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10003 checked in with last change.
10005 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10007 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10008 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10011 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10013 * Makefile.in: Update dependencies.
10015 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10017 * language.c (local_hex_string_custom): Simplify. Do not depend
10018 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10020 * memattr.c (mem_info_command): Replace calls to
10021 longest_local_hex_string and longest_local_hex_string_custom.
10022 * buildsym.c (make_blockvector): Ditto.
10023 * solib.c (info_sharedlibrary_command): Ditto.
10024 * tracepoint.c (tracepoints_info): Ditto.
10025 * symtab.c (print_msymbol_info): Ditto.
10027 * language.c (local_hex_string): Delete.
10028 (local_hex_string_custom): Delete.
10029 (longest_local_hex_string): Rename to local_hex_string.
10030 (longest_local_hex_string_custom): Rename to
10031 local_hex_string_custom.
10032 * language.h (local_hex_string): Change parameter type to LONGEST.
10033 (local_hex_string_custom): Ditto.
10034 (longest_local_hex_string): Delete declaration.
10035 (longest_local_hex_string_custom): Ditto.
10037 * solib.c: Update copyright.
10038 * memattr.c: Update copyright.
10040 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10042 * arch-utils.h (legacy_register_to_value): Declare.
10043 (legacy_value_to_register): Declare.
10044 (legacy_convert_register_p): Declare.
10045 * arch-utils.c (legacy_register_to_value): New function.
10046 (legacy_value_to_register): New function.
10047 (legacy_convert_register_p): New function.
10049 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10050 (VALUE_TO_REGISTER): Define.
10051 (CONVERT_REGISTER_P): Define.
10052 * gdbarch.h, gdbarch.c: Regenerate.
10054 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10056 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10057 CONVERT_REGISTER_P.
10059 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10060 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10062 * Makefile.in: Update dependencies for valops.c.
10063 * valops.c: Include "gdb_assert.h".
10064 (typecmp): Skip THIS parameter to methods.
10065 (find_method_list): Remove static_memfuncp argument,
10066 update callers. Check for stub methods.
10067 (find_value_oload_method_list): Don't set *static_memfuncp.
10068 (find_overload_match): Don't check for stub methods. Assert
10069 that methods are not stubbed. Handle static methods.
10070 (value_find_oload_method_list): Remove static_memfuncp argument.
10071 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10072 to the argument list for static stub methods.
10073 * value.h (value_find_oload_method_list): Update prototype.
10075 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10077 * arch-utils.h (generic_register_size): Declare.
10078 (generic_register_raw_size, generic_register_virtual_size): Delete
10080 * arch-utils.c (generic_register_raw_size): Delete.
10081 (generic_register_size): New function.
10082 (generic_register_virtual_size): Delete.
10084 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10085 default generic_register_size.
10086 * gdbarch.h, gdbarch.c: Re-generate.
10088 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10089 register_virtual_size.
10090 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10091 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10093 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10095 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10096 * gdbarch.h, gdbarch.c: Regenerate.
10097 * gnu-v3-abi.c: Update copyright.
10098 (vtable_address_point_offset): Update.
10099 (gnuv3_rtti_type): Update.
10100 (gnuv3_baseclass_offset): Update.
10101 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10102 (init_fetch_link_map_offsets): Update.
10103 * remote.c (get_remote_state): Update.
10105 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10107 * TODO: Remove value_headof/value_from_vtable_info comment.
10108 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10109 * values.c (value_headof, value_from_vtable_info): Delete.
10110 * value.h (value_from_vtable_info): Delete prototype.
10112 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10114 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10115 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10117 (gdb_assert_h): Define.
10118 (gdb_wait_h): Define.
10119 (gdb_regex_h): Define.
10121 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10123 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10124 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10126 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10128 * nbsd-tdep.c: Fix comment.
10130 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10132 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10133 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10134 (nbsd-tdep.o): New dependency list.
10135 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10137 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10138 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10139 * nbsd-tdep.c: New file.
10140 * nbsd-tdep.h: New file.
10141 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10143 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10144 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10145 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10146 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10148 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10150 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10151 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10152 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10153 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10154 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10155 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10157 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10159 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10160 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10161 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10162 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10163 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10164 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10165 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10167 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10169 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10170 fetch_elfcore_registers to...
10171 * i386nbsd-tdep.c: ...here.
10172 (i386nbsd_use_struct_convention): Rename to...
10173 (i386nbsd_aout_use_struct_convention): ...this.
10174 (i386nbsd_supply_reg): New function.
10175 (i386nbsd_fill_reg): New function.
10176 (fetch_core_registers): Use i386nbsd_supply_reg.
10177 (fetch_elfcore_registers): Likewise.
10178 (_initialize_i386nbsd_tdep): New function.
10179 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10180 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10181 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10182 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10183 (i386nbsd_aout_use_struct_convention): ...this.
10185 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10187 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10188 (store_inferior_registers): Use shnbsd_fill_reg.
10189 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10190 sh_nbsd_supply_register): Collapse into...
10191 (shnbsd_supply_reg): ...this.
10192 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10193 (shnbsd_fill_reg): ...this.
10194 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10195 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10196 (fetch_core_registers): Use shnbsd_supply_reg.
10197 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10198 (sh_nbsd_core_fns): Rename to...
10199 (shnbsd_core_fns): ...this.
10200 (sh_nbsd_elfcore_fns): Rename to...
10201 (shnbsd_elfcore_fns): ...this.
10202 (sh_nbsd_init_abi): Rename to...
10203 (shnbsd_init_abi): ...this.
10204 (_initialize_sh_nbsd_tdep): Rename to...
10205 (_initialize_shnbsd_tdep): ...this.
10206 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10207 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10208 sh_nbsd_fill_register): Remove prototypes.
10209 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10211 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10213 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10214 (i387-nat.o): Delete dependency list.
10215 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10216 (x86-64-linux-nat.o): Likewise.
10217 * i387-nat.c: Delete file, moving contents to...
10218 * i387-tdep.c: ...here.
10219 * i387-nat.h: Rename...
10220 * i387-tdep.h: ...to this.
10221 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10222 * i386-linux-nat.c: Likewise.
10223 * i386bsd-nat.c: Likewise.
10224 * i386gnu-nat.c: Likewise.
10225 * i386nbsd-nat.c: Likewise.
10226 * i386v4-nat.c: Likewise.
10227 * x86-64-linux-nat.c: Likewise.
10228 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10229 * config/i386/go32.mh (NATDEPFILES): Likewise.
10230 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10231 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10232 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10233 * config/i386/linux.mh (NATDEPFILES): Likewise.
10234 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10235 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10236 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10237 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10239 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10241 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10242 (alphanbsd-nat.o): Remove dependency list.
10243 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10244 * alphanbsd-nat.c: Delete. Contents moved to...
10245 * alphanbsd-tdep.c: ...here.
10246 (_initialize_alphanbsd_tdep): Register core functions.
10247 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10249 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10251 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10252 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10253 (alphanbsd-nat.o): Likewise.
10254 (alphabsd-tdep.o): New dependency list.
10255 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10256 (fill_gregset): Use alphabsd_fill_reg.
10257 (supply_fpregset): Use alphabsd_supply_fpreg.
10258 (fill_fpregset): Use alphabsd_fill_fpreg.
10259 (fetch_inferior_registers): Use struct reg and struct fpreg
10260 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10261 and alphabsd_supply_fpreg.
10262 (store_inferior_registers): Use struct reg and struct fpreg
10263 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10264 and alphabsd_fill_fpreg.
10265 * alphabsd-tdep.c: New file.
10266 * alphabsd-tdep.h: New file.
10267 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10268 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10269 alphabsd_supply_fpreg.
10270 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10271 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10273 2002-05-11 Eric Christopher <echristo@redhat.com>
10275 * mips-tdep.c (mips_double_register_type): Fix thinko.
10276 (mips_single_register_type): Ditto.
10277 * MAINTAINERS: Add self.
10279 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10281 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10282 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10283 right thing on architectures with different endianness and/or
10286 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10288 From Christian Limpach <chris@Pin.LU>
10289 * configure.in: Change sed expression which comments out
10290 NATDEPFILES to also comment out continuation lines.
10291 * configure: Regenerate.
10293 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10295 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10298 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10300 * sh-tdep.c: Include correct file.
10302 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10304 New support for sh64-elf (sh5) target.
10306 * configure.tgt: For sh64-elf target, default to sh-elf.
10308 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10309 (struct gdbarch_tdep): Add new fields for new registers and ABI
10312 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10313 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10314 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10315 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10316 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10317 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10318 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10319 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10320 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10321 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10322 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10323 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10324 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10325 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10326 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10327 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10328 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10329 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10330 sign_extend, sh64_nofp_frame_init_saved_regs,
10331 sh64_init_extra_frame_info, sh64_get_saved_register,
10332 sh64_extract_struct_value_address, sh64_pop_frame,
10333 sh64_push_arguments, sh64_extract_return_value,
10334 sh64_store_return_value, sh64_show_media_regs,
10335 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10336 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10337 sh_sh64_register_virtual_type,
10338 sh_sh64_register_convert_to_virtual,
10339 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10340 sh64_register_read, sh64_pseudo_register_write,
10341 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10342 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10343 sh64_do_pseudo_register, sh_compact_do_registers_info,
10344 sh64_do_registers_info, sh_gdbarch_init): New functions.
10346 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10348 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10350 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10352 * linespec.c (decode_line_1): Check for a double quote after
10353 a filename correctly.
10355 2002-05-10 Jim Blandy <jimb@redhat.com>
10357 Properly track the size of the current objfile's .debug_line section.
10358 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10359 (DWARF_LINE_SIZE): New macro.
10360 (dwarf2_build_psymtabs_hard): Record the line section's size in
10361 the partial symbol table.
10362 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10365 2002-05-10 Petr Sorfa <petrs@caldera.com>
10367 * ia64-tdep.c: Handle breakpoints on L instruction type
10368 in MLX instruction bundle by moving the breakpoint to
10369 the third slot (X instruction type) as L holds only data.
10371 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10373 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10374 (process_one_symbol): Complain about discarding local symbols
10375 due to a misplaced N_LBRAC entry.
10377 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10379 From Daniel Berlin <dan@cgsoftware.com>
10380 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10381 decrease the depth we are at, in the case of templates.
10383 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10385 * mips-tdep.c (mips_float_register_type): New function.
10386 (mips_double_register_type): New function.
10387 (mips_print_register): Use them.
10388 (do_fp_register_row): Likewise.
10390 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10392 * signals/signals.c (signals): Remove conditional compilation around
10393 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10394 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10396 2002-05-09 Michael Snyder <msnyder@redhat.com>
10398 * remote-rdp.c (remote_rdp_can_run): Remove.
10400 2002-05-09 Tom Tromey <tromey@redhat.com>
10402 * jv-valprint.c (java_val_print): Handle `char' as a special case
10405 2002-05-09 Michael Snyder <msnyder@redhat.com>
10407 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10408 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10409 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10410 str r(0123),[sp,#nn].
10411 (arm_skip_prologue): Ditto. Also make disassembly
10412 order-independent by placing it in a loop.
10414 2002-05-06 Michael Snyder <msnyder@redhat.com>
10416 * stabsread.c (read_type): Add recognition for new attribute:
10417 "@V;" means that an array type is actually a vector.
10418 This is analogous to the vector flag that's been added to dwarf2.
10420 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10422 * i386-tdep.h (i386_abi): New enum.
10423 (struct gdbarch_tdep): Replace os_ident member with abi.
10424 (i386_gdbarch_register_os_abi): New prototype.
10425 * i386-tdep.c (i386_abi_names): New array.
10426 (process_note_abi_tag_sections): Removed.
10427 (process_note_sections): New function.
10428 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10429 (struct i386_abi_handler): New struct.
10430 (i386_abi_handler_list): New variable.
10431 (i386_gdbarch_register_os_abi): New function.
10432 (i386_gdbarch_init): Adapt for the changes given above.
10434 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10436 * gregset.h: Say "GNU/Linux".
10438 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10440 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10441 (build_gdbtypes): Build builtin_type_v2_float.
10442 (_initialize_gdbtypes): Register new builtin type.
10444 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10446 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10447 (clear_gdbarch_swap): New function.
10448 (initialize_non_multiarch): Call.
10449 (gdbarch_update_p): Before calling init(), swap out and clear the
10450 existing architecture.
10451 * gdbarch.c: Regenerate.
10453 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10455 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10458 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10460 * sh-nbsd-nat.c: Rename to...
10461 * shnbsd-nat.c: ...this.
10462 * sh-nbsd-tdep.c: Rename to...
10463 * shnbsd-tdep.c: ...this.
10464 * sh-nbsd-tdep.h: Rename to...
10465 * shnbsd-tdep.h: ...this.
10466 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10467 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10469 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10471 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10472 concatenation for command help messages.
10474 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10476 * NEWS: Note new sh*-*-netbsdelf* configuration.
10477 * configure.host: Set gdb_host_cpu to sh for all sh*.
10478 (sh*-*-netbsdelf*): New host.
10479 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10480 (sh*-*-netbsdelf*): New target.
10481 * sh-nbsd-nat.c: New file.
10482 * sh-nbsd-tdep.c: New file.
10483 * sh-nbsd-tdep.h: New file.
10484 * config/sh/nbsd.mh: New file.
10485 * config/sh/nbsd.mt: New file.
10486 * config/sh/nm-nbsd.h: New file.
10487 * config/sh/tm-nbsd.h: New file.
10489 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10491 * sh-tdep.c (sh_osabi_names): Declare.
10492 (process_note_abi_tag_sections): New function.
10493 (get_elfosabi): Ditto.
10494 (sh_gdbarch_register_os_abi): Ditto.
10495 (sh_dump_tdep): Ditto.
10496 _initialize_sh_tdep): Use gdbarch_register to register
10497 sh_gdbarch_init and sh_dump_tdep.
10498 * config/sh/tm-sh.h (sh_osabi): Declare.
10499 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10501 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10503 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10504 (thumb_scan_prologue): Ditto.
10505 (arm_find_callers_reg): Ditto.
10506 (arm_frame_chain): Ditto.
10507 (arm_init_extra_frame_info): Ditto.
10508 (arm_frame_saved_pc): Ditto.
10509 (arm_pop_frame): Ditto.
10510 (arm_push_return_address): New function.
10511 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10512 call_dummy_location, call_dummy_breakpoint_offset_p,
10513 call_dummy_breakpoint_offset, call_dummy_p,
10514 call_dummy_stack_adjust_p, call_dummy_words,
10515 sizeof_call_dummy_words, call_dummy_start_offset,
10516 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10517 call_dummy_address, push_return_address and push_dummy_frame for
10518 generic dummy frames.
10520 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10522 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10523 size computation for alloca.
10524 (sh_fp_frame_init_saved_regs): Likewise.
10526 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10528 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10529 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10530 * arm-tdep.c (arm_store_return_value): Use them.
10531 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10532 * remote-rdp.c (remote_rdp_fetch_register): Use
10533 ARM_MAX_REGISTER_RAW_SIZE.
10534 (remote_rdp_store_register): Likewise.
10536 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10538 * dwarf2cfi.c: Code cleanup, removed unused variables,
10539 added default labels to switch {} statements.
10540 * x86-64-tdep.c: Ditto.
10541 * x86-64-linux-nat.c: Ditto.
10543 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10545 * solib.h: Protect against multiple inclusion.
10547 2002-05-06 Jim Blandy <jimb@redhat.com>
10549 Add first preprocessor macro-expansion files.
10550 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10551 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10552 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10553 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10554 (COMMON_OBS): Add macrotab.o, macroexp.o.
10555 (macroexp.o, macrotab.o): New rules.
10557 Separate the job of reading the line number info statement program
10558 header (...expialidocious) out into its own function.
10559 * dwarf2read.c (struct line_head, struct filenames, struct
10560 directories): Replace with...
10561 (struct line_header): New structure, containing the full
10562 contents of the statement program header, including the
10563 include directory and file name tables.
10564 (read_file_scope): If we have line number info, instead of just
10565 calling dwarf_decode_lines to do all the work, call
10566 dwarf_decode_line_header first to get a `struct line_header'
10567 containing the data in the statement program header, and then
10568 pass that to dwarf_decode_lines, which will pick up where that
10569 left off. Be sure to clean up the `struct line_header' object.
10570 (dwarf_decode_line_header, free_line_header, add_include_dir,
10571 add_file_name): New functions.
10572 (dwarf_decode_lines): Move all the code to read the statement
10573 program header into dwarf_decode_line_header. Take the line
10574 header it built as the first argument, instead of the offset to
10575 the compilation unit's line number info. Use the new `struct
10576 line_header' type instead of the old structures. No need to do
10577 cleanups here now, since we don't allocate anything.
10578 (dwarf2_statement_list_fits_in_line_number_section,
10579 dwarf2_line_header_too_long): New complaints.
10581 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10583 * gdbtypes.c (init_vector_type): New function.
10584 (build_builtin_type_vec128): Simplify the representation of SIMD
10586 (build_gdbtypes): Initialize new builtin vector types.
10587 (_initialize_gdbtypes): Register new vector types with gdbarch.
10588 (builtin_type_v4_float, builtin_type_v4_int32,
10589 builtin_type_v8_int16, builtin_type_v16_int8,
10590 builtin_type_v2_int32, builtin_type_v4_int16,
10591 builtin_type_v8_int8): New (renamed) SIMD types.
10593 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10595 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10596 (i387_fill_fxsave): Likewise.
10598 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10600 * alpha-tdep.c (alpha_extract_return_value): Don't use
10601 non-constant array size in prototype.
10603 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10605 From Brian Taylor <briant at model dot com>:
10606 * ui-out.c (ui_out_field_core_addr): Use the function
10607 longest_local_hex_string_custom'to format addresses > 32 bits
10610 * ui-out.c (ui_out_field_core_addr): Update comment.
10612 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10614 * stack.c (select_and_print_frame): Make static. Delete the
10616 (func_command): Update call.
10617 (select_frame_command): Delete code computing the frame level.
10618 * frame.h (select_and_print_frame): Delete declaration.
10620 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10622 * sparc-tdep.c (sparc_get_saved_register): Comment why
10623 get_prev_frame call is safe.
10625 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10627 * frame.h (select_frame): Delete level parameter.
10628 * stack.c (select_frame): Update. Use frame_relative_level to
10629 obtain the frame's level.
10630 (select_and_print_frame): Update call.
10631 (select_frame_command): Ditto.
10632 (up_silently_base): Ditto.
10633 (down_silently_base): Ditto.
10634 * ocd.c (ocd_start_remote): Ditto.
10635 * remote-rdp.c (remote_rdp_open): Ditto.
10636 * remote-mips.c (mips_initialize): Ditto.
10637 (common_open): Ditto.
10638 * remote-e7000.c (e7000_start_remote): Ditto.
10639 * m3-nat.c (select_thread): Ditto.
10640 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10641 (child_get_current_exception_event): Ditto.
10642 * varobj.c (varobj_create): Ditto.
10643 (varobj_update): Ditto.
10644 (c_value_of_root): Ditto.
10645 * tracepoint.c (finish_tfind_command): Ditto.
10646 * corelow.c (core_open): Ditto.
10647 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10648 * thread.c (info_threads_command): Ditto.
10649 (switch_to_thread): Ditto.
10650 * infrun.c (normal_stop): Ditto.
10651 (restore_selected_frame): Ditto.
10652 (restore_inferior_status): Ditto.
10653 * breakpoint.c (insert_breakpoints): Ditto.
10654 (watchpoint_check): Ditto.
10655 (bpstat_stop_status): Ditto.
10656 (do_enable_breakpoint): Ditto.
10657 * blockframe.c (flush_cached_frames): Ditto.
10658 (reinit_frame_cache): Ditto.
10660 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10662 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10665 2002-05-04 Jim Blandy <jimb@redhat.com>
10667 * gdbtypes.c (replace_type): Doc fix.
10669 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10671 * valprint.c (strcat_longest): Delete commented out function.
10674 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10676 * MAINTAINERS: Mark a29k as deleted.
10677 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10678 Move new configurations to the top.
10679 * configure.tgt: Remove a29k.
10680 * config/a29k/tm-vx29k.h: Delete.
10681 * config/a29k/vx29k.mt: Delete.
10682 * config/a29k/tm-a29k.h: Delete.
10683 * config/a29k/a29k-udi.mt: Delete.
10684 * config/a29k/a29k.mt: Delete.
10685 * a29k-tdep.c: Delete.
10686 * remote-udi.c: Delete.
10687 * remote-mm.c: Delete.
10688 * remote-eb.c: Delete.
10689 * remote-adapt.c: Delete.
10690 * Makefile.in: Remove obsolete code.
10691 * config/s390/s390x.mt: Ditto.
10692 * config/s390/s390.mt: Ditto.
10693 * config/sparc/sparclynx.mh: Ditto.
10694 * config/sparc/linux.mh: Ditto.
10695 * config/pa/hppaosf.mh: Ditto.
10696 * config/pa/hppabsd.mh: Ditto.
10697 * config/ns32k/nbsd.mt: Ditto.
10698 * config/mips/vr5000.mt: Ditto.
10699 * config/m68k/sun3os4.mh: Ditto.
10700 * config/m68k/nbsd.mt: Ditto.
10701 * config/m68k/m68klynx.mh: Ditto.
10702 * config/m32r/m32r.mt: Ditto.
10703 * config/i386/x86-64linux.mt: Ditto.
10704 * config/i386/nbsdelf.mt: Ditto.
10705 * config/i386/nbsd.mt: Ditto.
10706 * config/i386/i386lynx.mh: Ditto.
10708 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10710 * target.c (debug_print_register): New function. Handle oversize
10712 (debug_to_fetch_registers): Call.
10713 (debug_to_store_registers): Call.
10715 2002-05-03 Jim Blandy <jimb@redhat.com>
10717 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10718 (read_type): Doc fix.
10719 * gdbtypes.c (replace_type): Doc fix.
10721 * stabsread.c (multiply_defined_struct): New complaint.
10722 (read_struct_type): If the type we were passed isn't empty, or
10723 incomplete, don't read the new struct type into it; complain,
10724 and return the original type unchanged. Take a new `type_code'
10725 argument, which is the type code for the new type.
10726 (read_type): Rather than storing the type's type code here, pass
10727 it as an argument to read_struct_type, and let that take care of
10728 storing it. That way, we don't overwrite the original type code,
10729 so read_struct_type can use it to decide whether we're overwriting
10730 something we shouldn't.
10731 (complain_about_struct_wipeout): New function.
10733 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10735 * gdbarch.sh: Assert that gdbarch is non-NULL.
10736 * gdbarch.c: Regenerate.
10738 2002-05-03 Jason Merrill <jason@redhat.com>
10740 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10743 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10745 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10746 (x86_64_dwarf2gdb_regno_map_length),
10747 (x86_64_dwarf2_reg_to_regnum): Added.
10748 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10749 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10750 (_initialize_x86_64_tdep): Synced with the change above.
10751 (x86_64_skip_prologue): Reformulated message.
10753 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10755 * f-exp.y: Also use new prev_lexptr variable
10756 to improve error reporting. Based on Michael Snyder
10757 2002-04-24 dated patch to c-exp.y.
10758 * jv-exp.y: Likewise.
10759 * m2-exp.y: Likewise.
10761 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10763 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10764 we are dealing with vectors.
10766 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10768 * config/m68k/tm-nbsd.h: Obvious fix,
10769 correct machine name.
10771 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10773 * p-typeprint.c (pascal_type_print_base): Add support
10774 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10776 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10778 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10779 for fondamental pascal 'char' type.
10781 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10783 * p-lang.h (is_pascal_string_type): Declaration changed,
10784 new sixth argument of type char ** added.
10785 * p-lang.c (is_pascal_string_type): Implementation
10786 changed. Args length_pos, length_size, string_pos, char_size
10787 can now be NULL. New argument arrayname set to the field
10788 name of the char array. Return value set to char array
10789 field index plus one.
10790 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10791 is_pascal_string_type function.
10793 2002-05-02 Andrew Cagney <cagney@redhat.com>
10795 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10796 <cagney@redhat.com> change.
10797 * gdbarch.c: Regenerate.
10799 2002-05-02 Andrew Cagney <cagney@redhat.com>
10801 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10802 before probing for a new one. Detect errorenous gdbarch_init
10804 * gdbarch.c: Regenerate.
10806 2002-05-01 Andrew Cagney <cagney@redhat.com>
10808 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10809 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10810 * config/v850/tm-v850.h: Ditto. Update copyright.
10812 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10814 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10817 2002-04-30 Michael Snyder <msnyder@redhat.com>
10819 * arm-tdep.c: Whitespace clean-ups.
10820 (arm_skip_prologue): Fix thinko; two lines
10821 should have been removed as part of 4/24 change.
10823 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10825 * rs6000-tdep.c: Added comment describing how fpscr register
10826 numbers were chosen.
10828 2002-04-30 Michael Snyder <msnyder@redhat.com>
10830 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10832 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10834 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10835 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10836 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10838 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10840 From Louis Hamilton <hamilton@redhat.com>:
10841 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10842 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10843 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10844 not bfd-private xcoff data, to determine wordsize.
10845 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10847 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10849 GDB 5.2 released from 5.2 branch.
10851 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10853 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10854 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10855 (x86_64_register_info_table): Added comments with register numbers.
10857 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10859 * rs6000-tdep.c (rs6000_extract_return_value,
10860 rs6000_store_return_value): Handle returning vectors.
10861 (rs6000_gdbarch_init): Use
10862 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10863 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10865 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10867 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10868 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10870 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10872 * hpread.c (hpread_psymtab_to_symtab_1,
10873 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10874 with fprintf_unfiltered (gdb_stderr,...).
10876 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10878 * remote-array.c (printf_monitor, write_monitor,
10879 array_insert_breakpoint, array_remove_breakpoint ):
10880 Replace fprintf (stderr,...
10881 with fprintf_unfiltered (gdb_stderr,....
10882 * remote-es.c: Likewise.
10883 * remote-os9k.c: Likewise.
10884 * remote-st.c: Likewise.
10886 2002-04-28 Andreas Schwab <schwab@suse.de>
10888 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10889 linux-proc.o and gcore.o.
10891 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10893 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10894 code without frame pointers.
10896 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10898 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10899 ON_STACK is needed.
10901 2002-04-26 Ben Elliston <bje@redhat.com>
10903 * target.c (do_xfer_memory): Correct reference to the new option
10904 "trust-readonly-sections".
10906 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10908 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10909 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10910 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10912 (read_array_type): Record the fact that this array type is really a
10913 vector (i.e. are passed in by value).
10915 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10917 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10918 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10919 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10920 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10921 * alpha-linux-tdep.c: Include frame.h.
10922 (alpha_linux_sigcontext_addr): New function.
10923 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10924 alpha_linux_sigcontext_addr.
10925 * alpha-osf1-tdep.c: Include gdbcore.h.
10926 (alpha_osf1_sigcontext_addr): New function.
10927 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10928 alpha_osf1_sigcontext_addr.
10929 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10930 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10932 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10934 * stack.c (selected_frame_level):
10935 (select_frame): Do not set selected_frame_level.
10936 * frame.h (selected_frame_level): Delete declaration.
10938 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10940 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10941 convert_from_func_ptr-addr when AIX / PowerOpen.
10943 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10945 * valops.c (hand_function_call): Call
10946 generic_save_call_dummy_addr.
10947 * frame.h (generic_save_call_dummy_addr): Declare.
10948 * blockframe.c (struct dummy_frame): Add fields call_lo and
10950 (generic_find_dummy_frame): Check for PC in range call_lo to
10951 call_hi instead of entry_point_address.
10952 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10953 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10954 (generic_save_call_dummy_addr): New function.
10956 2002-04-24 David S. Miller <davem@redhat.com>
10958 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10959 sparc_skip_prologue.
10960 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10961 information to find prologue when possible.
10962 (sparc_prologue_frameless_p): Call examine_prologue directly.
10963 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10964 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10966 (SKIP_PROLOGUE): Likewise.
10968 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10970 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10971 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10972 indicate that the condition it was testing is always true.
10973 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10974 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10975 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10977 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10979 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10980 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10981 tdep->jb_pc and tdep->jb_elt_size.
10982 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10983 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10984 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10985 * alpha-nat.c (get_longjmp_target): Remove.
10986 (JB_ELEMENT_SIZE): Ditto.
10988 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10989 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10990 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10991 to alpha_get_longjmp_target.
10992 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10993 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10994 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10996 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10998 * README: Update to GDB 5.2.
11000 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11002 * gdbarch.sh (LC_ALL): Set to `c'.
11004 2002-04-25 Theodore A. Roth <troth@verinet.com>
11006 * avr-tdep.c: Ran through gdb_indent.sh.
11008 2002-04-25 Theodore A. Roth <troth@verinet.com>
11010 * MAINTAINERS: Add myself as AVR maintainer.
11011 * NEWS: Note new target avr.
11013 2002-04-25 Theodore A. Roth <troth@verinet.com>
11015 * Makefile.in: Add support for AVR target.
11016 * configure.tgt: Add support for AVR target.
11017 * avr-tdep.c: New file
11018 * config/avr/avr.mt: New file.
11020 2002-04-25 Theodore A. Roth <troth@verinet.com>
11022 * MAINTAINERS: Add myself to write-after-approval.
11024 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11026 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11027 with fprintf_unfiltered (gdb_stderr,....
11029 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11032 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11034 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11036 * p-exp.y: Also use new prev_lexptr variable
11037 to improve error reporting. Based on Michael Snyder
11038 2002-04-24 dated patch to c-exp.y.
11040 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11042 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11043 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11044 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11046 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11048 (FUNCTION_START_OFFSET): Remove.
11049 (BREAKPOINT): Ditto.
11051 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11053 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11056 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11058 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11059 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11060 alpha_linux_pc_in_sigtramp.
11061 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11062 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11063 alpha_osf1_pc_in_sigtramp.
11064 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11065 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11066 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11067 alphafbsd_pc_in_sigtramp.
11068 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11069 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11070 alphanbsd_pc_in_sigtramp.
11071 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11072 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11074 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11076 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11078 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11080 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11082 (alphanbsd-nat.o): New dependency list.
11083 (alphanbsd-tdep.o): Ditto.
11084 * NEWS: Note new native NetBSD/alpha configuration.
11085 * alphanbsd-nat.c: New file.
11086 * alphanbsd-tdep.c: Ditto.
11087 * configure.host (alpha*-*-netbsd*): New host.
11088 * configure.tgt (alpha*-*-netbsd*): New target.
11089 * config/alpha/nbsd.mh: New file.
11090 * config/alpha/nbsd.mt: Ditto.
11091 * config/alpha/nm-nbsd.h: Ditto.
11092 * config/alpha/tm-nbsd.h: Ditto.
11094 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11096 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11097 (alpha-osf1-tdep.o): New dependency list.
11098 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11099 and skip_sigtramp_frame members.
11100 * alpha-linux-tdep.c: Include gdbcore.h.
11101 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11102 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11103 * alpha-osf1-tdep.c: New file.
11104 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11106 (alpha_frame_past_sigtramp_frame): New function.
11107 (alpha_dynamic_sigtramp_offset): Ditto.
11108 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11109 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11110 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11111 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11112 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11113 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11114 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11115 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11116 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11117 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11118 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11119 to find_solib_trampoline_target.
11120 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11121 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11122 (SKIP_TRAMPOLINE_CODE): Remove.
11123 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11124 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11125 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11126 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11127 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11128 (PROC_SIGTRAMP_MAGIC): Ditto.
11129 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11130 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11131 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11132 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11133 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11135 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11137 * NEWS: Note that Alpha targets are now multi-arch.
11139 2002-04-24 Michael Snyder <msnyder@redhat.com>
11141 * parser-defs.h (prev_lexptr): New external variable.
11142 * parse.c (parse_exp_1): Set prev_lexptr to null before
11143 calling the language-specific parser.
11144 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11145 (yyerror): Use prev_lexptr in error reporting.
11147 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11149 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11150 * gregset.h: If FILL_FPXREGSET is defined, provide
11151 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11152 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11153 is defined, call fill_fpxregset.
11155 2002-04-24 Roland McGrath <roland@frob.com>
11157 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11158 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11159 (supply_gregset, supply_fpregset): New functions.
11161 * gnu-nat.c (gnu_find_memory_regions): New function.
11162 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11163 (gnu_xfer_memory): Add a cast.
11165 2002-04-24 Michael Snyder <msnyder@redhat.com>
11167 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11168 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11169 of argument regs ("str r(0123), [r11, #-nn"]).
11170 (arm_skip_prologue): Better handling for frameless functions.
11171 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11172 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11174 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11176 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11177 NUM_PSEUDO_REGS can be used.
11179 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11181 * arch-utils.h: Update copyright.
11183 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11184 * gdbarch.h, gdbarch.c: Re-generate.
11186 * inferior.h (IN_SIGTRAMP): Delete definition.
11187 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11188 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11190 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11191 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11192 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11193 (find_proc_framesize): Ditto.
11194 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11195 (alpha_init_extra_frame_info): Ditto.
11196 * infrun.c (handle_inferior_event): Ditto.
11197 (handle_inferior_event): Ditto.
11198 (check_sigtramp2): Ditto.
11199 * blockframe.c (create_new_frame): Ditto.
11200 (get_prev_frame): Ditto.
11201 * ppc-linux-tdep.c: Update comments.
11202 * i386-linux-tdep.c: Update comments.
11203 * breakpoint.c (bpstat_what): Update comment.
11205 2002-04-24 David S. Miller <davem@redhat.com>
11207 * i960-tdep.c (register_in_window_p): New function.
11208 (i960_find_saved_register): Use it instead of
11209 REGISTER_IN_WINDOW_P.
11210 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11212 * symtab.h (find_stab_function_addr): Kill extern.
11213 * minsyms.c (find_stab_function_addr): Remove from here...
11214 * dbxread.c: ... to here, and mark it static.
11216 2002-04-20 David S. Miller <davem@redhat.com>
11218 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11219 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11221 2002-04-21 David S. Miller <davem@redhat.com>
11223 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11224 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11225 (vx_write_register): Likewise.
11227 2002-04-23 J. Brobecker <brobecker@gnat.com>
11229 * source.c (is_regular_file): New function.
11230 (openp): Check wether file to open is a regular file
11231 to avoid opening directories.
11233 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11235 * findvar.c (extract_signed_integer): Cast printf argument
11236 to suppress format warning.
11237 (extract_unsigned_integer): Likewise.
11238 * infcmd.c (registers_info): Likewise.
11239 * top.c (get_prompt_1): Likewise.
11240 * valops.c (value_assign): Likewise.
11241 * valprint.c (print_decimal): Likewise.
11243 2002-04-22 H.J. Lu (hjl@gnu.org)
11245 * c-exp.y (typebase): Support
11247 [long|long long|short] [signed|unsigned] [int|]
11251 signed [long|long long|short] int
11253 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11255 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11257 * vax-tdep.h: New file.
11258 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11259 Make several routines static.
11260 (vax_get_saved_register): New function.
11261 (vax_gdbarch_init): New function.
11262 (_initialize_vax_tdep): Register vax_gdbarch_init.
11263 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11264 Remove macros now under the control of gdbarch.
11266 2002-04-22 Michael Snyder <msnyder@redhat.com>
11268 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11269 Some whitespace and coding standards tweaks.
11271 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11273 * vax-tdep.c: Include regcache.h.
11274 (vax_call_dummy_words): New.
11275 (sizeof_vax_call_dummy_words): New.
11276 (vax_fix_call_dummy): New function.
11277 (vax_saved_pc_after_call): Ditto.
11278 * config/vax/tm-vax.h: Don't include regcache.h.
11279 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11280 (CALL_DUMMY): Remove.
11281 (CALL_DUMMY_WORDS): Define.
11282 (SIZEOF_CALL_DUMMY_WORDS): Define.
11283 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11285 2002-04-18 Michael Snyder <msnyder@redhat.com>
11287 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11289 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11291 * vax-tdep.c (vax_frame_chain): New function.
11292 (vax_push_dummy_frame): Ditto.
11293 (vax_pop_frame): Ditto.
11294 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11295 (FRAMELESS_FUNCTION_INVOCATION): Use
11296 generic_frameless_function_invocation_not.
11297 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11298 (POP_FRAME): Use vax_pop_frame.
11300 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11302 * vax-tdep.c (vax_store_struct_return): New function.
11303 (vax_extract_return_value): Ditto.
11304 (vax_store_return_value): Ditto.
11305 (vax_extract_struct_value_address): Ditto.
11306 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11307 vax_store_struct_return.
11308 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11309 (STORE_RETURN_VALUE): Use vax_store_return_value.
11310 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11312 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11314 * vax-tdep.c (vax_frame_saved_pc): New function.
11315 (vax_frame_args_address_correct): Ditto.
11316 (vax_frame_args_address): Ditto.
11317 (vax_frame_locals_address): Ditto.
11318 (vax_frame_num_args): Move code to be in proximity to
11319 other frame-related functions.
11320 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11321 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11322 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11323 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11324 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11326 2002-04-22 H.J. Lu (hjl@gnu.org)
11328 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11331 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11333 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11334 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11335 (FRAME_INIT_SAVED_REGS): New macro.
11337 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11339 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11341 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11343 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11345 (fetch_osf_core_registers): Likewise.
11346 (supply_gregset): Likewise.
11348 2002-04-22 J. Brobecker <brobecker@gnat.com>
11350 * symfile.h (get_section_index): Define.
11351 * symfile.c (get_section_index): New function.
11352 * mdebugread.c (SC_IS_SBSS): New macro.
11353 (SC_IS_BSS): Return true for the scBss storage class only, as
11354 the scSBss storage class refers to the .sbss section.
11355 (parse_partial_symbols): Discard the symbols which associated
11356 section does not exist.
11357 Make sure to use the .sbss section index for symbols which
11358 storage class is scBss, rather than using the .bss section index.
11360 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11362 * vax-tdep.c: Update copyright years.
11363 (vax_register_name): New function.
11364 (vax_register_byte): Ditto.
11365 (vax_register_raw_size): Ditto.
11366 (vax_register_virtual_size): Ditto.
11367 (vax_register_virtual_type): Ditto.
11368 * config/vax/tm-vax.h: Update copyright years.
11369 (REGISTER_NAMES): Remove.
11370 (REGISTER_NAME): Define.
11371 (REGISTER_BYTE): Use vax_register_byte.
11372 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11373 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11374 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11376 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11378 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11380 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11382 2002-04-21 David S. Miller <davem@redhat.com>
11384 * arch-utils.c (generic_prologue_frameless_p): Kill
11385 SKIP_PROLOGUE_FRAMELESS_P code.
11386 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11388 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11389 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11390 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11392 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11393 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11394 (sparc_gdbarch_init): Pass it to
11395 set_gdbarch_prologue_frameless_p.
11397 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11399 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11400 (alphabsd-nat.o): New dependency list.
11402 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11404 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11406 (alpha-linux-tdep.o): New dependency list.
11407 (alphafbsd-tdep.o): Likewise.
11409 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11411 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11413 * alpha-tdep.c: ...from here.
11414 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11416 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11418 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11419 prototype from here...
11420 * alpha-tdep.h: ...to here.
11422 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11424 * frame.h (selected_frame_level): Document as deprecated.
11425 (frame_relative_level): Declare.
11426 * stack.c (frame_relative_level): New function.
11427 (selected_frame_level): Document as deprecated.
11428 (select_frame): Do not set the selected_frame_level.
11430 * stack.c (frame_info, record_selected_frame): Update.
11431 (frame_command, current_frame_command): Update.
11432 (up_silently_base, up_command, down_silently_base): Update.
11433 (down_command): Update.
11434 * inflow.c (kill_command): Update.
11435 * tracepoint.c (finish_tfind_command): Update.
11436 * corelow.c (core_open): Update.
11437 * thread.c (info_threads_command): Update.
11438 (do_captured_thread_select): Update.
11439 * infcmd.c (finish_command): Update.
11440 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11442 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11444 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11446 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11448 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11451 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11453 * alphafbsd-tdep.c: Update copyright years. Include
11455 (alphafbsd_use_struct_convention): Make static.
11456 (alphafbsd_init_abi): New function.
11457 (_initialize_alphafbsd_tdep): New function.
11458 * config/alpha/tm-fbsd.h: Update copyright years.
11459 (USE_STRUCT_CONVENTION): Remove.
11461 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11463 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11464 an Alpha ABI variant.
11465 (alpha_abi_handler_list): Declare.
11466 (alpha_gdbarch_register_os_abi): New function.
11467 (alpha_gdbarch_init): Give registered ABI variant handlers a
11468 chance to tweak the gdbarch once we have set up defaults.
11469 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11471 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11473 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11474 to standard_coerce_float_to_double.
11475 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11477 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11479 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11480 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11481 from gdbarch_tdep rather than a constant.
11482 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11483 the default text address for all Alpha Unix ABIs.
11484 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11485 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11487 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11489 * alpha-tdep.h: New file. Includes several Alpha target constants
11491 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11492 let gdbarch deal with.
11493 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11494 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11495 to dependency list.
11496 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11497 Alpha target register names.
11498 * alphabsd-nat.c: Likewise.
11499 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11500 Alpha target register names. Make serveral routines static.
11501 (alpha_get_saved_register): New function.
11502 (alpha_abi_names): New.
11503 (process_note_abi_tag_sections): New function.
11504 (get_elfosabi): New function.
11505 (alpha_gdbarch_init): New function.
11506 (alpha_dump_tdep): New function.
11507 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11509 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11511 * frame.c (find_saved_register): Delete #ifdef
11512 HAVE_REGISTER_WINDOWS code.
11513 * config/sparc/tm-sparc.h: Update comments.
11514 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11516 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11518 * i960-tdep.c (i960_find_saved_register): New function.
11519 (i960_get_saved_register): New function.
11520 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11521 (i960_get_saved_register): Declare.
11522 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11524 2002-04-20 David S. Miller <davem@redhat.com>
11526 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11528 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11530 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11531 instead of NUM_PSEUDO_REGS.
11533 2002-04-20 David S. Miller <davem@redhat.com>
11535 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11536 GDB_MULTI_ARCH_PARTIAL
11537 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11538 define, let tm-sp64.h do it.
11540 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11542 * frame.c (find_saved_register): Avoid a NULL pointer
11543 dereference and actually walk the frame list.
11545 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11547 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11548 sorted in most most-recent-used order. Document.
11549 * gdbarch.h, gdbarch.c: Regenerate.
11551 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11553 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11555 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11556 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11557 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11560 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11563 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11564 (build_builtin_type_vec128): Ditto.
11565 (append_composite_type_field): Fix calculation of type length in
11568 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11570 * config/djgpp/README: Update.
11572 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11575 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11577 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11578 (alpha_setup_arbitrary_frame): ...to this.
11579 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11580 for alpha_setup_arbitrary_frame.
11582 2002-04-18 Andrew Cagney <cagney@redhat.com>
11584 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11585 * gdbarch.h, gdbarch.c: Regenerate.
11587 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11588 * target.h (memory_breakpoint_from_pc): Update declaration.
11589 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11591 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11592 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11593 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11594 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11595 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11596 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11597 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11598 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11599 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11600 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11601 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11602 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11604 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11606 * monitor.c (monitor_insert_breakpoint): Ditto.
11607 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11609 * config/mcore/tm-mcore.h: Update copyright.
11610 * mem-break.c: Ditto.
11611 * xstormy16-tdep.c: Ditto.
11613 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11615 * p-exp.y: Add precedence rule for '^' token.
11616 This removes the shift/reduce conflicts.
11617 Remove the comment concerning these shift/reduce conflicts.
11619 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11621 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11622 (registers_powerpc_nofp): New register set for processors
11623 without floating point unit.
11625 2002-04-18 David S. Miller <davem@redhat.com>
11627 * MAINTAINERS: Add myself to write-after-approval.
11629 2002-04-17 Michael Snyder <msnyder@redhat.com>
11631 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11633 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11635 * rs6000-tdep.c (frame_initial_stack_address): Use
11636 frame_register_read to read the alloca_reg.
11638 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11640 * frame.c (find_saved_register): Find saved registers in the next
11644 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11646 * gdbarch.sh (LANG): Set to ``c''.
11648 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11650 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11652 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11654 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11657 * hpread.c (hpread_get_lntt): Add declaration.
11658 Also fix PR gdb/391.
11660 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11662 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11663 * aclocal.m4, configure: Re-generate.
11666 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11668 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11669 instead of tm_print_insn.
11671 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11673 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11675 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11677 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11678 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11679 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11681 2002-04-12 Don Howard <dhoward@redhat.com>
11683 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11684 max_user_call_depth.
11685 (init_cmd_lists): Initialize the new value;
11686 * cli/cli-script.c (execute_user_command): Limit the call depth of
11687 user defined commands. This avoids a core-dump when user commands
11688 are infinitly recursive.
11690 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11692 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11693 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11694 from tdep struct instead of DEFAULT_LR_SAVE.
11695 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11696 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11697 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11699 2002-04-12 Michael Snyder <msnyder@redhat.com>
11701 * Remote.c: Spelling fix.
11702 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11703 If no symbol found for "sbrk", try "_sbrk".
11704 (make_output_phdrs): Use bfd_section_name.
11705 (gcore_copy_callback): Use bfd_section_name.
11706 * eval.c: Indentation fix-ups.
11707 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11708 in case it gets applied to an address that is already
11709 in the instruction space.
11710 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11711 * symfile.c: Fix indentation, long lines.
11712 * source.c: White space fix-up.
11714 2002-04-12 Andrew Cagney <cagney@redhat.com>
11716 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11717 * frame.c (frame_register_read): New function. Return non-zero on
11719 (read_relative_register_raw_bytes_for_frame): Delete.
11720 (read_relative_register_raw_bytes): Delete.
11721 * frame.h (frame_register_read): Declare.
11722 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11723 * sh-tdep.c: Ditto.
11724 * infcmd.c (do_registers_info): Ditto.
11725 * hppa-tdep.c: Ditto.
11726 * rs6000-tdep.c: Ditto.
11727 * h8500-tdep.c: Ditto.
11728 * mips-tdep.c: Ditto.
11729 * h8300-tdep.c: Ditto.
11730 * z8k-tdep.c: Ditto.
11732 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11734 From Jimi X <jimix@watson.ibm.com>:
11735 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11738 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11740 From Jimi X <jimix@watson.ibm.com>:
11741 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11744 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11746 From Jimi X <jimix@watson.ibm.com>:
11747 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11748 register sets for these processor variants.
11750 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11752 * regformats/reg-ppc.dat: Support FPSCR.
11754 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11756 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11757 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11758 Add fpscr as an invalid/unfetchable register.
11759 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11760 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11761 (fill_fpregset): Add support for register fpscr.
11762 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11763 (fill_gregset): Account for the fact that register ``mq'' might
11765 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11766 (registers_power): Add fpscr to register set at slot 71.
11767 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11768 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11770 2002-04-11 Michael Snyder <msnyder@redhat.com>
11772 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11773 * configure: Regenerate.
11774 * config.in: Regenerate.
11775 * acconfig.h: Add define for _SYSCALL32.
11776 * core-sol2.c: Remove #define _SYSCALL32.
11777 * solib-legacy.c: Remove #define _SYSCALL32.
11779 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11781 * stack.c (select_frame): Cleanup internal error message, do not
11784 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11786 * stack.c (select_frame): Check that selected_frame and the
11787 specified level are as expected.
11788 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11790 * frame.h (struct frame_info): Add field `level'. Update
11792 Work-in-progress PR gdb/464.
11794 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11796 * maint.c (maint_print_section_info): Rename print_section_info.
11797 (print_bfd_section_info, print_objfile_section_info): Update.
11798 * inferior.h (struct gdbarch): Add opaque declaration.
11799 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11800 * gdbarch.h: Regenerate.
11802 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11804 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11805 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11806 (kernel_u_size): Added.
11807 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11808 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11810 2002-04-04 Jim Ingham <jingham@apple.com>
11812 * valarith.c (find_size_for_pointer_math): New function, either returns
11813 the size for a pointer's target, returns 1 for void *, or errors for
11815 (value_add, value_sub): use find_size_for_pointer_math.
11817 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11819 * linux-low.c (linux_look_up_symbols): New hook.
11820 (linux_target_ops): Add linux_look_up_symbols.
11821 * remote-utils.c (decode_address): New function.
11822 (look_up_one_symbol): New function.
11823 * server.c (handle_query): Call target look_up_symbols hook.
11824 * server.h (look_up_one_symbol): Add prototype.
11825 * target.h (struct target_ops): Add look_up_symbols hook.
11827 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11829 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11830 override FP_REGNUM with frame->fp. Update copyright.
11831 * parse.c (num_std_regs, std_regs): Delete.
11832 (target_map_name_to_register): Do not search std_regs. Update
11833 function description.
11834 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11835 declarations. Update copyright.
11838 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11840 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11841 after the last symbol in a block.
11843 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11845 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11846 is non zero as a found symbol.
11848 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11850 * findvar.c: Include "builtin-regs.h".
11851 (value_of_register): Call value_of_builtin_reg when applicable.
11852 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11853 (target_map_name_to_register): Call
11854 builtin_reg_map_name_to_regnum.
11855 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11856 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11857 (builtin_regs_h): Define.
11858 (builtin-regs.o): New target.
11859 (findvar.o): Add $(builtin_regs_h).
11860 * builtin-regs.c, builtin-regs.h: New files.
11861 * std-regs.c: New file.
11862 Partial fix for PR gdb/251.
11864 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11866 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11867 it's no longer required.
11869 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11871 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11873 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11875 From Jimi X <jimix@watson.ibm.com>:
11876 * rs6000-tdep.c (rs6000_software_single_step): Use
11877 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11878 and size. Use target_insert_breakpoint() and
11879 target_remove_breakpoint() to insert and remove breakpoints
11880 instead of explicit memory reads and writes.
11882 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11884 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11885 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11886 ELF_OBJECT_FORMAT ifdef.
11888 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11890 From Jimi X <jimix@watson.ibm.com>:
11891 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11893 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11895 From Jimi X <jimix@watson.ibm.com>:
11896 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11897 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11899 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11901 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11902 s/asprintf/xasprintf/.
11903 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11905 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11907 I believe Jeff Law denies responsability for this one:
11908 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11909 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11910 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11911 Work-around for PR gdb/366.
11913 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11915 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11916 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11917 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11919 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11921 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11922 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11925 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11927 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11930 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11932 * README (Reporting Bugs in GDB): Document the bug web page as the
11933 prefered way of submitting bugs.
11936 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11938 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11939 -1. Update comment.
11940 * gdbarch.h, gdbarch.c: Re-generate.
11942 2002-04-07 Andreas Schwab <schwab@suse.de>
11944 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11945 buffer to regcache_collect.
11947 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11949 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11950 * gdbarch.c, gdbarch.h: Re-generate.
11952 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11954 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11955 declaration. Fix -Werror.
11957 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11959 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11960 * gdbarch.c: Regenerate.
11962 2002-04-05 Michael Snyder <msnyder@redhat.com>
11964 * breakpoint.c (clear_command): Rewrite middle section to
11965 combine two loops with identical control conditions.
11966 Add a cleanup to eliminate a memory leak.
11967 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11969 2002-04-05 H.J. Lu (hjl@gnu.org)
11971 * solib-svr4.c (bkpt_names): Add "__start".
11973 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11975 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11976 as test for 64 bit target.
11978 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11980 * h8500-tdep.c (h8500_write_fp): Delete function.
11981 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11982 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11983 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11984 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11985 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11986 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11988 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11989 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11990 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11991 (d10v_write_fp): Delete function.
11992 * inferior.h (write_fp, generic_target_write_fp): Delete
11994 * regcache.c (generic_target_write_fp): Delete function.
11995 (write_fp): Delete function.
11996 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11997 * gdbarch.h, gdbarch.c: Regenerate.
11998 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11999 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12000 (sparc64_write_fp): Delete declaration.
12001 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12002 (h8500_write_fp): Delete declaration.
12004 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12006 * sparc-tdep.c (sparc64_write_fp): Delete.
12007 (sparc_push_dummy_frame): Replace write_fp call with code to store
12009 (sparc_gdbarch_init): Do not initialize write_fp.
12011 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12013 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12016 2002-03-29 Jim Blandy <jimb@redhat.com>
12018 * stack.c (get_selected_block): Add new argument `addr_in_block',
12019 used to return the exact code address we used to select the block,
12020 not just the block.
12021 * blockframe.c (get_frame_block, get_current_block): Same.
12022 * frame.h (get_frame_block, get_current_block,
12023 get_selected_block): Update declarations.
12024 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12025 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12027 2002-04-05 Michael Snyder <msnyder@redhat.com>
12029 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12032 2002-04-05 J. Brobecker <brobecker@gnat.com>
12034 * utils.c (xfullpath): New function.
12035 * defs.h (xfullpath): Add declaration.
12036 * source.c (openp): Use xfullpath in place of gdb_realpath to
12037 avoid resolving the basename part of filenames when the
12038 associated file is a symbolic link. This fixes a potential
12039 inconsistency between the filenames known to GDB and the
12040 filenames it prints in the annotations.
12041 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12042 to be able to match a filename with either the real filename, or
12043 the name of any symbolic link to this file.
12044 (lookup_partial_symtab): Ditto.
12046 2002-04-04 Michael Snyder <msnyder@redhat.com>
12048 * breakpoint.c: Add support for hardware breakpoints in overlays.
12049 (overlay_events_enabled): New state variable.
12050 (insert_breakpoints): Use overlay_events_enabled to decide
12051 whether to attempt to set a breakpoint at the overlay load addr.
12052 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12053 (remove_breakpoint): Use overlay_events_enabled to decide
12054 whether breakpoints need to be removed from overlay load addr.
12055 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12056 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12057 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12058 disable_overlay_breakpoints): Update overlay_events_enabled.
12060 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12062 * dwarf2read.c (struct function_range): New.
12063 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12064 (check_cu_functions): New.
12065 (read_file_scope): Initialize global function lists.
12066 Call dwarf_decode_line after processing children.
12067 (read_func_scope): Add to global function list.
12068 (dwarf_decode_lines): Call check_cu_functions everywhere
12069 record_line is called. Call record_line with a linenumber
12070 of 0 to mark sequence ends.
12072 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12074 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12075 change sync with glibc.
12077 2002-04-03 Jim Blandy <jimb@redhat.com>
12079 * configure.in: Call AC_C_INLINE.
12080 * configure: Regenerated.
12082 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12084 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12085 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12087 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12089 * NEWS: Mention gcore support on FreeBSD/i386.
12091 * fbsd-proc.c: New file.
12092 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12093 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12095 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12098 2002-03-29 Jim Blandy <jimb@redhat.com>
12100 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12101 unescaped newlines in string literals, but newer ones don't. So
12104 2002-03-26 Michael Snyder <msnyder@redhat.com>
12105 Andrew Cagney <cagney@redhat.com>
12107 * cli/cli-dump.c: New file. Dump memory to file,
12108 restore file to memory.
12109 * cli/cli-dump.h: New file.
12110 * Makefile.in: Add rules, dependencies for cli-dump.o.
12111 * NEWS: Mention new commands.
12113 2002-03-28 Michael Snyder <msnyder@redhat.com>
12115 * symfile.c (symbol_file_add): Move test for null symbols to later.
12117 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12119 From veksler at il.ibm.com:
12120 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12121 the xstrduped original path.
12124 2002-03-27 Michael Snyder <msnyder@redhat.com>
12126 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12127 * infcmd.c (_initialize_infcmd): Ditto.
12128 * language.c (_initialize_language): Ditto.
12129 * symfile.c (_initialize_symfile): Ditto.
12130 * top.c (_init_main): Ditto.
12131 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12133 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12135 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12136 vector registers handling.
12137 (skip_prologue): Handle new AltiVec instructions. Fill in new
12138 fields of frame data.
12139 (frame_get_saved_regs): Fill in information for AltiVec registers.
12141 2002-03-27 Jim Blandy <jimb@redhat.com>
12143 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12144 a function; leave this macro here to invoke that function.
12145 (symbol_init_mangled_name): Declaration for that function.
12146 * symtab.c (symbol_init_mangled_name): New function.
12148 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12150 * valarith.c: Replace strerror with safe_strerror.
12151 * tracepoint.c: Ditto.
12152 * lin-lwp.c: Ditto.
12153 * go32-nat.c: Ditto.
12155 * gnu-nat.c: Ditto.
12157 2002-03-27 Andreas Schwab <schwab@suse.de>
12159 * event-top.c (command_line_handler): Remove useless if.
12161 2002-03-27 Andreas Jaeger <aj@suse.de>
12163 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12166 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12168 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12169 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12170 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12171 (x86_64_linux_dr_get_status, supply_gregset),
12172 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12173 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12174 (x86_64_register_info_table): Add.
12175 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12176 (x86_64_register_raw_size, x86_64_register_virtual_type),
12177 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12178 general x86_64_register_info_table.
12179 (i386_gdbarch_init): gdbarch_register_bytes is now set
12180 dynamicaly during initialization.
12181 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12182 * gdbserver/linux-x86-64-low.c: Ditto.
12184 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12186 * gdbserver/server.c (main): Call target_signal_to_host_p
12187 and target_signal_to_host on signals received from the remote.
12188 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12189 target_signal_from_host on signals sent to the remote.
12190 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12191 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12193 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12195 * signals/signals.c: Include "server.h" in gdbserver build.
12196 (target_signal_from_name): Don't use STREQ.
12197 (_initialize_signals): Likewise. Don't include function in
12200 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12202 * signals.c: Moved to...
12203 * signals/signals.c: Here.
12204 * Makefile (signals.o): Update.
12206 2002-03-26 Jeff Law (law@redhat.com)
12208 * somread.c (som_symtab_read): Remove some commented out code and
12209 updated related comments. Do not set the minimal symbol table to
12210 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12211 in a dynamic executable.
12212 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12213 where we are unable to find the minimal symbol for the given
12216 2002-03-25 Jeff Law (law@redhat.com)
12218 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12220 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12222 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12224 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12226 * command.h: Update copyright.
12227 (struct cmd_list_element): Replace definition with opaque
12229 (enum cmd_types): Document that it will eventually be moved to
12231 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12232 (MALLOCED_REPLACEMENT): Delete macro.
12233 * Makefile.in (cli_decode_h): Add $(command_h).
12234 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12235 * top.c: Include "cli/cli-decode.h".
12236 * completer.c: Include "cli/cli-decode.h".
12237 * maint.c: Include "cli/cli-decode.h".
12238 * cli/cli-decode.h: Include "command.h".
12239 (enum command_class): Delete.
12240 (enum cmd_types): Comment out.
12241 (enum cmd_auto_boolean): Delete.
12242 (enum var_types): Delete.
12244 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12246 * cli/cli-decode.c: Include "gdb_assert.h".
12247 (add_set_or_show_cmd): New static function.
12248 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12249 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12250 all fields, such as func, from the set command.
12252 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12254 * MAINTAINERS (sh-elf): Change warning flag to -w.
12256 2002-03-23 Andrew Cagney <cagney@redhat.com>
12258 * defs.h (error): Add printf format attribute.
12259 * thread-db.c (thread_from_lwp): Fix error format string.
12260 * stack.c (parse_frame_specification): Ditto.
12261 * cli/cli-decode.c (undef_cmd_error): Ditto.
12262 * scm-lang.c (scm_lookup_name): Ditto.
12263 * tracepoint.c (trace_error): Ditto.
12264 * remote-utils.c (usage): Ditto.
12265 * remote.c (compare_sections_command): Ditto.
12268 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12270 * gdbtypes.c (append_composite_type_field): New function.
12271 (init_composite_type): New function.
12272 * gdbtypes.h (append_composite_type_field): Declare.
12273 (init_composite_type): Ditto.
12275 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12277 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12279 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12280 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12281 structure returning convention for SYSV ABI case, but not
12282 for GNU/Linux, FreeBSD, or NetBSD.
12284 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12286 * symtab.h (lookup_block_symbol): Add mangled_name argument
12289 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12290 with new mangled_name argument.
12291 * linespec.c (decode_line_1): Likewise.
12292 * valops (value_of_this): Likewise.
12293 * symtab.c (lookup_transparent_type): Likewise.
12294 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12295 (lookup_symbol): If we are given a mangled name, pass it down
12296 to lookup_symbol_aux.
12297 (lookup_block_symbol): If we are given a mangled name to check
12298 against, only return symbols which match it.
12300 2002-03-22 Christopher Faylor <cgf@redhat.com>
12302 * win32-nat.c (child_create_inferior): Check for proper shell to use
12303 here, in case the user changes it on the fly.
12304 (_initialize_inftarg): Remove shell path considerations.
12306 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12308 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12309 for gdbarch_max_register_raw_size and max_register_virtual_size.
12310 Adjust copyright year.
12312 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12314 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12315 in a function to cover the entire beginning of the function
12316 as well if it does not already.
12318 2002-03-21 Tom Rix <trix@redhat.com>
12320 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12321 (rs6000_ptrace64): Renamed from ptrace64.
12323 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12325 * gdbserver/remote-utils.c (remote_open): Don't call
12326 getprotobyname, we're all using TCP here so just use
12328 * gdbserver/gdbreplay.c (remote_open): Ditto.
12330 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12332 * regcache.c (_initialize_regcache): No need to call
12333 build_regcache() at this time; it gets called whenever
12334 the gdbarch changes.
12336 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12338 * sparc-nat.c: Include sys/param.h where possible.
12340 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12343 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12344 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12345 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12347 * stabsread.c (rs6000_builtin_type): Likewise.
12348 (read_sun_floating_type): Likewise.
12350 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12352 * stabsread.c (read_member_functions): Remove skip code for duplicate
12353 constructor/destructor methods. Use standard parsing for these
12354 methods and just do not chain them to the list of methods after
12357 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12359 * coffread.c: Remove redundant static declarations. Replace
12360 occurrences of `PTR' with `void *'.
12361 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12362 * top.h (quit_cover): Likewise.
12363 * defs.h (catch_errors): Likewise.
12365 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12367 * defs.h (XMALLOC): Define.
12368 * gdb-events.sh (XMALLOC): Delete macro.
12369 * gdb-events.c, gdb-events.h: Regenerate.
12370 * gdbarch.sh (XMALLOC): Delete macro.
12371 * gdbarch.c: Regenerate.
12372 * serial.c (XMALLOC): Delete macro.
12373 * ui-file.c (XMALLOC): Ditto.
12374 * ser-unix.h (XMALLOC): Ditto.
12375 * sh-tdep.c (XMALLOC): Ditto.
12376 * ui-out.c (XMALLOC): Ditto.
12377 * utils.c (XMALLOC): Ditto.
12378 * i386-tdep.c (XMALLOC): Ditto.
12379 * gdb-events.c (XMALLOC): Ditto.
12380 * d10v-tdep.c (XMALLOC): Ditto.
12381 * cli-out.c (XMALLOC): Ditto.
12383 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12384 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12385 * ui-file.c, ui-out.c: Ditto.
12387 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12389 * command.h (struct cmd_list_element): Add field context.
12390 (set_cmd_context, get_cmd_context): Declare.
12391 * cli/cli-decode.h: Ditto.
12392 * cli/cli-decode.c (get_cmd_context): New function.
12393 (set_cmd_context): New function.
12394 (add_cmd): Initialize context.
12395 Part of fixing PR gdb/145 and PR gdb/146.
12397 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12399 * cli/cli-decode.c (cmd_type): New function.
12400 * command.h (cmd_type): Declare.
12401 * infrun.c (set_schedlock_func): Call function cmd_type.
12402 * kod.c (kod_set_os): Call cmd_type.
12403 * cris-tdep.c (cris_version_update): Use function cmd_type.
12404 (cris_mode_update, cris_abi_update): Ditto.
12406 * command.h: (execute_cmd_post_hook): Declare.
12407 (execute_cmd_pre_hook): Declare.
12408 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12409 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12410 functions. Execute pre/post hook while ensuring that afterwords
12411 hook_in is cleared.
12412 * top.c (execute_command): Use execute_cmd_post_hook, and
12413 execute_cmd_pre_hook to execute pre/post commands.
12414 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12416 (hook_stop_stub): Call execute_cmd_pre_hook.
12418 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12420 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12421 set'' and this leads to a core dump. Move xstrdup of
12422 operating_system to after check that it is not NULL.
12424 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12426 * kod.c (kod_set_os): Remove unnecessary check that
12427 ``command->type'' is set_cmd.
12429 * valprint.c (set_input_radix): Use input_radix.
12430 (set_output_radix): Use output_radix.
12431 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12434 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12436 * value.h (struct value): Delete field ``substring_addr''. Change
12437 aligner fields to force_doublest_align, force_longest_align,
12438 force_core_addr_align and force_pointer_aligh.
12440 * value.h (struct value): Fix typo in above change.
12442 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12444 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12445 to fix internal_error from ``maintenance print architecture''.
12447 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12449 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12450 for gcc versions after gcc-2.8.1.
12452 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12454 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12455 for method resolution. Restore adjustment of ``this'' pointer after
12456 calling value_struct_elt, which was accidentally removed during the
12459 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12461 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12463 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12464 get_saved_register.
12465 * value.h (value_of_register): Update.
12467 2002-03-14 Richard Henderson <rth@redhat.com>
12469 * configure.in: Detect declaration for canonicalize_file_name.
12470 * utils.c (canonicalize_file_name): Declare, if needed.
12471 (gdb_realpath): Prefer realpath if available and usable.
12472 * config.in, configure: Rebuild.
12474 2002-03-14 Richard Henderson <rth@redhat.com>
12476 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12477 a constant array bound.
12479 * MAINTAINERS: Add myself to write-after-approval.
12481 2002-03-14 Michael Snyder <msnyder@redhat.com>
12483 * symfile.c (syms_from_objfile): Return immediately if no syms.
12484 (symbol_file_add): Return immediately if no syms.
12485 (find_sym_fns): Return immediately if no syms.
12487 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12489 * gdbserver/remote-util.c (remote_open): Print remote-side's
12490 IP address when remote debugging over the network.
12492 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12494 * config/sparc/fbsd.mh: Fix copyright.
12495 * config/sparc/fbsd.mt: Likewise.
12497 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12499 * MAINTAINERS: Fix typo in name of gdb warnings option.
12500 (x86-64): Fix formating so that this can be parsed by awk.
12502 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12504 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12505 * defs.h: Include "gdb/signals.h".
12506 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12508 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12510 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12511 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12514 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12515 Don Howard <dhoward@redhat.com>
12517 * mips-tdep.c (ST0_FR): Define.
12518 (mips2_fp_compat): New function, temporarily disabled.
12519 (mips_read_fp_register_single): New function.
12520 (mips_read_fp_register_double): New function.
12521 (mips_print_register): Use them.
12522 (do_fp_register_row): Likewise.
12524 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12526 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12529 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12531 * stabsread.c (read_member_functions): Fix is_stub test for
12532 static member functions, improve comment.
12534 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12536 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12537 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12538 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12539 commands that set boolean values.
12540 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12541 (arm_rdi_resume): Always initialize PC.
12542 (arm_rdi_open): Don't use rslt as a boolean.
12543 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12544 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12545 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12546 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12548 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12550 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12551 * configure: Rebuilt.
12553 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12555 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12556 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12558 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12560 * cli/cli-decode.c (set_cmd_completer): New function.
12561 * command.h (set_cmd_completer): Declare.
12562 * cli/cli-decode.h (set_cmd_completer): Ditto.
12564 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12565 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12566 * win32-nat.c (_initialize_inftarg): Ditto.
12567 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12568 * proc-api.c (_initialize_proc_api): Ditto.
12569 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12570 * source.c (_initialize_source): Ditto.
12571 * exec.c (_initialize_exec): Ditto.
12572 * solib.c (_initialize_solib): Ditto.
12573 * top.c (init_main): Ditto.
12574 * tracepoint.c (_initialize_tracepoint): Ditto.
12575 * symfile.c (_initialize_symfile): Ditto.
12576 * printcmd.c (_initialize_printcmd): Ditto.
12577 * infcmd.c (_initialize_infcmd): Ditto.
12578 * corefile.c (_initialize_core): Ditto.
12580 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12582 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12584 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12586 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12588 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12590 * NEWS: Update headings, 5.2 has branched.
12592 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12594 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12595 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12596 (register_addr, REGISTER_RAW_SIZE): Likewise.
12597 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12598 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12600 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12602 * MAINTAINERS (x86-64): Add myself.
12603 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12604 changed value_ptr -> struct value *
12606 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12608 * configure.host (sparc64-*-freebsd): Add.
12609 * configure.tgt: Likewise.
12610 * config/sparc/fbsd.mh: New file.
12611 * config/sparc/fbsd.mt: Likewise.
12612 * config/sparc/nm-fbsd.h: Likewise.
12613 * config/sparc/tm-fbsd.h: Likewise.
12615 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12617 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12618 regformats/reg-s390x.dat.
12620 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12622 * utils.c: Add FIXME explaining true/false problem.
12624 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12626 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12628 2002-02-28 Michael Chastain <mec@shout.net>
12630 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12632 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12634 * gdbserver/linux-s390-low.c: New file.
12635 * regformats/reg-s390.dat: New file.
12636 * regformats/reg-s390x.dat: New file.
12637 * gdbserver/configure.srv: Add S/390.
12638 * gdbserver/Makefile.in: Add S/390.
12639 * configure.tgt: Enable gdbserver for S/390.
12641 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12643 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12644 first line of the doc string for "info dos", except at the end of
12645 the sentence, since the short help stops at the first period.
12647 2002-02-28 Jason Merrill <jason@redhat.com>
12649 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12651 2002-02-27 Fred Fish <fnf@redhat.com>
12653 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12654 comment (dumy -> dummy).
12656 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12658 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12660 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12662 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12664 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12666 * gdbserver/acconfig.h: New file.
12667 * gdbserver/i387-fp.c: New file.
12668 * gdbserver/i387-fp.h: New file.
12669 * gdbserver/linux-x86-64.c: New file.
12670 * regformats/reg-x86-64.dat: New file.
12671 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12672 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12673 * gdbserver/configure.in: Add support for regsets.
12674 * gdbserver/config.in: Regenerate.
12675 * gdbserver/configure: Regenerate.
12676 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12677 * gdbserver/linux-low.h: New file.
12678 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12680 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12681 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12682 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12683 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12684 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12685 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12686 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12687 "i387-fp.h". Add PTRACE_GETREGS and friends.
12688 * gdbserver/regcache.c (supply_register): New function.
12689 (supply_register_by_name): New function.
12690 (collect_register): New function.
12691 (collect_register_by_name): New function.
12693 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12695 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12696 (config.status): Add configure.srv dependency.
12697 (server_h): Add config.h dependency.
12699 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12701 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12702 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12703 * gdbserver/configure.srv: Change i386-*-linux* to use
12706 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12708 * x86-64-tdep.c: Re-indent. Update copyright date.
12710 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12712 From Michal Ludvig <mludvig@suse.cz>:
12713 * x86-64-tdep.c (value.h): Delete.
12714 (gdb_assert.h): Include.
12715 (x86_64_register_convert_to_virtual,
12716 x86_64_register_convert_to_raw ): Add check which lets only
12717 floating-point values to be converted.
12718 (value_push): Delete.
12719 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12720 (i386_gdbarch_init): Number of register_bytes fixed.
12722 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12724 * MAINTAINERS: Add x86-64 target.
12726 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12728 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12729 * osfsolib.c (solib_map_sections): Ditto.
12730 * irix5-nat.c (solib_map_sections): Ditto.
12731 * corelow.c (gdb_check_format): Ditto.
12732 * symfile.c (symfile_bfd_open): Ditto.
12733 * solib.c (solib_map_sections): Ditto.
12736 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12738 * remote.c (_initialize_remote): By default, disable ``e'' and
12739 ``E'' step out-of-range packets.
12741 2002-02-26 Andreas Schwab <schwab@suse.de>
12743 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12744 m68k_linux_frame_saved_pc.
12745 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12747 (SIGCONTEXT_PC_OFFSET): Remove.
12748 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12749 m68k_linux_sigtramp_saved_pc): New functions.
12750 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12751 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12752 (UCONTEXT_PC_OFFSET): Define.
12753 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12754 non-RT and RT signal trampolines.
12756 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12758 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12759 (TARGET_NBPG, STACK_END_ADDR): Delete
12760 (VARIABLES_INSIDE_BLOCK): Delete.
12762 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12764 * utils.c (perror_with_name): Make string parameter constant.
12765 (print_sys_errmsg): Ditto.
12767 * defs.h (perror_with_name): Update.
12768 (print_sys_errmsg): Update.
12771 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12773 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12774 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12776 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12778 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12779 if it already matches the current architecture from the exec file.
12780 Include arch-utils.h for gdbarch_info_init prototype.
12781 * Makefile.in (rs6000-nat.o): Update dependencies.
12783 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12785 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12786 list of exported variables.
12788 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12790 * gdbserver/configure.srv: New file.
12791 * gdbserver/configure.in: Use configure.srv instead
12792 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12794 * gdbserver/configure: Regenerated.
12795 * gdbserver/terminal.h: New file.
12796 * gdbserver/Makefile.in: Update for configure changes. Remove
12797 more unneeded include paths.
12799 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12801 From wiz at danbala:
12802 * config/sparc/tm-sp64.h: Fix grammar and typos.
12805 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12807 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12808 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12809 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12810 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12811 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12812 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12813 * s390-tdep.c: Ditto.
12814 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12815 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12816 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12817 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12818 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12819 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12820 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12821 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12822 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12823 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12826 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12828 * lin-thread.c: Delete file.
12829 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12830 to gdb_proc_service.h.
12831 * configure: Re-generate.
12833 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12834 * serial.c (serial_open): Delete check for "ocd".
12837 * Makefile.in (linux-thread.o): Delete target.
12838 * linux-thread.c: Delete file.
12840 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12841 renamed SH files to be consistent.
12843 * symtab.c (sort_search_symbols): Use xfree.
12845 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12847 * arm-linux-tdep.c (arm_linux_init_abi): Register
12848 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12849 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12850 definition with undef, since we don't want the sysvr4 definition.
12851 (SKIP_TRAMPOLINE_CODE): Likewise.
12853 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12855 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12857 * configure.in: (AC_CHECK_FUNCS) Added test for
12858 canonicalize_file_name Regenerated.
12859 * config.in, configure: Regenerated.
12860 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12861 defined use canonicalize_file_name.
12863 2002-02-23 Michael Chastain <mec@shout.net>
12865 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12867 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12869 * README: Remove references to cygnus.com.
12870 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12871 dot com'' form. Remove references to cygnus.com and sourceware.
12873 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12875 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12876 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12877 1003.1-2001 no longer allows "head -1".
12878 * gdb/Makefile.in (version.c): Likewise.
12879 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12880 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12881 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12883 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12885 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12886 * command.h (cmd_cfunc_eq): Declare.
12887 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12889 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12890 ``struct cmd_list_element *''.
12891 * cli/cli-cmds.c (is_complete_command): Update. Use
12893 * top.c (execute_command): Pass the command to
12894 is_complete_command.
12895 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12897 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12899 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12900 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12901 architecture defines.
12902 * s390-tdep.c (s390_gdbarch_init): Likewise.
12904 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12906 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12907 (arm_linux_push_arguments): Likewise.
12908 (arm_linux_init_abi): Register them. Also register linux-specific
12910 (find_minsym_and_objfile): Use strcmp, not STREQ.
12911 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12912 (arm_linux_call_dummy_words): Delete declaration.
12913 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12914 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12916 (LOWEST_PC): Delete.
12918 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12920 * maint.c (print_section_info): Do not prepend `0x' to filepos
12921 output, it will be handled by local_hex_string_custom.
12923 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12925 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12926 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12927 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12929 2002-02-22 Jim Blandy <jimb@redhat.com>
12931 Indicate that the bcache functions don't change the strings
12933 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12934 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12936 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12938 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12940 2002-02-21 Christopher Faylor <cgf@redhat.com>
12942 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12943 find the complete path to a loaded DLL.
12945 2002-02-21 Fred Fish <fnf@redhat.com>
12947 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12948 that marks the end of the range of a function, enter a line number
12949 entry that has a line number of zero and a PC offset that matches
12950 the end of the function. This starts a range of PC's for which no
12951 line number information is known.
12952 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12953 PC's for which no line number info is found (line number is zero)
12954 then we didn't find any valid line information.
12955 * symtab.h: Document use of zero line number entry.
12957 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12959 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12960 (have_ptrace_getvrregs): Define for run time checks.
12961 (gdb_vrregset_t): New type for Altivec register handling.
12962 (fetch_register, store_register): Fetch/store altivec register
12964 (fetch_altivec_register, store_altivec_register): New functions.
12965 (supply_vrregset, fill_vrregset): New functions.
12966 (fetch_altivec_registers, store_altivec_registers): New functions.
12967 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12970 2002-02-21 Jiri Smid <smid@suse.cz>
12972 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12974 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12976 * Makefile.in (armnbsd-nat.o): Update dependencies.
12977 * armnbsd-nat.c (supply_gregset): New function. Common code to
12978 supply the integer register set.
12979 (supply_fparegset): New function. Similar for FPA registers.
12980 (fetch_regs, fetch_fp_regs): Use them.
12981 (fetch_core_registers): Likewise.
12982 (fetch_elfcore_registers): New function.
12983 (arm_netbsd_elfcore_fns): New core-file type specification.
12984 (_initialize_arm_netbsd_nat): Register it.
12986 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12988 * armnbsd-nat.c: Include gdbcore.h.
12989 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12990 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12991 'void' to declaration, to shut up ARI.
12992 (fetch_core_registers): Make static. Rewrite using supply_register.
12993 (arm_netbsd_core_fns): New core-file type specification.
12994 (_initialize_arm_netbsd_nat): New function.
12996 2002-02-21 Christopher Faylor <cgf@redhat.com>
12998 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13001 2002-02-20 Christopher Faylor <cgf@redhat.com>
13003 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13006 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13008 * jv-exp.y (parse_number): Change type of implicit longs
13009 to builtin_type_uint64.
13011 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13013 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13014 to be an integer instead of a `union wait'.
13016 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13018 * mips-linux-nat.c: Call the operating system GNU/Linux.
13019 * mips-linux-tdep.c: Likewise.
13020 * mips-tdep.c: Likewise.
13022 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13025 * jv-exp.y (parse_number): Handle 64-bit integers.
13027 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13029 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13030 AC_STDC_HEADERS to AC_HEADER_STDC.
13031 * gdbserver/configure: Regenerated.
13033 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13035 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13037 * sparc-tdep.c (get_longjmp_target): Likewise.
13039 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13041 * News: Add news about ARM and Multi-arch. Mention the new target
13044 2002-02-19 Jim Blandy <jimb@redhat.com>
13046 * stabsread.c (error_type_complaint): Improve error message.
13048 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13050 * gdbserver/README: Update documentation.
13051 * gdbserver/configure.in: Update configury to match documentation.
13052 * gdbserver/Makefile.in: Likewise.
13053 * gdbserver/configure: Regenerated.
13054 * gdbserver/aclocal.m4: New file, generated by aclocal.
13055 * gdbserver/config.in: New file, generated by autoheader.
13057 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13059 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13062 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13064 * arm-tdep.h (enum arm_float_model): New enum.
13065 (struct gdbarch_tdep): Add fp_model.
13066 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13067 up floating-point conversions until we know the floating-point model
13068 in use by the inferior. Don't complain about being unable to
13069 determine the ABI of the inferior when we don't have one.
13070 (arm_extract_return_value): Support different floating-point models.
13071 (arm_store_return_value): Likewise.
13072 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13074 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13076 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13078 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13079 of ``current_gdbarch''.
13081 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13083 * armnbsd-nat.c : ANSIfy all function declarations.
13084 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13085 (fetch_inferior_registers): Re-implement in terms of above.
13086 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13087 (store_inferior_registers): Re-implement in terms of above.
13089 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13091 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13093 * arm-linux-tdep.c: Likewise.
13094 * config/arm/tm-linux.h: Likewise.
13096 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13098 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13099 * config/arm/nbsd.mt (TM_FILE): Delete.
13100 * config/arm/tm-nbsd.h: Delete.
13102 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13104 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13105 Initialize CALL_DUMMY_LENGTH.
13107 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13109 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13111 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13112 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13113 defines one thing and that is incorrect for this port.
13114 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13116 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13118 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13120 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13122 * win32-nat.c (display_selector): New function. Displays information
13123 about the information returned by GetThreadSelectorEntry API function.
13124 (display_selectors): New function. Displays the infomation of
13125 the selector given as argument, or of CS, DS ans FS selectors
13126 if no argument is given.
13127 ( _initialize_inftarg): Add "w32" as info prefix command.
13128 Add "info w32 selector" as command calling display_selectors.
13130 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13132 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13133 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13136 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13138 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13140 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13142 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13143 (arm_fix_call_dummy): Call it.
13144 (arm_call_dummy_breakpoint_offset): Delete.
13145 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13146 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13148 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13150 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13151 Default to func_frame_chain_valid.
13152 * gdbarch.h, gdbarch.c: Re-generate.
13153 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13155 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13157 * ppc-linux-nat.c: Update copyright.
13158 (fetch_register, store_register): Add tid parameter, don't compute
13160 (fetch_ppc_registers, store_ppc_registers): Add tid
13161 parameter. Pass it along to callees.
13162 (fetch_inferior_registers, store_inferior_registers): Compute tid
13163 here, and pass it to calleed functions.
13164 (fill_gregset, supply_fpregset): Clean up formatting.
13166 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13168 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13169 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13171 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13173 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13174 * gdbarch.c gdbarch.h: Regenerate.
13175 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13177 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13178 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13179 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13181 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13182 * arm-tdep.c (arm_get_longjmp_target): New function.
13183 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13184 this to a positive value register arm_get_longjmp_target as the
13186 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13187 (arm_linux_init_abi): Set up longjmp description in tdep.
13188 * armnbsd-nat.c (get_longjmp_target): Delete.
13189 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13190 description in tdep.
13191 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13192 (get_longjmp_target): Delete declaration.
13193 (GET_LONGJMP_TARGET): Delete.
13194 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13195 (GET_LONGJMP_TARGET): Delete.
13197 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13199 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13200 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13201 of ``current_gdbarch''.
13203 2002-02-17 Tom Tromey <tromey@redhat.com>
13205 * cli/cli-cmds.c (compare_strings): New function.
13206 (complete_command): Only print each unique item once.
13207 * completer.h (complete_line): Declare.
13208 * completer.c (complete_line): New function.
13209 (line_completion_function): Use it.
13211 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13213 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13214 * gdbarch.h, gdbarch.c: Re-generate.
13216 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13218 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13220 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13222 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13223 * valops.c (value_arg_coerce): Don't take the address of a reference
13224 to convert an argument to a reference.
13226 2002-02-15 Christopher Faylor <cgf@redhat.com>
13228 * win32-nat.c (get_image_name): New function.
13229 (handle_load_dll): Use get_image_name function.
13230 (get_child_debug_event): Avoid registering debug events until possibly
13231 execed process is started.
13232 (child_create_inferior): Allow invocation via shell so that command
13233 line redirection, etc. works ok.
13234 (_initialize_inftarg): Add new command: "set shell" to control whether
13235 a shell is used to start a process.
13237 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13239 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13240 instead of find_register_by_number.
13241 (cannot_store_register): Likewise.
13243 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13245 * dwarf2read.c: Replace fprintf (stderr, ...) by
13246 fprintf_unfiltered (gdb_stderr, ...).
13248 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13250 * gdbserver/gdbserver.1: Document --attach.
13252 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13254 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13256 * arm-tdep.c (arm_default_arm_le_breakpoint)
13257 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13258 (arm_default_thumb_be_breakpoint): New. Initialize them from
13259 traditional breakpoint defines.
13260 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13261 (arm_gdbarch_init): Initialize new breakpoint variables.
13262 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13263 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13264 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13265 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13267 (arm_netbsd_init_abi_common): ... here; new function.
13268 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13269 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13270 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13271 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13273 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13275 * arm-tdep.h (enum arm_abi): New enum.
13276 (struct gdbarch_tdep): New structure.
13277 (LOWEST_PC): Provide a default.
13278 (arm_gdbarch_register_os_abi): Declare new function.
13279 * arm-tdep.c (arm_abi_names): New array.
13280 (process_note_abi_tag_sections): New function.
13281 (get_elfosabi): New function.
13282 (arm_gdbarch_register_os_abi): New function.
13283 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13284 support for that ABI has been built in, then call the appropriate
13285 configuration routine. Use gdbarch_num_regs() to get the number
13287 (arm_dump_tdep): New function.
13288 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13289 place-holder functions.
13290 (_initialize_arm_tdep): Register them.
13291 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13293 * armnbsd-tdep.c: New file.
13294 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13295 * config/arm/nbsd.mt (TDEPFILES): Add it.
13296 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13298 * armnbsd-nat.c: Include regcache.h.
13299 * Makefile.in (armnbsd-nat.o): Update dependency list.
13301 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13303 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13305 * gdbserver/Makefile.in: Fix typos in target rules.
13307 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13309 Fix part of PR gdb/267.
13310 * linespec.c (find_methods): Handle constructors specially for now.
13312 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13314 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13316 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13317 standard_coerce_float_to_double().
13319 2002-02-14 Christopher Faylor <cgf@redhat.com>
13321 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13324 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13326 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13327 find_variant_by_name, because it confuses the multiarch
13328 framework. Return NULL if there isn't an architecture with the
13329 user supplied name, instead of forcing a different one without
13330 recording the change with the multiarch machinery.
13331 (find_variant_by_name): Delete.
13333 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13335 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13336 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13338 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13340 * stack.c (print_frame_info_base): When calling
13341 print_frame_info_listing_hook, set current_source_symtab.
13343 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13345 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13346 and remove unused $(INCLUDE_DIR).
13347 Add regcache.c to OBS.
13348 Add generated register protocol files to clean target.
13349 Update dependencies for new objects, obsolete old target code.
13351 * gdbserver/linux-low.c: Remove all platform-specific code to
13352 new files. Remove various dead code. Update to use regcache
13354 * gdbserver/remote-utils.c (fromhex): Add return statement
13356 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13358 (input_interrupt): Add integer parameter to match prototype
13359 of a signal handler.
13360 (outreg): Use register_data ().
13361 (prepare_resume_reply): Use gdbserver_expedite_regs.
13362 * gdbserver/server.c (main): Dynamically allocate own_buf because
13363 PBUFSIZ is no longer constant. Use registers_to_string () and
13364 registers_from_string ().
13365 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13366 for error (), fatal (), and warning (). Update definition of
13367 PBUFSIZ to use regcache functionality. Add include guard.
13368 * gdbserver/utils.c (fatal): Add missing ``const''.
13369 (warning): New function.
13371 * regformats/regdat.sh: Include "regcache.h" in generated files.
13372 Provide init_registers () function.
13373 * regformats/regdef.h: Add prototype for set_register_cache ().
13376 * gdbserver/linux-arm-low.c: New file.
13377 * gdbserver/linux-i386-low.c: New file.
13378 * gdbserver/linux-ia64-low.c: New file.
13379 * gdbserver/linux-m68k-low.c: New file.
13380 * gdbserver/linux-mips-low.c: New file.
13381 * gdbserver/linux-ppc-low.c: New file.
13382 * gdbserver/linux-sh-low.c: New file.
13384 * gdbserver/regcache.c: New file.
13385 * gdbserver/regcache.h: New file.
13387 * gdbserver/low-linux.c: Removed obsolete file.
13389 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13391 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13392 * config/i386/linux.mt: Likewise.
13393 * config/ia64/linux.mt: Likewise.
13394 * config/m68k/linux.mh: Likewise.
13395 * config/powerpc/linux.mh: Likewise.
13396 * config/mips/linux.mt: Likewise.
13398 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13400 * config/i386/i386lynx.mh: Mark gdbserver variables
13401 as (currently) obsolete for this target.
13402 * config/i386/nbsd.mt: Likewise.
13403 * config/i386/nbsdelf.mt: Likewise.
13404 * config/m32r/m32r.mt: Likewise.
13405 * config/m68k/m68klynx.mh: Likewise.
13406 * config/m68k/nbsd.mt: Likewise.
13407 * config/m68k/sun3os4.mh: Likewise.
13408 * config/mips/vr5000.mt: Likewise.
13409 * config/ns32k/nbsd.mt: Likewise.
13410 * config/pa/hppabsd.mh: Likewise.
13411 * config/pa/hppaosf.mh: Likewise.
13412 * config/powerpc/nbsd.mt: Likewise.
13413 * config/rs6000/rs6000lynx.mh: Likewise.
13414 * config/s390/s390.mt: Likewise.
13415 * config/s390/s390x.mt: Likewise.
13416 * config/sparc/sparclynx.mh: Likewise.
13417 * config/sparc/sun4os4.mh: Likewise.
13418 * config/i386/x86-64linux.mt: Likewise.
13419 * config/sparc/linux.mh: Likewise.
13421 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13423 * configure.tgt: Configure gdbserver only for known working
13424 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13425 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13426 SUBDIRS if it is configured. Update comment for ${nativefile}.
13427 * configure: Regenerated.
13429 2002-02-13 Michael Snyder <msnyder@redhat.com>
13431 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13433 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13434 (default_gcore_mach): Just return 0, work around a problem in bfd.
13435 (default_gcore_target): OK to return NULL if exec_bfd is null.
13436 (make_mem_sec): Use a cast, avoid a warning.
13438 * procfs.c (find_memory_regions_callback): Use a cast instead of
13439 calling host_pointer_to_address (which complains if
13440 sizeof (host pointer) != sizeof (target pointer)).
13441 (procfs_make_note_section): Avoid overflow in psargs string.
13443 * procfs.c (procfs_make_note_section): Make the default
13444 implementation return an error.
13446 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13448 * procfs.c (procfs_make_note_section): Provide a default definition
13449 (for alpha-dec-osf4.0f). Fix typos.
13451 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13453 * linux-proc.c: Add include of regcache.h.
13454 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13456 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13458 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13459 * memattr.c (create_mem_region): Disallow useless empty region.
13460 Regions are half-open intervals, so allow [A..B) [B..C) as
13463 2002-02-13 Michael Chastain <mec@shout.net>
13465 * defs.h: Kill CONST_PTR.
13466 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13467 * c-lang.c (c_builtin_types): Likewise.
13468 * ch-lang.c (ch_builtin_types): Likewise.
13469 * f-lang.c (f_builtin_types): Likewise.
13470 * language.c (unknown_builtin_types): Likewise.
13471 * m2-lang.c (m2_builtin_types): Likewise.
13472 * p-lang.c (pascal_builtin_types): Likewise.
13473 * scm-lang.c (c_builtin_types): Likewise.
13475 2002-02-13 Keith Seitz <keiths@redhat.com>
13477 * arm-tdep.h (arm_get_next_pc): Add declaration.
13479 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13481 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13482 with other related struct-returning functions.
13483 (arm_extract_struct_value_address): New function.
13484 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13485 initialize float_format, double_format and long_double_format as
13486 appropriate to the endianness of the target.
13487 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13488 (arm_use_struct_convention): Delete declaration.
13489 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13491 2002-02-13 Keith Seitz <keiths@redhat.com>
13493 * defs.h (core_addr_to_string_nz): New function.
13495 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13497 Apply missing bits of 2002-01-15 patch.
13498 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13499 (fill_fpregset): Use i387_fill_fsave.
13501 2002-02-12 Keith Seitz <keiths@redhat.com>
13503 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13504 (core_addr_to_string_nz): New function.
13506 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13508 * arm-linux-nat.c: Really include arm-tdep.h.
13509 * config/arm/tm-linux.h (struct type, struct value): Declare.
13511 2002-02-11 Michael Snyder <msnyder@redhat.com>
13513 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13514 (gcore section): Ifdef for Solaris and Unixware only.
13515 (procfs_do_thread_registers): Unixware needs one lwpstatus
13516 per thread (not one prstatus or pstatus).
13517 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13518 not over all gdb threads. For unixware, call elfcore_write_pstatus
13519 once before iterating over threads.
13521 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13523 * arm-tdep.h: New file.
13524 * arm-tdep.c: Include arm-tdep.h.
13525 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13526 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13527 (arm_print_float_info, arm_register_type, convert_to_extended)
13528 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13529 (arm_extract_return_value, arm_register_name): Make static.
13530 (arm_software_single_step): Similarly. Fix types in declaration.
13531 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13532 (arm_store_return_value, arm_store_struct_return): New functions.
13533 (arm_gdbarch_init): Register the above functions. Also register
13534 call_dummy_start_offset, sizeof_call_dummy_words,
13535 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13536 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13537 max_register_virtual_size, register_size. Set up
13538 prologue_cache.saved_regs here, rather than ...
13539 (_initialize_arm_tdep): ... here.
13540 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13542 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13543 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13544 (arm_print_float_info, arm_register_type, convert_to_extended)
13545 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13546 (arm_extract_return_value, arm_register_name): Delete declarations.
13547 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13548 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13549 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13550 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13551 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13552 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13553 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13554 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13555 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13556 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13557 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13558 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13560 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13561 * remote-rdi.c remote-rdp.c: Likewise.
13562 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13563 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13564 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13567 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13568 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13569 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13570 from non-ARM_ prefixed definitions.
13571 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13573 * remote-rdi.c remote-rdp.c: Likewise.
13574 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13576 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13578 * arm-tdep.c (arm_frameless_function_invocation)
13579 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13580 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13581 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13582 (arm_pop_frame, arm_get_next_pc): Make static.
13583 (arm_gdbarch_init): Register above in gdbarch structure.
13584 (arm_read_fp): Renamed from arm_target_read_fp.
13585 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13586 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13587 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13588 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13589 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13590 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13591 (arm_pc_is_thumb_dummy): Delete declarations.
13592 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13593 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13594 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13595 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13597 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13599 * symtab.c (compare_search_syms): New function.
13600 (sort_search_symbols): New function.
13601 (search_symbols): Sort symbols after searching rather than
13604 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13606 * NEWS: Linux -> GNU/Linux.
13608 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13610 * gdbarch.sh: For for level one methods, disallow a definition
13611 when partially multi-arched. Add comments explaining rationale.
13612 * gdbarch.h: Re-generate.
13614 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13616 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13617 multi-arch partial.
13619 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13621 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13622 field. Use diff -u.
13623 * gdbarch.c: Re-generate.
13625 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13627 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13628 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13631 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13633 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13634 multi-arch partial.
13635 (PUSH_ARGUMENTS): Switch to using predefault.
13636 * gdbarch.c: Regenerate.
13638 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13640 * valops.c (PUSH_ARGUMENTS): Delete definition.
13641 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13642 partial. Default to default_push_arguments.
13643 * gdbarch.h, gdbarch.c: Regenerate.
13645 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13647 * defs.h (throw_exception): Rename return_to_top_level. Update
13649 * utils.c (error_stream, internal_verror, quit): Ditto.
13650 * top.c (throw_exception, catcher): Ditto.
13651 * sparclet-rom.c (sparclet_load): Ditto.
13652 * remote.c (interrupt_query, minitelnet): Ditto.
13653 * remote-sds.c (interrupt_query): Ditto.
13654 * remote-mips.c (mips_error, mips_kill): Ditto.
13655 * ocd.c (interrupt_query): Ditto.
13656 * monitor.c (monitor_interrupt_query): Ditto.
13657 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13658 * target.h: Update comment.
13660 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13662 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13664 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13665 default_double_format.
13666 * gdbarch.h, gdbarch.c: Re-generate.
13667 * findvar.c (floatformat_unknown): Delete variable definition.
13668 * doublest.h (floatformat_unknown): Delete variable declaration.
13670 2002-02-09 Jim Blandy <jimb@redhat.com>
13672 * stabsread.c (read_type): Add code to parse Sun's syntax for
13673 prototyped function types.
13675 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13677 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13678 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13680 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13682 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13683 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13684 now _initialize_xcoffsolib gets called again and overrides the
13685 commands from solib.c in a native configuration.
13687 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13689 * doublest.c (store_typed_floating): Don't try to return a value.
13692 2002-02-08 Jim Blandy <jimb@redhat.com>
13694 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13695 is prototyped and has no arguments, print its argument list as
13698 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13700 * MAINTAINERS (write-after-approval): Add myself.
13701 (paper-trail): I've escaped!
13703 2002-02-08 Christopher Faylor <cgf@redhat.com>
13705 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13707 (_initialize_check_for_gdb_ini): Ditto.
13709 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13711 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13712 xaprintf -> xasprintf.
13714 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13716 * win32-nat.c: Remove use of printf and sprintf functions.
13718 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13720 * arm-tdep.c (arm_frame_chain_valid): Make static.
13721 (arm_push_arguments): Likewise.
13722 (arm_gdbarch_init): New function.
13723 (_initialize_arm_tdep): Call it.
13724 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13725 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13726 (FRAME_CHAIN_VALID): Delete.
13727 (arm_frame_chain_valid): Delete declaration.
13728 (PUSH_ARGUMENTS): Delete.
13729 (arm_push_arguments): Delete declaration.
13730 (CALL_DUMMY_P): Delete.
13732 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13733 Corinna Vinschen <vinschen@redhat.com>
13735 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13736 on builtin float types.
13738 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13740 * utils.c: Include <curses.h> before "bfd.h".
13741 * tui/tui-hooks.c: Likewise.
13742 * tui/tui.c: Likewise.
13743 * tui/tuiCommand.c: Likewise.
13744 * tui/tuiData.c: Likewise.
13745 * tui/tuiDataWin.c: Likewise.
13746 * tui/tuiDisassem.c: Likewise.
13747 * tui/tuiGeneralWin.c: Likewise.
13748 * tui/tuiIO.c: Likewise.
13749 * tui/tuiLayout.c: Likewise.
13750 * tui/tuiRegs.c: Likewise.
13751 * tui/tuiSource.c: Likewise.
13752 * tui/tuiSourceWin.c: Likewise.
13753 * tui/tuiStack.c: Likewise.
13754 * tui/tuiWin.c: Likewise.
13756 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13758 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13759 to include space for pseudoregs as well. Update loops accordingly.
13760 (sh_fp_frame_init_saved_regs): Ditto.
13761 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13763 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13765 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13766 Add Richard Earnshaw to Arm maintainers.
13768 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13770 * defs.h (warning_begin): Delete declaration.
13772 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13775 2002-02-07 Michael Snyder <msnyder@redhat.com>
13777 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13778 Logic bug, remove misplaced else.
13780 2002-02-07 Klee Dienes <klee@apple.com>
13782 * fork-inferior.c (fork_inferior): Add '!' to the list of
13783 characters that need to be quoted when building a string for the
13784 shell. Quote '!' specifically with a backslash, since CSH chokes
13785 when trying to evaluate "str!str".
13787 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13789 * rdi-share/host.h: Only provide a typedef for bool if it is not
13792 2002-02-04 Michael Snyder <msnyder@redhat.com>
13794 * breakpoint.h (enum bptype): Add new overlay event bp type.
13795 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13797 * breakpoint.c (create_internal_breakpoint): New function.
13798 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13799 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13800 (create_thread_event_breakpoint): Ditto.
13801 (create_solib_event_breakpoint): Ditto.
13802 (create_overlay_event_breakpoint): New function.
13803 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13804 (update_breakpoints_after_exec): Delete and re-initialize
13805 overlay event breakpoints after an exec. Add FIXME comment
13806 about longjmp breakpoint.
13807 (print_it_typical): Ignore overlay event breakpoints.
13808 (print_one_breakpoint): Ditto.
13810 (bpstat_what): Do not stop for overlay event breakpoints.
13811 (delete_breakpoint): Don't delete overlay event breakpoints.
13812 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13813 (breakpoint_re_set): Re-create overlay event breakpoint.
13815 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13816 (overlay_manual_command): Disable overlay breakpoints.
13817 (overlay_off_command): Disable overlay breakpoints.
13819 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13821 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13822 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13823 to here from config/tm-arm.h.
13824 (coff_sym_is_thumb): Make static.
13825 (arm_elf_make_msymbol_special): New function.
13826 (arm_coff_make_msymbol_special): New function.
13827 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13828 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13829 (coff_sym_is_thumb): Delete declaration.
13830 (arm_elf_make_msymbol_special): Declare.
13831 (arm_coff_make_msymbol_special): Declare.
13832 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13833 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13835 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13837 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13839 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13841 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13842 * gdbarch.c gdbarch.h: Regenerate.
13843 * arch-utils.c (default_print_float_info): New function.
13844 * arch-utils.h (default_print_float_info): Prototype it.
13845 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13846 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13847 (PRINT_FLOAT_INFO): Document it.
13849 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13850 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13851 (PRINT_FLOAT_INFO): Define.
13853 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13855 * win32-nat.c (_initialize_check_for_gdb_ini):
13856 Add typecast to sprintf argument to suppress a warning.
13858 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13860 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13861 to allow easier handling of pass state.
13862 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13863 that gives exception name and address.
13864 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13865 and set last_sig value to ourstatus->value.sig. Some missing
13867 (child_continue): Correctly report continue_status.
13868 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13869 TARGET_SIGNAL_0 (new default value).
13870 (child_resume): consider sig argument passed to decide if
13871 the exception should be passed to debuggee or not.
13873 2002-02-05 Michael Snyder <msnyder@redhat.com>
13875 * regcache.c (fetch_register): Call target_fetch_register
13876 only if we don't call FETCH_PSEUDO_REGISTER.
13877 (store_register): Call target_store_register only if we
13878 don't call STORE_PSEUDO_REGISTER.
13880 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13882 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13883 ELF_MAKE_MSYMBOL_SPECIAL.
13884 * gdbarch.c, gdbarch.h: Regenerate.
13885 * arch-utils.c (default_make_msymbol_special): New function.
13886 * arch-utils.h (default_make_msymbol_special): Export.
13887 * elfread.c (elf_symtab_read): Compile use of
13888 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13890 * coffread.c (coff_symtab_read): Ditto, for
13891 COFF_MAKE_MSYMBOL_SPECIAL.
13893 2002-02-05 Jim Blandy <jimb@redhat.com>
13895 * solib-svr4.c (svr4_truncate_ptr): New function.
13896 (svr4_relocate_section_addresses): Do the address arithmetic with
13897 the appropriate truncation for target addresses, even when
13898 CORE_ADDR is larger than a target address.
13900 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13902 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13905 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13907 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13910 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13912 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13914 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13916 * gdbserver/linux-low.c: Remove unused include files.
13918 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13920 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13921 (read_inferior_memory): Use it.
13922 (write_inferior_memory): Likewise.
13924 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13926 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13927 grubbing through sys_errlist.
13929 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13931 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13933 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13934 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13936 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13938 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13939 (do_sfunc, set_cmd_sfunc): New functions.
13941 * command.h (struct cmd_list_element): Add field func.
13942 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13943 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13944 * cli/cli-decode.h: Ditto.
13946 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13947 (help_all, help_cmd_list): Ditto.
13948 (find_cmd, complete_on_cmdlist): Ditto.
13949 * top.c (execute_command): Ditto.
13951 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13954 * infcmd.c (notice_args_read): Fix function signature.
13956 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13957 * cli/cli-decode.c (add_set_cmd): Ditto.
13958 * utils.c (initialize_utils): Ditto.
13959 * maint.c (_initialize_maint_cmds): Ditto.
13960 * infrun.c (_initialize_infrun): Ditto.
13961 * demangle.c (_initialize_demangler): Ditto.
13962 * remote.c (add_packet_config_cmd): Ditto.
13963 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13964 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13965 * proc-api.c (_initialize_proc_api): Ditto.
13966 * kod.c (_initialize_kod): Ditto.
13967 * valprint.c (_initialize_valprint): Ditto.
13968 * top.c (init_main): Ditto.
13969 * infcmd.c (_initialize_infcmd): Ditto.
13970 * corefile.c (_initialize_core): Ditto.
13971 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13972 * arch-utils.c (initialize_current_architecture): Ditto.
13973 (_initialize_gdbarch_utils): Ditto.
13974 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13976 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13977 * wince.c (_initialize_inftarg): Ditto.
13978 * symfile.c (_initialize_symfile): Ditto.
13979 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13980 * language.c (_initialize_language): Ditto.
13981 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13983 2002-02-04 Michael Snyder <msnyder@redhat.com>
13985 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13987 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13989 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13990 Add rules for building the register data files.
13992 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13994 * regformats/regdat.sh: Add braces to the definition of
13995 expedite_regs_${arch}.
13997 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13999 * regformats/regdef.h (struct reg): Add comment describing the
14000 requirements for offset and size fields.
14002 2002-02-04 Andreas Schwab <schwab@suse.de>
14004 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14005 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14007 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14009 * gdbarch.sh (copyright): Update years in generated header.
14010 (SMASH_TEXT_ADDRESS): Add rule.
14011 * gdbarch.h, gdbarch.c: Re-generate.
14012 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14013 * dbxread.c: Likewise.
14014 * dwarfread.c: Likewise.
14015 * elfread.c: Likewise.
14016 * somread.c: Likewise.
14018 * arm-tdep.c (arm_smash_text_address): New function.
14019 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14021 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14023 Add support for hardware watchpoints on win32 native.
14024 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14025 CONTEXT_DEBUG_REGISTERS.
14026 (dr variable): New variable. Static array containing a local copy
14027 of debug registers.
14028 (debug_registers_changed): New variable. Reflects when debug registers
14029 are changed and need to be written to inferior.
14030 (debug_registers_used): New variable. Reflects when any debug register
14031 was set, used when new threads are created.
14032 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14034 (thread_rec): Set dr array if id is the thread of current_event .
14035 (child_continue, child_resume): Change the debug registers for all
14036 threads if debug_registers_changed.
14037 (child_add_thread): Change the debug registers if debug_registers_used.
14038 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14039 Link nm.h to new nm-cygwin.h file.
14040 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14041 of hardware registers.
14043 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14045 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14046 Restore behavour broken by 2002-01-20 Andrew Cagney
14047 <ac131313@redhat.com> IEEE_FLOAT removal.
14049 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14051 * c-valprint.c (c_val_print): Pass a proper valaddr to
14052 cp_print_class_method.
14053 * valops.c (search_struct_method): If there is only one method
14054 and args is NULL, return that method.
14056 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14058 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14059 accessing tag_name directly.
14061 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14063 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14064 of accessing tag_name directly.
14066 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14069 * gdbtypes.c (replace_type): New function.
14070 * gdbtypes.h (replace_type): Add prototype.
14071 * stabsread.c (read_type): Use replace_type.
14073 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14075 * Makefile.in (memattr.o): Add missing dependencies rule.
14077 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14079 * breakpoint.c (break_at_finish_command): Really export.
14080 (break_at_finish_at_depth_command): Ditto.
14081 (tbreak_at_finish_command): Ditto.
14082 * hppa-tdep.c: Include completer.h.
14083 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14084 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14086 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14088 * utils.c (do_write): New function.
14089 (error_stream): Rewrite combining the code from error_begin and
14091 (verror): Rewrite using error_stream.
14092 (error_begin): Delete function.
14094 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14096 * utils.c (error_begin): Make static.
14097 * defs.h (error_begin): Delete declaration.
14099 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14100 (decode_line_1): Use cplusplus_error instead of error_begin,
14101 cplusplus_hint and return_to_top_level.
14102 * coffread.c (coff_symfile_read): Use error instead of error_begin
14103 and return_to_top_level.
14104 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14106 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14108 * language.h (type_error, range_error): Make string parameter
14110 * language.c (warning_pre_print): Delete extern declaration.
14111 * dwarfread.c (warning_pre_print): Ditto.
14112 * language.c (type_error, range_error): Rewrite to use verror and
14113 vwarning instead of warning_begin.
14115 2002-02-01 Michael Snyder <msnyder@redhat.com>
14117 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14118 (set_ignore_count): Move misplaced comment back where it belongs.
14120 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14122 * command.h (NO_FUNCTION): Delete macro.
14123 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14124 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14125 * tracepoint.c (_initialize_tracepoint): Ditto.
14126 * cli/cli-decode.c (add_set_cmd): Ditto.
14127 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14129 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14131 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14132 Update ``this'' pointer when calling virtual functions.
14134 2002-02-01 Michael Snyder <msnyder@redhat.com>
14136 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14137 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14139 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14141 * regformats/reg-arm.dat: New file.
14142 * regformats/reg-i386.dat: New file.
14143 * regformats/reg-ia64.dat: New file.
14144 * regformats/reg-m68k.dat: New file.
14145 * regformats/reg-mips.dat: New file.
14146 * regformats/reg-ppc.dat: New file.
14147 * regformats/reg-sh.dat: New file.
14148 * regformats/regdef.h: New file.
14149 * regformats/regdat.sh: New file.
14151 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14153 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14154 (arm_frame_args_address, arm_frame_locals_address): New functions.
14155 (arm_frame_num_args): New function.
14156 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14157 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14158 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14160 2002-01-31 Michael Snyder <msnyder@redhat.com>
14162 * breakpoint.c (break_at_finish_command): Export.
14163 (break_at_finish_at_depth_command): Export.
14164 (tbreak_at_finish_command): Export.
14165 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14166 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14167 "txbreak" commands, which are HPPA specific.
14169 * printcmd.c (disassemble_command): Remove an ancient
14170 artifact of an old merge.
14172 * symfile.h (enum overlay_debugging_state):
14173 Define enum constant values for overlay mode.
14174 * symfile.c (overlay_debugging): Use enums instead of literals.
14175 (overlay_is_mapped, overlay_auto_command,
14176 overlay_manual_command): Ditto.
14178 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14179 breakpoint_here_p, breakpoint_inserted_here_p,
14180 breakpoint_thread_match, bpstat_stop_status,
14181 describe_other_breakpoints, check_duplicates, clear_command):
14182 Coding standard fixes.
14184 * target.c (target_xfer_memory): Add spaces, coding standard.
14185 (do_xfer_memory): Add missing line to trust-readonly
14186 code: check bfd SEC_READONLY flag for section.
14188 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14190 * PROBLEMS: Fix typo, 5.1->5.1.1.
14192 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14194 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14195 data symbols, since we search based on textlow and texthigh.
14196 (find_pc_sect_symtab): Likewise.
14198 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14200 * defs.h (vwarning): Declare.
14201 * utils.c (vwarning): New function.
14202 (warning): Call vwarning.
14203 (warning_begin): Delete function.
14205 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14206 the warning message.
14207 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14210 2002-01-30 Michael Snyder <msnyder@redhat.com>
14212 * NEWS: Mention "set trust-readonly-sections" command.
14213 Mention generate-core-file command.
14215 2002-01-15 Michael Snyder <msnyder@redhat.com>
14217 * target.c: New command, "set trust-readonly-sections on".
14218 (do_xfer_memory): Honor the suggestion to trust readonly sections
14219 by reading them from the object file instead of from the target.
14220 (initialize_targets): Register command "set trust-readonly-sections".
14222 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14224 * parse.c (target_map_name_to_register): Simplify, search regs and
14225 pseudo-regs using a single loop.
14227 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14229 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14231 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14233 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14234 * config/i386/i386v42mp.mh: Add i387-nat.o .
14235 * i386v4-nat.c: Include i387-nat.h.
14236 (supply_fpregset): Use i387_supply_fsave.
14237 (fill_fpregset): Use i387_fill_fsave.
14239 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14241 * arm-tdep.c (arm_call_dummy_words): Define.
14242 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14243 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14244 (CALL_DUMMY_WORDS): Define.
14245 (arm_call_dummy_words): Declare.
14246 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14247 (arm_linux_call_dummy_words): Declare.
14249 2002-01-30 Andreas Schwab <schwab@suse.de>
14251 * m68klinux-nat.c: Fix last change to use regcache_collect
14252 instead of referencing registers[] directly.
14254 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14256 * parse.c (target_map_name_to_register): Delete code wrapped in
14257 #ifdef REGISTER_NAME_ALIAS_HOOK.
14259 2002-01-28 Michael Snyder <msnyder@redhat.com>
14261 * regcache.c (legacy_read_register_gen): Need to be able to
14262 read pseudo-register as well as real register.
14263 (legacy_write_register_gen): Ditto.
14265 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14267 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14268 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14269 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14270 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14271 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14272 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14273 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14274 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14275 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14276 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14277 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14278 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14279 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14280 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14281 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14282 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14283 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14284 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14285 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14286 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14288 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14290 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14291 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14292 (initialize_current_architecture): Update target_byte_order using
14293 information from BFD.
14294 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14295 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14297 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14299 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14300 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14302 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14303 #ifdef INVALID_FLOAT.
14304 * infcmd.c (do_registers_info): Ditto.
14305 * values.c (unpack_double): Ditto. Add comment.
14307 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14308 already commented out.
14310 2002-01-26 Andreas Schwab <schwab@suse.de>
14312 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14313 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14314 registers and add support for PTRACE_GETREGS.
14316 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14318 GDB 5.1.1 released from 5.1 branch.
14319 * NEWS: Add 5.1.1 news.
14320 * README: Sync with 5.1 branch.
14322 2002-01-23 Fred Fish <fnf@redhat.com>
14324 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14325 stabstring on initial malloc. Reallocing will copy it for us,
14328 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14330 * Makefile.in (hpread_h): Delete.
14331 (HFILES_NO_SRCDIR): Remove hpread.h.
14332 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14333 (hpread.o): Update dependencies.
14334 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14336 * hp-psymtab-read.c: Remove file.
14337 * hp-symtab-read.c: Remove file.
14338 * hpread.h: Remove file.
14340 * hpread.c: Merge all contents of hp-psymtab-read.c,
14341 hp-symtab-read.c and hpread.h into this file, as it was prior to
14344 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14345 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14346 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14347 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14349 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14351 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14352 fill_gregset): Call gdbarch_tdep() just once, assign result to
14353 variable and use that, instead of calling the function several
14356 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14358 * configure.host: Accept sparcv9 as alias for sparc64.
14359 * configure.tgt: Likewise.
14361 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14363 * solib-aix5.c (build_so_list_from_mapfile)
14364 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14365 arguments is not reversed.
14366 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14367 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14369 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14371 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14372 modified version of obsolete sh_fetch_pseudo_register.
14373 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14374 (sh4_register_read): New function.
14375 (sh_pseudo_register_write): New function. Renamed and modified
14376 version of obsolete sh_store_pseudo_register.
14377 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14378 (sh4_register_write): New function.
14379 (sh_gdbarch_init): Remove setting of gdbarch function
14380 fetch_pseudo_register and store_pseudo_register. Remove setting of
14381 register_convert_to_raw, register_convert_to_virtual,
14382 register_convertible.
14383 (sh_sh4_register_convertible): Delete. No longer needed. All is
14384 taken care by architecture specific functions
14385 register_read/register_write.
14386 (sh_sh4_register_convert_to_virtual): Make static.
14387 (sh_sh4_register_convert_to_raw): Ditto.
14389 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14391 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14392 (floatformat_is_nan, floatformat_mantissa): Ditto.
14394 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14395 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14396 builtin_type_ieee_double_little,
14397 builtin_type_ieee_double_littlebyte_bigword,
14398 builtin_type_m68881_ext, builtin_type_i960_ext,
14399 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14400 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14401 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14402 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14404 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14406 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14407 parameter. Set frameless flag if it exists and depended of
14408 whether the scanned function is frameless or not.
14409 (xstormy16_skip_prologue): If function is frameless, return
14410 result of xstormy16_scan_prologue().
14411 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14414 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14416 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14417 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14418 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14419 sh_sh4_register_byte, sh_sh4_register_raw_size,
14420 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14421 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14422 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14423 sh_store_pseudo_register, sh_do_pseudo_register): Call
14424 gdbarch_tdep() just once, assign result to variable and use that,
14425 instead of calling the function several times.
14427 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14429 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14430 macros instead of LAST_FPU_CTRL_REGNUM.
14431 (store_register): Likewise.
14433 2002-01-21 Jim Blandy <jimb@redhat.com>
14435 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14436 is up-to-date before running the program, not just when a program
14439 2002-01-21 Fred Fish <fnf@redhat.com>
14441 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14442 when we have found all instructions we are looking for.
14444 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14446 * arm-tdep.c (arm_register_name): New function.
14447 (arm_registers_names): Make static.
14448 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14449 (arm_register_name): Declare.
14450 (REGISTER_NAME): Use it.
14452 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14453 Kevin Buettner <kevinb@redhat.com>
14455 Convert arm targets to new FRAME interface.
14456 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14457 (arm_frame_find_save_regs): Delete.
14458 (arm_frame_init_saved_regs): New.
14459 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14460 Allocate extra_info as required. Convert all uses of fsr.regs
14461 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14463 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14464 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14465 (check_prologue_cache, save_prologue_cache): Likewise.
14466 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14467 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14468 (FRAME_FIND_SAVED_REGS): Delete.
14469 (arm_frame_find_saved_regs): Delete prototype.
14470 (arm_frame_init_saved_regs): New prototype.
14471 (FRAME_INIT_SAVED_REGS): Define.
14473 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14475 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14477 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14479 From Jeff Law <law@redhat.com>:
14480 * infttrace.c: Include <sys/pstat.h>.
14481 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14482 exec file if the ttrace equivalent fails.
14484 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14486 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14487 (closeLogFile): Ditto.
14489 2002-01-20 Michael Chastain <mec@shout.net>
14491 * top.c (print_gdb_version): Bump copyright year to 2002.
14493 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14495 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14496 Zannoni and Eli Zaretskii.
14498 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14500 * buildsym.c: Update copyright years.
14501 * c-typeprint.c: Likewise.
14502 * dwarf2read.c: Likewise.
14503 * f-typeprint.c: Likewise.
14504 * gdbtypes.c: Likewise.
14505 * gdbtypes.h: Likewise.
14506 * hp-symtab-read.c: Likewise.
14507 * hpread.c: Likewise.
14508 * mdebugread.c: Likewise.
14509 * p-typeprint.c: Likewise.
14511 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14513 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14514 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14515 byte-order selectable.
14516 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14517 * arch-utils.c: Ditto.
14518 (set_endian): Ditto.
14519 (set_endian_from_file): Ditto.
14520 * gdbserver/low-sim.c (create_inferior): Ditto.
14521 * gdbarch.sh: Ditto.
14522 * gdbarch.h: Re-generate.
14523 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14524 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14525 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14526 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14527 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14528 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14529 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14530 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14532 * config/mips/tm-wince.h: Remove #undef of macro
14533 TARGET_BYTE_ORDER_SELECTABLE.
14534 * config/sh/tm-wince.h: Ditto.
14536 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14538 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14539 member function fields. Add accessor macro
14540 TYPE_FN_FIELD_ARTIFICIAL.
14541 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14542 * c-typeprint.c (c_type_print_base): Skip artificial member
14545 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14547 * f-typeprint.c: Delete unused function f_type_print_args.
14548 * p-typeprint.c: Delete unused function pascal_type_print_args.
14550 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14552 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14553 comment. Add ``artificial'' to ``union field_location''.
14555 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14557 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14558 * mdebugread.c (parse_symbol): Likewise.
14559 * stabsread.c (define_symbol): Likewise.
14560 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14561 initializing TYPE_FIELD_BITPOS to n (obsolete).
14562 (hpread_doc_function_type): Likewise.
14563 * hpread.c (hpread_function_type): Likewise.
14565 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14567 * configure.in (host_makefile_frag): Only require a host makefile
14568 fragment when a native build.
14569 * configure: Re-generate.
14571 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14573 * doublest.h (floatformat_from_type): Declare.
14574 * doublest.c (floatformat_from_type): New function.
14575 (convert_typed_floating): Use.
14577 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14578 call to function floatformat_from_type.
14580 * gdbarch.sh (IEEE_FLOAT): Delete.
14581 * gdbarch.h, gdbarch.c: Re-generate.
14582 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14583 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14584 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14585 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14586 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14587 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14588 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14589 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14590 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14591 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14592 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14593 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14595 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14596 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14597 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14598 * sh-tdep.c (sh_gdbarch_init): Ditto.
14599 * mips-tdep.c (mips_gdbarch_init): Ditto.
14600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14601 * cris-tdep.c (cris_gdbarch_init): Ditto.
14603 2002-01-20 Jiri Smid <smid@suse.cz>
14605 * configure.host, configure.tgt: Support x86-64.
14606 * NEWS: Note new target x86-64.
14608 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14609 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14610 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14611 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14612 x86-64-linux-nat.o): Fix dependencies.
14614 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14616 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14617 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14618 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14619 * config/sparc/xm-sun4os4.h: Delete file.
14620 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14622 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14624 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14625 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14626 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14627 * config/i386/i386lynx.mh (XM_FILE): Delete.
14628 * config/rs6000/xm-rs6000ly.h: Delete file.
14629 * config/sparc/xm-sparclynx.h: Delete file.
14630 * config/m68k/xm-m68klynx.h: Delete file.
14631 * config/i386/xm-i386lynx.h: Delete file.
14632 * config/xm-lynx.h: Delete file.
14633 * config/djgpp/fnchange.lst: Update.
14635 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14637 * alpha-tdep.c (alpha_register_byte): New function.
14638 (alpha_register_raw_size): Ditto.
14639 (alpha_register_virtual_size): Ditto.
14640 (alpha_skip_prologue_internal): Renamed from
14641 alpha_skip_prologue.
14642 (alpha_skip_prologue): New version that calls
14643 alpha_skip_prologue_internal.
14644 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14645 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14646 second argument from alpha_skip_prologue.
14647 (REGISTER_BYTE): Use alpha_register_byte.
14648 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14649 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14650 (FRAMELESS_FUNCTION_INVOCATION): Use
14651 generic_frameless_function_invocation_not.
14652 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14653 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14655 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14657 * config/mips/xm-news-mips.h: Delete file.
14658 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14660 * config/m88k/xm-m88k.h: Delete file.
14661 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14662 * config/m88k/xm-delta88v4.h: Ditto.
14663 * config/m88k/xm-delta88.h: Ditto.
14665 * config/alpha/xm-fbsd.h: Delete file.
14666 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14668 * config/sparc/xm-sparc.h: Delete file.
14669 * Makefile.in (xm-sun4os4.h): Delete dependency.
14670 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14671 * config/sparc/xm-sun4os4.h: Ditto.
14672 * config/sparc/xm-linux.h: Ditto.
14674 * config/i386/xm-windows.h: Delete file.
14676 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14678 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14679 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14681 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14683 * alpha-tdep.c (alpha_call_dummy_words): New.
14684 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14685 (CALL_DUMMY_P): Define.
14686 (CALL_DUMMY_WORDS): Define.
14687 (SIZEOF_CALL_DUMMY_WORDS): Define.
14689 2002-01-19 Per Bothner <per@bothner.com>
14691 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14692 isn't NULL, which can happen with some gcj-3.x-produced code.
14694 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14696 * alpha-tdep.c (alpha_register_virtual_type): New function.
14697 (alpha_init_frame_pc_first): Ditto.
14698 (alpha_fix_call_dummy): Ditto.
14699 (alpha_store_struct_return): Ditto.
14700 (alpha_extract_struct_value_address): Ditto.
14701 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14702 alpha_register_virtual_type.
14703 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14704 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14705 alpha_extract_struct_value_address.
14706 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14707 (INIT_FRAME_PC): Use init_frame_pc_noop.
14708 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14710 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14712 * i386gnu-nat.c: Include "i386-tdep.h".
14713 (fetch_fpregs): Simplify code dealing with uninitialized floating
14714 point states such that it doesn't require FP7_REGNUM.
14716 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14718 * alpha-tdep.c (frame_extra_info): New.
14719 (alpha_find_saved_regs): Make static. Use
14721 (alpha_frame_init_saved_regs): New function.
14722 (alpha_frame_saved_pc): Use frame->extra_info.
14723 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14724 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14725 (init_extra_frame_info): Rename to...
14726 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14727 (alpha_print_extra_frame_info): New function.
14728 (alpha_frame_locals_address): Ditto.
14729 (alpha_frame_args_address): Ditto.
14730 (alpha_pop_frame): Use frame->extra_info.
14731 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14732 alpha_frame_args_address.
14733 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14734 (alpha_find_saved_regs): Remove prototype.
14735 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14736 (EXTRA_FRAME_INFO): Remove.
14737 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14738 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14740 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14742 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14743 (alpha_cannot_fetch_register): Ditto.
14744 (alpha_cannot_store_register): Ditto.
14745 (alpha_register_convertible): Ditto.
14746 (alpha_use_struct_convention): Ditto.
14747 * config/alpha/tm-alpha.h: Update copyright years.
14748 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14749 (INNER_THAN): Use core_addr_lessthan.
14750 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14751 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14752 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14753 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14754 (FRAME_CHAIN): Remove unnecessary cast.
14756 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14758 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14761 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14763 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14764 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14765 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14766 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14767 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14768 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14769 * x86-64-linux-nat.c: Ditto.
14771 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14773 * alpha-tdep.c (alpha_register_name): New function.
14774 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14775 (REGISTER_NAME): Define.
14777 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14779 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14781 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14783 * alpha-tdep.c: Update copyright years.
14784 (alpha_next_pc): New function.
14785 (alpha_software_single_step): Ditto.
14786 * config/alpha/tm-alpha.h: Add prototype for
14787 alpha_software_single_step.
14789 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14791 * alphabsd-nat.c: Update copyright years.
14792 (fill_gregset): Use regcache_collect.
14793 (fill_fpregset): Likewise.
14794 (fetch_inferior_registers): Only fetch integer registers
14795 if requested to do so.
14796 (store_inferior_registers): Only store integer registers
14797 if requested to do so.
14799 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14801 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14802 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14803 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14804 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14805 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14806 * config/arm/linux.mh (XDEPFILES): Delete.
14807 * config/arm/nbsd.mh (XDEPFILES): Delete.
14808 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14809 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14810 * config/i386/i386m3.mh (XDEPFILES): Delete.
14811 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14812 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14813 * config/i386/fbsd.mh (XDEPFILES): Delete.
14814 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14815 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14816 * config/i386/i386v4.mh (XDEPFILES): Delete.
14817 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14818 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14819 * config/i386/i386aix.mh (XDEPFILES): Delete.
14820 * config/i386/go32.mh (XDEPFILES): Delete.
14821 * config/i386/cygwin.mh (XDEPFILES): Delete.
14822 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14823 * config/i386/i386mach.mh (XDEPFILES): Delete.
14824 * config/i386/i386v32.mh (XDEPFILES): Delete.
14825 * config/i386/linux.mh (XDEPFILES): Delete.
14826 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14827 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14828 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14829 * config/i386/i386sco.mh (XDEPFILES): Delete.
14830 * config/i386/i386v.mh (XDEPFILES): Delete.
14831 * config/i386/nbsd.mh (XDEPFILES): Delete.
14832 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14833 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14834 * config/i386/symmetry.mh (XDEPFILES): Delete.
14835 * config/i386/obsd.mh (XDEPFILES): Delete.
14836 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14837 * config/ia64/linux.mh (XDEPFILES): Delete.
14838 * config/ia64/aix.mh (XDEPFILES): Delete.
14839 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14840 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14841 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14842 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14843 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14844 * config/m68k/linux.mh (XDEPFILES): Delete.
14845 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14846 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14847 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14848 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14849 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14850 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14851 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14852 * config/m88k/delta88.mh (XDEPFILES): Delete.
14853 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14854 * config/m88k/m88k.mh (XDEPFILES): Delete.
14855 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14856 * config/mips/linux.mh (XDEPFILES): Delete.
14857 * config/mips/irix6.mh (XDEPFILES): Delete.
14858 * config/mips/irix5.mh (XDEPFILES): Delete.
14859 * config/mips/irix4.mh (XDEPFILES): Delete.
14860 * config/mips/irix3.mh (XDEPFILES): Delete.
14861 * config/mips/decstation.mh (XDEPFILES): Delete.
14862 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14863 (NATDEPFILES): Move core-aout.o to here.
14864 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14865 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14866 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14867 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14868 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14869 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14870 * config/pa/hpux11.mh (XDEPFILES): Delete.
14871 * config/powerpc/aix.mh (XDEPFILES): Delete.
14872 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14873 * config/powerpc/linux.mh (XDEPFILES): Delete.
14874 * config/romp/rtbsd.mh: Rename XDEPFILES.
14875 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14876 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14877 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14878 * config/s390/s390.mh (XDEPFILES): Delete.
14879 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14880 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14881 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14882 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14883 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14884 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14885 * config/sparc/linux.mh (XDEPFILES): Delete.
14886 * config/vax/vaxult.mh (XDEPFILES): Delete.
14887 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14888 * Makefile.in (DEPFILES): Remove XDEPFILES.
14890 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14892 * utils.c (internal_verror): Fix comments, default is yes not no.
14893 Update queries to match. Default to quit and dump core.
14895 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14897 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14899 * defs.h, event-top.c, gdbcmd.h: Ditto.
14900 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14901 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14902 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14903 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14904 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14905 * mi/mi-main.c:Ditto.
14907 * stack.c, symfile.c: Update copyright.
14909 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14911 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14912 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14913 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14914 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14916 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14918 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14919 * gdbserver/low-lynx.c (myattach): Likewise.
14920 * gdbserver/low-nbsd.c (myattach): Likewise.
14921 * gdbserver/low-sim.c (myattach): Likewise.
14922 * gdbserver/low-sparc.c (myattach): Likewise.
14923 * gdbserver/low-sun3.c (myattach): Likewise.
14925 * gdbserver/low-linux.c (myattach): New function.
14927 * gdbserver/server.c (attach_inferior): New function.
14928 (main): Handle "--attach".
14930 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14932 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14935 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14937 * c-typeprint.c (is_type_conversion_operator): Add additional
14938 check for non-conversion operators.
14940 2002-01-15 Michael Snyder <msnyder@redhat.com>
14942 * linux-proc.c: Add "info proc" command, a la procfs.c.
14943 (read_mapping): New function, abstract and re-use code.
14944 (linux_find_memory_regions): Use new func read_mapping.
14945 (linux_info_proc_cmd): New function, implement "info proc".
14946 (_initialize_linux_proc): Add new command "info proc".
14948 2002-01-15 Michael Snyder <msnyder@redhat.com>
14950 * symfile.c (generic_load): Use bfd_map_over_sections method
14951 instead of manipulating bfd structure members directly.
14952 (add_section_size_callback): New function, bfd sections callback
14953 used by generic_load.
14954 (load_sections_callback): New function, bfd sections callback
14955 used by generic_load.
14957 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14959 [Based on work by Jim Blandy]
14960 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14961 (builtin_type_vec128): Export.
14962 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14964 (builtin_type_vec128): New builtin type for 128 bit vector
14966 (build_gdbtypes): Initialize builtin_type_v16qi and
14967 builtin_type_v8hi. Create the vec128 register builtin type
14969 (build_builtin_type_vec128): New function.
14970 (_initialize_gdbtypes): Register builtin_type_v16qi and
14971 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14972 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14973 AltiVec register to new builtin type.
14975 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14977 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14980 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14982 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14983 CLEAN_UP_REGISTER_VALUE.
14984 * regcache.c (supply_register): Update only call.
14986 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14988 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14989 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14990 a29k-*-vxworks* targets as obsolete.
14992 2002-01-14 Michael Snyder <msnyder@redhat.com>
14994 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14995 until we can resolve portability issues.
14996 * gregset.h: Remove references to fpxregs.
14997 * gcore.c (gcore_command): Initialize note_sec to NULL.
14999 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15001 * signals.c (target_signal_to_name): Rewrite. Only use
15002 signals[].name when in bounds and non-NULL.
15004 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15006 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15007 * signals.c (target_signal_to_name): Verify that SIG is within the
15008 bounds of the signals array.
15010 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15012 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15014 2002-01-13 Keith Seitz <keiths@redhat.com>
15016 * stack.c (print_frame_info_base): Print the frame's pc
15017 only if when print_frame_info_listing_hook is not defined.
15019 2002-01-13 Keith Seitz <keiths@redhat.com>
15021 * varobj.c (varobj_set_value): Make sure that there were no
15022 errors evaluating the object before attempting to set its
15024 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15025 so this offset adjustment is no longer necessary.
15026 (create_child): Don't set the error flag if the child is
15027 a CPLUS_FAKE_CHILD.
15028 (value_of_child): If value_fetch_lazy fails, return NULL
15029 so that callers will be notified that an error occurred.
15030 (c_value_of_variable): Delay check of variable's validity
15031 until later. We actually want all structs and unions to have
15033 Do not return "???" for variables which could not be evaluated.
15034 This error condition must be returned to the caller so that it
15035 can get the error condition from gdb.
15036 (cplus_name_of_child): Adjust index for vptr before figuring
15037 out the name of the child.
15038 (cplus_value_of_child): If a child's (real) parent is not valid,
15039 don't even bother trying to give a value for it. Just return
15040 an error. Change all instances in this function.
15041 (cplus_type_of_child): If our parent is one of the "fake"
15042 parents, we need to get at the type of the real parent, and
15043 derive the child's true type using this information.
15045 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15047 From 2002-01-09 John Marshall <johnm@falch.net>:
15048 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15049 sources.redhat.com, and tweak some related URLs which had
15050 suffered from linkrot.
15052 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15055 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15056 structures passed in registers.
15058 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15060 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15061 white space which prevented compilation. Reported by DSK
15062 <dsk@student.unsw.edu.au>.
15064 2002-01-11 Michael Snyder <msnyder@redhat.com>
15066 * symfile.c (build_section_addr_info_from_section_tab):
15067 Use bfd access method instead of manipulating bfd directly.
15068 (syms_from_objfile): Ditto.
15069 (simple_overlay_update_1): Ditto.
15070 (simple_overlay_update): Ditto.
15071 (generic_load): Ditto.
15072 (overlay_unmapped_address): FIXME comment, bfd access methods.
15073 (sections_overlap): FIXME comment, bfd access methods.
15074 (pc_in_mapped_range): FIXME comment, bfd access methods.
15075 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15076 (section_is_mapped): FIXME comment, bfd access methods.
15077 (section_is_overlay): FIXME comment, bfd access methods.
15079 * symfile.c (generic_load): Whitespace and long line cleanups.
15080 Remove duplicate variable, change several local variables to
15081 more appropriate data types.
15082 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15084 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15086 From Peter Schauer:
15087 * language.c (longest_local_hex_string_custom): Use phex_nz to
15088 convert NUM to a hex string.
15090 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15092 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15094 Update Copyright year.
15096 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15098 * language.c (longest_raw_hex_string): Delete unused function.
15100 2002-01-11 Petr Sorfa <petrs@caldera.com>
15102 * MAINTAINERS (write-after-approval): Add myself.
15103 * dwarf2read.c (read_tag_string_type): Handling of
15105 (read_tag_string_type): FORTRAN fix to prevent propagation of
15107 (set_cu_language): Handling of DW_LANG_Fortran95
15109 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15111 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15112 GETPID(inferior_ptid).
15113 (store_inferior_registers): Likewise.
15115 2002-01-10 Jason Merrill <jason@redhat.com>
15117 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15120 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15122 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15123 and bfd/elf32-sh-nbsd.c.
15125 2002-01-10 Michael Snyder <msnyder@redhat.com>
15127 * NEWS: Mention --pid and corefile/proc-id behavior change.
15129 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15130 * gcore.c: Include cli/cli-decode.h instead of command.h.
15132 * main.c (captured_main): Add new command line option "--pid".
15133 If the second command line argument (following the symbol-file)
15134 begins with a digit, try to attach to it before trying to open
15136 (print_gdb_help): Document the "--pid" argument.
15138 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15140 * completer.c (command_completer): New function.
15142 * completer.h <command_completer>: Add prototype.
15144 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15145 completer for the "help" command.
15147 2002-01-09 Jason Merrill <jason@redhat.com>
15149 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15151 2002-01-09 Michael Snyder <msnyder@redhat.com>
15153 * i386-linux-nat.c (fill_fpxregset): Make global.
15154 (store_fpxregset): Ditto.
15156 * gregset.h (gdb_fpxregset_t): Define.
15157 (supply_fpxregset): Prototype.
15158 (fill_fpxregset): Prototype.
15160 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15162 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15164 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15165 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15166 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15168 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15170 * MAINTAINERS: Update target maintainer rules so that any
15171 Maintainer can approve a tested patch for a maintenance-only
15174 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15176 * MAINTAINERS (write-after-approval): Add myself.
15178 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15181 2002-01-08 Michael Snyder <msnyder@redhat.com>
15183 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15184 real name of the executable, rather than the /proc name.
15186 2002-01-03 Michael Snyder <msnyder@redhat.com>
15188 Implement a "generate-core-file" command in gdb, save target state.
15189 * gcore.c: New file. Implement new command 'generate-core-file'.
15190 Save a corefile image of the current state of the inferior.
15191 * linux-proc.c: Add linux-specific code for saving corefiles.
15192 * target.h (struct target_ops): Add new target vectors for saving
15193 corefiles; to_find_memory_regions and to_make_corefile_notes.
15194 (target_find_memory_regions): New macro.
15195 (target_make_corefile_notes): New macro.
15196 * target.c (update_current_target): Inherit new target methods.
15197 (dummy_find_memory_regions): New place-holder method.
15198 (dummy_make_corefile_notes): New place-holder method.
15199 (init_dummy_target): Initialize new dummy target vectors.
15200 * exec.c (exec_set_find_memory_regions): New function.
15201 Allow the exec_ops vector for memory regions to be taken over.
15202 (exec_make_note_section): New function, target vector method.
15203 * defs.h (exec_set_find_memory_regions): Export prototype.
15204 * procfs.c (proc_find_memory_regions): New function, corefile method.
15205 (procfs_make_note_section): New function, corefile method.
15206 (init_procfs_ops): Set new target vector pointers.
15207 (find_memory_regions_callback): New function.
15208 (procfs_do_thread_registers): New function.
15209 (procfs_corefile_thread_callback): New function.
15210 * sol-thread.c (sol_find_memory_regions): New function.
15211 (sol_make_note_section): New function.
15212 (init_sol_thread_ops): Initialize new target vectors.
15213 * inftarg.c (inftarg_set_find_memory_regions): New function.
15214 Allow to_find_memory_regions vector to be taken over.
15215 (inftarg_set_make_corefile_notes): New function.
15216 Allow to_make_corefile_notes vector to be taken over.
15217 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15218 interface layer if not target_has_execution (may be a corefile).
15219 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15220 * config/sparc/sun4sol2.mh: Ditto.
15221 * config/alpha/alpha-linux.mh: Ditto.
15222 * config/arm/linux.mh: Ditto.
15223 * config/i386/x86-64linux.mh: Ditto.
15224 * config/ia64/linux.mh: Ditto.
15225 * config/m68k/linux.mh: Ditto.
15226 * config/mips/linux.mh: Ditto.
15227 * config/powerpc/linux.mh: Ditto.
15228 * config/sparc/linux.mh: Ditto.
15230 2002-01-07 Michael Snyder <msnyder@redhat.com>
15232 * arm-linux-nat.c: Remove references to regcache.c internal data
15233 (registers[] and register_valid[]).
15235 2002-01-07 Michael Snyder <msnyder@redhat.com>
15237 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15238 so that attaching to a pid will automatically read the process's
15239 symbol file and shlibs.
15240 * Makefile.in: Add rule for linux-proc.o.
15241 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15242 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15243 * config/arm/linux.mh: Ditto.
15244 * config/i386/linux.mh: Ditto.
15245 * config/i386/x86-64linux.mh: Ditto.
15246 * config/ia64/linux.mh: Ditto.
15247 * config/m68k/linux.mh: Ditto.
15248 * config/mips/linux.mh: Ditto.
15249 * config/powerpc/linux.mh: Ditto.
15250 * config/sparc/linux.mh: Ditto.
15252 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15254 * win32-nat.c: Add i386-tdep.h dependency.
15256 2002-01-07 Michael Snyder <msnyder@redhat.com>
15258 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15259 instead of bfd_get_arch_size. Don't bail out just because
15260 there's no exec_bfd.
15262 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15263 * p-valprint.c (pascal_object_print_value): Ditto.
15264 * somread.c (som_symtab_read): Ditto.
15265 * symfile.c (simple_free_overlay_region_table): Ditto.
15266 * valops.c (value_assign): Ditto.
15268 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15269 use tilde_expand and strerror for opening save-tracepoints file.
15271 * thread-db.c (thread_db_new_objfile): Indendation fix.
15273 * infptrace.c (GDB_MAX_ALLOCA): New define.
15274 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15275 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15276 can be overridden with whatever value is appropriate to the host).
15277 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15278 alloca to allocate potentially large buffer.
15279 * rs6000-nat.c (child_xfer_memory): Ditto.
15280 * symm-nat.c (child_xfer_memory): Ditto.
15281 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15283 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15285 From Nick Clifton <nickc@redhat.com>
15286 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15288 2002-01-07 Michael Snyder <msnyder@redhat.com>
15290 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15291 Don't use exec_bfd if it's NULL.
15293 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15295 * valops.c (value_arg_coerce): Fix formatting.
15297 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15299 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15300 * gnu-nat.c: Ditto.
15302 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15304 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15305 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15306 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15307 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15308 z8k-coff have not been multi-arched. Update z8k-coff build
15311 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15313 * MAINTAINERS: Mark a29k target as obsolete.
15314 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15315 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15317 * NEWS: Note that a29k targets are obsolete.
15318 * a29k-tdep.c: Mark as obsolete.
15319 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15320 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15321 a29k-*-vxworks* targets as obsolete.
15322 * remote-adapt.c: Obsolete.
15323 * remote-eb.c: Obsolete.
15324 * remote-mm.c: Obsolete.
15325 * remote-udi.c: Obsolete.
15326 * config/a29k/a29k-udi.mt: Obsolete.
15327 * config/a29k/a29k.mt: Obsolete.
15328 * config/a29k/tm-a29k.h: Obsolete.
15329 * config/a29k/tm-vx29k.h: Obsolete.
15330 * config/a29k/vx29k.mt: Obsolete.
15332 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15334 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15335 with BFD_ENDIAN_BIG.
15337 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15339 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15340 * configure, config.in: Re-generate.
15341 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15342 * defs.h: Do not include <endian.h>.
15344 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15346 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15347 * config.in: Regenerate.
15348 * configure.in: Update copyright years.
15349 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15350 * configure: Regenerate.
15351 * i386bsd-nat.c: Update copyright years.
15352 (fill_gregset): Use regcache_collect.
15353 (fetch_inferior_registers): Only fetch integer registers
15354 if requested to do so. Add support for XMM registers
15355 using PT_GETXMMREGS.
15356 (store_inferior_registers): Only store integer registers
15357 if requested to do so. Add support for XMM registers
15358 using PT_SETXMMREGS.
15359 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15360 (store_inferior_registers): Remove.
15361 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15362 (fetch_elfcore_registers): New function.
15363 (i386nbsd_elfcore_fns): New.
15364 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15365 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15367 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15368 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15369 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15370 * config/i386/tm-nbsd.h: Update copyright years.
15371 (HAVE_SSE_REGS): Define.
15372 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15373 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15374 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15375 (SIGCONTEXT_PC_OFFSET): Remove.
15376 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15378 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15380 * configure.tgt: Remove powerpc-*-macos* target.
15381 * config/m68k/xm-mpw.h: Delete file.
15382 * config/xm-mpw.h: Delete file.
15383 * ser-mac.c: Delete file.
15384 * mpw-make.sed: Delete file.
15385 * mpw-config.in: Delete file.
15386 * mac-xdep.c: Delete file.
15387 * mac-gdb.r: Delete file.
15388 * mac-defs.h: Delete file.
15389 * mac-nat.c: Delete file.
15390 * config/powerpc/macos.mh: Delete file.
15391 * config/powerpc/macos.mt: Delete file.
15392 * config/powerpc/nm-macos.h: Delete file.
15393 * config/powerpc/tm-macos.h: Delete file.
15394 * source.c (openp, open_source_file): Remove obsolete code.
15395 * top.c (gdb_readline): Ditto.
15396 * utils.c (query): Ditto.
15397 * event-top.c (display_gdb_prompt): Ditto.
15398 * Makefile.in (ser-mac.o): Delete obsolete target.
15401 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15403 * defs.h (BIG_ENDIAN): Delete macro definition.
15404 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15405 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15406 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15407 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15408 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15409 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15410 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15411 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15412 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15413 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15414 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15415 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15416 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15417 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15418 * gdbarch.c: Re-generate.
15420 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15422 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15425 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15427 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15429 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15431 * value.h (value_ptr): Delete typedef.
15433 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15435 * i386nbsd-nat.c: Update copyright years.
15436 Include i386-tdep.h.
15438 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15440 * stabsread.c: Update copyright years.
15442 From Debashis Mahata <debashis.mahata@wipro.com>:
15443 (read_struct_fields): Deal with Sun C compiler erroneous stab
15444 output for structs and unions.
15447 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15449 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15452 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15454 * cp-abi.c: Fix whitespace.
15455 (baseclass_offset): New wrapper function.
15456 * cp-abi.h (baseclass_offset): Add prototype.
15457 (struct cp_abi_ops): Add baseclass_offset pointer.
15459 * valops.c (vb_match): Move to...
15460 * gnu-v2-abi.c (vb_match): here.
15461 * valops.c (baseclass_offset): Move to...
15462 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15464 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15466 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15467 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15468 * hpacc-abi.c (init_hpacc_ops): Likewise.
15470 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15472 * valops.c (find_overload_match): Accept obj as a
15473 reference parameter. Update it before returning.
15474 * value.h (find_overload_match): Update prototype.
15475 * eval.c (evaluate_subexp_standard): Pass object to
15476 find_overload_match by reference.
15478 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15480 * valarith.c: Replace value_ptr with struct value pointer. Remove
15481 register attribute from value declarations.
15484 * scm-lang.c (scm_lookup_name): Ditto.
15486 2002-01-03 Michael Snyder <msnyder@redhat.com>
15488 Abstract the functionality of iterating over mapped memory
15489 regions into a general purpose iterator function.
15490 * procfs.c (iterate_over_mappings): New function, general purpose
15491 iterator for memory sections.
15492 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15493 (solib_mappings_callback): New function, callback for above.
15494 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15495 (info_mappings_callback): New function, callback for above.
15497 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15499 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15501 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15502 * i386-tdep.c: Include "elf-bfd.h".
15503 (process_note_abi_tag_sections): New function.
15504 (i386_gdbarch_init): Add code to recognize various OS/ABI
15507 * maint.c (_initialize_maint_cmds): Add missing \ in
15510 For older changes see ChangeLog-2001
15516 version-control: never