1 2003-01-06 J. Brobecker <brobecker@gnat.com>
3 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
4 failure introduced in the previous change.
6 2003-01-05 Michael Chastain <mec@shout.net>
8 * README: Remove references to deleted remote-*.c files:
9 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10 remote-nrom.c, remote-os9k.c, remote-udi.c.
12 2003-01-05 Mark Kettenis <kettenis@gnu.org>
14 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
15 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
16 i386_get_longjmp_target.
18 2003-01-05 Andrew Cagney <ac131313@redhat.com>
20 * arm-tdep.c (prologue_cache): Change to a pointer.
21 (_initialize_arm_tdep): Allocate prologue_cache.
22 (check_prologue_cache): Update.
23 (save_prologue_cache): Update.
24 (arm_gdbarch_init): Update.
26 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
28 * stabsread.c (update_method_name_from_physname): Call complaint()
31 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
33 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
34 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
35 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
37 * blockframe.c: Include "gdbcmd.h" and "command.h".
38 (backtrace_below_main): New variable.
39 (file_frame_chain_valid, func_frame_chain_valid)
40 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
41 (generic_func_frame_chain_valid): Remove functions.
42 (frame_chain_valid, do_flush_frames_sfunc): New functions.
43 (_initialize_blockframe): New function.
44 * Makefile.in (blockframe.o): Update dependencies.
45 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
46 comment. Call frame_chain_valid ().
47 * frame.h: Remove old prototypes. Add prototype for
48 frame_chain_valid and update comments to match.
49 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
51 * gdbarch.h: Regenerated.
52 * gdbarch.c: Regenerated.
54 * alpha-tdep.c (alpha_gdbarch_init): Don't call
55 set_gdbarch_frame_chain_valid.
56 * avr-tdep.c (avr_gdbarch_init): Likewise.
57 * cris-tdep.c (cris_gdbarch_init): Likewise.
58 * frv-tdep.c (frv_gdbarch_init): Likewise.
59 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
60 * i386-tdep.c (i386_svr4_init_abi): Likewise.
61 (i386_nw_init_abi): Likewise.
62 (i386_gdbarch_init): Likewise.
63 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
64 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
65 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
66 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
67 * mips-tdep.c (mips_gdbarch_init): Likewise.
68 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
69 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
70 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
71 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
72 * s390-tdep.c (s390_gdbarch_init): Likewise.
73 * sh-tdep.c (sh_gdbarch_init): Likewise.
74 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
75 * v850-tdep.c (v850_gdbarch_init): Likewise.
76 * vax-tdep.c (vax_gdbarch_init): Likewise.
77 * x86-64-tdep.c (x86_64_init_abi): Likewise.
79 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
80 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
81 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
82 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
83 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
84 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
85 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
86 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
88 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
90 * Makefile.in (acconfig_h): Remove incorrect macro.
92 (osabi.o): Update dependencies.
93 * configure.tgt: Set gdb_osabi based on target triplet.
94 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
95 * configure: Regenerated.
96 * config.in: Regenerated.
97 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
98 (GDB_OSABI_DEFAULT): Define if not already defined.
99 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
100 (set_osabi_string): New variables.
101 (gdbarch_register_osabi): Add new OS ABI to
102 gdb_osabi_available_names.
103 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
104 (set_osabi, show_osabi): New functions.
105 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
107 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
109 * arch-utils.c (gdbarch_info_init): Set osabi to
110 GDB_OSABI_UNINITIALIZED.
111 * gdbarch.sh: Add osabi to struct gdbarch and to struct
112 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
113 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
114 * gdbarch.c: Regenerated.
115 * gdbarch.h: Regenerated.
116 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
118 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
119 * osabi.h (enum gdb_osabi): Move to defs.h.
120 (gdbarch_init_osabi): Update prototype.
121 * defs.h (enum gdb_osabi): Moved here.
122 * Makefile.in: Update dependencies.
124 * alpha-tdep.h: Don't include "osabi.h".
125 (struct gdbarch_tdep): Remove osabi member.
126 * alpha-tdep.c: Include "osabi.h".
127 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
128 iterate over arches. Update call to gdbarch_init_osabi.
129 (alpha_dump_tdep): Don't dump osabi.
130 * alpha-linux-tdep.c: Include "osabi.h".
131 * alpha-osf1-tdep.c: Include "osabi.h".
132 * alphafbsd-tdep.c: Include "osabi.h".
133 * alphanbsd-tdep.c: Include "osabi.h".
135 * arm-tdep.h: Don't include "osabi.h".
136 (struct gdbarch_tdep): Remove osabi member.
137 * arm-tdep.c: Include "osabi.h".
138 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
139 iterate over arches. Update call to gdbarch_init_osabi.
140 (arm_dump_tdep): Don't dump osabi.
141 * arm-linux-tdep.c: Include "osabi.h".
142 * armnbsd-tdep.c: Include "osabi.h".
144 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
145 Update call to gdbarch_init_osabi.
147 * i386-tdep.h: Don't include "osabi.h".
148 (struct gdbarch_tdep): Remove osabi member.
149 * i386-tdep.c: Include "osabi.h".
150 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
151 iterate over arches. Update call to gdbarch_init_osabi.
152 (i386_dump_tdep): Don't dump osabi.
153 * i386-linux-tdep.c: Include "osabi.h".
154 * i386-sol2-tdep.c: Include "osabi.h".
155 * i386bsd-tdep.c: Include "osabi.h".
156 * i386gnu-tdep.c: Include "osabi.h".
157 * i386ly-tdep.c: Include "osabi.h".
158 * i386nbsd-tdep.c: Include "osabi.h".
159 * i386obsd-tdep.c: Include "osabi.h".
161 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
162 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
163 check osabi when iterating over arches. Update call to
165 (mips_dump_tdep): Don't dump osabi.
167 * ns32k-tdep.h: Don't include "osabi.h".
168 (struct gdbarch_tdep): Remove.
169 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
170 gdbarch_lookup_osabi. Don't iterate over arches. Don't
171 allocate tdep. Update call to gdbarch_init_osabi.
172 (ns32k_dump_tdep): Remove.
173 (_initialize_ns32k_tdep): Update call to gdbarch_register.
174 * ns32knbsd-tdep.c: Include "osabi.h".
176 * ppc-tdep.h: Don't include "osabi.h".
177 (struct gdbarch_tdep): Remove osabi member.
178 * rs6000-tdep.c: Include "osabi.h".
179 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
180 osabi when iterating over arches. Update call to
182 (rs6000_dump_tdep): Don't dump osabi.
183 * ppc-linux-tdep.c: Include "osabi.h".
184 * ppcnbsd-tdep.c: Include "osabi.h".
186 * sh-tdep.h: Don't include "osabi.h".
187 (struct gdbarch_tdep): Remove osabi member.
188 * sh-tdep.c: Include "osabi.h".
189 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
190 iterate over arches. Update call to gdbarch_init_osabi.
191 (sh_dump_tdep): Don't dump osabi.
192 * shnbsd-tdep.c: Include "osabi.h".
194 * sparc-tdep.c: Include "osabi.h".
195 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
196 iterate over arches. Update call to gdbarch_init_osabi.
197 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
200 * vax-tdep.h: Don't include "osabi.h".
201 (struct gdbarch_tdep): Remove.
202 * vax-tdep.c: Include "osabi.h".
203 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
204 iterate over arches. Don't allocate tdep. Update call
205 to gdbarch_init_osabi.
206 (vax_dump_tdep): Remove.
207 (_initialize_vax_tdep): Update call to gdbarch_register.
209 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
211 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
213 (breakpoint_re_set_one): Don't fetch the value for a disabled
216 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
218 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
219 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
220 (COERCE_FLOAT_TO_DOUBLE): Remove.
221 * gdbarch.c: Regenerate.
222 * gdbarch.h: Regenerate.
223 * Makefile.in: Remove value_h from gdbarch_h.
224 * valops.c (coerce_float_to_double): New variable.
225 (default_coerce_float_to_double): Remove.
226 (standard_coerce_float_to_double): Remove.
227 (value_arg_coerce): Use coerce_float_to_double.
228 (_initialize_valops): Add "set coerce-float-to-double".
229 * value.h (default_coerce_float_to_double): Remove prototype.
230 (standard_coerce_float_to_double): Remove prototype.
232 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
234 * mdebugread.c (parse_symbol): Likewise.
235 * stabsread.c (define_symbol): Mark all functions as prototyped.
237 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
238 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
239 set_gdbarch_coerce_float_to_double.
240 * arm-tdep.c (arm_gdbarch_init): Likewise.
241 * frv-tdep.c (frv_gdbarch_init): Likewise.
242 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
243 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
244 * mips-tdep.c (mips_gdbarch_init): Likewise.
245 (mips_coerce_float_to_double): Remove.
246 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
247 (rs6000_coerce_float_to_double): Remove.
248 * s390-tdep.c (s390_gdbarch_init): Likewise.
249 * sh-tdep.c (sh_gdbarch_init): Likewise.
250 (sh_coerce_float_to_double): Remove.
251 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
252 (sparc_coerce_float_to_double): Remove.
253 * v850-tdep.c (v850_gdbarch_init): Likewise.
254 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
255 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
256 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
257 (hppa_coerce_float_to_double): Remove prototype.
258 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
260 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
262 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
264 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
266 Suggested by Stewart Brown <sb24@avaya.com>:
267 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
268 in recursive calls. Handle TYPE_CODE_TYPEDEF.
269 (c_type_print_varspec_suffix): Likewise.
271 2003-01-04 Mark Kettenis <kettenis@gnu.org>
273 * configure.in: Don't set and AC_SUBST SUBDIRS.
274 * configure: Regenerated.
276 * configure.in: Remove code dealing with shared libraries.
277 * Makefile.in: Remove HLDFLAGS and HLDENV.
278 * configure: Regenerated.
280 2003-01-04 Andrew Cagney <ac131313@redhat.com>
282 * frame.c (deprecated_frame_xmalloc): New function.
283 (deprecated_set_frame_saved_regs_hack): New function.
284 (deprecated_set_frame_extra_info_hack): New function.
285 * frame.h (deprecated_frame_xmalloc): Declare.
286 (deprecated_set_frame_saved_regs_hack): Declare.
287 (deprecated_set_frame_extra_info_hack): Declare.
289 2003-01-04 Mark Kettenis <kettenis@gnu.org>
291 * configure.in: Move code that provides the --enable-gdbtk option
292 right after the code that handles the --enable-tui option, and
294 * configure: Regenerated.
296 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
297 AC_CHECK_FUNCS and remove the old check for pread64.
298 * acinclude.m4 (AC_GNU_SOURCE): New macro.
299 * acconfig.h (_GNU_SOURCE): Add.
300 (HAVE_PREAD64): Remove.
301 * configure, aclocal.m4, config.in: Regenerated.
303 2003-01-03 Andrew Cagney <ac131313@redhat.com>
305 * alpha-tdep.c: Use get_frame_saved_regs.
306 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
307 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
308 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
309 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
310 * vax-tdep.c, xstormy16-tdep.c: Ditto.
312 2003-01-03 Mark Kettenis <kettenis@gnu.org>
314 * configure.in: Remove all use of the SUBDIRS variable; add
315 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
316 code providing the --enable-multi-ice option, and move it right in
317 front of the code that checks whether gdbserver is supported.
319 * configure: Regenerated.
320 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
323 2003-01-03 Andrew Cagney <cagney@redhat.com>
325 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
326 * avr-tdep.c, cris-tdep.c: Ditto.
327 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
328 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
330 2003-01-03 Mark Kettenis <kettenis@gnu.org>
332 * configure.in: Remove --enable-netrom option.
333 * configure: Regenerated.
335 2003-01-03 Mark Kettenis <kettenis@gnu.org>
337 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
338 declaration for `struct re_pattern_buffer' instead.
339 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
341 2003-01-03 J. Brobecker <brobecker@gnat.com>
343 * mdebugread.c (parse_symbol): Count until the stEnd matching
346 2003-01-02 Mark Kettenis <kettenis@gnu.org>
348 * configure.in: Remove --with-cpu option.
349 subscripts. Remove evil changequotes here.
350 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
351 * config.in, configure: Regenerated.
353 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
354 * configure.in: Cleanup section that sources GDB and BFD configure
355 subscripts. Remove evil changequotes here.
356 * config.in, configure: Regenerated.
358 2003-01-02 Andrew Cagney <ac131313@redhat.com>
360 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
361 frame accessor methods.
362 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
363 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
364 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
365 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
366 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
367 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
370 2003-01-02 Mark Kettenis <kettenis@gnu.org>
372 * configure.in: Remove UI_OUT configuration code.
373 * ada-lang.c: Update assuming UI_OUT is always true.
374 * Makefile.in (UIOUT_CFLAGS): Remove.
375 * configure: Regenerated.
376 * TODO: Remove blurb about elimination of -DUI_OUT.
378 * configure.in: Move code that provides the --enable-gdbcli,
379 --enable-gdbmi options right before the code that handles the
380 --enable-tui option. Polish a bit.
381 * configure: Regenerated.
383 * configure.in: Rewrite check for GNU regex and the
384 --without-included regex option, and move it into the "Checks for
385 library functions" section. This makes us use the system regex
386 again by default on systems with version 2 of the GNU C library.
387 This was apparently broken.
388 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
389 * acconfig.h (USE_INCLUDED_REGEX): Remove.
390 * config.in, configure: Regenerated.
392 * configure.in: Move code that provides the --enable-tui option
393 before the "Checks for libraries" section. Polish the code
394 somewhat and set need_curses to yes if we build the TUI. Rewrite
395 code that looks for a library providing termcap functionality to
396 match more closely what's done in the Readline library, and move
397 it into to the "Checks for libraries" section.
398 * configure: Regenerated.
399 * Makefile.in (TERMCAP): Remove variable.
400 * config/i386/go32.mh (TERMCAP): Remove variable.
402 2003-01-02 Andrew Cagney <ac131313@redhat.com>
404 * MAINTAINERS: Mention gdb_mbuild.sh.
405 * gdb_mbuild.sh: Rewrite.
407 2003-01-02 Mark Kettenis <kettenis@gnu.org>
409 * configure.in: Fix typo in last change.
410 * config.in, configure: Regenerated.
412 2003-01-02 Andrew Cagney <ac131313@redhat.com>
414 * valarith.c (value_binop): Delete obsolete code and comments.
415 * configure.host: Ditto.
416 * buildsym.h (make_blockvector): Ditto.
417 * buildsym.c (make_blockvector): Ditto.
418 * defs.h (enum language): Ditto.
419 (chill_demangle): Ditto.
420 * elfread.c (elf_symtab_read): Ditto.
421 * dwarfread.c (CHILL_PRODUCER): Ditto.
422 (set_cu_language): Ditto.
423 (handle_producer): Ditto.
424 * expprint.c (print_subexp): Ditto.
425 * gdbtypes.c (chill_varying_type): Ditto.
426 * gdbtypes.h (builtin_type_chill_bool): Ditto.
427 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
428 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
429 (chill_varying_type): Ditto.
430 * language.h (_LANG_chill): Ditto.
431 * language.c (binop_result_type, integral_type): Ditto.
432 (character_type, string_type, structured_type): Ditto.
433 (lang_bool_type, binop_type_check): Ditto.
434 * stabsread.h (os9k_stabs): Ditto.
435 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
436 (define_symbol, read_type, read_struct_fields): Ditto.
437 (read_array_type, read_enum_type, read_huge_number): Ditto.
438 (read_range_type, start_stabs): Ditto.
439 * symfile.c (init_filename_language_table): Ditto.
440 (add_psymbol_with_dem_name_to_list): Ditto.
441 * symtab.c (symbol_init_language_specific): Ditto.
442 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
443 * symtab.h (struct general_symbol_info): Ditto.
444 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
445 * typeprint.c (typedef_print): Ditto.
446 * utils.c (fprintf_symbol_filtered): Ditto.
447 * valops.c (value_cast, search_struct_field, value_slice): Delete
449 (varying_to_slice): Delete function.
450 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
451 (varying_to_slice): Delete declaration.
452 * MAINTAINERS: Update.
454 2003-01-02 Mark Kettenis <kettenis@gnu.org>
456 * configure.in: Reorganize "Checks for library functions section"
457 a bit. Remove check for `btowc' and `isascii' functions.
458 * configure: Regenerated.
460 * acconfig.h (_MSE_INT_H): Remove.
461 * configure.in: Create "Checks for header files" section, and move
462 appropriate tests there. Don't check for objlist.h, wchar.h,
463 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
464 misdetection fix. Also add "Checks for types", "Checks for
465 compiler characteristics" and "Checks for library functions"
467 * config.in, configure: Regenerated.
469 * configure.in: Create "Checks for programs" section, and move
470 appropriate tests there.
472 2003-01-01 Mark Kettenis <kettenis@gnu.org>
474 * configure.in: Create "Checks for libraries" section, and move
475 appropriate tests there. Cleanup check for wctype in libw. Use
476 AC_SEARCH_LIBS to see whether we need libsocket.
477 * configure: Regenerated.
479 2002-12-31 Mark Kettenis <kettenis@gnu.org>
481 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
482 * config.in, configure: Regenerated.
484 2002-12-31 Mark Kettenis <kettenis@gnu.org>
486 * gdb_dirent.h: Cleanup and update code to match the example in
488 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
489 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
490 * configure: Regenerated.
492 2002-12-30 Adam Fedor <fedor@gnu.org>
494 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
495 (yylex): Initialize c to avoid uninitialized warning.
497 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
499 * doc/fdl.texi: Revert the last change.
501 2002-12-29 Mark Kettenis <kettenis@gnu.org>
503 * tracepoint.c (ISATTY): Removed.
505 2002-12-26 J. Brobecker <brobecker@gnat.com>
507 Continuing work to convert the hppa targets to multiarch partil.
509 * hppa-tdep.c: Add some missing forward declarations.
510 (frameless_function_invocation): Prefix the function name
511 by "hppa_" to avoid polluting the namespace. Update all calls
512 to use the new function name.
513 (saved_pc_after_call): Ditto.
514 (init_extra_frame_info): Ditto.
515 (frame_chain): Ditto.
516 (push_dummy_frame): Ditto.
517 (target_read_pc): Ditto.
518 (target_write_pc): Ditto.
519 (in_solib_call_trampoline): Ditto.
520 (in_solib_return_trampoline): Ditto.
521 (skip_trampoline_code): Ditto.
522 (hppa_read_fp): New function, renamed from target_read_fp.
523 (hppa_target_read_fp): New function, using hppa_read_fp.
524 This function conforms to the function profile for the
525 READ_FP gdbarch method.
526 (hppa_extract_struct_value_address): New function, extracted
527 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
529 (hppa_frame_num_args): New function.
530 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
532 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
533 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
534 for the switch to multiarch partial.
535 Update some of the macros definitions to match some changes
536 described above in the name of the function they are calling.
537 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
538 not be straightforward to convert. Do now wrap it inside
539 "#if !... #endif" to remember that this macro has still not
541 (FIX_CALL_DUMMY): Likewise.
543 2002-12-26 J. Brobecker <brobecker@gnat.com>
545 Continuing work to convert the hppa targets to multiarch partial.
547 * hppa-tdep.c (hppa_register_raw_size): New function replacing
548 the body of macro REGISTER_RAW_SIZE.
549 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
550 config/pa/tm-hppah.h. These functions will be used to initialize
551 the gdbarch structure.
552 (hppa_hpux_pc_in_sigtramp): New function.
553 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
554 (hppa_hpux_frame_base_before_sigtramp): New function.
555 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
556 Add gdbcore.h #include.
557 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
558 of this gdbarch-eligible macro to a call to the new associated
560 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
561 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
562 into a call to the new associated function.
563 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
564 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
565 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
567 2002-12-24 David Carlton <carlton@math.stanford.edu>
569 * config/sparc/tm-sparc.h: Delete duplicate definition of
570 DEPRECATED_PC_IN_CALL_DUMMY.
572 2002-12-24 Kevin Buettner <kevinb@redhat.com>
574 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
576 * configure.tgt: Recognize mips64*-*-linux*.
577 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
578 (supply_32_bit_reg): New function.
579 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
580 (fill_gregset): Use regcache_collect() instead of
581 deprecated_registers[].
582 (register_addr): Change name to mips_linux_register_addr().
583 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
584 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
585 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
586 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
587 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
588 (MIPS64_LINUX_JB_PC): New defines.
589 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
590 (mips64_elf_fpregset_t): New typedefs.
591 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
592 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
593 (mips64_linux_register_addr, set_mips_linux_register_addr)
594 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
595 (init_register_addr_data)
597 (fetch_core_registers): Add support for core file formats with 64-bit
599 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
600 (register_addr_data): New static global variable.
601 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
602 gdbarch_register_osabi() for each MIPS machine.
603 * config/mips/linux64.mt: New file.
604 * config/mips/tm-linux64.h: New file.
606 2002-12-23 Adam Fedor <fedor@gnu.org>
608 * maint.c (maintenance_demangle): Add switch to demangle
609 ObjC language symbols as well.
611 2002-12-23 Adam Fedor <fedor@gnu.org>
613 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
614 last argument from complaint function call.
616 2002-12-23 Kevin Buettner <kevinb@redhat.com>
618 * exec.c (print_section_info): Add FIXME comments regarding format
621 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
623 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
624 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
626 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
628 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
630 2002-12-23 David Carlton <carlton@math.stanford.edu>
632 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
633 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
634 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
635 information associated to a minsym, not lookup_symbol.
637 2002-12-21 Mark Kettenis <kettenis@gnu.org>
639 * x86-64-tdep.h (x86_64_init_abi): New prototype.
640 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
641 (x86_64_init_abi): Make non-static. Set number of pseudo
643 (x86_64_gdbarch_init): Remove function.
644 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
645 Remove code dealing with dissambly.
646 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
647 (_initialize_x86_64_linux_tdep): New function.
648 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
651 2002-12-14 Mark Kettenis <kettenis@gnu.org>
653 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
654 (struct gdb_osabi_handler): Remove member `arch'. Add member
656 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
657 construct a `struct bfd_arch_info' and store it in the `struct
658 gdb_osabi_handler' that is created.
659 (gdbarch_init_osabi): Check for compatibility based on machine
660 type and architecture.
661 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
663 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
664 second argument in call to gdbarch_register_osabi.
665 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
666 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
667 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
668 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
669 * arm-tdep.c (_initialize_arm_tdep): Likewise.
670 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
671 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
672 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
673 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
674 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
675 * i386-tdep.c (_initialize_i386_tdep): Likewise.
676 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
677 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
678 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
679 _initialize_i386bsd_tdep and updated likewise.
680 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
681 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
682 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
683 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
684 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
685 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
686 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
687 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
688 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
689 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
691 2002-12-20 Kevin Buettner <kevinb@redhat.com>
693 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
694 DT_MIPS_RLD_MAP case for 64-bit targets.
696 2002-12-20 Kevin Buettner <kevinb@redhat.com>
698 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
699 ``temp_saved_regs'', not the pointer or other storage contiguous
702 2002-12-20 Kevin Buettner <kevinb@redhat.com>
704 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
705 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
706 (mips_linux_get_longjmp_target): Delete declarations.
707 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
708 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
709 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
710 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
711 (mips_linux_get_longjmp_target)
712 (mips_linux_svr4_fetch_link_map_offsets): Make static.
713 (mips_linux_init_abi): New function.
714 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
716 2002-12-19 Keith Seitz <keiths@redhat.com>
718 patch committed by Elena Zannoni <ezannoni@redhat.com>
719 * thread.c (do_captured_list_thread_ids): Call prune_threads and
720 target_find_new_threads. Fix for PR mi/669.
722 2002-12-19 David Carlton <carlton@math.stanford.edu>
724 * linespec.c (decode_line_1): Move code into decode_all_digits.
725 (decode_all_digits): New function.
727 2002-12-19 Kevin Buettner <kevinb@redhat.com>
729 * exec.c (print_section_info): Select a format string to use with
730 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
732 2002-12-18 Andrew Cagney <ac131313@redhat.com>
734 * frame.c (deprecated_update_current_frame_pc_hack): Replace
735 deprecated_update_current_frame_pc_hack.
736 (deprecated_update_frame_base_hack): New function.
737 * frame.h (deprecated_update_frame_pc_hack): Replace
738 (deprecated_update_frame_base_hack): Declare.
739 * infrun.c (normal_stop): Update.
741 2002-12-18 Andrew Cagney <ac131313@redhat.com>
743 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
744 frame_extra_info_zalloc.
745 (rs6000_frame_args_address): Use get_frame_extra_info.
746 (frame_get_saved_regs): Use get_frame_saved_regs.
747 (frame_initial_stack_address): Use get_frame_saved_regs and
748 get_frame_extra_info.
749 (frame_initial_stack_address): Use get_frame_extra_info.
751 2002-12-17 Kevin Buettner <kevinb@redhat.com>
753 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
755 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
756 checks for r3900_regnames[].
758 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
760 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
762 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
764 2002-12-17 David Carlton <carlton@math.stanford.edu>
766 * symtab.c (lookup_partial_symbol): Don't search past the end of
769 2002-12-17 Andrew Cagney <ac131313@redhat.com>
771 * stack.c (frame_info): Use get_frame_saved_regs.
772 * breakpoint.c (until_break_command): Use get_frame_pc.
774 2002-12-16 Kevin Buettner <kevinb@redhat.com>
776 * buildsym.c (block_end_complaint, anon_block_end_complaint)
777 (innerblock_complaint, innerblock_anon_complaint)
778 (blockvector_complaint): Delete deprecated complaint structs.
779 (finish_block, make_blockvector, end_symtab): Replace calls
780 to complain() with calls to complaint().
781 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
782 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
783 (unexpected_type_complaint, bad_sclass_complaint)
784 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
785 Delete deprecated complaint structs.
786 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
787 Replace calls to complain() with calls to complaint().
788 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
789 (unknown_symtype_complaint, unknown_symchar_complaint)
790 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
791 (lbrac_mismatch_complaint, repeated_header_complaint)
792 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
793 Delete deprecated complaint structs.
794 (unknown_symtype_complaint, lbrac_mismatch_complaint)
795 (repeated_header_complaint)
796 (function_outside_compiliation_unit_complaint): New functions.
797 (add_old_header_file, find_corresponding_bincl_psymtab)
798 (set_namestring, find_stab_function_addr, read_dbx_symtab)
799 (process_one_symbol): Replace calls to complain() with, possibly
800 indirect, calls to complaint().
801 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
802 (unknown_attribute_form, unknown_attribute_length)
803 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
804 (const_ignored, botched_modified_type, op_deref2, op_deref4)
805 (basereg_not_handled, dup_user_type_allocation)
806 (dup_user_type_definition, missing_tag, bad_array_element_type)
807 (subscript_data_items, unhandled_array_subscript_format)
808 (unknown_array_subscript_format, not_row_major)
809 (missing_at_name): Delete deprecated complaint structs.
810 (bad_die_ref_complaint, unknown_attribute_form_complaint)
811 (dup_user_type_definition_complaint)
812 (bad_array_element_type_complaint): New functions.
813 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
814 (decode_subscript_data_item, dwarf_read_array_type)
815 (read_tag_string_type, read_subroutine_type, read_func_scope)
816 (locval, scan_partial_symbols, decode_modified_type)
817 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
818 (attribute_size): Replace calls to complain() with, possibly
819 indirect, calls to complaint().
820 * elfread.c (section_info_complaint, section_info_dup_complaint)
821 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
822 Delete deprecated complaint structs.
823 (elf_symtab_read, elfstab_offset_sections): Replace calls to
824 complain() with calls to complaint().
825 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
827 (stub_noname_complaint): New function.
828 (check_typedef, add_mangled_type): Replace calls to complain()
829 with calls to complaint().
830 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
831 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
832 (hpread_unhandled_type_complaint, hpread_struct_complaint)
833 (hpread_array_complaint, hpread_type_lookup_complaint)
834 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
835 (hpread_unhandled_common_complaint)
836 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
837 struct definitions and declarations.
838 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
839 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
840 Replace calls to complain() with, possibly indirect, calls to
842 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
844 * mdebugread.c (bad_file_number_complaint, index_complaint)
845 (aux_index_complaint, block_index_complaint)
846 (unknown_ext_complaint, unknown_sym_complaint)
847 (unknown_st_complaint, block_overflow_complaint)
848 (basic_type_complaint, unknown_type_qual_complaint)
849 (array_index_type_complaint, bad_tag_guess_complaint)
850 (block_member_complaint, stEnd_complaint)
851 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
852 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
853 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
854 (bad_continued_complaint, bad_rfd_entry_complaint)
855 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
856 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
857 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
858 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
860 (index_complaint, unknown_ext_complaint, basic_type_complaint)
861 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
862 (unexpected_type_code_complaint)
863 (function_outside_compilation_unit_complaint): New functions.
864 (parse_symbol, parse_type, upgrade_type, parse_procedure)
865 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
866 Replace calls to complain() with, possibly indirect calls to
868 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
869 Delete deprecated complaint structs.
870 (lookup__objc_class, lookup_child_selector): Replace complain()
872 * remote-vx.c (cant_contact_target): Delete deprecated complaint
874 (vx_lookup_symbol): Replace complain() with complaint().
875 * stabsread.c (invalid_cpp_abbrev_complaint)
876 (invalid_cpp_type_complaint, member_fn_complaint)
877 (const_vol_complaint, error_type_complaint)
878 (invalid_member_complaint, range_type_base_complaint)
879 (reg_value_complaint, vtbl_notfound_complaint)
880 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
881 (unresolved_sym_chain_complaint, stabs_general_complaint)
882 (lrs_general_complaint, multiply_defined_struct): Delete
883 deprecated complaint structs.
884 (invalid_cpp_abbrev_complaint, ref_value_complaint)
885 (stabs_general_complaint, lrs_general_complaint)
886 (msg_unknown_complaint): New functions.
887 (dbx_lookup_type, read_cfront_baseclasses)
888 (read_cfront_member_functions, resolve_symbol_reference)
889 (define_symbol, resolve_live_range, add_live_range, read_type)
890 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
891 (read_one_struct_field, read_baseclasses, read_tilde_fields)
892 (read_cfront_static_fields, attach_fields_to_type)
893 (complain_about_struct_wipeout, read_range_type)
894 (common_block_start, common_block_end, cleanup_undefined_types)
895 (scan_file_globals): Replace complain() with complaint().
896 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
897 Delete deprecated complaint struct declarations.
898 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
899 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
900 (bf_not_found_complaint, ef_complaint, eb_complaint)
901 (function_outside_compilation_unit_complaint): New functions.
902 (record_include_begin, record_include_end, enter_line_range)
903 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
904 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
905 complain() with complaint().
907 2002-12-16 Andrew Cagney <ac131313@redhat.com>
909 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
910 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
911 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
912 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
913 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
914 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
915 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
916 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
917 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
918 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
919 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
920 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
921 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
922 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
923 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
924 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
925 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
926 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
927 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
928 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
929 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
930 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
931 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
932 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
933 * config/m88k/xm-dgux.h: Delete.
934 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
935 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
936 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
937 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
938 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
939 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
940 * ch-valprint.c: Delete.
942 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
944 * infrun.c (handle_inferior_event): Rearrange code to resume if
945 no catchpoint triggers for an event.
947 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
949 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
950 and TARGET_WAITKIND_VFORKED cases.
952 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
954 * infrun.c (handle_inferior_event): Assume that catchpoints
955 are not affected by DECR_PC_AFTER_BREAK.
957 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
959 * target.c (update_current_target): Don't inherit DONT_USE.
960 * target.h (struct target_ops): Remove DONT_USE.
961 (target_next): Remove macro.
963 2002-12-15 Mark Kettenis <kettenis@gnu.org>
965 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
967 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
969 * arm-tdep.c (convert_from_extended): New argument to hold the
970 type of floating point result we want to convert to. Make input
971 argument const. Fix all callers.
972 (convert_to_extended): Similarly.
973 (arm_extract_return_value): Now takes a regcache argument. Change
974 code to use regcache accessor functions. Correctly extract
975 smaller-than-word results on big-endian machines.
976 (arm_store_return_value): Now takes a regcache argument. Change
977 code to use regcache accessor functions. Correctly zero/sign extend
978 smaller than word results before storing into r0.
979 (arm_gdbarch_init): Register new-style extract_return_value and
980 store_return_value functions.
982 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
984 * thread-db.c (thread_from_lwp): Uniquify error msg.
985 (lwp_from_thread): Ditto.
986 (check_event): Ditto.
987 (find_new_threads_callback): Ditto.
988 (thread_db_pid_to_str): Ditto.
990 2002-12-13 Andrew Cagney <ac131313@redhat.com>
992 * frame.h (get_frame_saved_regs): Declare.
993 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
995 * frame.c (get_frame_saved_regs): New function.
996 (frame_saved_regs_zalloc): Return the allocated saved_regs.
998 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1000 * frame.c (deprecated_update_current_frame_pc_hack): New
1002 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1003 * infrun.c (normal_stop): Use said function instead of directly
1004 modifying the frame's PC.
1006 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1008 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1010 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1012 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1013 config/mips/tm-irix6.h (NUM_REGS): Delete.
1014 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1015 (temp_saved_regs): Declare as a pointer rather than an array.
1016 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1017 that ``temp_saved_regs'' has storage allocated to it and that
1018 it's the correct size.
1020 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1022 * defs.h (init_last_source_visited): New prototype.
1024 * source.c (add_path): New function that adds to a specified path.
1025 (mod_path): Change to call add_path.
1026 (init_last_source_visited): New function to allow interfaces to
1027 initialize static variable: last_source_visited. Part of fix
1029 * Makefile.in: Add support for mi/mi-cmd-env.c.
1031 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1033 * frame.h (frame_id_unwind): Declare.
1034 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1036 (frame_id_unwind_ftype): Declare.
1037 * frame.c (frame_id_unwind): New function.
1038 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1039 (create_new_frame, get_prev_frame): Pass id_unwind to
1041 (frame_saved_regs_id_unwind): New function.
1042 (frame_saved_regs_id_unwind): New function.
1043 * dummy-frame.c (dummy_frame_id_unwind): New function.
1044 (struct dummy_frame): Add field id.
1045 (generic_push_dummy_frame): Initialize `id'.
1046 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1048 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1050 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1051 pass that to set_momentary_breakpoint. Move comments to where they
1053 * frame.h (set_current_frame): Delete declaration.
1054 * frame.c (set_current_frame): Delete function.
1056 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1058 * frame.c (frame_extra_info_zalloc): New function.
1059 * frame.h (frame_extra_info_zalloc): Declare.
1061 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1063 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1064 in the previous prototype change to set_momentary_breakpoint.
1066 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1068 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1070 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1071 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1072 (stop_stepping): Remove outdated check for child vfork events.
1074 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1076 * GDB 5.3 released from gdb_5_3-branch.
1078 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1080 * corelow.c (init_core_ops): Delete references to to_require_attach
1081 and to_require_detach.
1082 * exec.c (init_exec_ops): Likewise.
1083 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1084 hppa_require_detach directly.
1085 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1086 * inftarg.c (child_detach): Remove.
1087 (child_detach_from_process): Rename to child_detach, remove
1088 after_fork argument.
1089 (child_attach): Remove.
1090 (child_attach_to_process): Rename to child_attach, remove after_fork
1092 (init_child_ops): Delete references to to_require_attach
1093 and to_require_detach.
1094 * infttrace.c (hppa_require_attach): Update comment.
1095 * target.c (cleanup_target, update_current_target)
1096 (init_dummy_target, setup_target_debug): Delete references to
1097 to_require_attach and to_require_detach.
1098 (find_default_require_detach, find_default_require_attach)
1099 (debug_to_require_attach, debug_to_require_detach): Remove
1101 * target.h (struct target_ops): Remove to_require_attach
1102 and to_require_detach.
1103 (target_require_attach, target_require_detach): Delete macros.
1104 (find_default_require_detach, find_default_require_attach): Delete
1106 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1108 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1110 * frame.c (get_frame_extra_info): New function.
1111 * frame.h (get_frame_extra_info): Declare.
1113 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1115 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1116 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1117 with `struct frame_id'.
1118 (set_longjmp_resume_breakpoint): Ditto.
1119 * infrun.c (handle_inferior_event): Update.
1120 * breakpoint.c (watch_command_1, until_break_command): Update.
1121 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1122 (handle_inferior_event, step_over_function): Update.
1123 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1124 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1125 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1126 * infcmd.c (finish_command, run_stack_dummy): Update.
1128 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1130 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1131 (dwarf2_non_const_array_bound_ignored)
1132 (dwarf2_missing_line_number_section)
1133 (dwarf2_statement_list_fits_in_line_number_section)
1134 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1135 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1136 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1137 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1138 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1139 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1140 (dwarf2_missing_member_fn_type_complaint)
1141 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1142 (dwarf2_const_value_length_mismatch)
1143 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1144 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1145 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1146 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1147 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1148 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1149 complaints using deprecated struct..
1150 (dwarf2_non_const_array_bound_ignored_complaint)
1151 (dwarf2_complex_location_expr_complaint)
1152 (dwarf2_unsupported_at_frame_base_complaint)
1153 (dwarf2_const_value_length_mismatch_complaint)
1154 (dwarf2_macros_too_long_complaint)
1155 (dwarf2_macro_malformed_definition_complaint)
1156 (dwarf2_invalid_attrib_class_complaint): New functions.
1157 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1158 (read_structure_scope, read_array_type, read_common_block)
1159 (read_tag_pointer_type, read_base_type, read_partial_die)
1160 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1161 (new_symbol, dwarf2_const_value, read_type_die)
1162 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1163 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1164 complain() with, possibly indirect, calls to complaint().
1166 2002-12-11 Andrew Cagney <cagney@redhat.com>
1168 * frame.c (deprecated_get_frame_saved_regs): Rename
1169 get_frame_saved_regs.
1170 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1171 * sparc-tdep.c: Update.
1172 * hppa-tdep.c: Update.
1173 * h8500-tdep.c: Update.
1175 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1177 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1178 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1179 ``char *'' for return and parameter types.
1180 * gdbarch.h, gdbarch.c: Regenerate.
1181 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1182 return type from ``char *'' to ``const char *''.
1183 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1186 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1188 * i386-tdep.c: Include "dummy-frame.h".
1189 (i386_frame_chain, i386_frame_saved_pc): Replace
1190 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1191 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1193 2002-12-10 Andrew Cagney <cagney@redhat.com>
1195 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1196 Change to a function with predicate.
1197 * gdbarch.h, gdbarch.c: Re-generate.
1198 * frame.c (get_prev_frame): Update. Test
1199 DEPRECATED_INIT_FRAME_PC_P.
1200 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1201 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1202 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1203 * alpha-tdep.c (alpha_gdbarch_init): Update.
1204 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1205 * mips-tdep.c (mips_gdbarch_init): Update.
1206 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1207 * arm-tdep.c: Update comments.
1208 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1209 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1210 * frv-tdep.c (frv_gdbarch_init): Ditto.
1211 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1212 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1213 * s390-tdep.c (s390_gdbarch_init): Ditto.
1214 * v850-tdep.c (v850_gdbarch_init): Ditto.
1215 * vax-tdep.c (vax_gdbarch_init): Ditto.
1216 * sh-tdep.c (sh_gdbarch_init): Ditto.
1217 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1219 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1220 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1221 * i386-tdep.c (i386_gdbarch_init): Ditto.
1222 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1223 * cris-tdep.c (cris_gdbarch_init): Ditto.
1224 * avr-tdep.c (avr_gdbarch_init): Ditto.
1225 * arm-tdep.c (arm_gdbarch_init): Ditto.
1226 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1227 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1229 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1231 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1233 * hppah-nat.c (saved_vfork_pid): Add.
1234 (child_post_follow_vfork): Remove.
1235 (child_follow_fork): New function.
1236 (child_wait): Call detach_breakpoints after receiving the child vfork.
1237 Call child_resume directly instead of going through resume ().
1238 Make sure we have the exec before reporting the vfork.
1239 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1240 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1241 (follow_fork): New function. Call target_follow_fork.
1242 (follow_inferior_reset_breakpoints): New function broken out from
1243 old follow_inferior_fork.
1244 (resume): Remove hack to follow exec after vfork.
1245 * inftarg.c (child_post_follow_vfork): Remove.
1246 (child_follow_fork): New function.
1247 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1248 * target.c (cleanup_target): Replace to_post_follow_vfork with
1250 (update_current_target): Likewise.
1251 (setup_target_debug): Likewise.
1252 (debug_to_post_follow_vfork): Remove.
1253 (debug_to_follow_fork): New function.
1254 * target.h (struct target_ops): Replace to_post_folow_vfork with
1256 (child_post_follow_vfork): Remove prototype.
1257 (child_follow_fork): Add prototype.
1258 (target_post_follow_vfork): Remove macro.
1259 (target_follow_fork): Add macro.
1261 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1263 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1264 (child_post_follow_vfork): Cancel pending exec event if we follow
1266 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1267 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1268 event at the following wait call if necessary.
1269 * infrun.c (follow_vfork): Don't follow_exec here.
1270 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1271 case about HP/UX 10.20. Remove code pushed down to
1272 hppah-nat.c:child_wait.
1273 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1274 vfork_in_flight is set.
1276 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1278 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1279 for the parent's fork event.
1280 * infrun.c (handle_inferior_event): Only expect one fork event.
1281 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1282 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1284 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1286 * PROBLEMS: Delete reference to PR gdb/725.
1288 * MAINTAINERS (gdb.c++): Add David Carlton.
1290 2002-12-09 David Carlton <carlton@math.stanford.edu>
1292 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1293 * cli/cli-cmds.c: Ditto.
1295 2002-12-09 Andrew Cagney <cagney@redhat.com>
1297 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1298 function address in <>.
1299 * gdbarch.c: Re-generate.
1301 2002-12-09 David Carlton <carlton@math.stanford.edu>
1303 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1305 2002-12-09 David Carlton <carlton@math.stanford.edu>
1307 * linespec.c (symtab_from_filename): New function.
1308 (decode_line_1): Move code into symtab_from_filename.
1310 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1312 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1314 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1316 * f-valprint.c (info_common_command): Use get_frame_pc.
1317 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1318 * ax-gdb.c (agent_command): Ditto.
1319 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1320 (rs6000_pop_frame): Ditto.
1321 (rs6000_frameless_function_invocation): Ditto.
1322 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1323 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1324 * macroscope.c (default_macro_scope): Ditto.
1325 * stack.c (print_frame_info_base): Ditto.
1326 (print_frame, frame_info, print_frame_label_vars): Ditto.
1327 (return_command, func_command, get_frame_language): Ditto.
1328 * infcmd.c (finish_command): Ditto.
1329 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1330 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1331 (break_at_finish_at_depth_command_1): Ditto.
1332 (break_at_finish_command_1): Ditto.
1333 (until_break_command, get_catch_sals): Ditto.
1334 * blockframe.c (func_frame_chain_valid): Ditto.
1335 (frameless_look_for_prologue): Ditto.
1336 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1338 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1340 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1341 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1343 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1345 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1347 * gdbarch.h, gdbarch.c: Re-generate.
1348 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1349 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1351 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1352 declaration to a function returning a CORE_ADDR.
1353 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1354 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1355 (init_frame_pc_default): Ditto.
1356 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1357 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1358 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1359 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1360 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1361 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1363 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1364 to init_frame_pc_noop.
1365 (i386_interix_init_frame_pc): Delete function.
1366 * z8k-tdep.c (init_frame_pc): Delete function.
1367 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1368 (INIT_FRAME_PC_FIRST): Ditto.
1369 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1370 (INIT_FRAME_PC_FIRST): Ditto.
1371 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1372 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1374 (INIT_FRAME_PC_FIRST): Convert to an expression.
1375 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1377 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1379 * blockframe.c: Use get_frame_base instead of directly accessing
1380 the `struct frame_info' member frame.
1381 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1382 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1384 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1386 * Makefile.in (readline_h): Define.
1387 (completer.o): Depend on readline_h.
1389 (event-top.o): Ditto.
1396 (tracepoint.o): Ditto.
1398 (cli-dump.o): Ditto.
1399 (tui-hooks.o): Ditto.
1402 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1404 More cleanup from import of readline 4.3.
1405 * completer.h (complete_line, readline_line_completion_function):
1407 (line_completion_function): Removed, not used outside of completer.c.
1408 * completer.c (readline_line_completion_function,
1409 complete_function, line_completion_function): Use const for first
1411 (line_completion_function): Make static.
1412 (filename_completer): filename_completion_function is now called
1413 rl_filename_completion_function
1414 * corelow.c: Include <readline/readline.h>.
1420 * top.c (init_main): No need to coerce
1421 readline_line_completion_function anymore.
1422 * cli/cli-dump.c: Include <readline/readline.h>.
1424 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1426 * stack.c (frame_info): Use get_prev_frame.
1427 * blockframe.c (frame_address_in_block): Ditto.
1428 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1429 (rs6000_frameless_function_invocation): Ditto.
1430 (rs6000_frame_saved_pc): Ditto.
1431 (rs6000_frame_chain): Ditto.
1432 * arch-utils.c (init_frame_pc_default): Ditto.
1434 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1436 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1437 Delete redundant definition.
1439 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1441 Import of readline 4.3:
1442 * cli/cli-cmds.c: Include readline/tilde.h.
1443 * cli/cli-setshow.c: Ditto.
1444 * defs.h: Don't declare tilde_expand anymore, since readline
1447 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1449 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1450 -Werror on this file.
1452 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1454 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1456 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1457 * gdbarch.c: Regenerate.
1459 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1461 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1462 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1463 provide a default value.
1464 * gdbarch.h, gdbarch.c: Regenerate.
1465 * frame.c (get_prev_frame): Update. Check
1466 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1467 * s390-tdep.c (s390_gdbarch_init): Update.
1468 * mips-tdep.c (mips_gdbarch_init): Update.
1469 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1470 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1471 * alpha-tdep.c (alpha_gdbarch_init): Update.
1473 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1475 * ia64-linux-nat.c: Include gdb_string.h.
1476 * alpha-nat.c: Ditto.
1477 * ppc-linux-nat.c: Ditto.
1478 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1479 Update dependencies.
1481 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1483 * gdbthread.h: Include "frame.h".
1484 (struct thread_info): Replace step_frame_address with
1486 * inferior.h: Include "frame.h".
1487 (step_frame_id): Replace external variable step_frame_address.
1488 * gdbthread.h (save_infrun_state): Replace step_frame_address
1489 parameter with step_frame_id parameter.
1490 (load_infrun_state): Ditto.
1491 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1492 * infcmd.c (step_frame_id, step_1, step_once): Update.
1493 * thread.c (load_infrun_state, save_infrun_state): Update.
1494 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1495 (handle_inferior_event, step_over_function): Update.
1496 (normal_stop, context_switch, restore_inferior_status): Update.
1497 (struct inferior_status): Replace step_frame_address with
1500 2002-12-05 David Carlton <carlton@math.stanford.edu>
1502 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1503 DW_TAG_member as well as a declaration as being a C++ static data
1505 (read_structure_scope): Combine tests for DW_TAG_member and
1508 2002-12-05 David Carlton <carlton@math.stanford.edu>
1510 * linespec.c (decode_compound): New function.
1511 (decode_line_1): Move code into decode_compound.
1513 2002-12-05 David Carlton <carlton@math.stanford.edu>
1515 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1517 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1518 the static block. See PR gdb/804.
1520 2002-12-05 David Carlton <carlton@math.stanford.edu>
1522 * symtab.c (lookup_symbol_aux_block): New function.
1523 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1525 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1527 * gdbarch.sh: Dump the predicate function and macro values.
1528 (read): Print error on standard error.
1529 * gdbarch.c: Regenerate.
1531 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1533 * Makefile.in (mips_tdep_h): Define.
1534 (mips-tdep.o): Add mips_tdep_h to dependency list.
1535 * mips-tdep.h: New file.
1536 * mips-tdep.c (mips-tdep.h): Include.
1537 (enum mips_abi): Move to mips-tdep.h.
1538 (mips_abi): New function.
1540 2002-12-04 David Carlton <carlton@math.stanford.edu>
1542 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1544 2002-12-04 David Carlton <carlton@math.stanford.edu>
1546 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1548 (lookup_symbol_aux_minsyms): New function.
1550 2002-12-04 J. Brobecker <brobecker@gnat.com>
1552 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1554 2002-12-04 J. Brobecker <brobecker@gnat.com>
1556 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1557 which is an obsolete macro name.
1559 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1561 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1562 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1564 2002-12-03 H.J. Lu (hjl@gnu.org)
1566 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1567 (create_breakpoints): Make sure the addr_string field is not
1570 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1572 * sparc-nat.c (fetch_inferior_registers)
1573 (store_inferior_registers): Add comment on problem of LWP vs
1576 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1577 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1578 (lin_lwp_store_registers): Remove.
1579 (init_lin_lwp_ops): Use fetch_inferior_registers
1580 and store_inferior_registers directly.
1581 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1582 (store_inferior_registers): Likewise.
1585 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1587 * frame.h (get_frame_id): Convert to a function.
1588 (null_frame_id, frame_id_p): Declare.
1589 (frame_id_eq, frame_id_inner): Declare.
1590 (frame_id_build): New function.
1591 * frame.c (get_frame_id): Update. Use null_frame_id.
1592 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1594 (null_frame_id, frame_id_p): Define.
1595 (frame_id_eq, frame_id_inner): Define.
1596 (frame_id_build): New function.
1597 * varobj.c (varobj_create): Update.
1598 (varobj_update): Update.
1599 * valops.c (value_assign): Update.
1600 (new_root_variable): Update.
1601 * infrun.c (save_inferior_status): Update.
1602 * breakpoint.c (watch_command_1): Update.
1604 2002-12-03 J. Brobecker <brobecker@gnat.com>
1606 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1609 2002-12-03 Andrew Cagney <cagney@redhat.com>
1611 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1614 * PROBLEMS: Mention PR gdb/725.
1616 2002-12-03 Andreas Schwab <schwab@suse.de>
1618 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1620 2002-12-02 Adam Fedor <fedor@gnu.org>
1621 Klee Dienes <kdienes@apple.com>
1623 * objc-lang.c (objc_printstr): Add width arg to match
1625 (compare_selectors): Add 'const' to arg types.
1626 (compare_classes): Likewise.
1627 (find_imps): Cast msym pointer to avoid compiler warning.
1628 (print_object_command): Validate the address before
1629 passing it to the print routine.
1630 (find_objc_msgcall_submethod): Change function argument to
1632 * objc-lang.h: Add 'extern' to all function declarations.
1633 (value_nsstring): Add declaration.
1635 2002-12-02 J. Brobecker <brobecker@gnat.com>
1637 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1638 Fixes a build failure on HP/UX.
1640 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1642 (hpread_has_name): Advance declaration to avoid a compilation warning.
1643 (pst_syms_count): Add missing variable type. By change, the compiler
1644 was defaulting to int, which seems a good choice. Fixes a compilation
1646 (pst_syms_size): Likewise.
1648 2002-12-02 J. Brobecker <brobecker@gnat.com>
1650 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1651 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1652 later to set the proper gdbarch methods depending on the osabi.
1653 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1655 2002-12-02 J. Brobecker <brobecker@gnat.com>
1657 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1658 * osabi.c (gdb_osabi_name): Add strings images for the two new
1660 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1662 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1664 * MAINTAINERS (Java): Global maintainers are responible for Java.
1665 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1666 part Java maintainers.
1668 2002-12-02 J. Brobecker <brobecker@gnat.com>
1670 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1671 Fixes a compilation failure on AiX.
1673 2002-12-02 J. Brobecker <brobecker@gnat.com>
1675 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1676 why aix-thread.o is not listed.
1678 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1680 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1681 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1682 * gdbarch.h, gdbarch.c: Re-generate.
1683 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1684 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1685 * config/pa/tm-hppa.h, frame.h: Update.
1686 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1687 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1688 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1689 * cris-tdep.c, alpha-tdep.c: Update.
1690 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1691 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1692 (get_prev_frame): Ditto.
1694 2002-11-30 Andrew Cagney <cagney@redhat.com>
1696 * exec.c (xfer_memory): Replace boolean with int.
1697 * p-exp.y: Use 0 instead of false.
1698 * corelow.c (gdb_check_format): Change return type to int from
1700 * utils.c: Don't include <curses.h> or <term.h> first.
1702 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1704 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1705 (m68hc11_register_byte): Remove.
1706 (m68hc11_gdbarch_init): Don't set the above.
1708 2002-11-29 Andrew Cagney <cagney@redhat.com>
1710 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1711 by calling get_selected_frame.
1712 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1713 set_current_frame, create_new_frame, select_frame and
1715 * remote-e7000.c (e7000_start_remote): Ditto.
1716 * remote-mips.c (common_open): Ditto
1717 * remote-rdp.c (remote_rdp_open): Ditto.
1719 2002-11-29 Andreas Schwab <schwab@suse.de>
1721 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1722 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1723 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1724 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1725 read_memory_unsigned_integer instead of read_memory_integer when
1726 dealing with addresses and instruction opcodes.
1727 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1728 (m68k_linux_frame_saved_pc): Likewise.
1730 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1732 * stack.c (selected_frame, select_frame): Move from here ...
1733 * frame.c (selected_frame, select_frame): ... to here. Include
1735 * Makefile.in (frame.o): Update dependencies.
1736 * frame.c (get_selected_frame): New function.
1737 * frame.h (get_selected_frame): Declare.
1738 (deprecated_selected_frame): Rename selected_frame.
1739 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1740 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1741 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1742 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1743 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1744 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1745 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1746 * z8k-tdep.c, cli/cli-cmds.c: Update.
1748 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1750 * frame.h (get_selected_block): Add comments.
1752 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1754 * frame.c (pc_notcurrent): New function.
1755 (find_frame_sal): New function.
1756 * frame.h (find_frame_sal): Declare.
1757 (struct symtab_and_line): Add opaque declaration.
1758 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1760 (frame_info): Ditto.
1761 * ada-lang.c (find_printable_frame): Ditto.
1763 2002-11-28 J. Brobecker <brobecker@gnat.com>
1765 * configure.in: Check that the pthdebug library is recent enough
1766 before enabling thread support on native AiX.
1767 * configure: Regenerate.
1769 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1770 from the list of object files as it is now appended by configure
1771 if thread support is enabled.
1772 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1773 if thread support is enabled.
1775 2002-11-28 Andrew Cagney <cagney@redhat.com>
1777 * stack.c (get_selected_block): In-line get_current_block.
1778 * frame.h (get_current_block): Delete declaration.
1779 * blockframe.c (get_current_block): Delete function.
1781 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1783 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1784 USE_GENERIC_DUMMY_FRAMES.
1785 * gdbarch.h, gdbarch.c: Regenerate.
1786 * valops.c, frame.c: Update.
1787 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1788 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1789 * config/pa/tm-hppa.h, blockframe.c: Update.
1790 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1791 * m68k-tdep.c, alpha-tdep.c: Ditto.
1793 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1794 * mips-tdep.c: Ditto.
1796 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1798 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1799 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1800 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1801 * gdbarch.c, gdbarch.h: Re-generate.
1802 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1803 (CALL_DUMMY_LOCATION): Delete macro definition.
1804 (PC_IN_CALL_DUMMY): Delete macro definitions.
1806 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1807 default is already generic_pc_in_call_dummy.
1808 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1809 * v850-tdep.c (v850_gdbarch_init): Ditto.
1810 * sh-tdep.c (sh_gdbarch_init): Ditto.
1811 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1812 * mips-tdep.c (mips_gdbarch_init): Ditto.
1813 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1814 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1815 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1816 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1817 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1818 * avr-tdep.c (avr_gdbarch_init): Ditto.
1820 * arm-tdep.c (arm_gdbarch_init): Do not set
1821 use_generic_dummy_frames, default is already 1.
1822 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1823 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1824 * v850-tdep.c (v850_gdbarch_init): Ditto.
1825 * sh-tdep.c (sh_gdbarch_init): Ditto.
1826 * s390-tdep.c (s390_gdbarch_init): Ditto.
1827 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1828 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1829 * mips-tdep.c (mips_gdbarch_init): Ditto.
1830 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1832 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1833 * i386-tdep.c (i386_gdbarch_init): Ditto.
1834 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1835 * frv-tdep.c (frv_gdbarch_init): Ditto.
1836 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1837 * cris-tdep.c (cris_gdbarch_init): Ditto.
1838 * avr-tdep.c (avr_gdbarch_init): Ditto.
1840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1841 call_dummy_location, default is already AT_ENTRY_POINT.
1842 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1843 * v850-tdep.c (v850_gdbarch_init): Ditto.
1844 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1845 * sh-tdep.c (sh_gdbarch_init): Ditto.
1846 * s390-tdep.c (s390_gdbarch_init): Ditto.
1847 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1848 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1849 * mips-tdep.c (mips_gdbarch_init): Ditto.
1850 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1852 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1853 * i386-tdep.c (i386_gdbarch_init): Ditto.
1854 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1855 * frv-tdep.c (frv_gdbarch_init): Ditto.
1856 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1857 * cris-tdep.c (cris_gdbarch_init): Ditto.
1858 * avr-tdep.c (avr_gdbarch_init): Ditto.
1859 * arm-tdep.c (arm_gdbarch_init): Ditto.
1860 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1862 2002-11-28 Andrew Cagney <cagney@redhat.com>
1864 * frame.h: Update comments on set_current_frame, create_new_frame,
1865 flush_cached_frames, reinit_frame_cache, select_frame and
1868 2002-11-27 Andrew Cagney <cagney@redhat.com>
1870 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1871 deprecated pc_in_call_dummy function.
1872 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1873 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1874 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1875 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1876 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1878 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1880 * Makefile.in: Remove Tix dependencies.
1881 * acinclude.m4: Ditto.
1882 * aclocal.m4: Ditto.
1883 * configure.in: Ditto.
1884 * configure: Regenerated.
1886 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1888 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1889 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1890 * gdbarch.c: Re-generate.
1892 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1894 * config/h8500/tm-h8500.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/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1898 pc_in_call_dummy_at_entry_point.
1899 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1900 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1901 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1902 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1903 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1904 pc_in_call_dummy_on_stack.
1905 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1906 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1907 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1908 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1909 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1911 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1913 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1914 pc_in_call_dummy_before_text_end
1915 (deprecated_pc_in_call_dummy_after_text_end): Rename
1916 pc_in_call_dummy_after_text_end.
1917 (deprecated_pc_in_call_dummy_on_stack): Rename
1918 pc_in_call_dummy_on_stack.
1919 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1920 pc_in_call_dummy_at_entry_point.
1921 * m68k-tdep.c (m68k_gdbarch_init): Update.
1922 * s390-tdep.c (s390_gdbarch_init): Update.
1923 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1924 * vax-tdep.c (vax_gdbarch_init): Update.
1925 * sparc-tdep.c (sparc_gdbarch_init): Update.
1926 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1927 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1928 * i386-tdep.c (i386_gdbarch_init): Update.
1929 * frv-tdep.c (frv_gdbarch_init): Update.
1930 * cris-tdep.c (cris_gdbarch_init): Update.
1931 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1932 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1933 (deprecated_pc_in_call_dummy_after_text_end)
1934 (deprecated_pc_in_call_dummy_on_stack)
1935 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1936 * alpha-tdep.c (alpha_gdbarch_init): Update.
1938 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1940 * acconfig.h (HAVE_PREAD64): Add.
1941 * configure.in: Check for pread64.
1942 * config.in: Regenerated.
1943 * configure: Regenerated.
1944 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1945 * linux-proc.c (linux_proc_xfer_memory): New function.
1946 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1948 2002-11-25 David Carlton <carlton@math.stanford.edu>
1950 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1953 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1955 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1956 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1958 2002-11-25 Jim Blandy <jimb@redhat.com>
1960 * symfile.c (init_objfile_sect_indices): New function.
1961 (default_symfile_offsets): Move the section-index-initializing
1962 stuff into init_objfile_sect_indices, and call that.
1964 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1965 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1967 * symfile.c (syms_from_objfile): Adjust indentation.
1969 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1970 || info_verbose isn't true.
1972 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1974 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1975 default to get_frame_base.
1976 * gdbarch.h, gdbarch.c: Regenerate.
1977 * arch-utils.c (default_frame_address): Delete function.
1978 * arch-utils.h (default_frame_address): Delete declaration
1980 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1982 * varobj.c (find_frame_addr_in_frame_chain):
1983 Use get_frame_base instead of FRAME_FP,
1986 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1988 * frame.h (FRAME_FP): Delete macro.
1989 (get_frame_base): New function declaration.
1990 * frame.c (get_frame_base): New function.
1991 (get_frame_id): Use ->frame.
1992 (frame_find_by_id): Rewrite to use get_frame_id.
1993 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1994 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1995 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1996 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1997 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1998 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1999 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2001 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2003 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2005 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2007 * frame.c (set_unwind_by_pc): Revert change below, use
2009 (get_prev_frame): Ditto.
2011 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2013 * dummy-frame.c (pc_in_dummy_frame): New function.
2014 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2015 (find_dummy_frame): Update comment.
2016 (generic_pop_current_frame): Use get_frame_type.
2017 * dummy-frame.h (pc_in_dummy_frame): Declare.
2018 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2019 (create_new_frame): Use pc_in_dummy_frame.
2020 (get_prev_frame): Use pc_in_dummy_frame.
2021 (frame_saved_regs_register_unwind): Use get_prev_frame.
2022 (deprecated_generic_get_saved_register): Use get_prev_frame.
2024 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2026 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2028 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2029 (varobj_create): Note that frame ID should be used.
2030 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2032 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2034 * breakpoint.c: Include "gdb_assert.h".
2035 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2037 * Makefile.in (breakpoint.o): Update dependencies.
2038 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2039 deprecated_frame_in_dummy.
2040 * stack.c (print_frame_info_base): Ditto.
2041 (frame_info): Ditto.
2042 (print_frame_info_base): Ditto. Delete dead code.
2044 2002-11-23 Andreas Schwab <schwab@suse.de>
2046 * Makefile.in (m68k_tdep_h): Define.
2047 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2048 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2049 * m68k-tdep.c: Move register number enum ...
2050 * m68k-tdep.h: ... to this new file and rename the constants from
2051 E_* to M68K_*. All uses changed.
2052 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2053 * abug-rom.c: Include "m68k-tdep.h". Use
2054 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2055 * cpu32bug-rom.c: Likewise.
2056 * dbug-rom.c: Likewise.
2057 * m68k-tdep.c: Likewise.
2058 * m68klinux-nat.c: Likewise.
2059 * remote-est.c: Likewise.
2060 * rom68k-rom.c: Likewise.
2061 * config/m68k/tm-linux.h: Likewise.
2063 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2065 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2066 dummy frame initialization code.
2067 * mips-tdep.c (mips_gdbarch_init): Ditto.
2069 2002-11-22 Christopher Faylor <cgf@redhat.com>
2071 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2074 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2076 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2077 to default_frame_address.
2078 * gdbarch.h, gdbarch.c: Re-generate.
2080 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2081 or frame_locals_address to default_frame_address.
2082 * m68k-tdep.c (m68k_gdbarch_init): Update.
2083 * i386-tdep.c (i386_gdbarch_init): Update.
2084 * frv-tdep.c (frv_gdbarch_init): Update.
2085 * sh-tdep.c (sh_gdbarch_init): Update.
2086 * v850-tdep.c (v850_gdbarch_init): Update.
2087 * sparc-tdep.c (sparc_gdbarch_init): Update.
2088 * mips-tdep.c (mips_gdbarch_init): Update.
2089 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2090 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2091 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2093 * cris-tdep.c (cris_frame_args_address): Delete function.
2094 (cris_frame_locals_address): Delete function.
2095 (cris_gdbarch_init): Do not set frame_args_address or
2096 frame_locals_address.
2098 2002-11-22 Michael Snyder <msnyder@redhat.com>
2100 * thread-db.c (thread_db_load): Tell the user what's going on
2101 if dlopen fails on libthread_db.
2103 2002-11-23 Andreas Schwab <schwab@suse.de>
2105 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2106 invariant return values.
2108 2002-11-22 Andreas Schwab <schwab@suse.de>
2110 * valops.c (value_slice): Move declaration of `offset' to avoid
2113 2002-11-22 Christopher Faylor <cgf@redhat.com>
2115 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2116 (struct so_stuff): Add end_addr field.
2117 (register_loaded_dll): Calculate and store end address of loaded dll.
2118 (solib_address): New function.
2119 (child_solib_loaded_library_pathname): Pass carefully constructed
2120 section info to safe_symbol_file_add rather than ignoring it.
2121 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2123 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2124 (child_create_inferior): Fix a compiler warning.
2125 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2126 (solib_address): Declare new function.
2128 2002-11-22 Andreas Schwab <schwab@suse.de>
2130 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2133 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2135 * maint.c (_initialize_maint_cmds): Fix typo. From
2136 Francesco Potorti` <pot@gnu.org>.
2138 2002-11-21 Andrew Cagney <cagney@redhat.com>
2140 * mips-tdep.c (mips_dump_tdep): Delete references to
2141 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2142 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2143 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2144 * printcmd.c (build_address_symbolic): Delete calls to
2145 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2146 (address_info): Ditto.
2149 2002-11-19 Klee Dienes <kdienes@apple.com>
2150 Adam Fedor <fedor@gnu.org>
2152 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2153 the ability to explicitly specify the quote characters and word
2154 break characters; if NULL is specified for either, use the old
2155 behavior of using the characters used by the completer.
2156 (skip_chars): New function. Convenience wrapper around
2157 skip_quoted_chars to provide the original skip_chars behavior.
2158 * completer.h (skip_quoted_chars): Add prototype.
2160 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2162 Problems reported by Paul Eggert.
2163 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2165 2002-11-19 Andreas Schwab <schwab@suse.de>
2167 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2168 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2169 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2170 (m68k_linux_frame_saved_pc): Move to ...
2171 * m68klinux-tdep.c: ... here. New file.
2172 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2173 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2175 2002-11-19 Adam Fedor <fedor@gnu.org>
2177 * objc-exp.y: Revert to old skip_quoted usage.
2179 2002-11-19 Adam Fedor <fedor@gnu.org>
2181 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2182 (objc_lang_h): Define.
2183 (YYFILES): Add objc-exp.tab.c.
2184 (local-maintainer-clean): Remove objc-exp.tab.c.
2185 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2187 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2189 * p-exp.y (typecast rule): Add automatic dereference of
2190 pascal classes if needed.
2191 (THIS): Set current_type.
2192 Automatically dereference pascal classes.
2193 (typebase rule): Add ^typebase recognition.
2195 2002-11-18 Adam Fedor <fedor@gnu.org>
2197 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2198 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2199 (op_name): Handle OP_OBJC_SELF.
2200 * Makefile.in (expprint.o): Add additional depends.
2202 2002-11-18 Adam Fedor <fedor@gnu.org>
2204 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2205 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2206 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2207 * objc-exp.y: Likewise.
2209 2002-11-18 Adam Fedor <fedor@gnu.org>
2211 * gdb/parser-defs.h: (struct objc_class_str): New structure
2212 for parsing ObjC classes.
2214 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2216 * stack.c (frame_relative_level): Copy function from here ...
2217 * frame.c (frame_relative_level): ...to here.
2219 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2221 * frame.h (enum frame_type): Define.
2222 (get_frame_type): Declare.
2223 (struct frame_info): Add field `type'. Delete field
2224 signal_handler_caller.
2225 (deprecated_set_frame_signal_handler_caller): Declare.
2226 * frame.c (get_frame_type): New function.
2227 (deprecated_set_frame_type): New function.
2228 (create_new_frame): Set the frame's type.
2229 (get_prev_frame): Similar.
2230 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2231 * s390-tdep.c: Ditto.
2232 * m68klinux-nat.c: Ditto.
2233 * ns32k-tdep.c: Ditto.
2234 * x86-64-linux-tdep.c: Ditto.
2235 * vax-tdep.c: Ditto.
2236 * rs6000-tdep.c: Ditto.
2237 * ppc-linux-tdep.c: Ditto.
2238 * i386-interix-tdep.c: Ditto.
2239 * mips-tdep.c: Ditto.
2240 * m68k-tdep.c: Ditto.
2241 * hppa-tdep.c: Ditto.
2242 * ia64-tdep.c: Ditto.
2243 * cris-tdep.c: Ditto.
2244 * arm-tdep.c: Ditto.
2245 * alpha-tdep.c: Ditto.
2246 * i386-tdep.c: Ditto.
2248 * ada-lang.c: Ditto.
2249 * blockframe.c: Update.
2250 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2251 deprecated_set_frame_type instead of signal_handler_caller.
2252 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2253 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2254 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2256 2002-11-18 Klee Dienes <kdienes@apple.com>
2258 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2260 2002-11-18 Klee Dienes <kdienes@apple.com>
2262 * buildsym.c (pop_context): Add comment.
2264 2002-11-18 Klee Dienes <kdienes@apple.com>
2266 * buildsym.h (pop_context): Convert to function, defined in
2268 * buildsym.c: Include gdb_assert.h.
2269 (pop_context): Implement as C function. Add check for stack
2271 * dbxread.c (process_one_symbol): Complain and stop processing
2272 that symbol if we are already at the top of the context stack for
2273 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2274 when processing N_RBRAC.
2276 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2278 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2280 (struct target_waitstatus): Add opaque definition.
2281 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2282 * exec.c (init_exec_ops): Likewise.
2283 * fork-child.c (clone_and_follow_inferior): Remove.
2284 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2285 * inferior.h (clone_and_follow_inferior): Remove prototype.
2286 * infrun.c (follow_fork_mode_both): Remove.
2287 (follow_fork_mode_kind_names): Remove commented out "both".
2288 (follow_inferior_fork): Remove follow_fork_mode_both support.
2289 * inftarg.c (child_clone_and_follow_inferior): Remove.
2290 (child_post_follow_inferior_by_clone): Remove.
2291 (init_child_ops): Don't set to_clone_and_follow_inferior
2292 or to_post_follow_inferior_by_clone.
2293 * target.c (default_clone_and_follow_inferior): Remove.
2294 (cleanup_target): Don't set to_clone_and_follow_inferior
2295 or to_post_follow_inferior_by_clone.
2296 (find_default_clone_and_follow_inferior): Remove.
2297 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2298 (debug_to_clone_and_follow_inferior): Remove.
2299 (debug_to_post_follow_inferior_by_clone): Remove.
2300 (setup_target_debug): Don't set to_clone_and_follow_inferior
2301 or to_post_follow_inferior_by_clone.
2302 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2303 and to_post_follow_inferior_by_clone.
2304 (child_clone_and_follow_inferior): Remove prototype.
2305 (child_post_follow_inferior_by_clone): Remove prototype.
2306 (target_clone_and_follow_inferior): Remove macro.
2307 (target_post_follow_inferior_by_clone): Remove macro.
2308 (find_default_clone_and_follow_inferior): Remove prototype.
2310 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2312 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2313 inferior_has_vforked, and inferior_has_execd instead of
2314 target_has_forked, target_has_vforked, and target_has_execd.
2315 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2316 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2317 (CHILD_WAIT): Define.
2318 (child_wait): Add prototype.
2319 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2321 (hpux_has_vforked): Likewise, from child_has_vforked.
2322 (hpux_has_execd): Likewise, from child_has_execd.
2323 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2324 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2325 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2326 and hpux_has_syscall_event instead of the target hooks.
2327 * infrun.c (inferior_has_forked, inferior_has_vforked)
2328 (inferior_has_execd): New functions.
2329 * inftarg.c (not_same_real_pid): Remove.
2330 (child_wait): Remove references to not_same_real_pid,
2331 target_has_forked, target_has_vforked, target_has_execd,
2332 and target_has_syscall_event.
2333 (child_has_forked, child_has_vforked, child_has_execd)
2334 (child_has_syscall_event): Remove.
2335 (init_child_ops): Remove references to child_has_forked,
2336 child_has_vforked, child_has_execd, and child_has_syscall_event.
2337 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2338 (hpux_has_vforked): Likewise, from child_has_vforked.
2339 (hpux_has_execd): Likewise, from child_has_execd.
2340 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2341 * target.c (cleanup_target): Remove references to
2342 to_has_forked, to_has_vforked, to_has_execd, and
2343 to_has_syscall_event.
2344 (update_current_target): Likewise.
2345 (setup_target_debug): Likewise.
2346 (debug_to_has_forked): Remove.
2347 (debug_to_has_vforked): Remove.
2348 (debug_to_has_execd): Remove.
2349 (debug_to_has_syscall_event): Remove.
2350 * target.h (struct target_ops): Remove to_has_forked.
2351 to_has_vforked, to_has_execd, and to_has_syscall_event.
2352 (child_has_forked, child_has_vforked, child_has_execd)
2353 (child_has_syscall_event): Remove prototypes.
2354 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2356 (target_has_forked, target_has_vforked, target_has_execd)
2357 (target_has_syscall_event): Remove macros.
2359 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2361 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2362 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2363 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2364 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2365 * target.c (cleanup_target): Remove reference to
2366 to_can_follow_vfork_prior_to_exec.
2367 (update_current_target): Likewise.
2368 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2369 (setup_target_debug): Remove reference to
2370 to_can_follow_vfork_prior_to_exec.
2371 * target.h (struct target_ops): Remove
2372 to_can_follow_vfork_prior_to_exec.
2373 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2374 (target_can_follow_vfork_prior_to_exec): Remove definition.
2375 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2377 * infrun.c (follow_vfork_when_exec): Remove.
2378 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2379 (follow_exec): Likewise.
2380 (handle_inferior_event): Likewise.
2381 (keep_going): Likewise.
2383 2002-11-15 Andrew Cagney <cagney@redhat.com>
2385 * frame.c (generic_unwind_get_saved_register): Make static.
2386 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2387 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2388 defaults to generic_unwind_get_saved_register.
2389 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2390 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2391 * frv-tdep.c (frv_gdbarch_init): Ditto.
2392 * i386-tdep.c (i386_gdbarch_init): Ditto.
2393 * s390-tdep.c (s390_gdbarch_init): Ditto.
2394 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2395 * v850-tdep.c (v850_gdbarch_init): Ditto.
2396 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2397 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2398 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2400 2002-11-15 Andrew Cagney <cagney@redhat.com>
2402 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2405 2002-11-15 Andrew Cagney <cagney@redhat.com>
2407 * frame.h (sigtramp_saved_pc): Delete declaration.
2408 * blockframe.c (sigtramp_saved_pc): Delete function.
2409 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2410 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2411 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2412 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2414 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2416 * frame.c (frame_pc_unwind): New function.
2417 (frame_saved_regs_pc_unwind): New function.
2418 (frame_register_unwind): Pass unwind_cache instead of
2419 register_unwind_cache.
2420 (set_unwind_by_pc): Add unwind_pc parameter, set.
2421 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2422 (get_prev_frame): Ditto.
2423 * frame.h (frame_pc_unwind_ftype): Declare.
2424 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2425 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2426 (frame_pc_unwind): Declare.
2427 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2428 (struct dummy_frame): Add comment mentioning that values are for
2430 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2431 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2432 (generic_file_frame_chain_valid): Ditto.
2433 * stack.c (frame_info): Ditto.
2435 2002-11-15 David Carlton <carlton@math.stanford.edu>
2437 * linespec.c (locate_first_half): New function.
2438 (decode_line_1): Move code into locate_first_half.
2440 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2442 * complaints.h: Add comment explaining how to eliminate a
2443 deprecated_complain call.
2444 * complaints.h: Fix spelling errors.
2446 2002-11-15 David Carlton <carlton@math.stanford.edu>
2448 * printcmd.c: Remove #include "disasm.h".
2450 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2452 * frame.h: Move the most relevant interface functions to the start
2455 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2457 * regcache.h (deprecated_registers): Rename registers.
2458 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2459 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2460 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2461 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2462 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2463 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2464 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2465 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2466 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2467 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2468 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2469 * v850ice.c: Update.
2471 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2473 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2476 2002-11-13 Andrew Cagney <cagney@redhat.com>
2478 * regcache.h (deprecated_read_register_bytes): Rename
2479 read_register_bytes.
2480 (deprecated_write_register_bytes): Rename write_register_bytes.
2481 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2482 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2483 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2484 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2485 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2486 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2487 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2488 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2489 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2490 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2491 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2492 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2493 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2494 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2496 2002-11-13 Jim Blandy <jimb@redhat.com>
2498 * findvar.c (read_var_value): Doc fix.
2500 2002-11-13 Andrew Cagney <cagney@redhat.com>
2502 * regcache.c (struct regcache): Replace passthough_p with
2504 (regcache_xmalloc): Initialize readonly_p.
2505 (build_regcache): Initialize readonly_p.
2506 (regcache_save): New function.
2507 (regcache_restore): New function.
2508 (regcache_cpy): Re-implement using regcache_save and
2510 (regcache_raw_read): Update.
2511 (regcache_cooked_read): When a read-only cache, checked for cached
2512 pseudo register values.
2513 (regcache_raw_write): Assert that the cache is not read-only.
2514 Remove code handling a non-passthrough cache.
2515 * regcache.h (regcache_save): Declare.
2516 (regcache_restore): Declare.
2518 2002-11-13 Andrew Cagney <cagney@redhat.com>
2520 * regcache.c (struct regcache_descr): Add fields
2521 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2522 (init_legacy_regcache_descr): Compute the size of a cooked
2523 register cache and then assign that to sizeof_raw_registers. Set
2524 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2525 (init_legacy_regcache_descr): Ditto.
2527 2002-11-13 Andrew Cagney <cagney@redhat.com>
2529 * regcache.c (register_buffer): Move to near start of file, update
2531 (regcache_raw_read): Use.
2532 (regcache_raw_write): Use.
2533 (struct regcache): Rename raw_registers to registers and
2534 raw_register_valid_p to register_valid_p.
2535 (regcache_xmalloc): Update.
2536 (regcache_xfree): Update.
2537 (register_buffer): Update.
2538 (regcache_cpy): Update.
2539 (regcache_cpy_no_passthrough): Update.
2540 (regcache_valid_p): Update.
2541 (deprecated_grub_regcache_for_registers): Update.
2542 (deprecated_grub_regcache_for_register_valid): Update.
2543 (set_register_cached): Update.
2544 (regcache_raw_write): Update.
2546 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2548 * p-exp.y (name_not_typename): Use copy_name to
2549 set current_type variable for fields of THIS.
2551 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2553 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2554 * monitor.c (init_base_monitor_ops): Likewise.
2555 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2556 * remote-array.c (init_array_ops): Likewise.
2557 * remote-e7000.c (init_e7000_ops): Likewise.
2558 * remote-es.c (init_es1800_ops): Likewise.
2559 (init_es1800_child_ops): Likewise.
2560 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2561 * remote-sim.c (init_gdbsim_ops): Likewise.
2562 * remote-st.c (init_st2000_ops): Likewise.
2563 * sol-thread.c (init_sol_core_ops): Likewise.
2564 (init_sol_thread_ops): Likewise.
2565 * v850ice.c (init_850ice_ops): Likewise.
2566 * win32-nat.c (init_child_ops): Likewise.
2567 * wince.c (init_child_ops): Likewise.
2569 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2571 * utils.c (gdb_realpath): Make rp a constant pointer.
2573 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2575 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2576 a constant buffer; cannonicalize_file_name(); realpath() with a
2577 pathconf() defined buffer, xstrdup().
2579 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2581 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2582 to hang2.C; hang3.c to hang3.C.
2584 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2586 * findvar.c (read_var_value): Reenable TLS code.
2588 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2589 Jim Blandy <jimb@redhat.com>
2591 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2592 * target.c (update_current_target): Add
2593 to_get_thread_local_address.
2594 * target.h (to_get_thread_local_address): Export.
2595 (target_get_thread_local_address): Define.
2596 (target_get_thread_local_address_p): Define.
2597 * thread-db.c: Include solib-svr4.h.
2598 (td_thr_tls_get_addr_p): Define.
2599 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2600 (thread_db_get_thread_local_address): New function.
2601 (init_thread_db_ops): Initialize to_get_thread_local_address.
2602 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2603 * configure: Regenerate.
2604 * config.in: Regenerate.
2606 2002-11-11 David Carlton <carlton@math.stanford.edu>
2608 * linespec.c (set_flags): New function.
2609 (decode_line_1): Move code into set_flags.
2611 2002-11-11 David Carlton <carlton@math.stanford.edu>
2613 * linespec.c (decode_line_1): Move chunks of code to separate
2615 (initialize_defaults): New function.
2616 (decode_indirect): New function.
2618 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2620 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2621 instead of void_code_ptr.
2622 (sigtramp_saved_pc): Ditto.
2624 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2627 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2629 * gdbtypes.h (struct main_type): Move artificial flag out of
2630 loc. New member of ``struct field'' named static_kind. Reduce
2631 overloaded meaning of bitsize.
2632 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2633 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2634 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2636 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2638 (template_to_fixed_record_type, template_to_static_fixed_type)
2639 (to_record_with_fixed_variant_part): Likewise.
2640 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2641 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2642 * dwarfread.c (struct_type, enum_type): Likewise.
2643 * hpread.c (hpread_read_enum_type)
2644 (hpread_read_function_type, hpread_read_doc_function_type)
2645 (hpread_read_struct_type): Likewise.
2646 * mdebugread.c (parse_symbol): Likewise.
2648 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2650 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2651 * stack.c (print_frame_info_base): Update.
2652 (print_frame_info_base, frame_info): Update.
2653 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2654 (sparc_frame_saved_pc): Update.
2655 * ada-lang.c (find_printable_frame): Update.
2656 * breakpoint.c (deprecated_frame_in_dummy): Update.
2658 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2660 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2662 (regmap): Extend to cover all registers.
2663 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2664 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2666 (fetch_register, sore_register): Simplify.
2667 (old_fetch_inferior_registers, old_store_inferior_registers):
2669 (cannot_fetch_register, cannot_store_register): Change
2670 implementation to use regmap array to decide which registers
2671 cannot be fetched/stored. This removes $orig_eax from the
2672 registers that cannot be fetched/stored.
2673 (fetch_inferior_registers): Call fetch_register directly instead
2674 of calling old_fetch_inferior_registers.
2675 (store_inferior_registers): Call store_register directly instead
2676 of calling old_store_inferior_registers.
2677 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2678 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2679 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2681 2002-11-09 Klee Dienes <kdienes@apple.com>
2683 * i387-tdep.c (i387_supply_register): When called with NULL as a
2684 buffer, mark the register as not provided (to mirror the behavior
2685 of supply_register).
2686 (i387_supply_fxsave): Ditto.
2687 (i387_supply_fsave): Ditto (inherits the behavior from
2688 i387_supply_register).
2690 2002-11-09 Klee Dienes <kdienes@apple.com>
2692 * blockframe.c (sigtramp_saved_pc): Use
2693 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2694 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2695 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2697 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2699 * frame.c (get_prev_frame): Test prev_p to identify a previously
2700 unwound frame. Initialize prev_p.
2701 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2704 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2706 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2707 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2708 more comments. Zap dead code.
2710 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2712 * infcmd.c (print_vector_info, print_float_info): Move code that
2713 checks whether the target has any registers and whether there is a
2714 selected frame up, such that it is also used if a target provides
2715 multi-arch definitions of these functions.
2717 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2719 * Makefile.in (DESTDIR): Define.
2720 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2723 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2724 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2726 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2728 * i386-linux-tdep.c: Include "reggroups.h".
2729 (i386_linux_register_reggroup_p): New function.
2730 (i386_linux_init_abi): Set register_reggroup_p to
2731 i386_linux_register_reggroup_p.
2732 * i386-tdep.h (i386_register_reggroup_p): Declare.
2733 * i386-tdep.c: Include "reggroups.h".
2734 (i386_init_reggroups): New function.
2735 (i386_add_reggroups): New function.
2736 (i386_register_reggroup_p): New function.
2737 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2738 (_initialize_i386_tdep): Call i386_init_reggroups.
2739 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2742 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2744 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2745 request that's available in *BSD.
2747 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2749 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2752 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2754 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2755 * dummy-frame.c (find_dummy_frame): Rename
2756 generic_find_dummy_frame, make static. Return the dummy frame
2757 instead of the regcache.
2758 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2759 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2760 (dummy_frame_register_unwind): Rename
2761 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2762 * dummy-frame.h (dummy_frame_register_unwind): Rename
2763 generic_call_dummy_register_unwind.
2765 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2767 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2768 except the inclusion of "i386/tm-i386.h", to...
2769 * config/i386/nm-i386v42mp.h: ...here.
2770 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2772 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2774 * Makefile.in (frame.o): Update dependencies.
2775 * blockframe.c (current_frame, frame_obstack_alloc)
2776 (frame_saved_regs_zalloc, get_current_frame)
2777 (set_current_frame, create_new_frame)
2778 (set_unwind_by_pc, get_next_frame)
2779 (flush_cached_frames, reinit_frame_cache)
2780 (frame_saved_regs_register_unwind)
2781 (deprecated_generic_get_saved_register)
2782 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2783 (_initialize_blockframe): Move frame code from here...
2784 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2785 "annotate.h" and "dummy-frame.h".
2786 (_initialize_frame): New function.
2788 2002-11-08 Jim Blandy <jimb@redhat.com>
2790 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2791 when we finish a function a context.
2792 * buildsym.h (outermost_context_p): New macro.
2793 (Bug analyzed by David Edelsohn.)
2795 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2797 * blockframe.c: Include "dummy-frame.h".
2798 (struct dummy_frame, dummy_frame_stack)
2799 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2800 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2801 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2802 (generic_save_call_dummy_addr, generic_pop_current_frame)
2803 (generic_pop_dummy_frame, generic_fix_call_dummy)
2804 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2805 dummy frame code from here...
2806 * dummy-frame.c: ...to here. New file.
2807 * dummy-frame.h: New file.
2808 (generic_call_dummy_register_unwind): Declare.
2809 (generic_find_dummy_frame): Declare.
2810 * Makefile.in (SFILES): Add dummy-frame.c.
2811 (dummy-frame.o): Specify dependencies.
2812 (dummy_frame_h): Define.
2813 (COMMON_OBS): Add dummy-frame.o.
2814 (blockframe.o): Update dependencies.
2816 2002-11-08 Jim Blandy <jimb@redhat.com>
2818 * dwarf2read.c (read_func_scope): Restore local_symbols and
2819 param_symbols after we finish the function context. (Based on a
2820 patch from David Edelsohn.)
2822 2002-11-08 David Carlton <carlton@math.stanford.edu>
2824 * linespec.c (symbol_found): New function.
2825 (minsym_found): New function.
2826 (decode_line_1): Separate out some code into separate functions.
2828 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2830 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2831 the benefit of the interix target.
2832 * i386-tdep.h (i386_frameless_signal_p): Declare.
2834 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2836 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2837 declaration that snuck in from change below.
2839 2002-11-06 Andrew Cagney <cagney@redhat.com>
2841 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2843 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2844 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2845 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2846 (i386_mxcsr_regnum_p): new function. Use instead of
2848 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2849 (i386_sse_regnum_p): Declare.
2850 (i386_mxcsr_regnum_p): Declare.
2851 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2852 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2853 (IS_FP_REGNUM): Update definition.
2854 (IS_FPU_CTRL_REGNUM): Update definition..
2855 (IS_SSE_REGNUM): Update definition..
2856 * i386v-nat.c (register_u_addr): Update.
2857 * go32-nat.c (fetch_register): Update.
2858 (store_register): Update.
2860 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2862 Preparation work to convert the hppa targets to multiarch partial.
2864 * hppa-tdep.c: Add new functions replacing macro bodies from
2865 config/pa/tm-hppa.h. These function will be used to initialize
2866 the gdbarch structure. Import some comments from tm-hppa.h,
2867 and place them where appropriate, to avoid loosing them when
2868 we cleanup this file.
2869 (hppa_reg_struct_has_addr): New function.
2870 (hppa_inner_than): New function.
2871 (hppa_stack_align): New function.
2872 (hppa_pc_requires_run_before_use): New function.
2873 (hppa_instruction_nullified): New function.
2874 (hppa_register_byte): New function.
2875 (hppa_register_virtual_type): New function.
2876 (hppa_store_struct_return): New function.
2877 (hppa_cannot_store_register): New function.
2878 (hppa_frame_args_address): New function.
2879 (hppa_frame_locals_address): New function.
2880 (hppa_smash_text_address): New function.
2881 (hppa_coerce_float_to_double): New function. Requires the inclusion
2884 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2886 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2887 gdbarch-eligible macro to a call to the new associated function
2888 created in hppa-tdep.c.
2889 (INNER_THAN): Likewise.
2890 (STACK_ALIGN): Likewise.
2891 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2892 (INSTRUCTION_NULLIFIED): Likewise.
2893 (REGISTER_BYTE): Likewise.
2894 (REGISTER_VIRTUAL_TYPE): Likewise.
2895 (STORE_STRUCT_RETURN): Likewise.
2896 (CANNOT_STORE_REGISTER): Likewise.
2897 (FRAME_ARGS_ADDRESS): Likewise.
2898 (FRAME_LOCALS_ADDRESS): Likewise.
2899 (SMASH_TEXT_ADDRESS): Likewise.
2900 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2901 (ABOUT_TO_RETURN): Delete, as no longer used.
2903 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2905 * printcmd.c (disassemble_command): Remove obsolete function.
2906 (_initialize_printcmd): Do not create disassemble command here.
2907 * cli/cli-cmds.c (disassemble_command): New function. Implements
2908 disassemble command.
2909 (init_cli_cmds): Create disassemble command here instead.
2911 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2913 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2915 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2917 * regcache.h (regcache_cooked_read_using_offset_hack)
2918 (regcache_cooked_write_using_offset_hack): Delete declarations.
2919 (register_changed): Delete declaration.
2920 * regcache.c (regcache_cooked_read_using_offset_hack)
2921 (regcache_cooked_write_using_offset_hack): Delete functions.
2922 (cooked_xfer_using_offset_hack): Delete function.
2923 (register_changed): Delete function.
2925 2002-11-07 Jim Blandy <jimb@redhat.com>
2927 * macroscope.c: #include "complaints.h".
2928 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2929 but not in the macro table.
2930 * Makefile.in (macroscope.o): Record dependency.
2932 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2934 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2936 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2938 * regcache.c (deprecated_registers_fetched): Update.
2939 * regcache.h (deprecated_registers_fetched): Rename
2941 * remote-vxsparc.c (vx_read_register): Update.
2942 * remote-vxmips.c (vx_read_register): Update.
2943 * remote-vx68.c (vx_read_register): Update.
2944 * irix5-nat.c (fetch_core_registers): Update.
2945 * mipsm3-nat.c (fetch_inferior_registers): Update.
2946 * sun3-nat.c (fetch_inferior_registers): Update.
2947 * symm-nat.c (fetch_inferior_registers): Update.
2948 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2949 (fetch_core_registers): Update.
2950 (fetch_kcore_registers): Update.
2951 * mips-nat.c (fetch_inferior_registers): Update.
2952 * corelow.c (get_core_registers): Update.
2953 * a68v-nat.c (fetch_inferior_registers): Update.
2955 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2957 Put in place the framework necessary for multiarching the hppa targets.
2958 * hppa-tdep.c (hppa_gdbarch_init): New function.
2959 (hppa_dump_tdep): New function.
2960 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2961 tdep structure dumper.
2962 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2963 until the multi-arching conversion has partially been completed.
2965 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2967 * valops.c (value_assign): Merge lval_register case into
2968 lval_reg_frame_relative. Use frame_register and
2969 regcache_cooked_write instead of get_saved_register and
2970 write_register_bytes. After flushing the register cache, try to
2971 re-select the selected frame.
2973 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2975 * regcache.h (deprecated_register_valid): Rename register_valid.
2976 * regcache.c: Update.
2977 * ia64-aix-nat.c: Update.
2978 * i386gnu-nat.c: Update.
2979 * alpha-nat.c: Update.
2980 * sparc-nat.c: Update.
2981 * lynx-nat.c: Update.
2982 * remote-mips.c: Update.
2984 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2986 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2987 to end of file, to be more consistent with the pratice followed
2990 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2992 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2993 (print_float_info): Print registers in float_reggroup.
2994 (print_vector_info): Print registers in vector_reggroup.
2995 (default_print_registers_info): When all, print registers in
2996 all_reggroup. Otherwize, print registers in general_reggroup.
2997 (registers_info): Rewrite. Add support for register groups.
3000 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3002 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3004 (symtab_symbol_info): Remove eons old ifdeffed out code.
3005 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3008 2002-11-06 Theodore A. Roth <troth@openavr.org>
3010 * c-exp.y: Add missing semi-colons.
3011 * f-exp.y: Add missing semi-colons.
3012 * m2-exp.y: Add missing semi-colons.
3013 * p-exp.y: Add missing semi-colons.
3014 Add empty action to start rule to avoid a type clash error when
3015 building with bison >= 1.50.
3017 2002-11-06 Jim Blandy <jimb@redhat.com>
3019 * macrotab.h (struct macro_source_file): Doc fix.
3021 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3023 * varobj.c (child_exists, cplus_number_of_children): Change
3024 STREQ macro references to strcmp.
3025 (cplus_name_of_child): Change code to handle the fact that
3026 fields are not necessarily contiguous with regards to their
3027 access control. This is a fix for PR gdb/792.
3029 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3031 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3032 * gdbarch.h, gdbarch.c: Regnerate.
3033 * frame.h (frame_register): Declare.
3034 * frame.c (frame_register): New function.
3035 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3036 GET_SAVED_REGISTER, otherwize call
3037 generic_unwind_get_saved_register.
3038 (frame_register_read): Use frame_register instead of
3041 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3043 From Jim Ingham <jingham@apple.com>:
3044 * event-top.c (gdb_disable_readline): New function.
3045 (_initialize_event_loop): Move comment.
3047 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3049 * event-loop.c (start_event_loop): Add comment.
3052 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3054 * infcmd.c (default_print_registers_info): Do not call
3055 PRINT_REGISTER_HOOK.
3057 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3059 * sparc-tdep.c (sparc_print_register_hook): Make static.
3060 (sparc_print_registers_info): New function.
3061 (sparc_do_registers_info): New function.
3062 (sparclet_print_registers_info): New function.
3063 (sparclet_do_registers_info): New function.
3064 (do_sparc_print_registers_info): New function.
3065 (sparc_print_registers): New static function, clone of infcmd.c's
3066 default_print_registers_info.
3067 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3068 (sparclet_do_registers_info): Declare.
3069 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3070 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3072 (sparc_do_registers_info): Declare.
3073 (PRINT_REGISTER_HOOK): Delete macro.
3074 (sparc_print_register_hook): Delete declaration.
3076 2002-11-05 David Carlton <carlton@math.stanford.edu>
3078 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3080 (lookup_symbol_aux_local): New function.
3081 (lookup_symbol_aux_symtabs): New function.
3082 (lookup_symbol_aux_psymtabs): New function.
3084 2002-11-05 David Carlton <carlton@math.stanford.edu>
3086 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3087 previous values of 'objfile' and 'block'.
3089 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3091 * values.c (value_change_enclosing_type): Set
3092 enclosing_type field correctly also for the case where
3093 more memory needs to be allocated.
3095 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3097 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3100 * i387-tdep.c (i387_print_float_info): Replace calls to
3101 register_read and deprecated_read_register_gen with calls to
3102 frame_register_read, and make the necessary adjustments to the
3105 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3107 * gdbarch.sh (register_reggroup_p): Allow default value.
3108 * gdbarch.h, gdbarch.c: Regenerate.
3110 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3112 * regcache.h: Add coment indicating replacements for deprecated
3115 2002-11-02 Andrew Cagney <cagney@redhat.com>
3117 * reggroups.h, reggroups.c: New files.
3118 * regcache.c: Include "reggroups.h".
3119 (enum regcache_dump_what): Add `regcache_dump_groups'.
3120 (regcache_dump): Contract size of the "Type" column. When
3121 specified, dump the register's groups.
3122 (maintenance_print_register_groups): New function.
3123 (_initialize_regcache): Add command `maint print register-groups'.
3124 * Makefile.in (COMMON_OBS): Add reggroups.o
3125 (SFILES): Add reggroups.c.
3126 (reggroups_h): Define.
3127 (regcache.o, gdbarch.o): Update dependencies.
3128 (reggroups.o): Specify dependencies.
3129 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3130 Add opaque declaration for `struct reggroup' in generated .h file.
3131 Include "reggroups.h" in generated .c file.
3132 gdbarch.h, gdbarch.c: Re-generate.
3134 2002-11-02 Andrew Cagney <cagney@redhat.com>
3136 * regcache.h (deprecated_read_register_gen): Rename
3138 (deprecated_write_register_gen): Rename write_register_gen.
3139 * i387-tdep.c: Update.
3140 * x86-64-linux-nat.c: Update
3142 * thread-db.c: Update.
3143 * win32-nat.c: Update.
3144 * mips-tdep.c: Update.
3145 * d10v-tdep.c: Update.
3146 * cris-tdep.c: Update.
3147 * remote-sim.c: Update.
3148 * remote-rdi.c: Update.
3149 * remote-rdp.c: Update.
3152 * blockframe.c: Update.
3153 * x86-64-tdep.c: Update.
3154 * xstormy16-tdep.c: Update.
3155 * sh-tdep.c: Update.
3156 * s390-tdep.c: Update.
3157 * rs6000-tdep.c: Update.
3158 * sparc-tdep.c: Update.
3159 * i386-tdep.c: Update.
3160 * dwarf2cfi.c: Update.
3161 * regcache.c: Update.
3163 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3165 New interix-specific files:
3166 * config/i386/nm-interix.h: New file.
3167 * config/i386/interix.mh: New file.
3168 * config/i386/interix.mt: New file.
3169 * i386-interix-nat.c: New file.
3170 * i386-interix-tdep.c: New file.
3172 2002-11-01 Andrew Cagney <cagney@redhat.com>
3174 * frame.h (deprecated_generic_get_saved_register): Rename
3175 generic_get_saved_register.
3176 * blockframe.c (deprecated_generic_get_saved_register): Update.
3177 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3178 (xstormy16_frame_saved_register): Update.
3179 * sh-tdep.c (sh_gdbarch_init): Update.
3180 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3181 * ia64-tdep.c (ia64_get_saved_register): Update.
3182 * cris-tdep.c (cris_gdbarch_init): Update.
3183 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3184 * arm-tdep.c (arm_gdbarch_init): Update.
3186 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3188 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3190 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3192 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3193 trampolines in sigaction.
3195 2002-10-31 Andrew Cagney <cagney@redhat.com>
3197 * h8300-tdep.c: Include "gdb_assert.h".
3198 (h8300_print_register): Add gdbarch, file and frame parameters.
3199 Use frame_read_unsigned_register to read the register's value.
3200 Use fprintf_filtered to display output.
3201 (h8300_print_registers_info): Replace h8300_do_registers_info.
3202 (h8300_gdbarch_init): Set print_registers_info.
3204 2002-10-31 Andrew Cagney <cagney@redhat.com>
3206 * frame.c (frame_read_unsigned_register): New function.
3207 (frame_read_signed_register): New function.
3208 * frame.h (frame_read_unsigned_register): Declare.
3209 (frame_read_signed_register): Declare.
3211 2002-10-31 Andrew Cagney <cagney@redhat.com>
3213 * h8500-tdep.c (h8500_print_registers_info): New static function,
3214 clone of infcmd.c's default_print_registers_info.
3215 (h8500_do_registers_info): New funtion.
3216 (h8500_print_register_hook): Rename print_register_hook, make
3219 * config/h8500/tm-h8500.h: Update copyright.
3220 (DEPRECATED_DO_REGISTERS_INFO): Define.
3221 (h8500_do_registers_info: Declare.
3222 (PRINT_REGISTER_HOOK): Delete macro.
3223 (print_register_hook): Delete function.
3225 2002-10-31 Andrew Cagney <cagney@redhat.com>
3227 * z8k-tdep.c (z8k_print_register_hook): Make static.
3228 (z8k_print_registers_info): New static function, clone of
3229 infcmd.c's default_print_registers_info.
3230 (z8k_do_registers_info): New function. Wrap
3231 z8k_print_registers_info.
3232 * config/z8k/tm-z8k.h: Update copyright.
3233 (PRINT_REGISTER_HOOK): Delete macro.
3234 (z8k_print_register_hook): Delete declaration.
3235 (DEPRECATED_DO_REGISTERS_INFO): Define.
3236 (z8k_do_registers_info): Declare.
3238 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3240 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3241 as this is already provided by value.h, and was actually causing
3242 a compilation error because of a conflict in parameter type
3243 declaration due to a missing const keyword.
3244 (low_text_segment_addres): Fix a compilation warning.
3246 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3248 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3249 registers without a name.
3250 (mips_linux_cannot_store_register): Don't store registers without
3253 2002-10-28 David Carlton <carlton@math.stanford.edu>
3255 * symtab.c (find_addr_symbol): Delete. (It was already commented
3257 * symtab.h: Delete prototype for find_addr_symbol.
3259 2002-10-26 Andrew Cagney <cagney@redhat.com>
3261 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3263 gdbarch.h, gdbarch.c: Re-generate.
3264 * infcmd.c (default_print_registers_info): Update reference.
3265 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3266 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3267 * sh-tdep.c (sh_gdbarch_init): Ditto.
3268 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3269 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3271 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3273 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3274 cfi_init_extra_frame_info.
3275 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3276 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3278 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3279 target where necessary. Add more comments and remove the ones
3280 that don't provide any useful information.
3282 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3283 deprecated_read_register_dummy with
3284 frame_unwind_unsigned_register.
3286 * i386-tdep.c (i386_extract_struct_value_address): Use
3287 regcache_raw_read_unsigned instead of
3288 regcache_cooked_read_unsigned since we know that the register
3289 we're reading isn't a pseudo register. Rename variable 'val' into
3290 the more descriptive 'addr'.
3292 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3293 (x86_64_push_return_address): Add comment.
3294 (x86_64_pop_frame): Make static.
3295 (examine_argument): Clarify comment.
3296 (x86_64_skip_prologue): Make prolog_expact variable static.
3298 * dwarf2cfi.c: Fix some formatting problems.
3299 (context_cpy, read_encoded_pointer): Clarify comments.
3301 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3302 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3303 i386 target back into x86_64_gdbarch_init. Add some comments and
3304 remove meaningless ones.
3306 2002-10-25 Andrew Cagney <cagney@redhat.com>
3308 * complaints.h (struct deprecated_complaint): Rename `struct
3310 * complaints.c (complain): Update.
3311 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3312 incorrect comment indicating that "symfile.h" was being included
3313 for the `struct complaint' definition.
3314 * remote-vx.c: Update.
3315 * objc-lang.c: Update.
3316 * xcoffread.c: Update.
3318 * mdebugread.c: Update.
3319 * stabsread.c: Update.
3320 * dwarf2read.c: Update.
3321 * dwarfread.c: Update.
3322 * elfread.c: Update.
3323 * coffread.c: Update.
3324 * stabsread.h: Update.
3325 * dbxread.c: Update.
3326 * buildsym.c: Update.
3327 * gdbtypes.c: Update.
3328 * macrotab.c: Update.
3330 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3332 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3333 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3334 (x86_64_init_abi): ...new function.
3336 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3337 * i386v-nat.c: Include "i386-tdep.h".
3339 2002-10-25 Andrew Cagney <cagney@redhat.com>
3341 * gdbtypes.c (address_space_name_to_int): Update.
3342 (address_space_int_to_name): Update.
3343 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3344 multi-arch predicate.
3345 (address_class_name_to_type_flags): Ditto.
3346 * gdbarch.h, gdbarch.c: Re-generate.
3348 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3350 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3352 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3354 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3356 * symtab.h (INIT_SAL): Delete macro.
3358 * symtab.c (init_sal): New function.
3360 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3361 to init_sal function call.
3362 (find_sal_from_funcs_and_line): Ditto.
3363 (all_sals_for_line): Ditto.
3364 * breakpoint.c (create_internal_breakpoint): Ditto.
3365 (create_fork_vfork_event_catchpoint): Ditto.
3366 (create_exec_event_catchpoint): Ditto.
3367 (parse_breakpoint_sals): Ditto.
3368 (watch_command_1): Ditto.
3369 (handle_gnu_4_16_catch_command): Ditto.
3370 (clear_command): Ditto.
3371 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3372 * infcmd.c (run_stack_dummy): Ditto.
3373 * infrun.c (process_event_stop_test): Ditto.
3374 (check_sigtramp2): Ditto.
3375 (step_over_function): Ditto.
3376 * linespec.c (decode_line_2): Ditto.
3377 (decode_line_1): Ditto.
3378 * source.c (line_info): Ditto.
3379 * symtab.c (find_pc_sect_line): Ditto.
3381 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3383 * dwarf2cfi.c (struct context)
3384 (struct context_reg): Moved to dwarf2cfi.h
3385 (context_alloc, frame_state_alloc, context_cpy):
3386 Made extern instead of static, removed prototypes.
3387 * dwarf2cfi.h (struct context)
3388 (struct context_reg): New, moved from dwarf2cfi.c
3389 (context_alloc, frame_state_alloc, context_cpy):
3391 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3392 Changed from static to extern.
3393 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3394 (LINUX_SIGCONTEXT_FP_OFFSET)
3395 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3396 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3397 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3398 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3399 set_gdbarch_*() calls now use x86-64 specific functions
3400 instead of DWARF2 CFI ones.
3401 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3402 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3403 (x86_64_init_extra_frame_info): New prototypes.
3405 2002-10-23 David Carlton <carlton@math.stanford.edu>
3407 * linespec.c: #include "parser-defs.h".
3408 Delete prototype for find_template_name_end.
3409 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3411 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3413 * NEWS: add recent mi fixes.
3414 * varobj.c (struct varobj): Add new "updated" flag.
3415 (new_variable): Default "updated" flag to 0.
3416 (varobj_set_value): Set "updated" flag to 1 if value
3418 (varobj_update): Check varobj "updated" flag before
3419 comparing old and refreshed values. Fix for
3422 2002-10-23 David Carlton <carlton@math.stanford.edu>
3424 * parse.c (parse_exp_1): Use BLOCK_START.
3425 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3427 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3429 2002-10-23 David Carlton <carlton@math.stanford.edu>
3431 * symtab.c: Delete cplusplus_hint.
3432 Delete prototype for find_template_name_end.
3434 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3436 * symtab.h: Update comment.
3438 2002-10-23 Michael Snyder <msnyder@redhat.com>
3440 * printcmd.c (address_info): Restore quotes in output.
3441 * valops.c (value_of_local): Restore quotes in error message.
3443 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3445 * symtab.c (symbol_demangled_name): New function.
3446 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3447 turning most of it into a function.
3448 (symbol_demangled_name): Export.
3450 2002-10-23 Michael Snyder <msnyder@redhat.com>
3452 * valops.c (value_of_local): Restore quotes in error message.
3454 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3456 * symtab.c (symbol_init_language_specific): New function.
3457 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3458 turning most of it into a function.
3459 (symbol_init_language_specific): Export.
3461 2002-10-23 David Carlton <carlton@math.stanford.edu>
3463 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3464 (dwarf_attr_name): Ditto.
3465 (dwarf_type_encoding_name): Ditto.
3466 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3467 (process_die): Handle DW_TAG_namespace,
3468 DW_TAG_imported_declaration, DW_TAG_imported_module.
3469 (read_namespace): New function.
3471 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3473 * configure.in: Define NEW_PROC_API on Interix too.
3474 * configure: Regenerate.
3476 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3478 * configure: Regenerate using the proper version of autoconf.
3480 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3482 * findvar.c (read_var_value): Temporarily disable TLS code, until
3483 complete TLS support is added.
3485 2002-10-21 Jim Blandy <jimb@redhat.com>
3486 Elena Zannoni <ezannoni@redhat.com>
3488 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3489 for thread local storage locations.
3490 (struct symbol): Add objfile field.
3491 (SYMBOL_OBJFILE): Define.
3492 * dwarf2read.c (is_thread_local): New static variable.
3493 (new_symbol): If variable is in thread local fill in address class
3494 and objfile appropriately.
3495 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3497 * printcmd.c (address_info): Print the information for thread
3498 local storage variable.
3499 * findvar.c (read_var_value): In case of thread local variable,
3500 defer to the target vector code to compute address.
3502 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3504 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3505 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3507 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3509 * symtab.h (address_class): Rename
3510 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3511 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3512 * printcmd.c (address_info): Ditto.
3513 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3515 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3517 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3518 DBREG_DRX macro to acces debug registers.
3520 * Makefile.in (i386obsd-tdep.o): New target.
3522 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3523 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3525 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3526 * config/i386/obsd.mt: New file.
3527 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3528 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3529 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3530 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3531 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3532 * i386obsd-tdep.c: New file.
3534 2002-10-19 Adam Fedor <fedor@gnu.org>
3536 * objc-exp.y (name_not_typename): Fix invalid comment.
3538 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3540 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3541 to allocate partial syms and macro byte caches.
3543 2002-10-18 David Carlton <carlton@math.stanford.edu>
3545 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3547 2002-10-18 Adam Fedor <fedor@gnu.org>
3549 * stabsread.c (find_name_end): New function.
3550 (define_symbol): Use it.
3552 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3554 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3555 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3556 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3557 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3559 2002-10-17 David Carlton <carlton@math.stanford.edu>
3561 * symfile.h: Add opaque declaration for struct obstack.
3562 Declare obsavestring to take a const char *.
3563 * symfile.c (obsavestring): Make first argument a const char *.
3565 2002-10-16 Adam Fedor <fedor@gnu.org>
3567 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3568 names when matching breakpoints in current file.
3570 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3572 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3573 (read_tag_pointer_type): Add address class support.
3574 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3575 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3577 * gdbarch.h, gdbarch.c: Regenerate.
3578 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3579 (make_type_with_address_space, recursive_type_dump): Add address
3581 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3582 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3583 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3585 2002-10-16 Klee Dienes <kdienes@apple.com>
3587 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3588 to get the last character of a char[] buffer, not
3589 name[sizeof(vptr_name)-1].
3591 2002-10-14 Adam Fedor <fedor@gnu.org>
3593 * symtab.h: New objc_specific struct.
3594 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3595 (SYMBOL_DEMANGLED_NAME): Likewise.
3597 2002-10-14 Adam Fedor <fedor@gnu.org>
3599 * symfile.c (init_filename_language_table): Add ObjC file extension.
3601 2002-10-14 Adam Fedor <fedor@gnu.org>
3603 * utils.c (puts_filtered_tabular): New function.
3604 (fprintf_symbol_filtered): Get ObjC demangled name.
3605 * defs.h (puts_filtered_tabular): Declared.
3607 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3609 * c-lang.h (c_type_print_varspec_prefix): Delete.
3610 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3611 ``need_post_space'' parameter. Adjust all callers.
3613 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3615 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3616 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3617 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3618 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3620 2002-10-13 Adam Fedor <fedor@gnu.org>
3622 * source.c (print_source_lines): Update comments.
3624 2002-10-13 Adam Fedor <fedor@gnu.org>
3626 * valops.c (value_of_local): New function.
3627 (value_of_this): Use it.
3628 * value.h (value_of_local): Declared.
3630 2002-10-13 Adam Fedor <fedor@gnu.org>
3632 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3633 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3635 2002-10-12 Adam Fedor <fedor@gnu.org>
3637 * language.c (binop_result_type): Add language_objc to case.
3638 (integral_type): Likewise.
3639 (character_type): Likewise.
3640 (string_type): Likewise.
3641 (boolean_type): Likewise.
3642 (structured_type): Likewise.
3643 (binop_type_check): Likewise.
3645 2002-10-11 Adam Fedor <fedor@gnu.org>
3647 * printcmd.c (address_info): Print 'self' for ObjC.
3649 2002-10-11 Adam Fedor <fedor@gnu.org>
3651 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3654 2002-10-11 Adam Fedor <fedor@gnu.org>
3656 * language.h (CAST_IS_CONVERSION): Add language_objc.
3658 2002-10-11 Adam Fedor <fedor@gnu.org>
3660 * defs.h (enum language): Add language_objc.
3662 2002-10-11 Klee Dienes <kdienes@apple.com>
3664 * corefile.c (read_memory_typed_address): New function.
3665 * gdbcore.h (read_memory_typed_address): Add prototype.
3666 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3667 to read a value destined for a CORE_ADDR, not read_memory_integer.
3668 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3669 (f77_get_dynamic_lowerbound): Ditto.
3671 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3673 * utils.c (string_to_core_addr): After turning string into
3674 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3675 which will do necessary sign-extension, etc.
3677 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3679 * c-exp.y (THIS): Delete token and grammar rule.
3680 (yylex): Don't return THIS.
3681 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3682 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3683 * demangle.c (cplus_markers): Update comment. Put '$'
3684 first. Remove CPLUS_MARKER.
3685 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3686 * jv-exp.y (THIS): Delete token and grammar rule.
3687 (yylex): Don't return THIS.
3688 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3689 * objc-exp.y (THIS): Delete token and grammar rule.
3690 (yylex): Don't return THIS.
3691 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3692 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3693 (read_member_functions): Likewise for opname.
3694 (read_tilde_fields): Use is_cplus_marker.
3696 * defs.h (CPLUS_MARKER): Don't define.
3697 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3698 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3699 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3700 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3701 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3703 * config/i386/tm-i386v4.h: Delete file.
3704 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3705 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3706 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3707 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3708 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3709 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3710 * config/i386/i386v4.mt (TM_FILE): Likewise.
3711 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3713 2002-10-10 Marko Mlinar <markom@opencores.org>
3715 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3716 accidentially not commited 2002-10-09
3717 * gdbarch.h, gdbarch.c: Re-generate.
3719 2002-10-09 Marko Mlinar <markom@opencores.org>
3721 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3722 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3723 * gdbarch.h, gdbarch.c: Re-generate.
3725 2002-10-08 Petr Sorfa <petrs@caldera.com>
3727 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3729 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3730 so we can work on more than one compilation unit at a time. This
3731 helps prepare GDB to handle inter-CU die references.
3732 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3733 the code to be defined before struct comp_unit_head.
3734 (comp_unit_head): Added new members - offset, cu_head,
3735 begin_die, next and dwarf2_abbrevs.
3736 (dwarf2_abbrevs): Removed single static var; now member of
3737 struct comp_unit_head.
3738 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3740 (psymtab_to_symtab_1): Changed to work with the new
3741 struct comp_unit_head.
3742 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3743 constructs the dwarf2_abbrevs[] inside the cu_header.
3744 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3745 dwarf2_abbrev table to clean up.
3746 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3747 handling of dwarf2_abbrevs inside the cu_header.
3748 (read_partial_die): Now supports the call to the new
3749 dwarf2_lookup_abbrev.
3750 (read_full_die): Now supports the call to the new
3751 dwarf2_lookup_abbrev.
3753 2002-10-06 Christopher Faylor <cgf@redhat.com>
3755 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3756 insure that shell variables, such as "transformed_name" are propagated
3757 to later shell statements in rule.
3759 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3761 * config/i386/nm-i386sco.h: Add protection against
3762 multiple-inclusion. Include "i386/nm-i386v.h".
3763 (REGISTER_U_ADDR): Remove define.
3764 (i386_register_u_addr): Remove prototype.
3766 2002-10-04 Michael Snyder <msnyder@redhat.com>
3768 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3769 before treating it as a single-step event.
3771 2002-10-03 Adam Fedor <fedor@gnu.org>
3773 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3774 (objc_demangle): Remove assignment in if statements, Replace
3776 (add_msglist): Likewise.
3777 (end_msglist): Likewise.
3778 (complare_selectors): Likewise.
3779 (selectors_info): Likewise.
3780 (compare_classes): Likewise.
3781 (classes_info): Likewise.
3782 (print_object_command): Likewise.
3783 (find_objc_msgcall_submethod): Replace PTR with void *.
3784 * objc-lang.h: Remove check for __STDC__.
3786 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3788 * ui-out.h (ui_out_field_fmt_int): New prototype.
3789 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3790 of field width and alignment.
3791 * stack.c (print_frame_info_base): When printing frame level, use
3792 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3795 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3797 * MAINTAINERS: Add self to Write After Approval list.
3799 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3801 * infcmd.c (interrupt_target_command_wrapper): Delete.
3802 (interrupt_target_command): Make non static.
3803 (nofp_registers_info): Make static.
3804 * stack.c (return_command_wrapper): Delete.
3805 (return_command): Make non static.
3807 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3809 * event-top.c (gdb_setup_readline): New function. Code moved from
3810 _initialize_event_loop().
3811 (_initialize_event_loop): Call gdb_setup_readline().
3813 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3815 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3816 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3817 * gdbarch.h, gdbarch.c: Re-generate.
3819 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3822 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3824 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3825 of fill_in_vptr_fieldno.
3827 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3829 * inferior.h (registers_info, stepi_command, nexti_command,
3830 continue_command, interrupt_target_command): Export from infcmd.c.
3831 * frame.h (args_info, selected_frame_level_changed_hook,
3832 return_command): Export from stack.c.
3833 * v850ice.c (stepi_command, nexti_command, continue_command): use
3834 prototypes from inferior.h.
3835 * tracepoint.c (registers_info, args_info, locals_info): Use
3836 prototypes from frame.h and inferior.h.
3837 * Makefile.in (mi-main.o): Add dependency on frame.h.
3839 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3841 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3842 value in register 3 adjusted by ppc_gp0_regnum.
3844 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3846 2002-10-02 Marko Mlinar <markom@opencores.org>
3848 * MAINTAINERS: Add myself to the Write After Approval list.
3850 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3852 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3853 of the section for the N64 ABI, fixed.
3855 * config/mips/tm-irix6.h: Include solib.h.
3857 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3859 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3862 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3864 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3865 and that "mi0" syntax has been removed.
3867 2002-09-30 David Carlton <carlton@math.stanford.edu>
3869 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3870 * ppc-sysv-tdep.c: #include "gdb_string.h".
3871 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3874 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3876 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3877 "vrsave"'s register number.
3879 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3881 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3882 use frame_unwind_signed_register to obtain the PC.
3883 (mips_frame_chain): Handle a generic dummy frame.
3884 (mips_init_extra_frame_info): When a generic dummy frame, don't
3885 re-compute the frame base.
3886 (mips_pop_frame): Handle generic dummy frames.
3887 (mips_gdbarch_init): When generic dummy frames, set
3888 use_generic_dummy_frames, push_dummy_frame to
3889 generic_push_dummy_frame, pc_in_call_dummy to
3890 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3891 generic_save_dummy_frame_tos.
3893 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3895 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3896 against TOP when TOP was explictly set.
3897 (generic_push_dummy_frame): Set TOP to zero.
3899 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3901 * event-loop.c (start_event_loop): Rename variable 'result' to
3902 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3904 2002-09-30 Keith Seitz <keiths@redhat.com>
3906 * gdb-events.sh (selected_thread_changed): New event.
3907 * gdb-events.c: Regenerated.
3908 * gdb-events.h: Regenerated.
3910 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3912 * MAINTAINERS: Add self to Write After Approval list.
3914 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3916 * disasm.c: New file.
3917 * disasm.h: New file.
3918 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3919 (compare_lines): Ditto.
3920 (dump_insns): Ditto.
3921 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3923 (do_assembly_only): Ditto.
3924 (do_disassembly): Renamed to gdb_disassembly and moved to
3925 disasm.c. Sdded uiout argument.
3926 * Makefile.in: Add new files. Reorder SFILES list. Update
3927 dependencies. Include libgdb.a later in the insight executable.
3929 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3931 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3932 bfd/elf64-alpha-fbsd.c.
3934 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3936 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3939 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3941 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3943 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3945 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3946 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3947 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3948 (S_msg_sig_post_reply): Ditto.
3950 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3952 * sh-tdep.c (sh_use_struct_convention): Use definition according
3954 (sh_push_arguments): Store in register with correct endianess.
3955 (sh_default_store_return_value): Ditto.
3956 (sh_gdbarch_init): Set sizeof long double to 8.
3958 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3960 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3961 Fix some whitespace problems.
3963 2002-09-27 David Carlton <carlton@math.stanford.edu>
3965 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3966 (mcore-tdep.o): Ditto.
3967 (ns32k-tdep.o): Ditto.
3968 (ns32knbsd-tdep.o): Ditto.
3970 (vax-tdep.o): Ditto.
3971 * cris-tdep.c: #include "gdb_string.h"
3972 * mcore-tdep.c: Ditto.
3973 * ns32k-tdep.c: Ditto.
3974 * ns32knbsd-tdep.c: Ditto.
3976 * vax-tdep.c: Ditto.
3978 2002-09-27 David Carlton <carlton@math.stanford.edu>
3980 * config/djgpp/fnchange.lst: Add entries for
3981 gdb/testsuite/gdb.c++/m-static files.
3983 2002-09-27 Jim Wilson <wilson@redhat.com>
3985 * MAINTAINERS: Add myself to the Write After Approval list.
3987 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3989 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3992 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3994 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3997 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3999 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4000 (rs6000_struct_return_address): Delete variable.
4001 (rs6000_store_struct_return): Update.
4002 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4003 deprecated_extract_struct_value_address.
4004 (rs6000_frame_align): New function.
4005 (rs6000_gdbarch_init): Set frame_align.
4007 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4009 From Grace Sainsbury <graces@redhat.com>:
4010 * Makefile.in (gdbtk-main.o): New target.
4011 (gdb.o): New target.
4013 (main.o): Update dependencies.
4014 (gdb$(EXEEXT)): Add gdb.o.
4015 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4016 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4017 (SUBDIR_GDBTK_CLEAN): Set.
4018 (install-gdbtk): Install the insight binary.
4019 (uninstall-gdbtk): New target.
4020 (all-gdbtk, clean-gdbtk): New rule.
4021 * top.c (use_windows): Default to zero.
4022 * main.c: Include "main.h".
4024 (struct captured_main_args): Delete.
4025 (gdb_main): New function.
4029 2002-09-25 Andrew Cagney <cagney@redhat.com>
4031 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4032 (frame_map_regnum_to_name): New function.
4033 (frame_map_name_to_regnum): New function.
4034 * frame.h (frame_map_name_to_regnum): Declare.
4035 (frame_map_regnum_to_name): Declare.
4036 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4037 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4038 * parse.c: Do not include "builtin-regs.h".
4039 (target_map_name_to_register): Delete function.
4040 (write_dollar_variable): Use frame_map_name_to_regnum.
4041 * parser-defs.h (target_map_name_to_register): Delete declaration.
4042 * expprint.c: Include "frame.h".
4043 (print_subexp): Use frame_map_regnum_to_name.
4044 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4045 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4047 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4049 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4050 wasn't saved, and the next innermost frame is a dummy, return the
4051 dummy frame's link register.
4053 2002-09-24 Jim Blandy <jimb@redhat.com>
4055 Fix from Paul Breed:
4056 * main.c (captured_main): Add a `break' after the case for 'b'.
4058 2002-09-24 Keith Seitz <keiths@redhat.com>
4060 * varobj.c (c_type_of_child): Use get_target_type instead
4061 of TYPE_TARGET_TYPE.
4063 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4065 * source.c (get_current_or_default_source_symtab_and_line): Remove
4067 (set_default_source_symtab_and_line): New function. Attempts to
4068 determine a source file to list lines from if one is not currently
4070 (get_current_source_symtab_and_line): Initialize sal.pc and
4072 (set_current_source_symtab_and_line): Mark argument as const.
4073 * source.h: Update declarations and comments.
4074 * linespec.c (decode_line_1): Replace call to removed routine above.
4075 * stack.c (print_frame_info_base): Ditto.
4076 * cli/cli-cmds.c (edit_command): Ditto.
4077 (list_command): Ditto.
4079 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4081 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4082 sal.pc and sal.end fields.
4083 (get_current_or_default_source_symtab_and_line): Ditto.
4084 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4085 so we do not cause a new source symtab to be searched for (reverting an
4086 unintentional change from the 2002-09-20 patch).
4087 * scm-lang.c (scm_unpac): Ditto.
4089 2002-09-21 Andrew Cagney <cagney@redhat.com>
4091 * complaints.c (symfile_explanations): Remove new-line from
4092 ``isolated_message''.
4093 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4094 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4096 2002-09-20 Nick Clifton <nickc@redhat.com>
4098 * NEWS: Announce that V850EA ISA is no longer supported.
4099 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4101 2002-09-20 David Carlton <carlton@math.stanford.edu>
4103 * Makefile.in (c-lang.o): Correct dependencies.
4104 (utils.o): Gather dependencies.
4106 * c-lang.c: #include "gdb_string.h"
4108 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4110 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4111 * cli/cli-cmds.c (list_command): New function. Implements the new
4113 (_init_cli_cmds): Add new command definition.
4114 * gdb.1: Document edit command.
4115 * doc/gdb.texinfo: Document edit command.
4117 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4119 * source.c: Make global variables current_source_symtab and
4120 current_source_line static.
4121 (list_command): Moved to cli/cli-cmds.c.
4122 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4123 (get_first_line_listed): New accessor function.
4124 (get_lines_to_list): New accessor function.
4125 (get_current_source_symtab_and_line): New function. Retrieves the
4126 position in the source code that we consider current.
4127 (get_current_or_default_source_symtab_and_line): New function.
4128 Like the above but attempts to determine a default position if one
4129 is not currently defined.
4130 (set_current_source_symtab_and_line): New function. Sets the source
4131 code position considered current and returns the previously set one.
4132 (clear_current_source_symtab_and_line): Reset stored information about
4133 a current source line.
4134 (_initialize_source): Remove registration for the "list" command and
4136 * source.h: Add declarations for the new functions above.
4137 * symtab.h: Remove declarations for the global variables mentioned
4139 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4140 obtain current source line.
4141 * linespec.c (decode_line_1): Ditto.
4142 * macroscope.c (default_macro_scope): Ditto.
4143 * scm-lang.c (scm_unpac): Ditto.
4144 * stack.c (print_frame_info_base): Ditto.
4145 * symfile.c (clear_symtab_users): Ditto.
4146 * symtab.c (decode_line_spec): Ditto.
4147 * cli/cli-cmds.c (list_command): Moved here from source.c.
4148 (ambiguous_line_spec): Moved here from source.c.
4149 (_init_cli_cmds): Add definition for "list" and its alias.
4150 * Makefile.in: Update dependencies.
4152 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4154 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4155 with what gcc thinks is correct.
4157 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4159 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4160 multiple register push instruction.
4162 2002-09-19 Jim Blandy <jimb@redhat.com>
4164 Add support for distinct host and target character sets.
4165 * charset.c, charset.h: New files.
4166 * c-exp.y: #include "charset.h".
4167 (yylex): Convert character and string literals to the target
4168 character set, before returning them as the semantic value of the
4170 * c-lang.c: #include "charset.h".
4171 (c_emit_char): Use charset-specific methods to recognize
4172 characters with backslash escape forms, to decide which characters
4173 to print literally and which to print using numeric escape
4174 sequences, and to convert target characters to host characters
4176 * utils.c: #include "charset.h".
4177 (no_control_char_error): New function.
4178 (parse_escape): Use charset-specific methods to recognize
4179 backslash escapes, parse `control character' notation, and convert
4180 characters from the host character set to the target character set.
4181 * configure.in: Set the default host character set.
4182 Check where to find iconv, and what its argument types might be.
4183 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4184 * Makefile.in (SFILES): List charset.c.
4185 (COMMON_OBS): List charset.o.
4186 (charset.o): New rule.
4187 (charset_h): New header dependency variable.
4188 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4189 (LIBICONV): New variable, set by configure.
4190 (CLIBS): Include $(LIBICONV) here.
4191 * aclocal.m4, config.in, configure: Regenerated.
4193 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4195 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4198 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4200 * gdb_mbuild.sh: New file.
4202 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4204 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4206 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4208 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4209 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4210 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4211 valops.c, value.h: Revert previous change.
4213 2002-09-18 Michael Snyder <msnyder@redhat.com>
4215 Preliminary support for Objective-C:
4216 * defs.h (language_objc): New enum value.
4217 (puts_filtered_tabular): Declaration only, exported from utils.c.
4218 (skip_quoted): Delete, declared in completer.h.
4219 * c-exp.y: Include completer.h.
4222 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4223 New operator enum values.
4224 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4225 * language.c (binop_result_type): Handle language_objc case.
4226 (integral_type, character_type, string_type, boolean_type,
4227 structured_type, binop_type_check): Ditto.
4228 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4229 (struct objc_specific): Add to general_symbol_info.
4230 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4231 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4232 * parser-defs.h (struct objc_class_str): New struct type.
4233 (start_msglist, end_msglist, add_msglist): Declaration only,
4234 exported from objc-lang.c.
4235 * value.h (value_of_local, value_nsstring,
4236 call_function_by_hand_expecting_type): Exported from valops.c.
4237 * valops.c (find_function_addr): Export.
4238 (call_function_by_hand_expecting_type): New function.
4239 (value_of_local): New function.
4240 * symfile.c (init_filename_language_table): Add ".m" extension
4242 * utils.c (puts_filtered_tabular): New function.
4243 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4244 (set/show demangle): Extend help-string to refer to ObjC.
4245 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4246 * stabsread.c (symbol_reference_defined): Objective-C symbols
4247 may contain colons: make allowances when scanning stabs strings
4249 (objc_find_colon): New function.
4250 * printcmd.c (address_info): If language == objc then print
4251 "self" instead of "this".
4252 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4253 OP_NSSTRING, and OP_SELF.
4254 (prefixify_subexp): Ditto.
4255 * source.c (print_source_lines): Mention objc in comment.
4256 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4259 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4261 * complaints.h: Update copyright.
4262 (struct complaints): Declare.
4263 (struct complaint): Make `message' constant.
4264 (internal_complaint): Declare.
4265 (complaint): Declare.
4266 (complaint_root): Delete declaration.
4267 (symfile_complaints): Delete declaration.
4268 (struct complaints): Add opaque declaration.
4269 (clear_complaints): Add a complaints parameter.
4270 * complaints.c: Update copyright.
4271 (enum complaint_series): Define.
4272 (complaint_root): Delete.
4273 (struct complaints): Define.
4274 (complaint_sentinel, symfile_complaint_book): New variables.
4275 (symfile_explanations, symfile_complaints): New variables.
4277 (get_complaints): New function.
4278 (vcomplaint): New function.
4279 (complaint): New function.
4280 (internal_complaint): New function.
4281 (complain): Call vcomplain with symfile_complaint.
4282 (clear_complaints): Rewrite.
4283 (_initialize_complaints): Use add_setshow_command.
4284 * Makefile.in (complaints.o): Update dependencies.
4285 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4286 to call to clear_complaints.
4287 (new_symfile_objfile, reread_symbols): Ditto.
4288 (oldsyms_complaint): Delete.
4289 (empty_symtab_complaint, unknown_option_complaint): Delete.
4290 (free_named_symtabs): Use complaint instead of complain.
4292 2002-09-18 Michael Snyder <msnyder@redhat.com>
4294 Contributed by Apple Computer, Inc. Merged with current sources
4295 by Adam Fedor <fedor@doc.com> [cagney].
4297 * objc-lang.c: First clean-up round: comments, indentation.
4298 * objc-lang.h: Ditto.
4299 * objc-lang.y: Ditto.
4301 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4303 * maint.c (maintenance_internal_error): Print the parameter as the
4305 (maintenance_internal_warning): New function.
4306 (_initialize_maint_cmds): Add command `maint internal-warning'.
4308 * defs.h (internal_warning, internal_vwarning): Declare.
4309 * utils.c (struct internal_problem): Define.
4310 (internal_vproblem): New function.
4311 (internal_warning): New function.
4312 (internal_vwarning): New function.
4313 (internal_warning_problem, internal_error_problem): New variables.
4314 (internal_verror): Just call internal_vproblem.
4316 2002-09-18 Michael Snyder <msnyder@redhat.com>
4318 * objc-lang.c: New file, support for Objective-C.
4319 Preliminary check-in, not yet integrated into gdb.
4320 * objc-lang.h: New file.
4321 * objc-exp.y: New file.
4323 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4325 * infrun.c (signal_stop_update): Convert definition to ISO C.
4326 (signal_print_update): Ditto.
4327 (signal_pass_update): Ditto.
4328 * inflow.c (terminal_save_ours): Ditto.
4330 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4333 * config/djgpp/fnchange.lst: Handle name clashes between
4334 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4337 * i386-linux-tdep.h: Fix tipo.
4339 2002-09-18 Adam Fedor <fedor@gnu.org>
4341 * MAINTAINERS: Add myself to the Write After Approval list.
4343 2002-09-18 Jim Blandy <jimb@redhat.com>
4345 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4346 texthigh and textlow to reader-specific structs caused
4347 objfile_relocate to miss them. This is fixable, but the work that
4348 the change was supposed to prepare GDB for never got done anyway.
4350 2002-09-18 David Carlton <carlton@math.stanford.edu>
4352 * MAINTAINERS: Alphabetize Write After Approval list.
4354 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4357 * values.c (value_static_field): Call read_var_value.
4359 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4361 * valops.c (hand_function_call): Align the initial stack pointer
4362 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4363 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4365 * mips-tdep.c (mips_frame_align): New function.
4366 (mips_gdbarch_init): Set frame_align.
4367 * gdbarch.sh (FRAME_ALIGN): New method.
4368 * gdbarch.h, gdbarch.c: Re-generate.
4370 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4372 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4375 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4377 * NEWS: Mention that MIPS $fp behavior changed.
4378 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4379 reference to FP_REGNUM.
4380 (mipsnbsd_cannot_store_register): Ditto.
4381 * mips-linux-nat.c: Update copyright.
4382 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4383 (mips_linux_cannot_store_register): Ditto.
4384 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4385 * config/mips/tm-mips.h: Update copyright.
4386 (FP_REGNUM): Delete macro.
4387 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4388 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4389 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4390 (mips_r3041_reg_names, mips_r3051_reg_names)
4391 (mips_r3081_reg_names): Replace "fp" with "".
4394 2002-09-17 Theodore A. Roth <troth@verinet.com>
4396 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4397 generic_read_register_dummy() (PR gdb/703).
4398 (avr_push_return_address): #if 0 out unused vars.
4399 (avr_gdbarch_init): Enable use of avr_push_return_address().
4401 2002-09-17 Michael Snyder <msnyder@redhat.com>
4403 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4404 RTE will take care of it.
4406 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4408 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4409 invalid, return SP_REGNUM.
4411 2002-09-17 Michael Snyder <msnyder@redhat.com>
4413 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4414 point registers without sign extension.
4416 2002-09-17 Andrew Cagney <cagney@redhat.com>
4418 * blockframe.c (deprecated_read_register_dummy): Rename
4419 generic_read_register_dummy.
4420 * frame.c (frame_unwind_signed_register): New function.
4421 (frame_unwind_unsigned_register): New function.
4422 * frame.h (frame_unwind_signed_register): Declare.
4423 (frame_unwind_unsigned_register): Declare.
4424 (deprecated_read_register_dummy): Rename
4425 generic_read_register_dummy.
4427 * h8300-tdep.c (h8300_frame_chain): Update.
4428 (h8300_frame_saved_pc): Update.
4429 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4430 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4431 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4432 (s390_frame_chain): Update.
4433 * v850-tdep.c (v850_find_callers_reg): Update.
4434 (v850_frame_saved_pc): Update.
4435 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4436 (m32r_find_callers_reg): Update.
4437 (m32r_frame_saved_pc): Update.
4438 * sh-tdep.c (sh_find_callers_reg): Update.
4439 (sh64_get_saved_pr): Update.
4440 (sh_init_extra_frame_info): Update.
4441 (sh_init_extra_frame_info): Update.
4442 (sh64_init_extra_frame_info): Update.
4443 (sh64_init_extra_frame_info): Update.
4444 * mcore-tdep.c (mcore_find_callers_reg): Update.
4445 (mcore_frame_saved_pc): Update.
4446 (mcore_init_extra_frame_info): Update.
4447 * i386-tdep.c (i386_frame_saved_pc): Update.
4448 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4449 (ia64_init_extra_frame_info): Update.
4450 (ia64_init_extra_frame_info): Update.
4451 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4452 * cris-tdep.c (cris_init_extra_frame_info): Update.
4453 * avr-tdep.c (avr_frame_chain): Update.
4454 (avr_init_extra_frame_info): Update.
4455 (avr_frame_saved_pc): Update.
4456 * arm-tdep.c (arm_find_callers_reg): Update.
4457 (arm_init_extra_frame_info): Update.
4458 (arm_frame_saved_pc): Update.
4460 2002-09-17 Tom Tromey <tromey@redhat.com>
4462 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4465 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4467 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4468 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4470 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4473 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4475 * osfsolib.c: Remove file, replaced by solib-osf.c.
4476 * Makefile.in: Remove compilation rules for osfsolib.c.
4478 2002-09-16 David Carlton <carlton@math.stanford.edu>
4480 * cp-valprint.c (cp_print_class_method): Correct args to
4481 check_stub_method_group.
4483 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4485 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4486 `set architecture'. Unify naming convention of functions.
4487 (h8300_skip_prologue): Improve prologue analysis.
4488 (h8300_push_arguments): Rewritten to more closely match GCC's
4489 bizarre argument-passing behavior, along with the comment describing
4491 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4492 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4493 sim, remote-e7000.c, remote-hms.c and remote.c
4495 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4497 * i386-tdep.c (gdb_print_insn_i386): Removed.
4498 (i386_print_insn): New function.
4499 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4500 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4503 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4505 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4508 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4510 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4511 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4512 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4514 2002-09-13 Christopher Faylor <cgf@redhat.com>
4516 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4518 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4520 * gdbtypes.c (check_stub_method): Make static.
4521 (check_stub_method_group): New function.
4522 * gdbtypes.h: Update prototypes.
4523 * cp-support.c: New file.
4524 * cp-support.h: New file.
4526 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4527 (update_method_name_from_physname): New function.
4528 (read_member_functions): Correct method names for operators
4529 and v3 constructors/destructors. Separate v2 constructors and
4531 * Makefile.in (stabsread.o): Update dependencies.
4532 (SFILES): Add cp-support.c.
4533 (COMMON_OBS): Add cp-support.o.
4534 (cp_support_h, cp-support.o): Add.
4536 * cp-valprint.c (cp_print_class_method): Call
4537 check_stub_method_group instead of check_stub_method. Remove
4539 * p-valprint.c (pascal_object_print_class_method): Likewise.
4540 * valops.c (search_struct_method): Likewise.
4541 (find_method_list, value_struct_elt_for_reference): Likewise.
4543 2002-09-13 Andrew Cagney <cagney@redhat.com>
4545 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4546 * gdbarch.h, gdbarch.c: Regenerate.
4548 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4550 * frame.c (find_saved_register): Delete function.
4551 * frame.h (find_saved_register): Delete declaration.
4554 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4556 * mips-tdep.c (read_next_frame_reg): Re-hack using
4557 frame_register_unwind.
4559 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4561 * mips-tdep.c (mips_get_saved_register): Re-hack using
4562 frame_register_unwind.
4564 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4566 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4567 vector. Will be useful for Interix.
4568 * gdbarch.h, gdbarch.c: Regenerate.
4570 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4571 name of the malloc function by NAME_OF_MALLOC.
4573 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4575 * value.h (find_function_in_inferior): Add const keyword to
4576 one of the parameters. Allows us to invoke this function with
4578 * valops.c (find_function_in_inferior): Likewise.
4580 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4582 * exec.c (xfer_memory): Fix compilation warning with old versions
4584 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4586 2002-09-12 David Carlton <carlton@math.stanford.edu>
4588 * symtab.h: Run through gdb_indent.h.
4589 Add 2002 to Copyright year list.
4591 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4593 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4595 * MAINTAINERS: Add myself to write after approval list.
4597 2002-09-11 J. Brobecker <brobecker@gnat.com>
4599 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4601 2002-09-11 J. Brobecker <brobecker@gnat.com>
4603 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4606 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4608 * procfs.c (do_detach): Clear current signal, not just fault.
4609 Corrects problem with breakpoint trap signal leaking to detached
4612 2002-09-10 Michael Snyder <msnyder@redhat.com>
4614 * buildsym.c (finish_block): Protect against null pointer.
4616 2002-09-10 Andrew Cagney <cagney@redhat.com>
4618 * infcmd.c (default_print_registers_info): Send all output to
4619 ``file'' instead of ``gdb_stdout''.
4621 2002-09-10 Michael Snyder <msnyder@redhat.com>
4623 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4624 LONGEST, and use signed register read (addresses are sign-
4627 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4629 * event-loop.c (gdb_do_one_event): Make public.
4630 * event-loop.h (gdb_do_one_event): Declare.
4632 2002-09-10 Jeff Law <law@redhat.com>
4634 * infttrace.c (child_resume): Simplify and rework to avoid
4637 2002-09-09 Fred Fish <fnf@intrinsity.com>
4639 * printcmd.c (print_scalar_formatted): "len" is the number of
4640 target bytes, NOT the number of target bits.
4642 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4644 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4645 * top.c (init_main): Set rl_terminal_name.
4647 2002-09-08 Aidan Skinner <aidan@velvet.net>
4649 * ada-lang.c (ada_array_bound, ada_type_match,
4650 _initialize_ada_language): Fix K&R definitions.
4651 * ada-tasks.c (get_current_task): Fix K&R definitions.
4652 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4654 2002-09-07 Christopher Faylor <cgf@redhat.com>
4656 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4659 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4661 * i386-tdep.c (i386_register_virtual_type,
4662 i386_register_convertible, i386_register_convert_to_virtual,
4663 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4664 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4665 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4666 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4667 Don't set push_arguments twice.
4669 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4670 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4671 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4672 sigtramp_end to NULL.
4673 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4675 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4677 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4680 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4681 * gdbarch.h, gdbarch.c: Re-generate.
4682 * blockframe.c (find_pc_sect_partial_function): Convert to use
4683 SIGTRAMP_START_P predicate.
4685 2002-09-05 Michael Snyder <msnyder@redhat.com>
4687 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4688 generic_dummy_frame method and old method. Also distinguish
4689 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4690 (arm_extract_return_value): Use new regcache method.
4692 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4693 adjustment that doesn't conform to the ABI.
4694 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4695 saved regcache, not from current regcache.
4697 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4699 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4702 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4704 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4705 if arm_apcs_32 is false.
4707 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4709 GDB 5.3 branch created.
4711 2002-09-03 Theodore A. Roth <troth@verinet.com>
4713 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4714 generic_unwind_get_saved_register.
4716 2002-09-03 David Carlton <carlton@math.stanford.edu>
4718 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4719 argument (PR gdb/653). Update call to smash_to_method_type.
4720 (read_structure_scope): Update call to dwarf2_add_member_fn.
4722 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4724 * x86-64-linux-tdep.c: Include gdb_string.h
4725 * x86-64-linux-nat.c: Ditto.
4727 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4729 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4730 when YYDEBUG is set to 1.
4731 * c-exp.y: Likewise.
4732 * f-exp.y: Likewise.
4733 * jv-exp.y: Likewise.
4734 * m2-exp.y: Likewise.
4735 * p-exp.y: Likewise.
4737 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4739 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4741 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4742 solib_svr4_fetch_link_map_offsets to
4743 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4744 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4745 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4746 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4747 solib-svr4.o, and solib-legacy.o.
4748 * config/i386/tm-nbsd.h: Include solib.h.
4750 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4752 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4753 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4754 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4755 comment noting that this needs its own target configuration.
4756 * config/i386/nbsd.mt: New file.
4757 * config/i386/nbsdaout.mt: Remove.
4758 * config/i386/nbsdelf.mt: Ditto.
4759 * config/i386/tm-nbsdaout.h: Ditto.
4761 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4763 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4764 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4765 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4767 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4768 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4769 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4771 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4773 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4774 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4775 * i386-tdep.h (i386bsd_init_abi): New prototype.
4776 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4777 function declaration.
4778 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4779 for NetBSD-a.out or NetBSD-ELF.
4780 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4781 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4782 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4783 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4785 (i386nbsd_pc_in_sigtramp): New function.
4786 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4787 i386nbsd_pc_in_sigtramp.
4788 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4789 and i386nbsdelf_init_abi OS ABI handlers.
4790 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4791 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4793 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4795 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4796 registers if the target really has them.
4798 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4800 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4803 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4805 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4807 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4808 (alphanbsd_skip_sigtramp_frame): New functions.
4809 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4810 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4811 to alphanbsd_sigcontext_addr.
4813 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4815 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4817 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4818 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4819 nbsd_pc_in_sigtramp.
4820 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4821 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4822 * nbsd-tdep.c: Include gdb_string.h.
4823 (nbsd_pc_in_sigtramp): New function.
4824 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4825 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4826 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4827 ppcnbsd_pc_in_sigtramp.
4828 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4829 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4830 shnbsd_pc_in_sigtramp.
4831 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4832 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4833 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4835 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4837 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4838 watchpoints to NULL.
4839 (insert_breakpoints): set val field of watchpoints if NULL.
4842 2002-08-29 Jim Blandy <jimb@redhat.com>
4844 * symtab.c (lookup_symbol_aux): In the cases where we find a
4845 minimal symbol of an appropriate name and use its address to
4846 select a symtab to read and search, use `name' (as passed to us)
4847 as the demangled name when searching the symtab's global and
4848 static blocks, not the minsym's name.
4850 2002-08-29 Keith Seitz <keiths@redhat.com>
4852 * stack.c (print_frame_info_base): Always set current_source_symtab
4853 and current_source_line.
4855 2002-08-29 Donn Terry <donnte@microsoft.com>
4857 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4859 2002-08-28 Keith Seitz <keiths@redhat.com>
4861 * stack.c (select_frame): Add FIXME concerning selected-frame
4863 (select_frame_command): Send selected-frame-level-changed
4864 event notification, but only if the level actually changed.
4865 (up_silently_base): Add selected-frame-level-changed event
4867 (down_silently_base): Likewise.
4869 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4871 * Makefile.in: Update dependencies for all gdb/*.c files.
4873 2002-08-27 Tom Tromey <tromey@redhat.com>
4875 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4876 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4877 Update dependencies.
4878 * i387-tdep.c: Include gdb_string.h.
4879 * osabi.c: Likewise.
4880 * i386-linux-nat.c: Likewise.
4881 * lin-lwp.c: Likewise.
4882 * ax-gdb.c: Likewise.
4883 * signals/signals.c: Likewise.
4884 * jv-valprint.c: Likewise.
4885 * p-lang.c: Likewise.
4886 * c-valprint.c: Likewise.
4887 * cp-abi.c: Likewise.
4889 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4891 * cli/cli-script.h (copy_command_lines): Export.
4892 * breakpoint.c: Include cli/cli-script.h.
4893 * Makefile.in (breakpoint.o): Update dependencies.
4895 2002-08-26 Michael Snyder <msnyder@redhat.com>
4897 * breakpoint.c (insert_breakpoints): Protect all references
4898 to 'process_warning'. Shorten long lines.
4900 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4902 * cli/cli-script.c (copy_command_lines): New function.
4903 * defs.h (copy_command_lines): Export.
4904 * testsuite/gdb.base/commands.exp: New tests for commands
4905 attached to a temporary breakpoint, and for commands that
4906 delete the breakpoint they are attached to.
4908 2002-08-26 Michael Snyder <msnyder@redhat.com>
4910 * breakpoint.c (bpstat_stop_status): Instead of copying the
4911 pointer to the breakpoint commands struct, make a new copy
4912 of the struct and point to that.
4913 (bpstat_clear): Free the commands struct.
4914 (bpstat_clear_actions): Free the commands struct.
4915 (bpstat_do_actions): Free the command actions. Also execute
4916 the local cleanups, instead of deleting them.
4917 (delete_breakpoint): Leave the commands field of the bpstat
4918 chain alone -- it will be freed later.
4920 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4922 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4923 deleted in 2002-08-20 commit. This function is still used by
4926 2002-08-26 Keith Seitz <keiths@redhat.com>
4928 * gdb-events.sh: Add selected-frame-level-changed event.
4929 * gdb-events.c: Regenerated.
4930 * gdb-events.h: Regenerated.
4932 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4935 * inflow.c (terminal_save_ours): New function to save terminal
4937 * inferior.h (terminal_save_ours): Declare.
4938 * target.c (debug_to_terminal_save_ours): New function.
4939 (cleanup_target): Defaults to_terminal_save_ours.
4940 (update_current_target): Inherit to_terminal_save_ours.
4941 (setup_target_debug): Set to_terminal_save_ours.
4942 * target.h (target_terminal_save_ours): New to save terminal settings.
4943 (target_ops): New member to_terminal_save_ours.
4944 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4945 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4946 * inftarg.c (init_child_ops): Likewise.
4947 * m3-nat.c (init_m3_ops): Likewise.
4948 * procfs.c (init_procfs_ops): Likewise.
4949 * wince.c (init_child_ops): Likewise.
4950 * win32-nat.c (init_child_ops): Likewise.
4951 * sol-thread.c (init_sol_thread_ops): Likewise.
4953 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4955 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4956 use regcache_* functions.
4957 (i386_gdbarch_init): Set store_return_value instead of
4958 deprecated_store_return_value.
4960 * regcache.c (regcache_raw_write_signed,
4961 regcache_raw_write_unsigned): New functions.
4962 * regcache.h (regcache_raw_write_signed,
4963 regcache_raw_write_unsigned): New prototypes.
4965 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4967 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4968 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4969 source file dependencies. Cleanup corresponding generator rules.
4971 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4973 * regcache.h (register_offset_hack): Declare.
4974 (regcache_cooked_read_using_offset_hack): Declare.
4975 (regcache_cooked_write_using_offset_hack): Declare.
4977 * regcache.c (register_offset_hack): New function.
4978 (regcache_cooked_read_using_offset_hack): New function.
4979 (regcache_cooked_write_using_offset_hack): New function.
4980 (regcache_dump): Check that the registers, according to their
4981 offset, are packed hard against each other.
4982 (cooked_xfer_using_offset_hack): New function.
4984 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4986 * regcache.c (struct regcache_descr): Add field register_type.
4987 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4989 (init_regcache_descr): Initialize register_type. Pass the descr
4990 to init_legacy_regcache_descr. Use register_type instead of
4991 REGISTER_VIRTUAL_TYPE.
4992 (register_type): New function.
4993 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4994 * regcache.h (register_type): Declare.
4996 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4998 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4999 instead of deprecated_store_return_value. Fix fallout from
5000 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5002 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5004 * regcache.c (max_register_size): New function.
5005 (init_legacy_regcache_descr): Ensure that max_register_size is
5006 large enough for REGISTER_VIRTUAL_SIZE.
5007 * regcache.h (max_register_size): Declare.
5009 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5011 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5013 (e500_extract_return_value): Change type of valbuf pointer to
5016 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5018 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5021 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5022 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5023 long long) to prevent compiler warning on 64-bit systems.
5025 2002-08-23 Andrew Cagney <cagney@redhat.com>
5027 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5028 (DEPRECATED_STORE_RETURN_VALUE): New method.
5029 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5030 * gdbarch.h, gdbarch.c: Re-generate.
5032 * values.c (set_return_value): Pass current_regcache to
5034 * arch-utils.h (legacy_store_return_value): Declare.
5035 * arch-utils.c (legacy_store_return_value): New function.
5036 (legacy_extract_return_value): Update parameters.
5038 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5040 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5041 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5042 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5043 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5044 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5045 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5046 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5047 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5048 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5049 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5051 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5052 * i386-tdep.c (i386_extract_return_value): Update.
5053 * arch-utils.c (legacy_extract_return_value): Update.
5054 * frv-tdep.c (frv_gdbarch_init): Update.
5055 * cris-tdep.c (cris_gdbarch_init): Update.
5056 * d10v-tdep.c (d10v_gdbarch_init): Update.
5057 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5058 * m68k-tdep.c (m68k_gdbarch_init): Update.
5059 * mcore-tdep.c (mcore_gdbarch_init): Update.
5060 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5061 * s390-tdep.c (s390_gdbarch_init): Update.
5062 * sparc-tdep.c (sparc_gdbarch_init): Update.
5063 * sh-tdep.c (sh_gdbarch_init): Update.
5064 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5065 * v850-tdep.c (v850_gdbarch_init): Update.
5066 * avr-tdep.c (avr_gdbarch_init): Update.
5067 * ia64-tdep.c (ia64_gdbarch_init): Update.
5068 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5069 * vax-tdep.c (vax_gdbarch_init): Update.
5070 * alpha-tdep.c (alpha_gdbarch_init): Update.
5071 * arm-tdep.c (arm_gdbarch_init): Update.
5072 * mips-tdep.c (mips_gdbarch_init): Update.
5073 * i386-tdep.c (i386_gdbarch_init): Update.
5075 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5077 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5078 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5080 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5082 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5085 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5087 * infrun.c (handle_inferior_event): Move a comment outside of a
5088 function call, in order to avoid indent reformatting this part
5089 of the code in an unreadable way.
5091 2002-08-23 Grace Sainsbury <graces@redhat.com>
5093 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5094 when breakpoints fail. Move general breakpoint error messages to
5096 * breakpoint.c (insert_breakpoints): Change warnings when
5097 breakpoints are nto inserted to specify the type. Remove call to
5098 memory_error when hardware breakpoints can't be inserted. Remove
5099 multiple calls to warning so all messages are sent to the user at
5101 (delete_breakpoints): Make insert error messsages more explicit.
5103 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5105 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5106 gdbserver/ChangeLog.
5108 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5110 * i386-tdep.c: Include "objfiles.h".
5111 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5112 skip_trampoline_code.
5113 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5114 (CPLUS_MARKER): Define to '.'.
5116 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5118 (linux_corefile_thread_callback): Increase args->num_notes.
5119 (linux_make_note_section): Initialize thread_args.num_notes, and
5120 use it to determine whether notes for any threads were created.
5122 2002-08-23 Donn Terry <donnte@microsoft.com>
5124 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5125 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5127 (write_with_trace): Conditionalize out the switch branch handling
5128 PCSHOLD if the corresponding macro is not defined. Likewise for
5129 PRSABORT and PRSTOP.
5130 This change will be needed by the Interix port.
5132 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5134 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5135 write_register wherever possible instead of manipulating the
5136 register bytes directly.
5137 Assign VALUE_CONTENTS to a variable and use that.
5138 The GPR numbers are now dependent on the architecture.
5140 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5142 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5144 (skip_prologue): Add support for BookE/e500 instructions.
5145 (e500_extract_return_value): New function.
5146 (frame_get_saved_regs): Add support for saving ev registers and
5148 (e500_store_return_value): New function.
5149 (rs6000_gdbarch_init): Move up default intializations of
5150 deprecated_extract_return_value and store_return_value. Overwrite
5151 init of store_return_value with e500 specific version.
5152 Set extract_return_value for e500.
5154 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5156 * blockframe.c (generic_call_dummy_register_unwind): Use
5157 regcache_cooked_read to catch cases in which the variable is
5158 stored in a pseudo register.
5160 2002-08-22 Andrew Cagney <cagney@redhat.com>
5162 * NEWS: Mention that the i960 has been made obsolete.
5163 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5165 (remote-nrom.o): Obsolete target.
5166 (remote-nindy.o, i960-tdep.o): Ditto.
5167 * remote-nrom.c: Make file obsolete.
5168 * remote-nindy.c, remote-vx960.c: Ditto.
5169 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5170 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5171 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5172 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5173 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5174 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5175 i960-*-vxworks* obsolete.
5176 * MAINTAINERS: Note that the i960 is obsolete.
5178 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5180 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5181 detach to allow reinitialization.
5183 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5185 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5188 2002-08-22 Jim Blandy <jimb@redhat.com>
5190 * coffread.c (coff_symfile_read): Don't try to read the line
5191 number table from disk if the image file doesn't have a symbol
5192 table; we'll never actually look at the info anyway, and Windows
5193 ships DLL's with bogus file offsets for the line number data.
5195 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5197 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5200 2002-08-21 Michael Snyder <msnyder@redhat.com>
5202 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5203 (MSYMBOL_SIZE): Replace macro with function.
5204 (DEFAULT_MIPS_TYPE): Delete unused macro.
5205 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5206 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5208 2002-08-21 Jim Blandy <jimb@redhat.com>
5210 * valops.c (value_cast): Simplify and correct logic for doing a
5211 static cast from a pointer to a base class to a pointer to a
5214 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5216 * infcmd.c (default_print_registers_info): Replace
5218 (registers_info): Use gdbarch_print_registers_info instead of
5220 * inferior.h (default_print_registers_info): Replace
5222 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5223 (DO_REGISTERS_INFO): Change to a predicate function.
5224 * gdbarch.h, gdbarch.c: Regenerate.
5226 2002-08-21 Keith Seitz <keiths@redhat.com>
5228 * gdb-events.sh: Add target-changed event.
5229 * gdb-events.c: Regenerated.
5230 * gdb-events.c: Regenerated.
5231 * valops.c (value_assign): Add target-changed event notification
5232 to inlval_register, lval_memory, and lval_reg_frame_relative.
5234 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5236 * NEWS: Add an entry regarding the improvement of the next/step
5237 operation on Alpha Tru64 multi-processor machines.
5239 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5241 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5243 * Makefile.in: Update all _h macro definitions.
5244 * Makefile.in (install-gdbtk): Move to install section.
5245 (rdi-share/libangsd.a): Move to end of file.
5247 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5249 * frame.c (frame_register_unwind): When a register, set addrp to
5250 the register's byte.
5252 2002-08-20 Michael Snyder <msnyder@redhat.com>
5254 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5255 used locally, so move them from the target machine header to here.
5256 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5257 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5259 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5261 2002-08-20 Andrew Cagney <cagney@redhat.com>
5263 * NEWS: Mention that the Apollo line was made obsolete.
5264 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5265 m68*-hp-hpux* obsolete.
5266 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5267 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5268 * buildsym.c (make_blockvector): Make static.
5269 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5270 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5271 (ALLDEPFILES): Remove dstread.c.
5272 (dstread.o): Obsolete make rule.
5273 * dstread.c: Makefile obsolete.
5275 * config/m68k/hp300hpux.mt: Ditto.
5276 * config/m68k/hp300hpux.mh: Ditto.
5277 * config/m68k/hp300bsd.mt: Ditto.
5278 * config/m68k/hp300bsd.mh: Ditto.
5279 * config/m68k/apollo68b.mt: Ditto.
5280 * config/m68k/apollo68v.mh: Ditto.
5281 * config/m68k/apollo68b.mh: Ditto.
5283 2002-08-20 Michael Snyder <msnyder@redhat.com>
5285 * mips-tdep.c (mips_in_return_stub): Make static.
5286 (mips_gdbarch_init): Set in_solib_return_trampoline.
5287 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5289 2002-08-20 Michael Snyder <msnyder@redhat.com>
5291 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5292 * gdbarch.c, gdbarch.h: Regenerate.
5293 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5295 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5297 2002-08-20 Michael Snyder <msnyder@redhat.com>
5299 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5300 (mips_gdbarch_init): Set skip_trampoline_code,
5301 in_solib_call_trampoline.
5302 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5303 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5305 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5307 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5309 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5310 vector type for ev registers.
5311 (e500_pseudo_register_read): New function.
5312 (e500_pseudo_register_write): New function.
5313 (e500_dwarf2_reg_to_regnum): New function.
5314 (PPC_UISA_NOFP_SPRS): New macro.
5315 (PPC_EV_REGS): New macro.
5316 (PPC_GPRS_PSEUDO_REGS): New macro.
5317 (registers_e500): New register set for e500.
5318 (variants): Add e500 variant.
5319 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5320 before setting architectural dependent variations. Initialize ev
5321 registers numbers. Add case for e500 architecture. Set the
5322 number of pseudo registers.
5324 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5326 * rs6000-tdep.c: Clean up comments.
5328 2002-08-20 Andrew Cagney <cagney@redhat.com>
5330 * h8300-tdep.c: Re-indent file.
5332 2002-08-20 Jim Blandy <jimb@redhat.com>
5334 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5337 2002-08-20 Keith Seitz <keiths@redhat.com>
5339 * breakpoints.c (watch_command_1): Use internal breakpoint
5340 when setting a watchpoint_scope breakpoint.
5342 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5344 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5345 (build_builtin_type_vec64i): Ditto.
5346 (build_builtin_type_vec128): Ditto.
5347 (build_builtin_type_vec128i): Ditto.
5349 2002-08-19 Michael Snyder <msnyder@redhat.com>
5351 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5352 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5353 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5354 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5355 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5356 CALL_DUMMY_ADDRESS): Delete.
5357 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5358 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5359 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5360 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5361 push_return_address.
5362 (mips_register_raw_size, mips_eabi_use_struct_convention,
5363 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5364 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5365 mips_init_extra_frame_info, mips_eabi_push_arguments,
5366 mips_n32n64_push_arguments, mips_push_return_address,
5367 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5368 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5370 2002-08-19 Michael Snyder <msnyder@redhat.com>
5372 * mips-tdep.c (mips_frame_num_args): New function.
5373 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5374 frame_saved_pc, frame_args_address, frame_locals_address,
5375 frame_num_args, and frame_args_skip.
5376 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5377 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5378 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5379 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5381 2002-08-20 Michael Snyder <msnyder@redhat.com>
5383 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5384 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5385 * mips-tdep.c (mips_store_struct_return): New function.
5386 (mips_extract_struct_value_address): New function.
5387 (mips_gdbarch_init): Set store_struct_return and
5388 extract_struct_value_address.
5390 2002-08-20 David Carlton <carlton@math.stanford.edu>
5392 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5393 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5394 (read_file_scope): Check that line_header is nonzero before
5395 decoding macro information.
5397 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5399 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5400 flag the general-purpose registers as floating-point on targets
5401 that don't support the floating-point registers.
5403 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5405 * rs6000-tdep.c (altivec_register_p): Delete.
5406 (rs6000_do_altivec_registers): Delete.
5407 (rs6000_altivec_registers_info): Delete.
5408 (rs6000_do_registers_info): Delete.
5409 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5410 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5412 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5414 * infcmd.c (do_registers_info): Print vector registers in hex
5416 (print_vector_info): Check that printing registers
5418 (print_float_info): Ditto.
5420 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5422 * mips-tdep.c (mips_gdbarch_init): Update.
5423 (mips_o32_extract_return_value): Rewrite.
5424 (mips_o32_store_return_value): Rewrite.
5425 (mips_o32_xfer_return_value): New function.
5426 (mips_xfer_register): Tweak debug print message. Allow for
5427 buf_offset when dumping the value transfered.
5429 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5431 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5432 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5433 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5434 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5435 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5437 2002-08-14 Michael Snyder <msnyder@redhat.com>
5439 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5441 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5443 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5445 (P): New macro to define a register as a pseudo register.
5446 (R, R4, R8, R16, FR32, R64, R0): Updated.
5447 (struct variant): Add new fields for number of pseudo registers
5448 and number of total registers.
5449 (tot_num_registers): New macro replacing....
5450 (num_registers): ...deleted macro.
5451 (num_registers): New function.
5452 (num_pseudo_registers): New function.
5453 (variants): Update all variants to intialize new fields correctly.
5454 Postpone initialization of number of pseudo regs and real regs.
5455 (init_variants): New function.
5456 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5459 2002-08-19 David Carlton <carlton@math.stanford.edu>
5461 * valops.c (search_struct_field): Change error message to treat
5462 return value of 0 from value_static_field as meaning that field is
5464 (value_struct_elt_for_reference): Ditto.
5465 * values.c (value_static_field): Treat an unresolved location the
5466 same as a nonexistent symbol. Fix PR gdb/635.
5467 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5468 enclosed. Fix PR gdb/574.
5469 * MAINTAINERS: Add self to Write After Approval list.
5471 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5473 * mips-tdep.c (mips_xfer_register): New function.
5474 (mips_n32n64_extract_return_value): Rewrite.
5475 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5476 instead of deprecated_extract_return_value.
5478 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5480 * rs6000-tdep.c (TDEP): Delete macro.
5481 (branch_dest): Replace use of TDEP macro with its body.
5482 (rs6000_pop_frame): Ditto.
5483 (rs6000_push_arguments): Ditto.
5484 (rs6000_skip_trampoline_code): Ditto.
5485 (rs6000_frame_saved_pc): Ditto.
5486 (rs6000_frame_chain): Ditto.
5487 (rs6000_register_name): Ditto.
5488 (rs6000_register_byte): Ditto.
5489 (rs6000_register_raw_size): Ditto.
5490 (rs6000_register_virtual_type): Ditto.
5491 (rs6000_register_convertible): Ditto.
5492 (rs6000_convert_from_func_ptr_addr): Ditto.
5494 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5496 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5498 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5499 MIPS_LINUX_JB_ELEMENT_SIZE.
5500 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5501 for MAX_REGISTER_RAW_SIZE arrays.
5502 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5503 MIPS_LINUX_JB_ELEMENT_SIZE.
5505 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5507 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5509 2002-08-19 Aidan Skinner <aidan@velvet.net>
5511 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5512 ada-valprint.c ada-tasks.c.
5513 (YYFILES): Add ada-exp.y.
5514 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5515 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5516 (ada-exp.tab.o): New target.
5518 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5520 * regcache.c (regcache_xfer_part): New function.
5521 (regcache_raw_read_part): New function.
5522 (regcache_raw_write_part): New function.
5523 (regcache_cooked_read_part): New function.
5524 (regcache_cooked_write_part): New function.
5525 * regcache.h (regcache_raw_read_part): Declare.
5526 (regcache_raw_write_part): Declare.
5527 (regcache_cooked_read_part): Declare.
5528 (regcache_cooked_write_part): Declare.
5530 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5532 * remote.c (remote_open_1): Add async_p.
5533 (remote_async_open_1): Delete.
5534 (open_remote_target): Delete.
5535 (remote_open, extended_remote_open): Update calls to remote_open_1.
5536 (remote_async_open, extended_remote_async_open): Call
5537 remote_open_1 instead of remote_async_open_1.
5539 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5541 * blockframe.c: Fix a few coding standard violations.
5543 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5545 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5547 * config/i386/tm-i386sco5.h: ... here. File removed.
5548 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5550 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5551 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5552 (TM_FILE): Set to tm-i386.h.
5553 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5554 * config/i386/tm-i386v.h: Remove file.
5555 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5556 instead of "i386/tm-i386v.h".
5557 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5558 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5560 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5561 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5564 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5566 * config/i386/nm-i386v.h: Add protection against
5568 (i386_register_u_addr): Remove prototype.
5569 (register_u_addr): New prototype.
5570 (REGISTER_U_ADDR): Redefine accordingly.
5571 * i386v-nat.c: Improve several comments.
5572 (i386_register_u_addr): Change signature and rename to
5573 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5576 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5578 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5579 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5580 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5581 deprecated_extract_return_value.
5582 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5583 rename mips_o32o64_push_arguments.
5584 (mips_gdbarch_init): Update.
5585 (mips_extract_return_value): Delete.
5586 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5587 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5588 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5589 (mips_n32n64_extract_return_value): Clone
5590 mips_extract_return_value.
5591 (mips_store_return_value): Delete.
5592 (mips_o32_store_return_value): Clone mips_store_return_value.
5593 (mips_o64_store_return_value): Clone mips_store_return_value.
5594 (mips_eabi_store_return_value): Clone mips_store_return_value.
5595 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5597 2002-08-18 Aidan Skinner <aidan@velvet.net>
5599 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5600 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5602 2002-08-18 Aidan Skinner <aidan@velvet.net>
5604 * ada-lang.c: Run through gdb_indent.sh.
5605 * ada-lang.h: Run through gdb_indent.sh.
5606 * ada-tasks.c: Run through gdb_indent.sh.
5607 * ada-typeprint.c: Run through gdb_indent.sh.
5608 * ada-valprint.c: Run through gdb_indent.sh.
5610 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5612 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5615 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5617 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5619 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5620 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5622 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5623 write_register_gen instead of write_register_bytes.
5625 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5626 i[3456]-*-osf1mk* configurations have been made obsolete.
5627 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5628 i[3456]86-*-osf1mk* hosts obsolete.
5629 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5631 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5632 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5633 config/i386/i386m3.mt, config/i386/nm-m3.h,
5634 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5635 config/i386/i386mk.mh, config/i386/i386mk.mt,
5636 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5638 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5639 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5640 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5642 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5644 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5645 (hppa_value_returned_from_stack): Declare.
5646 (hppa_extract_return_value): Declare.
5647 * config/pa/hppa.mt: New file.
5648 * configure.tgt: Recognize hppa*-*-*.
5649 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5651 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5653 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5656 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5658 * top.c (gdb_rl_operate_and_get_next): Make sure
5659 operate-and-get-next functions correctly even when the history
5660 list is completely filled.
5662 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5664 * MAINTAINERS (Target Instruction Set Architectures): Rename
5665 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5666 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5667 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5668 already listed under Host/Native.
5670 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5671 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5674 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5676 * config/ia64/ia64.mt: New file.
5677 * config/alpha/alpha.mt: New file.
5678 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5679 ia64-linux-gnu. Mention that ia64-elf is broken.
5680 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5682 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5684 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5685 generic_func_frame_valid instead of func_frame_valid.
5687 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5689 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5690 procfs appears to be broken when debugging on multi-processor
5691 machines. So enable software single stepping in order to avoid
5692 using the procfs interface to do next/step operations, using
5693 internal breakpoints instead.
5695 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5696 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5697 make this pc address equal to the value it would have if the
5698 system stepping capability was used. Also set a new flag used
5699 to ensure that we don't readjust the PC one more time later.
5701 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5702 address by DECR_PC_AFTER_BREAK when software single step is
5703 in use for this architecture, as this has already been taken
5704 care of in handle_inferior_event().
5706 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5708 * infrun.c (handle_inferior_event): Minor reformatting, to make
5709 a rather long condition expression easier to read.
5711 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5713 * Makefile.in (gdbtk.o): Move to end of file.
5714 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5715 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5716 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5717 (gdbtk-wrapper.o, gdbres.o): Ditto.
5719 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5721 * Makefile.in (copying.o): Separate out compile rule.
5722 (hpux-thread.o, procfs.o, signals.o): Ditto.
5723 (v850ice.o, z8k-tdep.o): Ditto.
5724 (tui-file.o): Move to TUI section.
5725 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5726 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5728 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5730 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5731 skip_trampoline_code, for better namespace-proofing.
5733 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5735 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5737 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5739 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5741 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5742 signal, check whether we hit a breakpoint before checking for a
5743 single step breakpoint. Otherwise, GDB fails to notice that a
5744 breakpoint has been hit when stepping onto a breakpoint.
5746 2002-08-16 Keith Seitz <keiths@redhat.com>
5748 * gdb-events.sh (clear_gdb_event_hooks): New function.
5749 * gdb-events.c: Regenerate.
5750 * gdb-events.h: Regenerate.
5752 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5754 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5755 not_a_sw_breakpoint.
5756 * breakpoint.h (bpstat_stop_status): Add parameter names.
5758 2002-08-16 Grace Sainsbury <graces@redhat.com>
5760 * remote.c (remote_insert_hw_breakpoint)
5761 (remote_remove_hw_breakpoint): Fix calculation of length field
5764 2002-08-15 Michael Snyder <msnyder@redhat.com>
5766 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5767 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5768 (supply_fpregset): Ditto.
5770 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5771 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5772 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5773 (TARGET_READ_SP): Delete.
5774 (DO_REGISTERS_INFO): Delete.
5775 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5777 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5778 from macros to functions.
5780 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5781 (mips_register_convertible, mips_register_convert_to_virtual,
5782 mips_register_convert_to_raw): Make static.
5783 (mips_read_sp): New function.
5784 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5785 (mips_do_registers_info): Make static.
5786 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5787 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5788 (mips_register_convert_from_type, mips_register_convert_to_type):
5790 (mips_gdbarch_init): Set up function_start_offset,
5791 register_virtual_size, pc_in_sigtramp.
5793 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5795 * infcmd.c (vector_info): New function.
5796 (_initialize_infcmd): Add command "info vector".
5797 (print_vector_info): New function.
5799 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5800 * gdbarch.h, gdbarch.c: Regenerate.
5802 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5804 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5805 ``print_all''. Only print vector registers when ``print_all''.
5807 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5809 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5810 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5812 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5813 Add `args' parameter.
5814 * gdbarch.h, gdbarch.c: Regenerate.
5816 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5818 * infcmd.c (float_info): Call print_float_info.
5819 (print_float_info): New function. By default, print the
5820 floating-point registers.
5822 * arch-utils.h (default_print_float_info): Delete declaration.
5823 * arch-utils.c (default_print_float_info): Delete function.
5825 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5827 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5830 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5833 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5834 * configure.host: Make i[3456]86-*-aix host obsolete.
5835 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5836 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5837 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5838 config/i386/xm-i386aix.h: Make files obsolete.
5839 * i386aix-nat.c: Make file obsolete.
5840 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5841 (i386aix-nat.o): Make target obsolete.
5843 * config/i386/nm-gnu.h: Removed.
5844 * config/i386/nm-i386gnu.h: New file.
5845 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5846 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5848 * config/i386/tm-i386gnu.h: ... here. Removed.
5849 * config/i386/xm-i386gnu.h: Removed.
5850 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5851 (NAT_FILE): Set to nm-i386gnu.h.
5852 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5853 * i386-tdep.c: New file.
5854 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5855 (i386gnu-tdep.o): Specify dependencies.
5857 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5859 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5860 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5861 Adjust a few comments to reflect reality a bit closer.
5862 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5863 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5864 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5865 target_insert_watchpoint, target_remove_watchpoint):
5867 * config/i386/nm-i386sco5.h: ... here.
5868 (kernel_u_size): Add prototype. Improve a few comments and add
5869 protection against multiple inclusion.
5871 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5874 * uw-thread.c (SP_ARG0): Define if not already defined.
5875 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5877 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5879 * config/i386/tm-i386.h: Don't include "regcache.h".
5881 * i387-tdep.h (i387_print_float_info): New prototype.
5882 * i387-tdep.c (print_i387_value, print_i387_ext,
5883 print_i387_status_word, print_i387_control_word): Add `struct
5884 ui_file *' argument and use it for output.
5885 (i387_print_float_info): Renamed from i387_float_info. Add
5886 `struct gdbarch *' and `struct ui_file *' arguments and use the
5888 * i386-tdep.c: Include "i387-tdep.h".
5889 (i386_gdbarch_init): Set print_float_info.
5890 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5891 (FLOAT_INFO): Remove define.
5893 2002-08-13 Michael Snyder <msnyder@redhat.com>
5895 * mips-tdep.c (mips_push_arguments): Rename to
5896 mips_eabi_push_arguments, and tune for EABI.
5897 (MIPS_REGS_HAVE_HOME_P): Delete.
5898 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5899 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5900 Delete references to mips_regs_have_home_p.
5902 2002-08-14 Keith Seitz <keiths@redhat.com>
5904 * Makefile.in (install-gdbtk): Create insight plugin directory.
5905 Install plugins.tcl file.
5907 2002-08-14 Keith Seitz <keiths@redhat.com>
5909 * configure.in: Move SUBDIRS to near top of the file so that
5910 --enable options may add things to it.
5911 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5912 * configure: Regenerate.
5914 2002-08-13 Michael Snyder <msnyder@redhat.com>
5916 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5917 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5918 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5920 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5922 * vax-tdep.c (vax_get_saved_register): Delete function.
5923 (vax_gdbarch_init): Update.
5924 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5925 (ns32k_gdbarch_init): Update.
5926 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5927 (alpha_gdbarch_init): Update.
5929 2002-08-13 Andrew Cagney <cagney@redhat.com>
5931 * regcache.c (init_regcache_descr): Overallocate the
5932 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5933 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5935 (set_register_cached): Add range checking assertions. Use
5938 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5940 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5941 numbers for MMX registers.
5943 2002-08-13 Andrew Cagney <cagney@redhat.com>
5945 * i386-tdep.c (i386_gdbarch_init): Use
5946 generic_unwind_get_saved_register.
5948 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5950 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5951 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5953 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5954 Delete. Add comment regarding this now-deleted target method.
5956 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5958 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5959 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5960 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5961 real PC and the page number (if it's within the memory bank window).
5962 (m68hc11_pseudo_register_write): Likewise when saving.
5963 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5964 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5965 (m68hc11_register_raw_size): And use 32-bit for it.
5966 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5967 16K memory bank is used by the prog; also use the virtual pc.
5969 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5971 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5972 (m68hc11_gdbarch_init): Install it in gdbarch.
5973 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5974 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5975 (MSYMBOL_SIZE): New for documentation.
5976 (insn_return_kind): Enum to specify how a function returns.
5977 (frame_extra_info): Cleanup and record the return mode.
5978 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5979 register in address computation.
5980 (m68hc11_get_return_insn): New to obtain the return instruction used
5982 (m68hc11_frame_init_saved_regs): Take into account the return
5983 instruction used by the function for far and interrupt functions.
5984 (m68hc11_init_extra_frame_info): Take into account page register.
5985 (m68hc11_frame_args_address): Adjust according to the return mode.
5986 (show_regs): Print page register only when it's used.
5988 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5990 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5991 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5992 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5994 (m68hc11_register_raw_size): Likewise.
5996 2002-08-13 Andrew Cagney <cagney@redhat.com>
5998 * i386-tdep.c (i386_register_name): Handle mmx registers.
5999 (mmx_regnum_p): New function.
6000 (i386_mmx_names): New array.
6001 (mmx_num_regs): New variable.
6002 (i386_pseudo_register_read): New function.
6003 (i386_pseudo_register_write): New function.
6004 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6006 * regcache.c (regcache_raw_read_unsigned): New function.
6007 (regcache_raw_read_signed): New function.
6008 * regcache.h (regcache_raw_read_unsigned): Declare.
6009 (regcache_raw_read_signed): Declare.
6011 2002-08-13 Andrew Cagney <cagney@redhat.com>
6013 * regcache.c (regcache_raw_read_as_address): Delete function.
6014 (regcache_cooked_read_signed): New function.
6015 (regcache_cooked_read_unsigned): New function.
6016 * regcache.h (regcache_cooked_read_signed): Declare.
6017 (regcache_cooked_read_unsigned): Declare.
6018 (regcache_raw_read_as_address): Delete declaration.
6020 * blockframe.c (generic_read_register_dummy): Use
6021 regcache_cooked_read_unsigned.
6022 * i386-tdep.c (i386_extract_struct_value_address): Use
6023 regcache_cooked_read_unsigned.
6025 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6027 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6028 double sizes according to ELF ABI flags.
6029 (gdbarch_tdep): Record elf_flags.
6031 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6033 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6034 (m6812_prolog): They can appear in 68HC12 function prologue.
6035 (m68hc11_frame_chain): Cleanup.
6037 2002-08-12 Andrew Cagney <cagney@redhat.com>
6039 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6041 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6042 (i386_linux_register_raw_size): Delete function.
6043 (i386_linux_init_abi): Update.
6044 * i386-tdep.c (i386_register_raw_size): Delete function.
6045 (i386_register_byte): Delete function.
6046 (i386_gdbarch_init): Update.
6047 (i386_register_size): Delete array.
6048 (i386_register_offset): Delete array.
6050 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6051 (REGISTER_RAW_SIZE): Delete macro.
6052 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6053 (REGISTER_BYTE): Delete macro.
6055 2002-08-11 Aidan Skinner <aidan@velvet.net>
6057 * ada-lang.c (ada_lookup_partial_symbol)
6058 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6059 prototype names so that grep ^func works properly.
6061 * ada-lang.c (ada_array_element_type)
6062 (ada_lookup_partial_symbol): Fix typos in parameter list.
6064 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6065 Fix prototype names so that grep ^func works properly.
6067 2002-08-10 Andrew Cagney <cagney@redhat.com>
6068 Elena Zannoni <ezannoni@redhat.com>
6069 Martin M. Hunt <hunt@redhat.com>
6071 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6072 (build_builtin_type_vec128i): Set the vector bit.
6073 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6074 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6075 (build_builtin_type_vec64): New function.
6076 (build_builtin_type_vec64i): New function.
6077 (build_gdbtypes): Initialize builtin_type_vec64 and
6078 builtin_type_vec64i.
6080 2002-08-09 Andrew Cagney <cagney@redhat.com>
6082 * regcache.c (regcache_dump): Compare the register offset
6084 * arch-utils.c (generic_register_byte): New function.
6085 * arch-utils.h (generic_register_byte): Declare.
6086 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6087 * gdbarch.h, gdbarch.c: Regenerate.
6089 2002-08-09 Andrew Cagney <cagney@redhat.com>
6091 * regcache.c: Include "gdbcmd.h"
6092 (_initialize_regcache): Add commands "maintenance print
6093 registers", "maintenance print raw-registers" and "maintenance
6094 print cooked-registers".
6095 (enum regcache_dump_what): Define.
6096 (dump_endian_bytes): New function.
6097 (regcache_dump): New function.
6098 (regcache_print): New function.
6099 (maintenance_print_registers): New function.
6100 (maintenance_print_raw_registers): New function.
6101 (maintenance_print_cooked_registers): New function.
6102 * Makefile.in (regcache.o): Update dependencies.
6104 2002-08-09 Michael Snyder <msnyder@redhat.com>
6106 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6107 (mips_push_arguments): Correct some comments. Use paddr_nz
6108 for printing addresses in debug output. Replace static
6109 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6110 (mips_n32n64_push_arguments): New function, cloned from
6111 mips_push_arguments and tuned for the n32/n64 ABI.
6112 (mips_push_register): Buffer needs dynamic allocation.
6113 (mips_print_register): Ditto.
6114 (do_gp_register_row): Ditto.
6115 (mips_store_return_value): Ditto.
6116 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6118 2002-08-09 Don Howard <dhoward@redhat.com>
6120 * memattr.c (mem_info_command): Print special case of upper bound
6121 as max CORE_ADDR + 1.
6123 2002-08-08 Michael Snyder <msnyder@redhat.com>
6125 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6126 returns structs by ref if they're too big to fit in two registers.
6128 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6130 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6132 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6133 mips_find_saved_regs().
6134 (mips_pop_frame): Likewise.
6136 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6138 * blockframe.c (frame_saved_regs_register_unwind): Revise
6139 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6142 2002-08-09 Grace Sainsbury <graces@redhat.com>
6144 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6145 T-packets; the 'a' is not taken as a register number.
6146 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6147 (remote_stopped_data_address): New functions; add to target
6149 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6150 prototypes to match other implementations of this
6151 function. replace integer argument with pointer -- the length
6152 field in the Z-packet is the length of what is pointed to or 1 if
6153 pointer is null. Add to target vector.
6154 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6158 * remote.c (remote_wait): Add support to extract optional
6159 watchpoint information from T-packet. Ignore unrecognized
6160 optional info in T-packet.
6161 (remote_async_wait): Ditto.
6163 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6165 * cli/cli-dump.c: Change fopen modes to use binary open modes
6166 as defined in include/fopen-bin.h throughout.
6168 2002-08-08 Michael Snyder <msnyder@redhat.com>
6170 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6172 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6174 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6175 assertion failure by returning early after a warning.
6177 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6179 * mips-tdep.c (mips_find_saved_regs): Make static.
6180 (mips_frame_init_saved_regs): New function.
6181 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6182 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6183 (mips_find_saved_regs): Delete declaration.
6185 2002-08-08 Grace Sainsbury <graces@redhat.com>
6187 * remote.c (remote_wait, remote_async_wait): Change
6188 thread_num from int to ULONGEST.
6189 (unpack_varlen_hex): Change result parameter from
6190 int * to ULONGEST *.
6192 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6194 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6195 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6197 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6199 2002-08-08 Andrew Cagney <cagney@redhat.com>
6201 * gcore.c (override_derive_stack_segment): Delete variable.
6202 (preempt_derive_stack_segment): Delete function.
6203 (derive_stack_segment): Delete function.
6204 (default_derive_stack_segment): Renamed to derive_stack_segment.
6205 (override_derive_heap_segment): Delete variable.
6206 (preempt_derive_heap_segment): Delete function.
6207 (derive_heap_segment): Delete function.
6208 (default_derive_heap_segment): Rename to derive_heap_segment.
6210 2002-08-06 Michael Snyder <msnyder@redhat.com>
6212 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6213 * mips-tdep.c (mips_EABI_use_struct_convention,
6214 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6215 New functions. (mips_use_struct_convention): Delete.
6216 (mips_gdbarch_init): set use_gdbarch_convention.
6218 2002-08-06 Michael Snyder <msnyder@redhat.com>
6220 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6221 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6222 mips_o32_reg_struct_has_addr): New functions.
6223 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6225 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6227 * regcache.c (pseudo_register): Delete function.
6228 (fetch_register): Delete function.
6229 (store_register): Delete function.
6230 (regcache_raw_read, legacy_read_register_gen): Use
6231 target_fetch_registers instead of fetch_register.
6232 (legacy_write_register_gen, regcache_raw_write): Use
6233 target_store_register instead of store_register.
6234 (write_register_bytes): Ditto.
6236 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6237 (STORE_PSEUDO_REGISTER): Delete.
6238 * gdbarch.h, gdbarch.c: Regenerate.
6240 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6242 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6243 write dump file binary.
6245 2002-08-05 Michael Snyder <msnyder@redhat.com>
6247 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6248 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6249 (mips_gdbarch_init): Set N32 target to be mips64.
6251 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6253 * frame.c (find_saved_register): Break out of loop once saved
6254 register address is found. Don't mention sparc in loop comment
6257 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6259 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6260 mips_default_saved_regsize to 8.
6262 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6264 * gcore.c: Do not include <sys/procfs.h>.
6265 * Makefile.in (gcore.o): Update dependencies.
6267 2002-08-06 Andrew Cagney <cagney@redhat.com>
6269 * configure.tgt: Make arc-*-* obsolete.
6270 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6271 * MAINTAINERS: Make arc-elf obsolete.
6272 * arc-tdep.c: Make file obsolete.
6273 * config/arc/arc.mt: Ditto.
6274 * config/arc/tm-arc.h: Ditto.
6276 2002-08-05 Theodore A. Roth <troth@verinet.com>
6278 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6280 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6282 * mcore-tdep.c (mcore_gdbarch_init): Use
6283 generic_unwind_get_saved_register instead of
6284 generic_get_saved_register.
6285 * v850-tdep.c (v850_gdbarch_init): Ditto.
6286 * frv-tdep.c (frv_gdbarch_init): Ditto.
6287 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6288 * s390-tdep.c (s390_gdbarch_init): Ditto.
6289 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6290 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6291 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6293 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6295 * objfiles.h: Add missing #include "symfile.h"
6297 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6299 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6301 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6302 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6305 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6307 * NEWS: Cleanup and nitpick.
6309 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6311 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6313 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6315 * Makefile.in (gdbtk-bp.o): Update dependencies.
6316 (gdbtk-register.o): Ditto.
6317 (gdbtk-varobj.o): Ditto.
6319 2002-08-03 Andrew Cagney <cagney@redhat.com>
6321 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6322 m68hc11_fetch_pseudo_register.
6323 (m68hc11_pseudo_register_write): Replace
6324 m68hc11_store_pseudo_register.
6325 (m68hc11_gdbarch_init): Update.
6327 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6329 * gdbarch.sh: Include "gdb_string.h".
6330 * gdbarch.c: Regenerate.
6332 * regcache.c: Include "gdb_string.h".
6333 * ax-general.c: Ditto.
6335 * std-regs.c: Ditto.
6336 * fbsd-proc.c: Ditto.
6339 * Makefile.in (regcache.o): Update dependencies.
6340 (thread.o, gdbarch.o): Ditto.
6341 (ax-general.o, gdbarch.o): Ditto.
6342 (varobj.o, std-regs.o): Ditto.
6343 (fbsd-proc.o): Specify dependencies.
6345 2002-08-02 Andrew Cagney <cagney@redhat.com>
6347 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6349 (regcache_cooked_write): Ditto.
6351 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6353 * regcache.c (regcache_cooked_read): New function.
6354 (regcache_cooked_write): New function.
6355 (read_register_gen): Rewrite using regcache_cooked_read.
6356 (write_register_gen): Rewrite using regcache_cooked_write.
6358 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6361 2002-08-02 Andrew Cagney <cagney@redhat.com>
6363 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6364 Replace the architecture methods register_read and register_write.
6365 * gdbarch.h, gdbarch.c: Regenerate.
6366 * regcache.c (init_regcache_descr): Update.
6367 (read_register_gen): Update.
6368 (write_register_gen): Update.
6369 (supply_register): Update comment.
6371 * sh-tdep.c (sh_gdbarch_init): Update.
6372 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6373 `regcache' and `gdbarch' parameters. Make `buffer' a void
6374 pointer. Update code.
6375 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6376 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6377 void pointer. Update code.
6378 (sh64_register_write): Delete.
6379 (sh4_register_read): Delete.
6380 (sh64_register_read): Delete.
6381 (sh4_register_write): Delete.
6382 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6383 void pointer, `to' parameter a void pointer.
6384 (sh_sh64_register_convert_to_raw): Ditto.
6386 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6388 * mips-tdep.c (mips_register_virtual_type): Use architecture
6389 invariant return values.
6391 2002-08-01 Andrew Cagney <cagney@redhat.com>
6393 * linux-proc.c: Include "gdb_string.h".
6394 * Makefile.in (linux-proc.o): Update dependency list.
6396 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6398 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6401 2002-08-01 Grace Sainsbury <graces@redhat.com>
6403 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6404 to_insert_watchpoint, to_remove_watchpoint,
6405 to_stopped_by_watchpoint, to_stopped_data_address,
6406 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6407 target vecctor. Define their corresponding macros so they call
6410 * target.c: Add default and debug versions of for
6411 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6412 to_insert_watchpoint, to_remove_watchpoint,
6413 to_stopped_by_watchpoint, to_stopped_data_address,
6414 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6416 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6418 * mips-tdep.c (mips_register_virtual_type): New function.
6419 (mips_gdbarch_init): Register mips_register_virtual_type()
6420 with gdbarch machinery.
6421 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6422 this file instead of tm-bigmips.h.
6423 (MIPS_REGSIZE): Delete this macro.
6424 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6425 multiarch version in mips-tdep.c will be found.
6427 2002-08-01 Andrew Cagney <cagney@redhat.com>
6429 * NEWS: Menion that CHILL has been made obsolete.
6431 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6432 * stabsread.c (read_range_type): Ditto.
6433 * gdbtypes.h: Ditto.
6434 * language.c (binop_type_check): Ditto.
6435 (binop_result_type): Ditto.
6436 (integral_type): Ditto.
6437 (character_type): Ditto.
6438 (string_type): Ditto.
6439 (boolean_type): Ditto.
6440 (structured_type): Ditto.
6441 (lang_bool_type): Ditto.
6442 (binop_type_check): Ditto.
6443 * language.h (_LANG_chill): Ditto.
6444 * dwarfread.c (set_cu_language): Ditto.
6445 * dwarfread.c (CHILL_PRODUCER): Ditto.
6446 * dwarfread.c (handle_producer): Ditto.
6447 * expression.h (enum exp_opcode): Ditto.
6448 * eval.c: Ditto for comments.
6449 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6450 * expprint.c (print_subexp): Ditto.
6451 (print_subexp): Ditto.
6452 * valops.c (value_cast): Ditto.
6453 (search_struct_field): Ditto.
6454 * value.h (COERCE_VARYING_ARRAY): Ditto.
6455 * symfile.c (init_filename_language_table): Ditto.
6456 (add_psymbol_with_dem_name_to_list): Ditto.
6457 * valarith.c (value_binop): Ditto.
6459 * valops.c (value_slice): Ditto.
6460 * symtab.h (union language_specific): Ditto.
6461 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6462 (SYMBOL_DEMANGLED_NAME): Ditto.
6463 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6464 * defs.h (enum language): Ditto.
6465 * symtab.c (got_symtab): Ditto.
6466 * utils.c (fprintf_symbol_filtered): Ditto.
6468 * ch-typeprint.c: Make file obsolete.
6469 * ch-valprint.c: Make file obsolete.
6470 * ch-lang.h: Make file obsolete.
6471 * ch-exp.c: Make file obsolete.
6472 * ch-lang.c: Make file obsolete.
6474 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6476 (TARGET_FLAGS_TO_PASS): Ditto.
6477 (CHILLFLAGS): Obsolete.
6479 (CHILL_FOR_TARGET): Obsolete.
6480 (CHILL_LIB): Obsolete.
6481 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6483 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6484 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6486 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6489 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6491 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6492 This does not change anything at the moment, but will be helpful
6493 later when full Ada support is integrated.
6495 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6497 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6500 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6502 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6503 and save it in a local variable. Use variable in later test.
6505 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6507 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6508 test. (Thanks to Daniel Jacobowitz.)
6510 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6512 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6513 (mips_abi_strings): Add "n64".
6514 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6516 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6518 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6519 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6521 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6523 * utils.c (host_pointer_to_address, address_to_host_pointer):
6524 Use gdb_assert() instead of explicit call to internal_error().
6526 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6528 * Makefile.in (rs6000-nat.o): Update dependencies.
6530 From Nicholas Duffek:
6531 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6532 (aix-thread.o): New rule.
6533 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6534 * config/powerpc/aix432.mh: New file.
6536 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6538 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6539 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6540 (fetch_core_registers, ppc_linux_supply_gregset)
6541 (ppc_linux_supply_fpregset): New functions.
6542 (ppc_linux_regset_core_fns): New.
6543 (_initialize_ppc_linux_tdep): Call add_core_fns.
6544 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6545 and ppc_linux_supply_gregset.
6546 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6547 (supply_fpregset): Call ppc_linux_supply_fpregset.
6548 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6550 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6552 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6554 * symtab.c (lookup_symbol): Demangle before lowercasing.
6556 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6558 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6560 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6561 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6562 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6563 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6565 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6566 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6567 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6568 (avr-tdep.o, mon960-rom.o): Ditto.
6569 (aout_stabs_gnu_h): Define.
6570 (symtab_h): Remove $(gdb_obstack_h).
6572 2002-07-30 Jim Blandy <jimb@redhat.com>
6574 Patch from David Carlton <carlton@math.stanford.edu>:
6575 * gdbinit.in: Move the `dir' commands that add GDB's own source
6576 directory to the search path to the end, so that the `gdb' source
6577 directory will be searched first.
6579 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6581 * gdb_obstack.h: New file.
6582 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6583 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6584 * objfiles.h: Include "gdb_obstack.h".
6585 * Makefile.in (gdb_obstack_h): Define.
6586 (symtab_h): Add $(gdb_obstack_h).
6587 (objfiles_h): Add $(gdb_obstack_h).
6589 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6590 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6591 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6592 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6593 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6594 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6595 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6596 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6598 * Makefile.in (bcache.o): Update dependencies.
6599 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6600 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6601 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6602 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6603 (stabsread.o, symfile.o, symmisc.o): Ditto.
6604 (symtab.o, typeprint.o, macroexp.o): Ditto.
6605 (macrotab.o, mdebugread.o): Ditto.
6606 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6607 (coff_ecoff_h, aout_aout64_h): Define.
6608 (aout_stabs_gnu_h, libaout_h): Define.
6610 2002-07-29 Andrew Cagney <cagney@redhat.com>
6612 * regcache.c (struct regcache_descr): Rename nr_registers to
6613 nr_cooked_registers. Revise comments describing the structure
6615 (init_regcache_descr): Update.
6616 (init_legacy_regcache_descr): Update.
6617 (read_register_gen, write_register_gen): When a cooked register in
6618 the raw register range, directly access the value from the raw
6621 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6623 * z8k-tdep.c: Do not include "obstack.h".
6624 * h8300-tdep.c, h8500-tdep.c: Ditto.
6625 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6626 * valprint.c, v850-tdep.c: Ditto.
6627 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6628 * mn10200-tdep.c: Ditto.
6630 * Makefile.in (z8k-tdep.o): Update dependencies.
6631 (m68hc11-tdep.o, valprint.o): Ditto.
6632 (v850-tdep.o, d10v-tdep.o): Ditto.
6633 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6634 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6635 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6636 (sh_opc_h, gdb_sim_sh_h): Define.
6637 (elf_sh_h, elf_bfd_h): Define.
6638 (opcode_m68hc11_h): Define.
6639 (OPCODES_SRC, OPCODES_DIR): define.
6640 (OPCODES): Use $(OPCODES_DIR).
6641 (gdb_sim_d10v_h): Rename sim_d10v_h.
6642 (gdb_sim_arm_h): Rename sim_arm_h.
6644 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6646 * utils.c (host_pointer_to_address, address_to_host_pointer):
6647 Change internal_error() message to indicate function responsible
6650 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6652 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6653 calls to local_hex_string_custom().
6655 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6657 * irix5-nat.c: Move IRIX shared library support from here...
6658 * solib-irix.c: ...to here. Revised substantially to work with
6659 generic solib framework.
6661 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6662 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6663 * mips-irix-tdep.c: New file.
6665 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6666 (mips-irix-tdep.o, solib-irix.o): New rules.
6667 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6669 * config/mips/irix6.mt (TDEPFILES): Likewise.
6670 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6672 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6674 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6675 disabled (via ``#if 0'') includes.
6677 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6679 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6680 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6681 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6682 Add support for the fpscr register.
6683 * rs6000-nat.c (regmap, fetch_inferior_registers)
6684 (store_inferior_registers, fetch_core_registers): Likewise.
6686 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6688 * rs6000-nat.c (language.h): Include.
6689 (special_regs): Delete this array.
6690 (regmap): New function.
6691 (fetch_register, store_register): Use regmap() to map gdb
6692 register numbers to ptrace register numbers. Also, use
6693 outputs from regmap() to make decisions regarding type of
6694 ptrace() call to make. In particular, don't compare against
6695 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6696 (fetch_inferior_registers, store_inferior_registers): Where
6697 possible, obtain register numbers from tdep struct. Don't
6698 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6699 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6700 (LAST_UISA_SP_REGNUM): Delete.
6702 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6704 * rs6000-nat.c (ppc-tdep.h): Include.
6705 (fetch_registers, store_register, fetch_core_registers): Don't
6706 access registers[] directly. Instead, use supply_register() or
6707 regcache_collect() as appropriate.
6708 (find_toc_address): Format hex address with local_hex_string().
6710 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6712 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6715 2002-07-24 Tom Tromey <tromey@redhat.com>
6717 * jv-exp.y: Marked all strings with _().
6718 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6720 (MethodInvocation, CastExpression, parse_number, yyerror,
6721 java_type_from_name, push_expression_name, yylex): Typo fixes.
6723 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6725 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6726 (tee_file_flush, tee_file_write, tee_file_fputs)
6727 (tee_file_isatty): New.
6728 * ui-file.h (tee_file_new): Add prototype.
6730 2002-07-24 Aidan Skinner <aidan@velvet.net>
6732 * ada-lang.c: Change k&r style function definitions to prototyped
6734 * ada-typeprint.c: Change k&r style function definitions to prototyped
6736 * ada-valprint.c: Change k&r style function definitions to prototyped
6739 2002-07-24 Andrew Cagney <cagney@redhat.com>
6741 * README: Remove reference to remote-bug.
6742 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6744 (m88k-nat.o): Delete rule.
6745 (m88k-tdep.o): Delete rule.
6746 (remote-bug.o): Delete rule.
6747 * MAINTAINERS: Mark as obsolete.
6748 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6749 * m88k-tdep.c: Make file obsolete.
6750 * config/m88k/m88k.mh: Ditto.
6751 * config/m88k/delta88v4.mh: Ditto.
6752 * config/m88k/delta88v4.mt: Ditto.
6753 * config/m88k/delta88.mt: Ditto.
6754 * config/m88k/delta88.mh: Ditto.
6755 * remote-bug.c: Ditto.
6756 * config/m88k/tm-delta88.h: Ditto.
6757 * config/m88k/nm-delta88v4.h: Ditto.
6758 * config/m88k/xm-delta88.h: Ditto.
6759 * config/m88k/xm-dgux.h: Ditto.
6760 * config/m88k/tm-m88k.h: Ditto.
6761 * config/m88k/nm-m88k.h: Ditto.
6762 * config/m88k/tm-delta88v4.h: Ditto.
6763 * m88k-nat.c: Ditto.
6764 * cxux-nat.c: Ditto.
6765 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6766 and m88*-*-* obsolete.
6767 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6770 2002-07-24 Andrew Cagney <cagney@redhat.com>
6772 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6773 constant. Same for local pointer variables.
6774 (extract_signed_integer): Ditto.
6775 * defs.h (extract_unsigned_integer): Update.
6776 (extract_signed_integer): Update.
6778 2002-07-24 Andrew Cagney <cagney@redhat.com>
6780 * regcache.c (regcache_raw_write): Change buf parameter to a
6781 constant void pointer.
6782 (regcache_raw_read): Change buf parameter to a void pointer.
6783 (legacy_write_register_gen): Change myaddr parameter a constant
6785 (supply_register): Change val parameter to a const void pointer.
6786 * regcache.h (regcache_raw_write): Update declaration.
6787 (regcache_raw_read): Update declaration.
6788 (supply_register): Update declaration.
6790 2002-07-24 Tom Tromey <tromey@redhat.com>
6792 * defs.h (gdb_readline_wrapper): Declare.
6793 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6794 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6795 * top.c (gdb_readline_wrapper): New function.
6796 (command_line_input): Use it.
6798 2002-07-24 Andrew Cagney <cagney@redhat.com>
6800 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6801 regcache_read and regcache_write.
6802 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6803 * regcache.c: Update.
6804 * sh-tdep.c (sh64_push_arguments): Update comment.
6805 (sh_pseudo_register_read): Update.
6806 (sh_pseudo_register_write): Update.
6807 (sh4_register_read): Update.
6808 (sh4_register_write): Update.
6809 (sh64_pseudo_register_read): Update.
6810 (sh64_pseudo_register_write): Update.
6811 (sh64_register_read): Update.
6812 (sh64_register_write): Update.
6813 * i386-tdep.c (i386_extract_return_value): Update.
6814 (i386_extract_struct_value_address): Update.
6815 (i386_extract_return_value): Update.
6816 * blockframe.c (generic_read_register_dummy): Update.
6817 (generic_call_dummy_register_unwind): Update
6818 * infrun.c (write_inferior_status_register): Update.
6820 2002-07-23 Jim Blandy <jimb@redhat.com>
6822 * parser-defs.h (expression_context_pc): Make this extern.
6823 (Thanks to Michael Snyder.)
6825 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6827 GDB 5.2.1 released from 5.2 branch.
6828 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6829 * README: Update to mention 5.2.1.
6831 2002-07-23 Mark Salter <msalter@redhat.com>
6833 * remote.c (remote_read_bytes): Fix check for error.
6835 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6837 * aix-thread.c (language.h): Include.
6838 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6839 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6840 Print newlines at end of debug messages.
6841 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6842 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6844 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6846 * aix-thread.c (ppc-tdep.h): Include.
6847 (special_register_p): New function.
6848 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6849 (store_regs_user_thread): Use register number information from
6850 gdbarch_tdep struct instead of hardcoded offsets relative to
6851 FIRST_UISA_SP_REGNUM.
6852 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6853 special_register_p() instead of using FPLAST_REGNUM and
6854 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6855 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6856 will be MQ's register number.
6858 2002-07-22 Michael Snyder <msnyder@redhat.com>
6860 * aix-thread.c (ops): Rename to aix_thread_ops.
6861 (base_ops): Rename to base_target.
6862 (ops_attach): Rename to aix_thread_attach.
6863 (ops_detach): Rename to aix_thread_detach.
6864 (ops_resume): Rename to aix_thread_detach.
6865 (ops_wait): Rename to aix_thread_wait.
6866 (ops_kill): Rename to aix_thread_kill.
6867 (init_ops): Rename to init_aix_thread_ops.
6868 (ops_fetch_register): Rename to aix_thread_fetch_register.
6869 (ops_store_register): Rename to aix_thread_store_register.
6870 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6871 (ops_thread_alive): Rename to aix_thread_thread_alive.
6872 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6873 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6874 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6875 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6876 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6877 (store_regs_lib): Rename to store_regs_user_thread.
6878 (store_regs_kern): Rename to store_regs_kernel_thread.
6880 2002-07-22 Michael Snyder <msnyder@redhat.com>
6882 * aix-thread.c (ops_prepare_to_store): Eliminate.
6883 (init_ops): Don't initialize ops.prepare_to_store.
6884 (store_regs_kern): Pre-fetch register buffers from child,
6885 because some registers may not be in the cache. Copy
6886 regs from register cache only if they are cached.
6887 (store_regs_lib): Copy regs from register cache only
6889 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6890 fill_gprs64): Ditto.
6892 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6894 * aix-thread.c (gdb_assert.h): Include.
6895 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6896 register sizes (from register cache) match size of buffer holding
6898 (fill_sprs32): Change parameter types to match those in the ptrace()
6900 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6901 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6903 2002-07-22 Michael Snyder <msnyder@redhat.com>
6905 * aix-thread.c (supply_sprs64): Cosmetic change.
6906 (supply_sprs32): Cosmetic change.
6907 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6908 (fill_sprs64): Use regcache_collect instead of read_register.
6909 (store_regs_lib): Use regcache_collect instead of
6910 read_register. Use fill_sprs32 instead of fill_sprs64,
6911 if debugging a 32-bit architecture.
6912 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6913 out of the register cache, instead of passing a pointer into
6914 the register cache directly to ptrace. Use regcache_collect
6915 insteaad of read_register.
6916 (ops_prepare_to_store): Use target_read_registers instead
6917 of read_register_bytes.
6919 2002-07-20 Aidan Skinner <aidan@velvet.net>
6921 * MAINTAINERS: Add self under write after approval.
6923 2002-07-20 Aidan Skinner <aidan@velvet.net>
6925 * ada-tasks.c: Change k&r style function definitions to prototyped
6928 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6930 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6931 * x86-64-tdep.c: Include "objfiles.h".
6932 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6933 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6935 2002-07-17 Michal Ludvig <michal@suse.cz>
6937 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6938 (update_context): Initialise cfa variable.
6940 2002-07-17 Michael Snyder <msnyder@redhat.com>
6942 * aix-thread.c: Shorten some long lines.
6943 Bring comments into line with code spec.
6945 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6947 * infrun.c: Re-indent using gdb_indent.sh.
6949 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6951 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6952 Leave the indentation temporarily untouched, to minimize the diffs.
6954 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6956 * stabsread.c: Make os9k sections of the code obsolete,
6958 * stabsread.h: Make os9k sections of the code obsolete.
6960 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6962 * linux-low.c (regsets_store_inferior_registers): Add free()
6963 at the end of a loop to prevent memory leak.
6964 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6965 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6966 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6968 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6970 2002-07-17 Jim Blandy <jimb@redhat.com>
6972 * macrocmd.c (info_macro_command): Remove newline from error
6975 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6977 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6978 (sh_gdbarch_init): Use it for sh-dsp.
6980 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6982 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6983 64-bit DWARF2 format.
6985 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6987 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6988 <sys/proc.h> when not available.
6990 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6992 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6993 * stabsread.c: Make os9k sections of the code obsolete.
6994 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6995 * config/i386/i386os9k.mt: Make file obsolete.
6996 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6997 (COMMON_OBS): Remove os9kread.o
6998 (SFILES): Remove os9kread.c.
6999 (os9kread.o, remote-os9k.o): Make target obsolete.
7000 * remote-os9k.c: Make file obsolete.
7001 * os9kread.c: Make file obsolete.
7004 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7006 * NEWS: Mention that the FR30 has been made obsolete.
7007 * fr30-tdep.c: Make file obsolete.
7008 * config/fr30/tm-fr30.h: Ditto.
7009 * config/fr30/fr30.mt: Ditto.
7010 * configure.tgt: Make fr30-*-elf obsolete.
7011 * MAINTAINERS: Make fr30-elf obsolete.
7013 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7015 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7016 found is not inside a section.
7018 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7020 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7022 (pdc_realloc): Use xrealloc() instead of realloc().
7024 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7026 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7027 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7028 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7031 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7033 * aix-thread.c (ptrace_check): Eliminate goto.
7034 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7037 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7039 * aix-thread.c (gdbcmd.h): Include.
7040 (DEBUG, DBG, DBG2, dbg): Eliminate.
7041 (debug_aix_thread): New static global.
7042 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7043 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7044 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7045 invocations to DBG and DBG2 macros to test against
7046 ``debug_aix_thread'' and call fprintf_unfiltered().
7047 (_initialize_aix_thread): Add new command "set debug aix-thread".
7049 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7051 From Gerhard Tonn <TON@de.ibm.com>:
7052 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7053 instead of supply_register.
7055 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7057 * dwarf2cfi.c: Include "gdb_assert.h".
7058 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7060 (update_context): Do not use __func__. Add missing ``break''.
7061 (update_context): Do not use __func__.
7063 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7065 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7066 and its setting. Set gdbarch instruction printing functions
7067 directly. For non-rs6000 case use new function
7068 gdb_print_insn_powerpc.
7069 (gdb_print_insn_powerpc): New function.
7071 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7073 * NEWS: Mention that the d30v has been marked obsolete.
7074 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7075 * configure.tgt: Mark d30v-*-* as obsolete.
7076 * d30v-tdep.c: Mark file as obsolete.
7077 * config/d30v/d30v.mt: Ditto.
7078 * config/d30v/tm-d30v.h: Ditto.
7080 2002-07-13 Aidan Skinner <aidan@velvet.net>
7082 * ada-tasks.c (add_task_entry): replace calls to
7083 malloc() with xmalloc
7084 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7086 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7087 ada_finish_decode_line_1, all_sals_for_line
7088 ada_breakpoint_rewrite): replace calls to free() with xfree()
7090 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7092 From Nicholas Duffek (with minor changes by Martin Hunt,
7093 Louis Hamilton, and Kevin Buettner):
7094 * aix-thread.c: New file.
7096 2002-07-12 Petr Sorfa <petrs@caldera.com>
7098 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7099 complaint for invalid attribute class or form.
7100 (read_func_scope): DW_AT_frame_base
7101 better handling of DW_AT_block*.
7102 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7103 better handling of DW_AT_block*.
7104 (read_common_block): DW_AT_location
7105 better handling of DW_AT_block*.
7106 (read_partial_die): DW_AT_location better handling
7108 (new_symbol): DW_AT_external better handling of
7109 DW_AT_block*. Proper initialization of variable
7111 (attr_form_is_block): New function that returns true
7112 if the attribute's form is of DW_FORM_block*.
7114 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7116 * valops.c (find_method_list): Remove comment about
7117 removed STATIC_MEMFUNCP argument.
7118 (value_find_oload_method_list): Likewise.
7120 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7122 From Nicholas Duffek:
7123 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7124 target_new_objfile_hook.
7126 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7128 From Nicholas Duffek:
7129 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7132 2002-07-12 Andrew Cagney <cagney@redhat.com>
7134 * MAINTAINERS: Mention --enable-sim-build-warnings.
7135 (m68hc11-elf): Disable sim build warnings.
7136 (m32r-elf): Mark as broken obsolete candidate.
7137 (x86_64-linux-gnu): Mark as buildable with -Werror.
7138 (arm-elf): Change -w to ``,'' which enables warnings but not
7141 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7143 * bcache.h: Update copyright.
7144 (struct bstring, struct bcache): Move definition to "bcache.c".
7145 Replaced by opaque declaration.
7146 (bcache_xfree): Replace free_bcache.
7147 (bcache_xmalloc, bcache_memory_used): Declare.
7149 * bcache.c: Update copyright.
7150 (struct bstring, struct bcache): Moved to here from "bcache.h".
7152 (bcache_xmalloc, bcache_memory_used): New functions.
7153 (bcache_xfree): Replace function free_bcache.
7155 * Makefile.in (objfiles.o): Add $(bcache_h).
7156 (objfiles_h): Remove $(bcache_h).
7157 (symfile.o): Add $(bcache_h).
7159 * symmisc.c: Update copyright.
7160 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7161 (print_objfile_statistics): Use bcache_memory_used.
7163 * symfile.c: Include "bcache.h".
7164 (reread_symbols): Use bcache_xfree.
7165 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7166 (add_psymbol_to_list): Pass psymbol_cache by value.
7167 (add_psymbol_with_dem_name_to_list): Ditto.
7169 * objfiles.h: Update copyright.
7170 (struct bcache): Declare opaque. Do not include "bcache.h".
7171 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7173 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7175 * objfiles.c: Include "bcache.h". Update copyright.
7176 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7178 (free_objfile): Use bcache_xfree.
7180 2002-07-11 Grace Sainsbury <graces@redhat.com>
7182 * monitor.c (monitor_fetch_register): Make name a constant.
7183 (monitor_store_register): Same.
7185 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7187 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7188 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7189 (finish_block) For non-function blocks, hash the symbol table. For
7190 function blocks, mark the symbol table as unhashed.
7191 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7192 (msymbol_hash_iw): Likewise.
7193 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7195 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7196 (lookup_minimal_symbol): Likewise for both.
7197 * symtab.h (struct block): Add `hashtable' flag. Comment the
7199 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7200 (ALL_BLOCK_SYMBOLS): Update.
7201 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7202 (struct symbol): Add `hash_next' pointer.
7203 * symtab.c (lookup_block_symbol): Search using the hash table when
7205 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7206 (search_symbols, find_addr_symbol): Likewise.
7208 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7209 (read_dst_symtab): Likewise.
7210 * jv-lang.c (get_java_class_symtab): Likewise.
7211 * mdebugread.c: Include "gdb_assert.h".
7212 (shrink_block): Assert that the block being modified is not hashed.
7213 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7214 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7216 (dump_symtab): Recognize hashed blocks.
7217 * printcmd.c (print_frame_args): Assert that function blocks do not
7218 have hashed symbol tables.
7219 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7220 (fill_in_ada_prototype, debug_print_block): Likewise.
7221 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7223 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7225 * stack.c (print_frame): Use result of frame_address_in_block()
7226 instead of fi->pc when evaluating symbols.
7227 (backtrace_command_1): Ditto.
7229 2002-07-11 Andrew Cagney <cagney@redhat.com>
7231 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7234 * arm-tdep.c (arm_register_name): Make return type constant.
7236 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7238 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7240 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7241 * s390-tdep.c (s390_fp_regnum): Ditto.
7242 (s390_read_fp): Ditto.
7243 (s390_pop_frame): Ditto.
7244 (_initialize_s390_tdep): Ditto.
7245 * remote.c (get_remote_state): Ditto.
7246 * procfs.c (mappingflags): Ditto.
7247 * memattr.c (_initialize_mem): Ditto.
7248 * mcore-tdep.c (mcore_pop_frame): Ditto.
7249 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7250 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7251 * language.c (set_case_str): Ditto.
7252 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7253 * frv-tdep.c (new_variant): Ditto.
7254 (frv_stopped_data_address): Ditto.
7255 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7256 (context_alloc): Ditto.
7257 (frame_state_alloc): Ditto.
7258 (unwind_tmp_obstack_init): Ditto.
7259 (unwind_tmp_obstack_free): Ditto.
7260 (cfi_read_fp): Ditto.
7261 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7262 (cris_pop_frame): Ditto.
7263 * c-lang.c (scanning_macro_expansion): Ditto.
7264 (finished_macro_expansion): Ditto.
7265 (c_preprocess_and_parse): Ditto.
7266 * gdbarch.sh: Ditto.
7267 * gdbarch.h, gdbarch.c: Regenerate.
7268 * config/mn10200/tm-mn10200.h: Adjust indentation.
7269 * target.c: Adjust indentation.
7270 * symtab.h: Adjust indentation.
7271 * stabsread.h: Adjust indentation.
7272 * remote-es.c: Adjust indentation.
7273 * os9kread.c: Adjust indentation.
7275 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7277 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7278 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7280 2002-07-10 Grace Sainsbury <graces@redhat.com>
7282 * NEWS: Mention m68k, mcore multi-arching.
7283 * MAINTAINERS: Change status of m68k, mcore to reflect
7286 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7288 * valops.c (find_overload_match): Free oload_syms.
7290 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7292 Define HAVE_SYS_PROC_H if sys/proc.h exists
7293 * configure.in: Add check for sys/proc.h
7294 * config.in: Regenerate.
7295 * configure: Regenerate.
7297 2002-07-09 Grace Sainsbury <graces@redhat.com>
7299 * config/m68k/tm-m68k.h: Remove macros wrapped in
7300 #if !GDB_MULTI_ARCH.
7302 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7304 * config.in, configure: Regenerate.
7306 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7308 * dwarf2cfi.c: Include "gcore.h".
7309 (execute_stack_op): Fix implementation of the
7310 DW_OP_deref and DW_OP_deref_size operators by letting do their
7311 lookup in the target.
7313 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7315 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7316 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7319 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7321 Fix PR gdb/595, gdb/602
7322 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7323 Don't call value_cast, just read the vtable pointer; update comments
7326 2002-07-05 Grace Sainsbury <graces@redhat.com>
7328 * config/mcore/tm-mcore.h: Remove file.
7329 * config/mcore/mcore.mt: Remove definition of TM_FILE
7330 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7332 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7334 * i386bsd-tdep.c: Include "gdb_string.h".
7336 2002-07-04 Grace Sainsbury <graces@redhat.com>
7338 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7339 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7341 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7342 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7343 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7344 (RETVAL_REGNUM): Move macros from tm-mcore.h
7345 (mcore_reg_struct_has_addr): New function.
7346 (mcore_gdbarch_init): Added initializations for the macros removed
7349 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7351 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7352 traditonal string branding within the ELF header.
7354 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7356 * symtab.c (remove_params): New function.
7357 (make_symbol_overload_list): Use it instead of cplus_demangle.
7358 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7360 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7362 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7364 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7366 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7367 and tdep->sigtramp_end.
7368 * i386obsd-nat.c: New file.
7369 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7371 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7372 Don't call get_current_frame().
7374 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7376 * i386-nat.c (child_post_startup_inferior): New function
7377 calling i386_cleanup_dregs if
7378 I386_USE_GENERIC_WATCHPOINTS is defined.
7379 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7380 conditional to acknowledge that i386-nat.c has its
7381 own child_post_startup_inferior function.
7383 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7385 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7386 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7387 instead of MAX_REGISTER_RAW_SIZE.
7388 (i386_extract_return_value, i386_extract_struct_value_address):
7389 Convert to use regcache.
7390 (i386_gdbarch_init): Set max_register_raw_size and
7391 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7392 Set extract_return_value and extract_struct_value_address instead
7393 of their deprecated variants.
7395 Convert i386 target to generic dummy frames.
7396 * i386-tdep.c: Include "symfile.h".
7397 (i386_frameless_signal_p): Consider a function to be frameless if
7398 the pc points at the first instruction of the function.
7399 (i386_frame_chain): Handle (generic) call dummies.
7400 (i386_frame_saved_pc): Likewise.
7401 (i386_frame_init_saved_regs): Remove code dealing with call
7402 dummies on the stack.
7403 (i386_push_dummy_frame): Removed.
7404 (i386_call_dummy_words): Removed.
7405 (i386_fix_call_dummy): Removed.
7406 (i386_push_return_address): New function.
7407 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7408 parameter, and don't call get_current_frame.
7409 (i386_pop_frame): New function.
7410 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7411 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7412 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7413 call_dummy_length to 0, set call_dummy_words to NULL, set
7414 sizeof_call_dummy_words to 0, set fix_call_dummy to
7415 generic_fix_call_dummy, set pc_in_call_dummy to
7416 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7417 generic_push_dummy_frame, set push_return_address to
7418 i386_push_return_address and set frame_chain_valid to
7419 generic_file_frame_chain_valid.
7421 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7423 * gdbarch.sh (struct regcache): Add opaque declaration.
7424 (EXTRACT_RETURN_VALUE): New architecture method.
7425 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7426 * gdbarch.h, gdbarch.c: Regenerate.
7427 * arch-utils.c (legacy_extract_return_value): New function.
7428 * arch-utils.h (legacy_extract_return_value): Declare.
7429 * values.c (value_being_returned): Re-enable code handling
7430 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7431 deprecated_grub_regcache_for_registers call to block handling
7432 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7433 (EXTRACT_RETURN_VALUE): Do not define.
7435 2002-07-03 Grace Sainsbury <graces@redhat.com>
7437 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7438 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7439 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7440 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7441 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7442 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7443 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7444 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7445 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7446 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7447 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7448 argument so the function fits the prototype in the architecture
7450 (mcore_pop_frame): Remove argument so the function fits the
7451 prototype. Use get_current_frame instead of the argument.
7452 (mcore_push_arguments): Change type of struct_return so the
7453 function can be used in the architecture vector.
7454 (mcore_store_struct_return): Add.
7455 (mcore_frame_init_saved_regs): Add.
7456 (mcore_gdbarch_init): Add function calls to replace the macros
7457 removed from tm-mcore.h
7459 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7461 * infcmd.c (print_return_value): Remove compatibility code calling
7462 deprecated_grub_regcache_for_registers.
7464 * values.c: Include "regcache.h".
7465 (value_being_returned): Update. Use
7466 deprecated_grub_regcache_for_registers to extract the register
7468 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7469 ``struct regcache''.
7470 * Makefile.in (values.o): Add dependency on $(regcache_h).
7472 * inferior.h (run_stack_dummy): Change type of second parameter to
7473 a ``struct regcache''.
7474 * valops.c (hand_function_call): Change type of retbuf to ``struct
7475 regcache''. Allocate using regcache_xmalloc, clean using
7476 make_cleanup_regcache_xfree.
7477 * infcmd.c (run_stack_dummy): Update. Use
7478 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7480 * regcache.c (do_regcache_xfree): New function.
7481 (make_cleanup_regcache_xfree): New function.
7482 * regcache.h (make_cleanup_regcache_xfree): Declare.
7484 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7486 * event-top.c (command_line_handler): Don't read past
7487 beginning of buffer.
7489 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7491 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7493 (varobj_create): Store frame_id for root.
7494 (varobj_gen_name): Use xasprintf.
7495 (varobj_update): Save and restore frame using get_frame_id() and
7497 (create_child): Use xasprintf.
7498 (new_root_variable): Initialize frame_id.
7499 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7500 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7501 to prevent memory leak.
7503 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7505 * valops.c (hand_function_call): Move declaration of retbuf to
7506 start of function, allocate using malloc, add a cleanup but before
7507 the inf_status cleanup, cleanup the buffer. Rename local variable
7508 old_chain to inf_status_cleanup.
7510 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7512 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7514 * cli/cli-decode.c (cmd_func_p): New function.
7515 (cmd_func): New function.
7517 * command.h: Add cmd_func() and cmd_func_p().
7519 2002-07-03 Grace Sainsbury <graces@redhat.com>
7521 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7522 (REGISTER_SIZE): Remove.
7523 (MAX_REGISTER_RAW_SIZE): Remove.
7524 (REGISTER_VIRTUAL_TYPE): Remove.
7525 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7526 (REGISTER_NAME): Remove.
7527 (USE_GENERIC_DUMMY_FRAMES): Remove.
7528 (CALL_DUMMY): Remove.
7529 (CALL_DUMMY_START_OFFSET): Remove.
7530 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7531 (CALL_DUMMY_LOCATION): Remove.
7532 (FIX_CALL_DUMMY): Remove.
7533 (CALL_DUMMY_ADDRESS): Remove.
7534 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7535 (SAVE_DUMMY_FRAME_TOS): Remove.
7536 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7537 (mcore_register_virtual_type): New function.
7538 (mcore_register_byte): New function.
7539 (mcore_register_size): New function.
7540 (mcore_register_name): New function.
7541 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7542 macros removed from tm-mcore.h.
7543 (mcore_dump_tdep): Add.
7544 (_initialize_mcore_tdep): Add gdbarch_register call.
7546 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7548 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7549 frameless_look_for_prologue, such that we actually call this
7552 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7554 * frame.h (frame_address_in_block): New function.
7556 * blockframe.c (frame_address_in_block): New function extracted
7557 from get_frame_block().
7558 (get_frame_block): Use frame_address_in_block().
7559 (block_innermost_frame): Use frame_address_in_block() to match
7560 the frame pc address against the block boundaries rather than
7561 the frame pc directly. This prevents a failure when a frame pc
7562 is actually a return-address pointing immediately after the end
7565 2002-07-02 Grace Sainsbury <graces@redhat.com>
7567 * MAINTAINERS: Add self under write after approval.
7569 2002-07-02 Grace Sainsbury <graces@redhat.com>
7571 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7572 used in architecture vector. The default is
7573 m68k_local_breakpoint_from_pc.
7574 (m68k_local_breakpoint_from_pc): Add.
7575 (enum): Add register numbers from tm-m68k.h.
7576 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7578 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7579 GDB_MULTI_ARCH_PARTIAL.
7580 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7581 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7583 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7584 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7585 to enum in m68k-tdep.c
7587 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7589 * solib-osf.c (open_map): Compute the list of shared libraries
7590 loaded by the inferior, rather than the list of libraries loaded
7591 by GDB itself. Otherwise, GDB ends up reading the symbols from
7592 the wrong shared libraries...
7594 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7596 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7597 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7599 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7601 (FRAMELESS_SIGNAL): Remove function.
7602 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7603 i386_linux_saved_pc_after_call): Removed.
7604 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7605 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7606 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7608 * i386-tdep.c (i386_frameless_signal_p): New function.
7609 (i386_frame_chain): Deal with frameless signals.
7610 (i386_sigtramp_saved_sp): New function.
7611 (i386_frame_saved_pc): Deal with frameless signals.
7612 (i386_saved_pc_after_call): Make sure the correct value is
7613 returned just after entry into a sigtramp.
7614 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7615 i386fbsd4_sc_sp_offset): New variables.
7616 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7617 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7618 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7619 similiar to what we already did for sc_pc_offset.
7620 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7623 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7625 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7627 * config/i386/tm-x86-64linux.h: New.
7628 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7630 * config/i386/nm-x86-64.h: Rename to ...
7631 * config/i386/nm-x86-64linux.h: ... this one.
7632 * config/i386/x86-64linux.mh: Reflect the above change.
7634 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7636 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7637 with sigcontext_addr. Add sc_sp_offset.
7638 (i386bsd_sigtramp_saved_pc): Remove prototype.
7639 (i386bsd_sicontext_addr): Add prototype.
7640 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7641 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7642 (i386_svr4_sigtramp_saved_pc): Removed.
7643 (i386_svr4_sigcontext_addr): New function.
7644 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7645 Initialize tdep->sigcontext_addr instead. Initialize
7646 tdep->sc_pc_offset and tdep->sc_sp_offset.
7647 (i386_gdbarch_init): Likewise.
7648 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7650 (i386bsd_sigtramp_saved_pc): Remove function.
7651 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7652 Initialize tdep->sigcontext_addr instead. Initialize
7654 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7655 of tdep->sigtramp_saved_pc.
7656 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7657 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7660 * i386-tdep.c (i386_frameless_function_invocation,
7661 i386_frame_num_args, i386_frame_init_saved_regs,
7662 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7663 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7664 i386_extract_return_value, i386_store_return_value,
7665 i386_extract_struct_value_address, i386_register_virtual_type,
7666 i386_register_convertible, i386_register_convert_to_virtual,
7667 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7668 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7671 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7673 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7675 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7676 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7677 this macro. Include "value.h".
7679 2002-06-30 Aidan Skinner <aidan@velvet.net>
7681 * ada-exp.tab.c: remove as it's a generated file
7682 * ada-lex.c: remove as it's a generated file
7684 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7686 * config/i386/tm-i386.h (struct frame_info, struct
7687 frame_saved_regs, struct value, struct type): Remove forward
7690 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7691 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7692 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7693 (FILL_FPXREGSET): Define.
7695 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7697 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7698 i[3456]86-*-netbsd* case.
7699 * config/i386/tm-obsd.h: Removed.
7700 * config/i386/obsd.mt: Removed.
7701 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7703 (MH_CFLAGS): Add -DYYDEBUG=0.
7705 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7706 i386nbsd_sc_pc_offset on OpenBSD too.
7708 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7709 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7710 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7712 * i386bsd-tdep.c: Include "arch-utils.h".
7713 (i386bsd_aout_in_solib_call_trampoline): New function.
7714 (i386bsd_init_abi): Set in_solib_call_trampoline to
7715 i386bsd_aout_in_solib_call_trampoline.
7716 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7717 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7719 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7721 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7722 (struct obstack, struct bcache): Add opaque declarations.
7723 * Makefile.in (macrotab_h): Update
7725 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7727 * blockframe.c (generic_find_dummy_frame): Change return type to
7728 ``struct regcache''.
7729 (struct dummy_frame): Replace field ``registers'' with regcache, a
7730 struct regcache object.
7731 (generic_find_dummy_frame): Update.
7732 (generic_push_dummy_frame): Update. Use regcache_xfree,
7733 regcache_xmalloc and regcache_cpy.
7734 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7736 (deprecated_generic_find_dummy_frame): Update.
7737 (generic_read_register_dummy): Update. Use
7738 regcache_read_as_address.
7739 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7740 (generic_get_saved_register): Update. Use regcache_read.
7742 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7744 * Makefile.in (objfiles_h): Add $(bcache_h).
7745 * objfiles.h: Include "bcache.h".
7747 * Makefile.in (symtab_h): Remove $(bcache_h).
7748 * symtab.h: Do not include "bcache.h".
7750 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7752 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7753 generic_func_frame_chain_valid.
7755 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7757 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7758 * config/i386/tm-fbsd.h: Likewise.
7760 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7762 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7763 generic_unwind_get_saved_register.
7765 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7767 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7768 * regcache.c (supply_register): Add missing argument to
7769 register_buffer call.
7771 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7773 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7774 Solaris /bin/grep does not not like it. From Peter Schauer.
7776 2002-06-26 Tom Tromey <tromey@redhat.com>
7778 * command.h (add_setshow_cmd): Declare.
7779 (add_setshow_cmd_full): Declare.
7780 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7781 returns void. Use add_setshow_cmd_full.
7782 (add_setshow_cmd_full): New function.
7783 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7784 (add_setshow_boolean_cmd): Likewise.
7786 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7788 * config/vax/tm-vax.h: Protect from multiple inclusion.
7789 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7790 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7791 * config/vax/tm-vaxbsd.h: ...here. New file.
7792 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7794 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7796 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7797 (BELIEVE_PCC_PROMOTION): Remove.
7798 (AP_REGNUM): Move to...
7799 * config/vax/nm-vax.h: ...here.
7800 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7801 (vax_breakpoint_from_pc): New function.
7802 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7803 and gdbarch_believe_pcc_promotion.
7805 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7807 * Makefile.in (vax_tdep_h): Define.
7808 (vax-tdep.o): Use $(vax_tdep_h).
7809 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7810 (vax_dump_tdep): New function.
7811 (_initialize_vax_tdep): Register vax_dump_tdep.
7812 * vax-tdep.h: Include osabi.h.
7813 (struct gdbarch_tdep): New.
7815 2002-06-26 Andrew Cagney <cagney@redhat.com>
7817 * frame.h (deprecated_generic_find_dummy_frame): Rename
7818 generic_find_dummy_frame.
7819 * blockframe.c (generic_find_dummy_frame): Make static.
7820 (deprecated_generic_find_dummy_frame): New function.
7821 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7822 generic_find_dummy_frame with deprecated_find_dummy_frame.
7823 (sh64_nofp_frame_init_saved_regs): Ditto.
7824 (sh_fp_frame_init_saved_regs): Ditto.
7825 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7826 (s390_frame_chain): Ditto.
7827 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7829 2002-06-26 Grace Sainsbury <graces@redhat.com>
7831 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7832 gdbarch vector are at the top.
7834 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7835 (FRAME_ARGS_ADDRESS): Remove.
7836 (FRAME_LOCALS_ADDRESS): Remove.
7837 (FRAME_NUM_ARGS): Remove.
7838 (FRAME_ARGS_SKIP): Remove.
7839 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7840 (m68k_gdbarch_init): Add gdbarch initializations for macros
7841 undefined in tm-m68k.h
7843 2002-06-26 Grace Sainsbury <graces@redhat.com>
7845 * monitor.h: Add the function regname to monitor_ops
7846 structure. This way NUM_REGS does not have to be a constant.
7847 * monitor.c (monitor_fetch_register): Added support for regname
7848 function. The function is called if the array regnames is NULL.
7849 (monitor_store_register): Same.
7850 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7852 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7853 cpu32bug_cmds.regname to point to new function.
7854 * abug-rom.c (abug_regname): Same as above.
7855 (init_abug_cmds): Same.
7856 * dbug-rom.c (dbug_regname): Same as above.
7857 (init_dbug_cmds): Same.
7858 * remote-est.c (est_regname): Same.
7859 (init_est_cmds): Same.
7860 * rom68k-rom.c (rom68k_regname): Same.
7861 (init_rom68k_cmds): Same.
7863 2002-06-25 Tom Tromey <tromey@redhat.com>
7865 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7867 2002-06-25 Andrew Cagney <cagney@redhat.com>
7869 * infrun.c (stop_registers): Change variable's type to ``struct
7871 (xmalloc_inferior_status): Delete function.
7872 (free_inferior_status): Delete function.
7873 (normal_stop): Use regcache_cpy.
7874 (struct inferior_status): Change type of fields ``stop_registers''
7875 and ``registers'' to ``struct regcache''.
7876 (write_inferior_status_register): Use regcache_write.
7877 (save_inferior_status): Instead of calling
7878 xmalloc_inferior_status, allocate the inf_status buffer directly.
7879 Use regcache_dup_no_passthrough and regcache_dup to save the
7881 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7882 Replace the stop_registers regcache instead of overriding it. Use
7883 regcache_xfree. Instead of calling free_inferior_status, xfree
7884 the buffer directly.
7885 (discard_inferior_status): Use regcache_xfree. Instead of calling
7886 free_inferior_status, xfree the buffer directly.
7887 (build_infrun): Use regcache_xmalloc.
7888 (_initialize_infrun): Delete redundant call to build_infrun.
7890 * Makefile.in (infcmd.o): Add $(regcache_h).
7892 * infcmd.c: Include "regcache.h".
7893 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7894 obtain the address of `stop_registers' register buffer.
7895 (print_return_value): Ditto.
7897 * inferior.h (struct regcache): Add opaque declaration.
7898 (stop_registers): Change variable's declared type to ``struct
7901 2002-06-24 Tom Tromey <tromey@redhat.com>
7903 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7904 * target.c (initialize_targets): Fixed typo in
7905 trust-readonly-sections `show' documentation.
7907 * main.c: Marked all strings with _().
7909 2002-06-24 Don Howard <dhoward@redhat.com>
7911 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7912 that means max CORE_ADDR+1.
7913 (lookup_mem_region): Ditto.
7914 (mem_info_command): Ditto.
7916 2002-06-24 Grace Sainsbury <graces@redhat.com>
7918 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7919 (REGISTER_BYTES_OK): Remove.
7920 (REGISTER_BYTES): Remove.
7921 (STORE_STRUCT_RETURN): Remove.
7922 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7923 (STORE_RETURN_VALUE): Remove.
7924 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7925 (FRAME_CHAIN): Remove.
7926 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7927 (FRAME_SAVED_PC): Remove.
7928 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7929 (m68k_store_struct_return): Add.
7930 (m68k_deprecated_extract_return_value): Add.
7931 (m68k_deprecated_extract_struct_value_address): Add.
7932 (m68k_store_return_value): Add.
7933 (m68k_frame_chain): Add.
7934 (m68k_frameless_function_invocation): Add.
7935 (m68k_frame_saved_pc): Add.
7936 (m68k_gdbarch_init): added set_gdbarch calls for new
7937 functions and deleted macros.
7939 2002-06-23 Tom Tromey <tromey@redhat.com>
7941 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7942 (ALLDEPFILES): Likewise.
7943 (udiheaders): Removed.
7944 (udip2soc.o): Likewise.
7945 (udi2go32.o): Likewise.
7947 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7949 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7951 * infrun.c (_initialize_infrun): Delete unnecessary call to
7954 * regcache.h: Update comments describing the regcache_cpy family
7956 (regcache_save, regcache_restore): Delete declaration.
7957 (regcache_save_no_passthrough): Delete declaration.
7958 (regcache_restore_no_passthrough): Delete declaration.
7959 * regcache.c (regcache_save): Delete function.
7960 (regcache_save_no_passthrough): Delete function.
7961 (regcache_restore): Delete function.
7962 (regcache_restore_no_passthrough): Delete function.
7964 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7966 * config/m68k/tm-m68k.h: Fix typo.
7967 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7968 (m68k_frame_init_saved_regs): Declare.
7970 2002-06-21 Jim Blandy <jimb@redhat.com>
7972 Remove some vestiges of Harris 88k support.
7973 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7974 register numbering quirk.
7975 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7976 odd symbols occurring in Harris 88k ELF targets.
7978 2002-06-21 Tom Tromey <tromey@redhat.com>
7980 * gdb_locale.h: New file.
7981 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7982 (defs_h): Added gdb_locale.h.
7983 * configure, config.in: Rebuilt.
7984 * configure.in (PACKAGE): Define.
7985 * defs.h: Include gdb_locale.h.
7986 * main.c (captured_main): Call setlocale, bindtextdomain,
7989 2002-06-21 Dave Brolley <brolley@redhat.com>
7991 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7992 * config/frv/frv.mt: New file.
7993 * config/frv/tm-frv.h: New file.
7994 * configure.tgt: Support frv-*-*.
7995 * Makefile.in (frv-tdep.o): New target.
7996 * frv-tdep.c: New file.
7997 * NEWS: Mention frv.
7999 2002-06-21 Dave Brolley <brolley@redhat.com>
8001 * MAINTAINERS: Add self to "Write After Approval" list.
8003 2002-06-21 Grace Sainsbury <graces@redhat.com>
8005 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8006 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8007 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8008 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8009 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8011 * m68k-tdep.c: Include arch-utils.h
8012 (m68k_register_raw_size): Add.
8013 (m68k_register_virtual_size): Add.
8014 (m68k_register_virtual_type): Add.
8015 (m68k_register_name): Add.
8016 (m68k_stack_align): Add.
8017 (m68k_register_byte): Add.
8018 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8021 2002-06-21 Grace Sainsbury <graces@redhat.com>
8023 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8024 m68k_find_saved_regs.
8025 (m68k_pop_frame): Removed saved_regs structure, and replaced
8026 references to it with frame->saved_regs.
8027 (m68k_gdbarch_init): Added function calls to initialize the
8029 (m68k_fix_call_dummy): Add.
8030 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8031 (CALL_DUMMY): Remove.
8032 (CALL_DUMMY_LENGTH): Remove.
8033 (CALL_DUMMY_START_OFFSET): Remove.
8034 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8035 (FIX_CALL_DUMMY): Remove.
8036 (PUSH_DUMMY_FRAME): Remove.
8037 (POP_FRAME): Remove.
8039 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8041 * parse.c (parse_fprintf): New function used to avoid calls to
8042 fprintf in bison parser generated debug code.
8043 * parser-defs.h: Declaration of new parse_fprintf function.
8044 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8045 Set YYDEBUG to 1 by default.
8046 Set YYFPRINTF as parse_fprintf.
8048 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8050 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8052 (pointer_encoding, enum ptr_encoding): New.
8053 (execute_cfa_program): Take care about pointer encoding.
8054 (dwarf2_build_frame_info): Only call parse_frame_info for
8055 .debug_frame and .eh_frame.
8056 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8057 fixed augmentation handling, added relative addressing,
8058 ignore duplicate FDEs. Added comments.
8059 * dwarf2cfi.c: Reindented.
8061 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8063 * event-top.c (command_handler): Don't use space_at_cmd_start
8064 unless there is sbrk() on the host. Assign time and space data
8065 to union fields of the appropriate length.
8067 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8069 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8070 x86_64_register_name. Return type changed to 'const char *'.
8071 (x86_64_register_name2nr): Rename to x86_64_register_number.
8072 (x86_64_gdbarch_init): Update to reflect the change.
8073 * x86-64-tdep.h: Ditto.
8074 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8075 (supply_fpregset): Ditto.
8077 2002-06-19 Andrew Cagney <cagney@redhat.com>
8079 * regcache.h: Update copyright.
8080 (struct regcache, struct gdbarch): Add opaque declarations.
8081 (current_regcache): Declare global variable.
8082 (regcache_read, regcache_write): Add gdbarch parameter.
8083 (regcache_save, regcache_save_no_passthrough)
8084 (regcache_restore, regcache_restore_no_passthrough)
8085 (regcache_dup, regcache_dup_no_passthrough)
8086 (regcache_cpy, regcache_cpy_no_passthrough)
8087 (deprecated_grub_regcache_for_registers)
8088 (deprecated_grub_regcache_for_register_valid)
8089 (regcache_valid_p): Add function declarations.
8091 * regcache.c: Update copyright.
8092 (regcache_descr_handle): New global variable.
8093 (struct regcache_descr): Define.
8094 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8095 (regcache_descr, xfree_regcache_descr): New functions.
8096 (struct regcache): Define.
8097 (regcache_xmalloc, regcache_xfree): New functions.
8098 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8099 (regcache_dup, regcache_dup_no_passthrough): New functions.
8100 (regcache_valid_p, regcache_read_as_address): New functions.
8101 (deprecated_grub_regcache_for_registers): New function.
8102 (deprecated_grub_regcache_for_register_valid): New function.
8103 (current_regcache): New global variable.
8104 (register_buffer): Add regcache parameter. Update calls.
8105 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8106 (read_register_gen, write_register_gen): Update register_buffer
8107 call. Test for legacy_p instead of gdbarch_register_read_p or
8108 gdbarch_register_write_p.
8109 (regcache_collect): Update register_buffer call.
8110 (build_regcache): Rewrite. Use deprecated grub functions.
8111 (regcache_save, regcache_save_no_passthrough): New functions.
8112 (regcache_restore, regcache_restore_no_passthrough): New
8114 (_initialize_regcache): Create the regcache_data_handle. Swap
8115 current_regcache global variable.
8117 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8118 parameter to regcache_read and regcache_write calls.
8119 (sh4_register_read): Ditto.
8120 (sh64_pseudo_register_read): Ditto.
8121 (sh64_register_read): Ditto.
8122 (sh_pseudo_register_write): Ditto.
8123 (sh4_register_write): Ditto.
8124 (sh64_pseudo_register_write): Ditto.
8125 (sh64_register_write): Ditto.
8127 * defs.h (XCALLOC): Define.
8129 2002-06-19 Grace Sainsbury <graces@redhat.com>
8131 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8132 * m68k-tdep.c (m68k_gdbarch_init): Added.
8133 (m68k_dump_tdep): Added.
8135 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8137 * ada-lang.c (fill_in_ada_prototype): Update comment.
8139 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8141 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8143 (mips_abi_string, mips_abi_strings): New.
8144 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8145 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8146 tdep->mips_abi_string. Honor mips_abi_string. Default to
8147 O32 if no ABI is found.
8148 (mips_dump_tdep): Use mips_abi_strings.
8149 (mips_abi_update): New function.
8150 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8151 ``set mips abi'' and ``show mips abi''. Check the size of
8154 2002-06-19 Andrew Cagney <cagney@redhat.com>
8156 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8159 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8161 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8162 current frame using only the first stack size adjustment. All
8163 subsequent size adjustments are not considered to be part of
8164 the "static" part of the current frame.
8165 Compute the address of the saved registers relative to the
8166 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8167 in use in this frame.
8169 2002-06-18 Don Howard <dhoward@redhat.com>
8171 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8172 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8173 suggesting this solution.
8175 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8177 * config/romp/xm-rtbsd.h: Delete file.
8178 * config/romp/rtbsd.mh: Delete file.
8180 2002-06-18 Keith Seitz <keiths@redhat.com>
8182 * breakpoint.c (condition_command): Post breakpoint_modify
8183 when a condition is added to an existing breakpoint.
8184 (commands_command): Likewise for commands.
8185 (set_ignore_count): Likewise for ignore counts.
8186 If no tty, do not simply return, still need to send event
8188 (ignore_command): Only print a newline if the command came
8190 Don't call breakpoints_changed, since this is now properly
8191 handled by set_ignore_count.
8193 2002-06-18 Andrew Cagney <cagney@redhat.com>
8195 * MAINTAINERS: Note that cris-elf target can be compiled with
8197 * cris-tdep.c (cris_register_name): Make return type constant.
8198 (cris_breakpoint_from_pc): Ditto.
8200 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8202 * frame.h (struct frame_info): Change type of context to
8205 2002-06-17 Andrew Cagney <cagney@redhat.com>
8207 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8209 * gdbarch.h, gdbarch.c: Regenerate.
8210 * config/mips/tm-mips.h (mips_register_name): Update.
8211 * i386-tdep.h (i386_register_name): Update.
8212 * mips-tdep.c (mips_register_name): Update
8213 * alpha-tdep.c (alpha_register_name): Update.
8214 * arch-utils.c (legacy_register_name): Update.
8215 * arch-utils.h (legacy_register_name): Update.
8216 * avr-tdep.c (avr_register_name): Update.
8217 * ia64-tdep.c (ia64_register_name): Update.
8218 * i386-tdep.c (i386_register_name): Update.
8219 * sparc-tdep.c (sparc32_register_name): Update.
8220 (sparc64_register_name): Update.
8221 (sparclite_register_name): Update.
8222 (sparclet_register_name): Update.
8223 * sh-tdep.c (sh_generic_register_name): Update.
8224 (sh_sh_register_name): Update.
8225 (sh_sh3_register_name): Update.
8226 (sh_sh3e_register_name): Update.
8227 (sh_sh_dsp_register_name): Update.
8228 (sh_sh3_dsp_register_name): Update.
8229 (sh_sh4_register_name): Update.
8230 (sh_sh64_register_name): Update.
8231 * s390-tdep.c (s390_register_name): Update.
8232 * rs6000-tdep.c (rs6000_register_name): Update.
8233 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8234 (ns32k_register_name_32382): Update.
8235 * d10v-tdep.c (d10v_ts2_register_name): Update.
8236 (d10v_ts3_register_name): Update.
8237 * xstormy16-tdep.c (xstormy16_register_name): Update.
8238 * vax-tdep.c (vax_register_name): Update.
8239 * v850-tdep.c (v850_register_name): Update.
8240 * m68hc11-tdep.c (m68hc11_register_name): Update.
8241 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8242 (am33_register_name): Update.
8244 2002-06-17 Grace Sainsbury <graces@redhat.com>
8246 * m68k-tdep.c: Reindented.
8248 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8250 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8251 list of predefined types.
8253 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8255 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8256 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8257 REGISTER_CONVERT_TO_RAW): Remove defines.
8258 (i386_register_virtual_type, i386_register_convertible,
8259 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8261 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8262 macros mentioned above.
8264 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8265 (i386lynx_saved_pc_after_call): Remove prototype.
8266 * i386ly-tdep.c: Include "i386-tdep.h".
8267 (i386lynx_saved_pc_after_call): Make static. Use
8268 read_memory_nobpt instead of read_memory. Use
8269 read_memory_unsigned_integer instead of read_memory_integer.
8270 (i386lynx_init_abi): New function.
8271 (i386lynx_coff_osabi_sniffer): New function.
8272 (_initialize_i386bsd_tdep): New function.
8274 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8275 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8276 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8277 (i386_fix_call_dummy): Remove prototype.
8278 * i386-tdep.c (i386_call_dummy_words): New variable.
8279 (i386_gdbarch_init): Adjust for removal of the
8280 macros mentioned above.
8282 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8284 * command.h (add_setshow_auto_boolean_cmd): Replace
8285 add_set_auto_boolean_cmd.
8286 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8287 add_set_auto_boolean_cmd.
8288 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8289 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8290 mask-address'' command.
8291 (show_mask_address): Add cmd parameter.
8292 * remote.c (add_packet_config_cmd): Update. Change type of
8293 set_func and show_func to cmd_sfunc_ftype.
8294 (_initialize_remote): Update `set remote Z-packet'
8295 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8296 (show_remote_protocol_e_packet_cmd): Ditto.
8297 (show_remote_protocol_E_packet_cmd): Ditto.
8298 (show_remote_protocol_P_packet_cmd): Ditto.
8299 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8300 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8301 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8302 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8303 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8304 (show_remote_protocol_Z_packet_cmd): Ditto.
8305 (show_remote_protocol_binary_download_cmd): Ditto.
8306 (show_remote_cmd): Pass NULL to all of above.
8308 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8310 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8311 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8312 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8313 POP_FRAME): Remove defines.
8314 (i386_push_arguments, i386_store_struct_return,
8315 i386_extract_return_value, i386_store_return_value,
8316 i386_extract_struct_value_address, i386_push_dummy_frame,
8317 i386_pop_frame): Renove prototypes.
8318 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8319 macros mentioned above.
8321 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8323 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8324 add_set_boolean_cmd.
8325 (add_setshow_cmd): New function.
8326 * command.h (add_setshow_boolean_cmd): Replace
8327 add_set_boolean_cmd.
8328 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8329 and ``set rdiromatzero''.
8330 * maint.c (_initialize_maint_cmds): Update commented out code.
8331 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8332 * target.c (initialize_targets): Update `set
8333 trust-readonly-sections'.
8334 * remote.c (_initialize_remote): Update `set remotebreak'.
8336 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8338 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8339 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8340 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8341 fit into multi-arch framework.
8342 (i386_breakpoint_from_pc): New function.
8343 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8346 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8347 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8348 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8349 (i386_frameless_function_invocation, i386_frame_num_args,
8350 i386_frame_init_saved_regs): Remove prototypes.
8351 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8352 macros mentioned above.
8354 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8356 * cli/cli-decode.c (set_cmd_cfunc): Update.
8357 (set_cmd_sfunc): Update.
8358 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8359 (set_cmd_sfunc, set_cmd_cfunc): Update.
8360 * cli/cli-decode.h: Update.
8362 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8364 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8365 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8367 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8369 * defs.h (auto_boolean): Declare enum.
8370 * command.h (cmd_auto_boolean): Delete enum.
8371 * mips-tdep.c (mask_address_var): Update.
8372 (mips_mask_address_p): Update.
8373 (show_mask_address): Update.
8374 * remote.c (struct packet_config): Update.
8375 (update_packet_config): Update.
8376 (show_packet_config_cmd): Update.
8377 (packet_ok): Update.
8378 (add_packet_config_cmd): Update.
8379 (_initialize_remote):
8380 * command.h: Update.
8381 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8382 (do_setshow_command): Update.
8383 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8384 * cli/cli-decode.h: Update.
8386 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8388 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8389 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8390 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8391 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8392 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8393 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8395 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8396 list of DJGPP COFF targets.
8398 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8399 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8400 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8401 (FP0_REGNUM): Remove define.
8402 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8403 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8404 (i386_register_virtual_size): Remove protoype.
8405 * i386-tdep.c (i386_register_virtual_size): Removed.
8406 (i386_extract_return_value, i386_store_return_value): Use
8407 FP0_REGNUM instead of NUM_FREGS to determine whether the
8408 floating-point registers are available.
8409 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8410 Adjust for removal of macros mentioned above.
8412 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8414 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8416 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8418 (supply_gregset, fill_gregset): Remove use of register keyword and
8419 remove declaration for regmap. Use I386_NUM_GREGS instead of
8420 NUM_REGS and NUM_FREGS.
8421 (FPREGSET_FSAVE_OFFSET): Remove.
8422 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8423 NUM_FREGS to determine whether the floating-point registers are
8426 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8427 gnu_store_registers): Replace usage of NUM_GREGS with
8430 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8431 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8432 usage of NUM_GREGS with I386_NUM_GREGS.
8434 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8436 * i386bsd-nat.c: Include "i386-tdep.h".
8437 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8440 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8441 and associated comment. They no longer make any sense, since we
8442 don't use this file anymore on Linux.
8444 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8445 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8446 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8447 elements in these arrays.
8448 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8451 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8453 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8454 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8456 2002-06-14 Andrew Cagney <cagney@redhat.com>
8458 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8459 EXTRACT_RETURN_VALUE.
8460 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8461 EXTRACT_STRUCT_VALUE_ADDRESS.
8462 * gdbarch.h, gdbarch.c: Regenerate.
8464 * values.c (value_being_returned): Handle
8465 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8466 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8468 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8469 * arm-tdep.c (arm_gdbarch_init): Update.
8470 * avr-tdep.c (avr_gdbarch_init): Update.
8471 * cris-tdep.c (cris_gdbarch_init): Update.
8472 * d10v-tdep.c (d10v_gdbarch_init): Update.
8473 * ia64-tdep.c (ia64_gdbarch_init): Update.
8474 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8475 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8476 * s390-tdep.c (s390_gdbarch_init): Update.
8477 * sh-tdep.c (sh_gdbarch_init): Update.
8478 * s390-tdep.c (s390_gdbarch_init): Update.
8479 * sparc-tdep.c (sparc_gdbarch_init): Update.
8480 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8481 * v850-tdep.c (v850_gdbarch_init): Update.
8482 * vax-tdep.c (vax_gdbarch_init): Update.
8483 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8484 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8486 * config/arc/tm-arc.h: Update.
8487 * config/d30v/tm-d30v.h: Update.
8488 * config/fr30/tm-fr30.h: Update.
8489 * config/h8300/tm-h8300.h: Update.
8490 * config/h8500/tm-h8500.h: Update.
8491 * config/i386/tm-i386.h: Update.
8492 * config/i386/tm-ptx.h: Update.
8493 * config/i386/tm-symmetry.h: Update.
8494 * config/i960/tm-i960.h: Update.
8495 * config/m32r/tm-m32r.h: Update.
8496 * config/m68k/tm-delta68.h: Update.
8497 * config/m68k/tm-linux.h: Update.
8498 * config/m68k/tm-m68k.h: Update.
8499 * config/m88k/tm-m88k.h: Update.
8500 * config/mcore/tm-mcore.h: Update.
8501 * config/mips/tm-mips.h: Update.
8502 * config/mn10200/tm-mn10200.h: Update.
8503 * config/pa/tm-hppa.h: Update.
8504 * config/pa/tm-hppa64.h: Update.
8505 * config/sparc/tm-sp64.h: Update.
8506 * config/sparc/tm-sparc.h: Update.
8507 * config/sparc/tm-sparclet.h: Update.
8508 * config/z8k/tm-z8k.h: Update.
8510 2002-06-14 Andrew Cagney <cagney@redhat.com>
8512 * Makefile.in (i386_linux_tdep_h): Define.
8513 (i386_tdep_h, i387_tdep_h): Define.
8514 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8515 $(i386_tdep_h) and $(i387_tdep_h).
8516 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8518 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8520 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8521 Already covered by the default.
8523 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8524 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8525 (i386_gdbarch_init): Initialize long_double_format and long_double
8528 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8529 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8531 * config/i386/i386sol2.mh: ... here.
8532 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8533 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8534 (SIGCONTEXT_PC_OFFSET): Remove define.
8535 (IN_SIGTRAMP): Remove define.
8536 * i386-sol2-tdep.c: New file.
8538 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8539 * config/i386/tm-i386nw.h: Removed.
8541 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8542 USE_STRUCT_CONVENTION): Remove defines.
8543 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8544 (get_longjmp_target): Remove prototype.
8545 (IN_SIGTRAMP): Remove define.
8546 (i386bsd_in_sigtramp): Remove prototype.
8547 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8548 function. Update comment accordingly
8549 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8550 (FRAME_SAVED_PC): Remove define.
8551 (i386bsd_frame_saved_pc): Remove prototype.
8552 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8553 GET_LONGJMP_TARGET): Remove defines.
8554 (get_longjmp_target): Remove prototype.
8555 (IN_SIGTRAMP): Remove define.
8556 (i386bsd_in_sigtramp): Remove prototype.
8557 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8558 function. Update comment accordingly
8559 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8560 (FRAME_SAVED_PC): Remove define.
8561 (i386bsd_frame_saved_pc): Remove prototype.
8562 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8564 (USE_STRUCT_CONVENTION): Remove prototype.
8565 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8567 (_initialize_i386bsd_nat): Revise logic to determine some
8568 constants at compile time when compiling a native GDB. Warn if
8569 things don't match up with what we expect.
8570 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8572 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8573 to use date stored in `struct gdbarch_tdep'.
8574 (i386bsd_sigcontext_offset): Remove varaible.
8575 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8576 stored in `struct gdbarch_tdep'.
8577 (i386bsd_frame_saved_pc): Make static.
8578 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8579 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8580 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8581 i386fbsd4_sc_pc_offset): New variables.
8582 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8583 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8585 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8587 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8588 Modify the value of i386fbsd_sigtramp_start and
8589 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8590 i386fbsd_sigtramp_end.
8591 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8594 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8595 define to i386-linux-tdep.h.
8596 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8597 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8599 (i386_linux_register_name, i386_linux_register_byte,
8600 i386_linux_register_raw_size): Remove prototypes.
8601 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8602 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8603 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8604 TARGET_WRITE_PC): Remove defines.
8605 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8606 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8607 i386_linux_write_pc): Remove prototypes.
8608 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8609 (get_longjmp_target): Remove prototype.
8610 * i386-linux-tdep.h: New file.
8611 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8612 * i386-linux-tdep.c: Include "i386-tdep.h" and
8613 "i386-linux-tdep.h".
8614 (i386_linux_register_name, i386_linux_register_byte,
8615 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8616 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8618 (i386_linux_init_abi): New function.
8619 (_initialize_i386_linux_tdep): New function.
8621 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8622 (i386_saved_pc_after_call): Remove prototype.
8623 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8624 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8625 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8626 (i386_register_name, i386_stab_reg_to_regnum,
8627 i386_dwarf_reg_to_regnum): Remove prototypes.
8628 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8629 SIZEOF_SSE_REGS): Remove defines.
8630 (REGISTER_BYTES): Remove define.
8631 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8632 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8633 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8634 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8635 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8636 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8637 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8638 (get_longjmp_target): Remove prototype.
8639 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8640 (sigtramp_saved_pc): Remove define.
8641 (i386v4_sigtramp_saved_pc): Remove prototype.
8642 * config/i386/tm-go32.h (FRAME_CHAIN,
8643 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8644 (i386go32_frame_saved_pc): Remove prototype.
8645 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8646 (get_longjmp_target): Remove prototype.
8647 * i386-tdep.h: Include "osabi.h".
8648 (enum i386_abi): Removed.
8649 (enum struct_return): New enum.
8650 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8651 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8652 sc_pc_offset members.
8653 (i386_gdbarch_register_os_abi): Remove prototype.
8654 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8655 I386_SSE_NUM_REGS): New defines.
8656 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8657 I386_SSE_SIZEOF_REGS): New defines.
8658 (i386_register_name, i386_register_byte, i386_register_raw_size):
8660 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8661 (i386bsd_sigtramp_saved_pc): New prototype.
8662 * i386-tdep.c: Don't include "elf-bfd.h".
8663 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8664 i386_frame_chain, i386_saved_pc_after_call): Make static.
8665 (i386_frame_saved_pc): Rewrite to call architecture dependent
8666 function to deal with signal handlers. Make static.
8667 (i386go32_frame_saved_pc): Removed.
8668 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8670 (i386_get_longjmp_target): New function.
8671 (default_struct_convention, pcc_struct_convention,
8672 reg_struct_convention, valid_conventions, struct_convention): New
8674 (i386_use_struct_convention): New function.
8675 (i386v4_sigtramp_saved_pc): Renamed to
8676 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8677 (i386_pc_in_sigtramp): New function.
8678 (i386_abi_names): Removed.
8679 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8680 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8682 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8683 i386_gdbarch_register_os_abi): Removed.
8684 (struct i386_abi_handler): Removed.
8685 (i386_abi_handler_list): Removed.
8686 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8688 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8689 i386_nw_init_abi): New functions.
8690 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8691 Use set_gdbarch_xxx() calls instead of relying on macros for a
8693 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8694 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8695 Register the various architecture variants defined in this file.
8697 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8699 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8700 (struct main_type): Remove arg_types member. Update comments for
8702 (TYPE_ARG_TYPES): Remove.
8703 (TYPE_FN_FIELD_ARGS): Update.
8704 (smash_to_method_type): Update prototype.
8706 * c-typeprint.c (cp_type_print_method_args): Take method type
8707 instead of argument list. Use new argument layout. Simplify.
8708 (c_type_print_args): Use new argument layout. Simplify.
8709 (c_type_print_base): Update call to cp_type_print_method_args.
8710 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8711 argument; use die->type instead. Update call to
8712 smash_to_method_type.
8713 (read_structure_scope): Update call to dwarf2_add_member_fn.
8714 * gdbtypes.c (allocate_stub_method): Update comment.
8715 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8716 Use new argument layout.
8717 (check_stub_method): Use new argument layout. Don't count
8718 void as an argument.
8719 (print_arg_types): Update comments. Use new argument layout.
8720 (recursive_dump_type): Don't print arg_types member.
8721 * hpread.c (hpread_read_struct_type): Use new argument layout.
8722 (fixup_class_method_type): Likewise.
8723 (hpread_type_lookup): Likewise.
8724 * stabsread.c (read_type): Update calls to read_args and
8725 smash_to_method_type.
8726 (read_args): Use new argument layout. Simplify.
8727 * valops.c (typecmp): Use new argument layout. Update parameters
8728 and comments. Simplify.
8729 (hand_function_call): Use new argument layout.
8730 (search_struct_method): Update call to typecmp.
8731 (find_overload_match): Use new argument layout.
8733 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8735 * NEWS: Mention multithreaded debug support for gdbserver.
8737 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8739 * MAINTAINERS: Mention NEWS.
8741 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8743 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8744 (struct mips_objfile_private, compare_pdr_entries): New.
8745 (non_heuristic_proc_desc): Read the ".pdr" section if it
8748 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8750 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8751 (arm_debug): New static variable.
8752 (_initialize_arm_tdep): Add ``set debug arm'' command.
8754 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8756 * Makefile.in (sim_arm_h): Define.
8757 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8758 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8759 (arm_register_sim_regno): New function, map an internal REGNUM
8760 onto a simulator register number.
8761 (arm_gdbarch_init): Set register_sim_regno.
8763 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8765 * MAINTAINERS: Add self.
8767 2002-06-11 Jim Blandy <jimb@redhat.com>
8769 * source.c (source_info): Mention whether the symtab has
8770 information about preprocessor macros.
8772 Call the command `info macro', not `show macro'.
8773 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8775 (_initialize_macrocmd): Register `info_macro_command' in
8776 `infolist', not `showlist'.
8778 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8780 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8781 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8782 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8783 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8784 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8786 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8787 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8788 (_initialize_mips_tdep): Remove dead code.
8789 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8790 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8791 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8792 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8793 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8794 MIPS_LAST_FP_ARG_REGNUM): Remove.
8796 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8798 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8799 (unwind_tmp_obstack_free, parse_frame_info)
8800 (update_context, cfi_read_fp, cfi_write_fp)
8801 (cfi_frame_chain, cfi_init_extra_frame_info)
8802 (cfi_virtual_frame_pointer): Use the above function.
8803 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8805 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8807 * v850-tdep.c (v850_type_is_scalar): New function.
8808 (v850_use_struct_convention): Match current gcc implementation
8809 as close as possible.
8810 (v850_push_arguments): Fix stack_offset handling. Don't write
8811 struct_addr into register. This is done by v850_store_struct_return.
8812 (v850_extract_return_value): Care for structs.
8813 (v850_store_return_value): Ditto.
8814 (v850_store_struct_return): Actually write address.
8816 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8818 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8819 without debug information too.
8821 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8823 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8824 Make multi-arch pure.
8825 * gdbarch.h, gdbarch.c: Re-generate.
8826 * arm-tdep.c (arm_print_float_info): Update.
8827 * arch-utils.h (default_print_float_info): Update.
8828 * arch-utils.c (default_print_float_info): Update.
8829 * infcmd.c (float_info): Update call.
8831 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8833 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8834 the front of the initialize list.
8836 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8838 * infrun.c (struct inferior_status): Replace fields
8839 selected_frame_address and selected_level with field
8841 (save_inferior_status): Update. Use get_frame_id.
8842 (struct restore_selected_frame_args): Delete.
8843 (restore_selected_frame): Update. Use frame_find_by_id.
8844 (restore_inferior_status): Update.
8846 * breakpoint.h (struct breakpoint): Change type of
8847 watchpoint_frame to frame_id.
8848 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8849 call to get_current_frame.
8850 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8852 (watchpoint_check): Use frame_find_by_id.
8854 * frame.h (record_selected_frame): Delete declaration.
8855 * stack.c (record_selected_frame): Delete function.
8857 * frame.h (struct frame_id): Define.
8858 (get_frame_id): Declare.
8859 (frame_find_by_id): Declare.
8860 * frame.c (frame_find_by_id): New function.
8861 (get_frame_id): New function.
8863 2002-06-10 Andrey Volkov <avolkov@transas.com>
8865 * ser-e7kpc.c: Fix duplicated define and call of
8866 _initialize_ser_e7000pc
8868 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8870 * signals/signals.c (target_signal_from_host): Fix #ifdef
8872 (do_target_signal_to_host): Likewise.
8874 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8876 * mips-tdep.c (mips_find_abi_section): New function.
8877 (mips_gdbarch_init): Call it.
8879 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8881 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8882 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8883 after Andrew's 2002-06-08 gdbarch change.
8885 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8887 * i386-linux-nat.c (suppy_gregset): Don't supply
8888 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8890 (fill_gregset): Don't fetch it under the same circumstances.
8892 2002-06-09 Andrew Cagney <cagney@redhat.com>
8894 * Makefile.in (callback_h): Define.
8895 (remote_sim_h): Update path to remote-sim.h.
8896 (remote-rdp.o): Add $(callback_h).
8897 (remote-sim.o): Use $(callback_h).
8898 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8899 * remote-rdp.c: Include "gdb/callback.h".
8901 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8903 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8904 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8906 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8908 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8909 * rdi-share/serpardr.c: Ditto.
8910 * rdi-share/unixcomm.c: Ditto.
8911 * rdi-share/serdrv.c: Ditto.
8912 * rdi-share/hostchan.h: Ditto.
8913 * rdi-share/hostchan.c: Ditto.
8914 * rdi-share/host.h: Ditto.
8915 * rdi-share/devsw.c: Ditto.
8917 * objfiles.h: Change type of obj_private to void pointer.
8918 * pa64solib.c: Update copyright. Don't include "assert.h", use
8919 strcmp instead of STREQ, use LONGEST, do not use PTR
8920 * somsolib.c: Ditto.
8922 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8923 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8924 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8926 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8928 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8929 (default_get_saved_register): Delete function.
8930 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8931 generic_unwind_get_saved_register.
8932 * gdbarch.h, gdbarch.c: Re-generate.
8934 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8936 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8937 generic_func_frame_chain_valid.
8938 * gdbarch.h, gdbarch.c: Re-generate.
8939 * blockframe.c (generic_func_frame_chain_valid): Only check
8940 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8941 passing FP to PC_IN_CALL_DUMMY.
8944 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8946 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8947 (register_gdbarch_data): Initialize init_p.
8948 (gdbarch_data): Initialize data pointer using the init function.
8949 (init_gdbarch_data): Delete function.
8950 (gdbarch_update_p): Update.
8951 (initialize_non_multiarch): Update.
8952 (struct gdbarch): Add field initialized_p.
8953 * gdbarch.h, gdbarch.c: Re-generate.
8955 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8957 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8958 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8959 better do the things actually here.
8960 * x86-64-tdep.c (x86_64_register_name2nr): New.
8961 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8962 (x86_64_gdbarch_init): Respect the above change.
8963 * x86-64-tdep.h (x86_64_register_name2nr)
8964 (x86_64_register_nr2name): Add prototypes.
8965 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8967 2002-06-06 Michael Snyder <msnyder@redhat.com>
8969 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8970 Delete extra braces and re-indent.
8971 (d10v_store_return_value): Char return values
8972 must be shifted over by one byte in R0.
8973 (d10v_extract_return_value): Delete extra braces, re-indent.
8975 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8977 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8978 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8979 (d10v_integer_to_address): Rewrite.
8980 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8981 the d10v specific functions which take care of converting to the
8984 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8986 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8987 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8989 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8991 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8993 * config/tm-linux.h: Ditto.
8994 * config/alpha/tm-alphalinux.h: Ditto.
8995 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8996 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8997 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8998 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8999 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9000 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9001 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9002 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9003 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9004 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9005 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9006 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9007 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9008 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9009 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9010 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9011 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9012 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9013 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9014 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9015 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9016 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9017 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9018 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9019 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9020 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9021 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9022 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9023 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9024 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9025 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9026 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9027 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9028 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9029 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9030 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9031 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9033 2002-05-04 Aidan Skinner <aidan@velvet.net>
9035 * ada-exp.tab.c: New file
9036 * ada-exp.y: New file
9037 * ada-lang.c: New file
9038 * ada-lang.h: New file
9039 * ada-lex.c: New file
9040 * ada-lex.l: New file
9041 * ada-tasks.c: New file
9042 * ada-typeprint.c: New file
9043 * ada-valprint.c: New file
9045 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9047 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9048 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9050 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9052 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9053 insetead of ppc-linux-tdep.o.
9054 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9055 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9057 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9059 2002-05-07 Christian Groessler <chris@groessler.org>
9060 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9061 bit register contents for little endian hosts.
9063 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9065 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9068 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9070 * gdbarch.h: Regenerate.
9072 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9074 * MAINTAINERS: Add everyone to write-after-approval list.
9076 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9078 * stack.c (frame_info): Use frame_register_unwind instead of
9079 saved_regs. Mention when the SP is on the stack or in a register.
9081 * frame.h (frame_register_unwind_ftype): Define. Document.
9082 (struct frame_info): Add field register_unwind and
9083 register_unwind_cache.
9084 (frame_register_unwind): Declare.
9085 (generic_unwind_get_saved_register): Declare.
9087 * frame.c (frame_register_unwind): New function.
9088 (generic_unwind_get_saved_register): New function.
9090 * blockframe.c (generic_call_dummy_register_unwind): New function.
9091 (frame_saved_regs_register_unwind): New function.
9092 (set_unwind_by_pc): New function.
9093 (create_new_frame): New function.
9094 (get_prev_frame): New function.
9096 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9098 * a29k-share/: Delete directory.
9099 * remote-vx29k.c: Delete file.
9101 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9103 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9104 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9106 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9108 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9109 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9112 (sparcnbsd-tdep.o): New dependency lists.
9113 * NEWS: Note new UltraSPARC NetBSD native configuration.
9114 * configure.host (sparc64-*-netbsd*): New host.
9115 * configure.tgt (sparc-*-netbsdelf*)
9116 (sparc-*-netbsd*): Set gdb_target to nbsd.
9117 (sparc64-*-netbsd*): New target.
9118 * sparc64nbsd-nat.c: New file.
9119 * sparcnbsd-nat.c: New file.
9120 * sparcnbsd-tdep.c: New file.
9121 * sparcnbsd-tdep.h: New file.
9122 * config/sparc/nbsd.mt: New file.
9123 * config/sparc/nbsd64.mh: New file.
9124 * config/sparc/nbsd64.mt: New file.
9125 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9126 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9128 * config/sparc/nbsdaout.mt: Remove.
9129 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9130 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9132 * config/sparc/nbsdelf.mt: Remove.
9133 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9134 sparc-nat.c compatiblity defines.
9135 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9136 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9137 * config/sparc/tm-nbsd64.h: New file.
9138 * config/sparc/tm-nbsdaout.h: Remove.
9139 * config/sparc/xm-nbsd.h: Remove.
9141 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9143 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9144 * sparc-tdep.c: Include osabi.h.
9145 (gdbarch_tdep): Add osabi member.
9146 (_initialize_sparc_tdep): Use gdbarch_register.
9147 (sparc_gdbarch_init): Use generic OS ABI framework.
9148 (sparc_dump_tdep): New function.
9150 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9152 * corefile.c (do_captured_read_memory_integer): Return non-zero
9154 (safe_read_memory_integer): Copy result of memory read when
9155 status is non-zero. Also, add comments.
9157 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9159 * Makefile.in (ppc_tdep_h): Define.
9162 (rs6000-tdep.o): Use $(ppc_tdep_h).
9165 (ppcnbsd-tdep.o): New dependency lists.
9166 * ppc-tdep.h: Use generic OS ABI framework.
9167 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9168 (ppc_linux_init_abi): New functions.
9169 (ppc_sysv_abi_broken_use_struct_convention)
9170 (ppc_sysv_abi_use_struct_convention)
9171 (ppc_sysv_abi_push_arguments): Move to...
9172 * ppc-sysv-tdep.c: ...here.
9173 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9174 * rs6000-tdep.c (process_note_abi_tag_sections)
9175 (get_elfosabi): Remove.
9176 (rs6000_gdbarch_init): Use generic OS ABI framework.
9177 (rs6000_dump_tdep): New function.
9178 (_initialize_rs6000_tdep): Use gdbarch_register.
9179 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9180 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9181 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9182 of ppc-linux-tdep.o.
9183 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9184 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9185 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9186 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9187 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9188 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9190 2002-05-29 Jim Blandy <jimb@redhat.com>
9192 * macroscope.c (default_macro_scope): Put `void' in empty argument
9195 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9197 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9198 * arch-utils.c: Include "sim-regno.h".
9199 * gdbarch.sh: Don't include "sim-regno.h".
9200 * gdbarch.h, gdbarch.c: Regenerate.
9201 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9203 * arch-utils.h (legacy_register_sim_regno): To here.
9204 * remote-sim.c (legacy_register_sim_regno): Move function from
9206 * arch-utils.c (legacy_register_sim_regno): To here.
9208 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9210 * sim-regno.h: New file.
9211 * Makefile.in (sim_regno_h): Define.
9212 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9213 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9214 (legacy_register_sim_regno): New function.
9215 (one2one_register_sim_regno): New function.
9216 (gdbsim_fetch_register): Rewrite.
9217 (gdbsim_store_register): Only store a register when
9218 REGISTER_SIM_REGNO is valid.
9219 * d10v-tdep.c: Include "sim-regno.h".
9220 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9221 (d10v_ts3_register_sim_regno): Ditto.
9222 * gdbarch.sh: Include "sim-regno.h".
9223 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9224 * gdbarch.h, gdbarch.c: Regenerate.
9225 * arch-utils.h (default_register_sim_regno): Delete declaration.
9226 * arch-utils.c (default_register_sim_regno): Delete function.
9228 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9230 * ppcnbsd-nat.c: Rewrite.
9231 * ppcnbsd-tdep.c: New file.
9232 * ppcnbsd-tdep.h: New file.
9233 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9234 solib.o, and solib-svr4.o.
9235 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9236 nbsd-tdep.o, and corelow.o.
9238 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9240 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9241 `tr' and `sed'. Mention that `broken' targets are not expected to
9244 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9246 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9247 Let PC point right after the prologue before looking up symbols.
9249 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9251 * i386-tdep.c (i386_register_virtual_type): Return
9252 builtin_type_vec128i for SSE registers.
9254 * gdbtypes.h (builtin_type_vec128i): Declare.
9256 * gdbtypes.c (build_builtin_type_vec128i): New function.
9257 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9258 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9259 (build_gdbtypes): Initialize new builtin vector types.
9260 (_initialize_gdbtypes): Register new vector types with gdbarch.
9262 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9264 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9265 since it has been multi-arch'd.
9266 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9267 Move Alpha and VAX multi-arch news entries to same section
9268 as other multi-arch news.
9270 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9272 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9273 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9274 static. Rename some register numbers to put them in ns32k-tdep
9276 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9277 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9279 (_initialize_ns32k_tdep): Use gdbarch_register.
9280 * ns32k-tdep.h: New file.
9281 * ns32knbsd-tdep.c: New file.
9282 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9283 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9284 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9285 REGISTER_BYTES, REGISTER_BYTE): Remove.
9286 * config/ns32k/tm-ns32k.h: New file.
9287 * config/ns32k/tm-umax.h: Remove.
9289 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9291 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9292 ns32k_store_struct_return, ns32k_extract_return_value,
9293 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9295 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9296 ns32k_saved_pc_after_call.
9297 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9298 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9299 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9300 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9301 ns32k_extract_struct_value_address.
9303 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9305 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9306 ns32k_fix_call_dummy): New.
9307 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9308 ns32k_call_dummy_words.
9309 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9310 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9311 CALL_DUMMY_NARGS): Remove.
9312 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9314 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9316 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9317 ns32k_frame_saved_pc, ns32k_frame_args_address,
9318 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9319 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9320 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9321 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9322 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9323 (BREAKPOINT): Remove..
9324 (FRAME_CHAIN): Define as ns32k_frame_chain.
9325 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9326 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9327 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9328 (FRAME_FIND_SAVED_REGS): Remove.
9329 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9330 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9331 (POP_FRAME): Define as ns32k_pop_frame.
9333 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9335 * ns32k-tdep.c (ns32k_register_byte_32082,
9336 ns32k_register_byte_32382, ns32k_register_raw_size,
9337 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9339 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9340 ns32k_register_byte_32382.
9341 * config/ns32k/tm-umax.h: Update copyright years.
9342 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9343 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9344 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9345 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9346 (ns32k_get_enter_addr): Fix prototype.
9348 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9350 * ns32k-tdep.c: Update copyright years.
9351 (ns32k_register_name_32082): New function.
9352 (ns32k_register_name_32382): Ditto.
9353 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9354 (REGISTER_NAME): Define as ns32k_register_name_32382.
9355 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9356 (REGISTER_NAME): Define as ns32k_register_name_32082.
9358 2002-05-24 Jim Blandy <jimb@redhat.com>
9360 * dwarf2read.c (free_line_header): Use xfree, not free.
9362 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9364 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9365 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9367 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9369 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9371 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9373 From Ross Alexander at NEC Europe:
9374 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9376 2002-05-23 Michael Snyder <msnyder@redhat.com>
9378 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9379 for input, rather than parse_and_eval_address.
9381 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9383 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9384 * Makefile.in (sim_d10v_h): Update definition.
9386 2002-05-24 Andrew Cagney <cagney@redhat.com>
9388 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9389 change `2002-05-22 Michael Snyder' below.
9390 (d10v_push_arguments): Ditto.
9391 (d10v_extract_return_value): Ditto.
9393 2002-05-23 Jim Blandy <jimb@redhat.com>
9395 * macrotab.c (check_for_redefinition): Don't complain if the new
9396 definition is the same as the previous one. Take more arguments
9397 to allow the comparison.
9398 (macro_define_object, macro_define_function): Pass more arguments
9399 to check_for_redefinition.
9401 2002-05-22 Michael Snyder <msnyder@redhat.com>
9403 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9404 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9405 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9406 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9407 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9408 Add a temp variable to save a call (and a memory read).
9409 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9410 if possible (so that PC_IN_CALL_DUMMY will work).
9412 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9414 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9416 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9418 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9420 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9421 (dwarf2_build_frame_info): Add offset to fde->initial_location
9422 so that frames of shared libraries are mapped correctly.
9423 (execute_stack_op): Change type of 'result' from ULONGEST to
9426 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9428 * config/alpha/tm-nbsd.h: Include solib.h.
9430 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9432 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9433 assumptions about the host's byte order.
9435 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9437 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9439 * alphanbsd-tdep.c: Include solib-svr4.h.
9440 * shnbsd-tdep.c: Ditto.
9442 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9444 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9445 nbsd-tdep.h to dependency list.
9446 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9447 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9448 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9449 nbsdaout.mh and nbsdelf.mh consistently.
9450 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9451 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9452 nbsdaout.mt and nbsdelf.mh consistently.
9453 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9454 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9455 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9456 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9457 a.out shared library stuff from here...
9458 * config/nm-nbsdaout.h: ...to here.
9459 * config/tm-nbsd.h: Remove.
9460 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9461 * config/arm/nbsd.mh: Remove.
9462 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9464 * config/arm/nbsdaout.mh: New file.
9465 * config/arm/nbsdelf.mh: New file.
9466 * config/arm/nm-nbsdaout.h: New file.
9467 * config/i386/nbsd.mh: Remove.
9468 * config/i386/nbsd.mt: Remove.
9469 * config/i386/nbsdaout.mh: New file.
9470 * config/i386/nbsdaout.mt: New file.
9471 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9472 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9473 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9474 i386_register_u_addr): Remove.
9475 * config/i386/nm-nbsdaout.h: New file.
9476 * config/i386/nm-nbsdelf.h: Remove.
9477 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9478 (USE_STRUCT_CONVENTION): Remove.
9479 * config/i386/tm-nbsdaout.h: New file.
9480 * config/i386/tm-nbsdelf.h: Remove.
9481 * config/m68k/nbsd.mh: Remove.
9482 * config/m68k/nbsd.mt: Remove.
9483 * config/m68k/nbsdaout.mh: New file.
9484 * config/m68k/nbsdaout.mt: New file.
9485 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9486 * config/m68k/nm-nbsdaout.h: New file.
9487 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9488 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9489 * config/ns32k/nbsd.mh: Remove.
9490 * config/ns32k/nbsd.mt: Remove.
9491 * config/ns32k/nbsdaout.mh: New file.
9492 * config/ns32k/nbsdaout.mt: New file.
9493 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9494 * config/ns32k/nm-nbsdaout.h: New file.
9495 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9496 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9497 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9498 (SVR4_SHARED_LIBS): Remove.
9499 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9500 * config/sparc/nbsd.mh: Remove.
9501 * config/sparc/nbsd.mt: Remove.
9502 * config/sparc/nbsdaout.mh: New file.
9503 * config/sparc/nbsdaout.mt: New file.
9504 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9505 * config/sparc/nbsdelf.mt: New file.
9506 * config/sparc/nm-nbsdaout.h: New file.
9507 * config/sparc/nm-nbsdelf.h: Remove.
9508 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9509 * config/sparc/tm-nbsdaout.h: New file.
9511 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9513 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9515 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9517 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9519 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9521 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9523 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9525 * NEWS: Note new MIPS NetBSD native configuration.
9526 * configure.host (mips*-*-netbsd*): New host.
9527 * configure.tgt (mips*-*-netbsd*): New target.
9528 * mipsnbsd-nat.c: New file.
9529 * mipsnbsd-tdep.c: New file.
9530 * mipsnbsd-tdep.h: New file.
9531 * config/mips/nbsd.mh: New file.
9532 * config/mips/nbsd.mt: New file.
9533 * config/mips/nm-nbsd.h: New file.
9534 * config/mips/tm-nbsd.h: New file.
9536 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9538 * Makefile.in (SFILES): Add osabi.c.
9539 (COMMON_OBS): Add osabi.o.
9540 (osabi.o): New dependency list.
9541 * osabi.c: New file.
9542 * osabi.h: New file.
9543 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9545 * Makefile.in (alpha_tdep_h): Define and use instead of
9547 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9548 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9550 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9551 * alpha-tdep.h: Include osabi.h.
9552 (alpha_abi): Remove.
9553 (gdbarch_tdep): Use generic OS ABI framework.
9554 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9555 gdbarch_register_osabi.
9556 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9557 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9558 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9560 * Makefile.in (sh_tdep_h): Add osabi.h.
9561 * sh-tdep.h (sh_osabi): Remove.
9562 (gdbarch_tdep): Use generic OS ABI framework.
9563 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9564 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9565 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9566 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9568 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9569 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9570 gdbarch_register_osabi.
9571 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9572 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9573 (get_elfosabi): Rename to...
9574 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9575 ABI framework support routines.
9576 (arm_gdbarch_init): Use generic OS ABI framework.
9577 (arm_dump_tdep): Likewise.
9578 (_initialize_arm_tdep): Likewise.
9579 * arm-tdep.h: Include osabi.h.
9581 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9583 (arm_gdbarch_register_os_abi): Remove prototype.
9584 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9585 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9587 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9588 * mips-tdep.c: Include osabi.h.
9589 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9592 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9594 * h8300-tdep.c: Fix formatting.
9596 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9598 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9599 printing vector registers.
9601 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9603 From Fernando Nasser:
9604 * remote.c (remote_async_open_1): Re-throw the exception when the
9606 (remote_cisco_open): Ditto.
9607 (remote_open_1): Ditto.
9609 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9611 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9612 (remote_start_remote): Add uiout parameter. Pass through to
9613 remote_start_remote_dummy.
9614 (remote_open_1): Use catch_exception instead of catch_errors.
9615 (remote_async_open_1): Ditto.
9616 (remote_cisco_open): Ditto.
9618 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9620 * remote.c (remote_start_remote): Replace PTR with void pointer.
9621 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9624 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9626 * gdb_indent.sh: Allow the script to be run in the sim directory.
9628 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9630 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9631 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9633 * corelow.c (core_open): Only call set_gdbarch_from_file if
9636 2002-05-17 Andrey Volkov <avolkov@transas.com>
9638 * h8300-tdep.c: Add support of EXR register
9639 * config/h8300/tm-h8300.h: Ditto.
9641 2002-05-17 Andrey Volkov <avolkov@transas.com>
9643 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9645 2002-05-17 Andrey Volkov <avolkov@transas.com>
9647 * h8300-tdep.c: Change literal regnums to REGNO.
9649 2002-05-17 Jim Blandy <jimb@redhat.com>
9651 * NEWS: Note addition of macro support.
9653 Expand preprocessor macros in C expressions.
9654 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9655 (scan_macro_expansion, scanning_macro_expansion,
9656 finished_macro_expansion): New function declarations.
9657 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9658 variable declarations.
9659 * parser-defs.h (expression_context_pc): New declaration.
9660 * parse.c (expression_context_pc): New variable.
9661 (parse_exp_1): Set expression_context_pc, as well as
9662 expression_context_block.
9663 * c-exp.y (yylex): If we're not already reading the result of a
9664 macro expansion, try to macro-expand the next token. When we're
9665 done scanning a macro expansion, switch back to the mainline text.
9666 Commas and `if's in a macro's expansion don't terminate the input.
9667 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9668 (macro_original_text, macro_expanded_text,
9669 expression_macro_lookup_func, expression_macro_lookup_baton): New
9671 (scan_macro_expansion, scanning_macro_expansion,
9672 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9673 c_preprocess_and_parse): New functions.
9674 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9675 c_preprocess_and_parse, instead of c_parse.
9676 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9677 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9679 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9681 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9682 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9683 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9685 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9687 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9689 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9691 * Makefile.in (sh_tdep_h): Define and use.
9692 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9693 register enum): Move to...
9694 * * sh-tdep.h: ...here.
9695 * sh-tdep.c: Include sh-tdep.h.
9696 * sh3-rom.c: Likewise.
9697 * shnbsd-tdep.c: Likewise.
9699 2002-05-16 Michael Snyder <msnyder@redhat.com>
9701 * arm-tdep.c: Spelling fix in comment.
9703 2002-05-16 Jim Blandy <jimb@redhat.com>
9705 Add commands for manually expanding macros and showing their
9707 * macrocmd.c, macroscope.c, macroscope.h: New files.
9708 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9709 (macroscope_h): New variable.
9710 (HFILES_NO_SRCDIR): Add macroscope.h.
9711 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9712 (macroscope.o, macrocmd.o): New rules.
9714 Teach the Dwarf 2 reader to read macro information.
9715 * dwarf2read.c: #include "macrotab.h".
9716 (dwarf_macinfo_buffer): New variable.
9717 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9719 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9720 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9721 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9722 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9723 dwarf2_macro_spaces_in_definition): New complaints.
9724 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9725 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9726 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9727 the partial symbol table.
9728 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9729 from what's recorded in the partial symbol table.
9730 (read_file_scope): If the compilation unit has a
9731 `DW_AT_macro_info' attribute, read its macro information.
9732 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9734 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9737 * ser-tcp.c: Don't include <netinet/udp.h>.
9739 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9741 * MAINTAINERS: Update my email address.
9743 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9745 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9746 include file of the same name.
9748 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9750 * configure.tgt: Mark v850 as multi-arched.
9751 * config/v850/tm-v850.h: Remove file.
9752 * config/v850/v850.mt: Eliminate TM_FILE.
9754 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9756 * v850-tdep.c: Full multi-arch.
9757 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9758 Define GDB_MULTI_ARCH to 2.
9760 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9762 * p-exp.y (current_type): New static variable.
9763 Carries the type of the expression at the position that is parsed.
9764 (push_current_type, pop_current_type): Two new functions. Used
9765 to store/restore current_type in expression on specific tokens.
9766 (search_field): New static variable. Set to one after parsing a point
9767 as at that point only a FIELDNAME token should be searched.
9768 (FIELDNAME): New token. After a point only a token belonging to
9769 current_type type definition is allowed.
9770 (all over token rules): reset and change current_type according
9772 (exp '[' rule): insert implicit array index field if
9773 exp is a pascal string type.
9775 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9777 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9778 frame info. Use frame_info's saved_regs instead of matching member
9779 in extra_frame_info throughout.
9780 (v850_frame_init_saved_regs): New function.
9781 (v850_init_extra_frame_info): Move most functionality into
9782 v850_frame_init_saved_regs().
9783 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9784 (v850_frame_find_saved_regs): Remove declaration.
9785 (FRAME_FIND_SAVED_REGS): Remove definition.
9786 (v850_frame_init_saved_regs): Add declaration.
9787 (FRAME_INIT_SAVED_REGS): Add definition.
9789 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9791 * v850-tdep.c: Begin multi-arch'ing v850.
9792 (v850_target_architecture_hook): Remove function.
9793 (v850_gdbarch_init): New function. Add code previously in
9794 v850_target_architecture_hook().
9795 (_initialize_v850_tdep): Don't set target_architecture_hook.
9796 Call register_gdbarch_init() instead.
9798 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9800 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9801 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9802 (fixup_class_method_type): Likewise.
9804 2002-05-15 Jim Blandy <jimb@redhat.com>
9806 Add macro structures to GDB's symbol tables. Nobody puts anything
9808 * symtab.h (struct symtab): New member: `macro_table'.
9809 * buildsym.h (pending_macros): New global variable.
9810 * buildsym.c: #include "macrotab.h".
9811 (buildsym_init): Initialize `pending_macros'.
9812 (end_symtab): If we found macro information while reading a CU's
9813 debugging info, do build a symtab structure for it. Make the
9814 symtab point to the macro information, and clear the
9815 `pending_macros' pointer which held it while we were reading the
9817 (really_free_pendings): Free any pending macro table.
9818 * objfiles.h (struct objfile): New member: `macro_cache'.
9819 * objfiles.c (allocate_objfile): Set allocate and free functions
9820 for the macro cache's objstack.
9821 (free_objfile): Empty the macro cache's obstack.
9822 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9823 set new allocate and free functions for it.
9824 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9825 free functions for the macro cache's objstack. (Why is this
9826 function building its own objfile?)
9827 * symmisc.c (print_objfile_statistics): Print statistics on the
9829 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9831 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9833 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9834 (REGISTER_U_ADDR): Delete definition.
9835 (arm_register_u_addr): Delete declaration.
9837 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9839 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9840 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9842 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9844 * regcache.c (register_valid): Revise comments refering to "Not
9845 available" and "unavailable".
9846 * frame.c (frame_register_read): Ditto.
9847 * findvar.c (value_of_register): Ditto.
9849 2002-05-15 Andrew Cagney <cagney@redhat.com>
9851 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9852 (remote-sim.o): Update dependencies.
9853 (d10v-tdep.o): Specify dependencies.
9854 (sim_d10v_h): Define.
9856 2002-05-14 Jim Blandy <jimb@redhat.com>
9858 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9859 * macrotab.c (macro_lookup_inclusion, find_definition,
9860 new_macro_table): Same.
9862 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9863 not `! strcmp ()'. This is a dubious improvement.
9864 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9866 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9867 although it's not necessary, to avoid a warning.
9869 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9871 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9872 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9873 TYPE_INSTANCE_FLAGS.
9874 (struct main_type): New.
9875 (struct type): Move most members to struct main_type. Change
9876 cv_type and as_type to new type_chain member. Add instance_flags.
9877 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9878 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9879 (finish_cv_type): Remove prototype.
9880 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9882 (alloc_type_instance): New function.
9883 (smash_type): New function.
9884 (make_pointer_type, make_reference_type, make_function_type)
9885 (smash_to_member_type, smash_to_method_type): Call smash_type.
9886 (make_qualified_type): New function.
9887 (make_type_with_address_space): Call make_qualified_type.
9888 (make_cv_type): Likewise.
9889 (finish_cv_type): Remove unnecessary function.
9890 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9891 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9892 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9893 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9894 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9895 * hpread.c (hpread_read_struct_type): Likewise.
9896 * stabsread.c (read_struct_type): Likewise.
9898 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9900 * configure.tgt: Add a catch all sh* target, for cases like
9901 sh[2,3,4]-elf and sh-hms.
9903 2002-05-14 Keith Seitz <keiths@redhat.com>
9905 * event-loop.c (create_file_handler): Don't do anything but
9906 update data when we are given a fd which we are already
9909 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9911 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9912 (update_context): Use __func__ in warnings.
9914 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9916 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9917 and tcp_close to net_open and net_close.
9918 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9919 using UDP if requested. Don't try to disable Nagle on UDP
9921 * remote.c (remote_serial_open): New function. Warn about UDP.
9922 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9924 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9926 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9928 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9930 * configure.tgt: Remove sh-hms target.
9931 * MAINTAINERS: Don't list sh-hms as a separate target.
9933 2002-05-13 Jim Blandy <jimb@redhat.com>
9935 Add first preprocessor macro-expansion files.
9936 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9937 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9938 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9939 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9940 (COMMON_OBS): Add macrotab.o, macroexp.o.
9941 (macroexp.o, macrotab.o): New rules.
9943 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9945 * config/m88k/tm-m88k.h: Update copyright.
9946 (m88k_target_write_pc): Declare
9947 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9948 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9949 (SHIFT_INST_REGS): Update definition.
9950 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9951 using old definition of TARGET_WRITE_PC.
9952 * regcache.c (generic_target_write_pc): Delete code handling
9954 * gdbarch.sh (NNPC_REGNUM): Delete.
9955 * gdbarch.h, gdbarch.c: Regenerate.
9957 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9959 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9962 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9964 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9965 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9966 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9968 * c-typeprint.c (cp_type_print_method_args): Likewise.
9969 (c_type_print_args): Likewise.
9970 * d10v-tdep.c (d10v_push_arguments): Likewise.
9971 (d10v_extract_return_value): Likewise.
9972 * expprint.c (print_subexp): Likewise.
9973 * gdbtypes.c (lookup_primitive_typename): Likewise.
9974 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9975 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9976 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9977 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9978 (TYPE_VECTOR): Likewise.
9979 * hpread.c (hpread_read_struct_type)
9980 (fix_static_member_physnames, fixup_class_method_type)
9981 (hpread_type_lookup): Likewise.
9982 * mdebugread.c (parse_symbol, parse_type): Likewise.
9983 * p-lang.c (is_pascal_string_type): Likewise.
9984 * valops.c (hand_function_call): Likewise.
9985 * x86-64-tdep.c (classify_argument): Likewise.
9987 * hpread.c (hpread_read_function_type)
9988 (hpread_read_doc_function_type): Call replace_type.
9989 * dstread.c (create_new_type): Delete.
9990 (decode_dst_structure, process_dst_function): Call alloc_type.
9991 Use type access macros.
9993 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9995 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9996 the're not supported by the current architecture.
9997 (i387_fill_fxsave): Likewise.
9999 2002-05-12 Fred Fish <fnf@redhat.com>
10001 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10002 sect_index_xxx members to index the first slot in section_offsets
10003 if all of the section_offsets are zero.
10005 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10007 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10008 checked in with last change.
10010 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10012 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10013 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10016 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10018 * Makefile.in: Update dependencies.
10020 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10022 * language.c (local_hex_string_custom): Simplify. Do not depend
10023 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10025 * memattr.c (mem_info_command): Replace calls to
10026 longest_local_hex_string and longest_local_hex_string_custom.
10027 * buildsym.c (make_blockvector): Ditto.
10028 * solib.c (info_sharedlibrary_command): Ditto.
10029 * tracepoint.c (tracepoints_info): Ditto.
10030 * symtab.c (print_msymbol_info): Ditto.
10032 * language.c (local_hex_string): Delete.
10033 (local_hex_string_custom): Delete.
10034 (longest_local_hex_string): Rename to local_hex_string.
10035 (longest_local_hex_string_custom): Rename to
10036 local_hex_string_custom.
10037 * language.h (local_hex_string): Change parameter type to LONGEST.
10038 (local_hex_string_custom): Ditto.
10039 (longest_local_hex_string): Delete declaration.
10040 (longest_local_hex_string_custom): Ditto.
10042 * solib.c: Update copyright.
10043 * memattr.c: Update copyright.
10045 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10047 * arch-utils.h (legacy_register_to_value): Declare.
10048 (legacy_value_to_register): Declare.
10049 (legacy_convert_register_p): Declare.
10050 * arch-utils.c (legacy_register_to_value): New function.
10051 (legacy_value_to_register): New function.
10052 (legacy_convert_register_p): New function.
10054 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10055 (VALUE_TO_REGISTER): Define.
10056 (CONVERT_REGISTER_P): Define.
10057 * gdbarch.h, gdbarch.c: Regenerate.
10059 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10061 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10062 CONVERT_REGISTER_P.
10064 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10065 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10067 * Makefile.in: Update dependencies for valops.c.
10068 * valops.c: Include "gdb_assert.h".
10069 (typecmp): Skip THIS parameter to methods.
10070 (find_method_list): Remove static_memfuncp argument,
10071 update callers. Check for stub methods.
10072 (find_value_oload_method_list): Don't set *static_memfuncp.
10073 (find_overload_match): Don't check for stub methods. Assert
10074 that methods are not stubbed. Handle static methods.
10075 (value_find_oload_method_list): Remove static_memfuncp argument.
10076 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10077 to the argument list for static stub methods.
10078 * value.h (value_find_oload_method_list): Update prototype.
10080 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10082 * arch-utils.h (generic_register_size): Declare.
10083 (generic_register_raw_size, generic_register_virtual_size): Delete
10085 * arch-utils.c (generic_register_raw_size): Delete.
10086 (generic_register_size): New function.
10087 (generic_register_virtual_size): Delete.
10089 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10090 default generic_register_size.
10091 * gdbarch.h, gdbarch.c: Re-generate.
10093 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10094 register_virtual_size.
10095 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10096 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10098 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10100 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10101 * gdbarch.h, gdbarch.c: Regenerate.
10102 * gnu-v3-abi.c: Update copyright.
10103 (vtable_address_point_offset): Update.
10104 (gnuv3_rtti_type): Update.
10105 (gnuv3_baseclass_offset): Update.
10106 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10107 (init_fetch_link_map_offsets): Update.
10108 * remote.c (get_remote_state): Update.
10110 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10112 * TODO: Remove value_headof/value_from_vtable_info comment.
10113 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10114 * values.c (value_headof, value_from_vtable_info): Delete.
10115 * value.h (value_from_vtable_info): Delete prototype.
10117 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10119 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10120 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10122 (gdb_assert_h): Define.
10123 (gdb_wait_h): Define.
10124 (gdb_regex_h): Define.
10126 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10128 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10129 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10131 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10133 * nbsd-tdep.c: Fix comment.
10135 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10137 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10138 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10139 (nbsd-tdep.o): New dependency list.
10140 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10142 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10143 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10144 * nbsd-tdep.c: New file.
10145 * nbsd-tdep.h: New file.
10146 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10148 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10149 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10150 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10151 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10153 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10155 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10156 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10157 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10158 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10159 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10160 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10162 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10164 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10165 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10166 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10167 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10168 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10169 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10170 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10172 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10174 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10175 fetch_elfcore_registers to...
10176 * i386nbsd-tdep.c: ...here.
10177 (i386nbsd_use_struct_convention): Rename to...
10178 (i386nbsd_aout_use_struct_convention): ...this.
10179 (i386nbsd_supply_reg): New function.
10180 (i386nbsd_fill_reg): New function.
10181 (fetch_core_registers): Use i386nbsd_supply_reg.
10182 (fetch_elfcore_registers): Likewise.
10183 (_initialize_i386nbsd_tdep): New function.
10184 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10185 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10186 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10187 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10188 (i386nbsd_aout_use_struct_convention): ...this.
10190 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10192 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10193 (store_inferior_registers): Use shnbsd_fill_reg.
10194 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10195 sh_nbsd_supply_register): Collapse into...
10196 (shnbsd_supply_reg): ...this.
10197 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10198 (shnbsd_fill_reg): ...this.
10199 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10200 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10201 (fetch_core_registers): Use shnbsd_supply_reg.
10202 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10203 (sh_nbsd_core_fns): Rename to...
10204 (shnbsd_core_fns): ...this.
10205 (sh_nbsd_elfcore_fns): Rename to...
10206 (shnbsd_elfcore_fns): ...this.
10207 (sh_nbsd_init_abi): Rename to...
10208 (shnbsd_init_abi): ...this.
10209 (_initialize_sh_nbsd_tdep): Rename to...
10210 (_initialize_shnbsd_tdep): ...this.
10211 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10212 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10213 sh_nbsd_fill_register): Remove prototypes.
10214 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10216 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10218 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10219 (i387-nat.o): Delete dependency list.
10220 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10221 (x86-64-linux-nat.o): Likewise.
10222 * i387-nat.c: Delete file, moving contents to...
10223 * i387-tdep.c: ...here.
10224 * i387-nat.h: Rename...
10225 * i387-tdep.h: ...to this.
10226 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10227 * i386-linux-nat.c: Likewise.
10228 * i386bsd-nat.c: Likewise.
10229 * i386gnu-nat.c: Likewise.
10230 * i386nbsd-nat.c: Likewise.
10231 * i386v4-nat.c: Likewise.
10232 * x86-64-linux-nat.c: Likewise.
10233 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10234 * config/i386/go32.mh (NATDEPFILES): Likewise.
10235 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10236 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10237 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10238 * config/i386/linux.mh (NATDEPFILES): Likewise.
10239 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10240 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10241 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10242 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10244 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10246 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10247 (alphanbsd-nat.o): Remove dependency list.
10248 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10249 * alphanbsd-nat.c: Delete. Contents moved to...
10250 * alphanbsd-tdep.c: ...here.
10251 (_initialize_alphanbsd_tdep): Register core functions.
10252 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10254 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10256 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10257 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10258 (alphanbsd-nat.o): Likewise.
10259 (alphabsd-tdep.o): New dependency list.
10260 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10261 (fill_gregset): Use alphabsd_fill_reg.
10262 (supply_fpregset): Use alphabsd_supply_fpreg.
10263 (fill_fpregset): Use alphabsd_fill_fpreg.
10264 (fetch_inferior_registers): Use struct reg and struct fpreg
10265 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10266 and alphabsd_supply_fpreg.
10267 (store_inferior_registers): Use struct reg and struct fpreg
10268 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10269 and alphabsd_fill_fpreg.
10270 * alphabsd-tdep.c: New file.
10271 * alphabsd-tdep.h: New file.
10272 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10273 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10274 alphabsd_supply_fpreg.
10275 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10276 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10278 2002-05-11 Eric Christopher <echristo@redhat.com>
10280 * mips-tdep.c (mips_double_register_type): Fix thinko.
10281 (mips_single_register_type): Ditto.
10282 * MAINTAINERS: Add self.
10284 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10286 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10287 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10288 right thing on architectures with different endianness and/or
10291 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10293 From Christian Limpach <chris@Pin.LU>
10294 * configure.in: Change sed expression which comments out
10295 NATDEPFILES to also comment out continuation lines.
10296 * configure: Regenerate.
10298 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10300 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10303 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10305 * sh-tdep.c: Include correct file.
10307 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10309 New support for sh64-elf (sh5) target.
10311 * configure.tgt: For sh64-elf target, default to sh-elf.
10313 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10314 (struct gdbarch_tdep): Add new fields for new registers and ABI
10317 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10318 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10319 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10320 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10321 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10322 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10323 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10324 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10325 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10326 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10327 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10328 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10329 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10330 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10331 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10332 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10333 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10334 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10335 sign_extend, sh64_nofp_frame_init_saved_regs,
10336 sh64_init_extra_frame_info, sh64_get_saved_register,
10337 sh64_extract_struct_value_address, sh64_pop_frame,
10338 sh64_push_arguments, sh64_extract_return_value,
10339 sh64_store_return_value, sh64_show_media_regs,
10340 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10341 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10342 sh_sh64_register_virtual_type,
10343 sh_sh64_register_convert_to_virtual,
10344 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10345 sh64_register_read, sh64_pseudo_register_write,
10346 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10347 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10348 sh64_do_pseudo_register, sh_compact_do_registers_info,
10349 sh64_do_registers_info, sh_gdbarch_init): New functions.
10351 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10353 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10355 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10357 * linespec.c (decode_line_1): Check for a double quote after
10358 a filename correctly.
10360 2002-05-10 Jim Blandy <jimb@redhat.com>
10362 Properly track the size of the current objfile's .debug_line section.
10363 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10364 (DWARF_LINE_SIZE): New macro.
10365 (dwarf2_build_psymtabs_hard): Record the line section's size in
10366 the partial symbol table.
10367 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10370 2002-05-10 Petr Sorfa <petrs@caldera.com>
10372 * ia64-tdep.c: Handle breakpoints on L instruction type
10373 in MLX instruction bundle by moving the breakpoint to
10374 the third slot (X instruction type) as L holds only data.
10376 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10378 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10379 (process_one_symbol): Complain about discarding local symbols
10380 due to a misplaced N_LBRAC entry.
10382 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10384 From Daniel Berlin <dan@cgsoftware.com>
10385 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10386 decrease the depth we are at, in the case of templates.
10388 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10390 * mips-tdep.c (mips_float_register_type): New function.
10391 (mips_double_register_type): New function.
10392 (mips_print_register): Use them.
10393 (do_fp_register_row): Likewise.
10395 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10397 * signals/signals.c (signals): Remove conditional compilation around
10398 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10399 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10401 2002-05-09 Michael Snyder <msnyder@redhat.com>
10403 * remote-rdp.c (remote_rdp_can_run): Remove.
10405 2002-05-09 Tom Tromey <tromey@redhat.com>
10407 * jv-valprint.c (java_val_print): Handle `char' as a special case
10410 2002-05-09 Michael Snyder <msnyder@redhat.com>
10412 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10413 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10414 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10415 str r(0123),[sp,#nn].
10416 (arm_skip_prologue): Ditto. Also make disassembly
10417 order-independent by placing it in a loop.
10419 2002-05-06 Michael Snyder <msnyder@redhat.com>
10421 * stabsread.c (read_type): Add recognition for new attribute:
10422 "@V;" means that an array type is actually a vector.
10423 This is analogous to the vector flag that's been added to dwarf2.
10425 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10427 * i386-tdep.h (i386_abi): New enum.
10428 (struct gdbarch_tdep): Replace os_ident member with abi.
10429 (i386_gdbarch_register_os_abi): New prototype.
10430 * i386-tdep.c (i386_abi_names): New array.
10431 (process_note_abi_tag_sections): Removed.
10432 (process_note_sections): New function.
10433 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10434 (struct i386_abi_handler): New struct.
10435 (i386_abi_handler_list): New variable.
10436 (i386_gdbarch_register_os_abi): New function.
10437 (i386_gdbarch_init): Adapt for the changes given above.
10439 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10441 * gregset.h: Say "GNU/Linux".
10443 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10445 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10446 (build_gdbtypes): Build builtin_type_v2_float.
10447 (_initialize_gdbtypes): Register new builtin type.
10449 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10451 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10452 (clear_gdbarch_swap): New function.
10453 (initialize_non_multiarch): Call.
10454 (gdbarch_update_p): Before calling init(), swap out and clear the
10455 existing architecture.
10456 * gdbarch.c: Regenerate.
10458 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10460 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10463 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10465 * sh-nbsd-nat.c: Rename to...
10466 * shnbsd-nat.c: ...this.
10467 * sh-nbsd-tdep.c: Rename to...
10468 * shnbsd-tdep.c: ...this.
10469 * sh-nbsd-tdep.h: Rename to...
10470 * shnbsd-tdep.h: ...this.
10471 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10472 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10474 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10476 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10477 concatenation for command help messages.
10479 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10481 * NEWS: Note new sh*-*-netbsdelf* configuration.
10482 * configure.host: Set gdb_host_cpu to sh for all sh*.
10483 (sh*-*-netbsdelf*): New host.
10484 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10485 (sh*-*-netbsdelf*): New target.
10486 * sh-nbsd-nat.c: New file.
10487 * sh-nbsd-tdep.c: New file.
10488 * sh-nbsd-tdep.h: New file.
10489 * config/sh/nbsd.mh: New file.
10490 * config/sh/nbsd.mt: New file.
10491 * config/sh/nm-nbsd.h: New file.
10492 * config/sh/tm-nbsd.h: New file.
10494 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10496 * sh-tdep.c (sh_osabi_names): Declare.
10497 (process_note_abi_tag_sections): New function.
10498 (get_elfosabi): Ditto.
10499 (sh_gdbarch_register_os_abi): Ditto.
10500 (sh_dump_tdep): Ditto.
10501 _initialize_sh_tdep): Use gdbarch_register to register
10502 sh_gdbarch_init and sh_dump_tdep.
10503 * config/sh/tm-sh.h (sh_osabi): Declare.
10504 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10506 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10508 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10509 (thumb_scan_prologue): Ditto.
10510 (arm_find_callers_reg): Ditto.
10511 (arm_frame_chain): Ditto.
10512 (arm_init_extra_frame_info): Ditto.
10513 (arm_frame_saved_pc): Ditto.
10514 (arm_pop_frame): Ditto.
10515 (arm_push_return_address): New function.
10516 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10517 call_dummy_location, call_dummy_breakpoint_offset_p,
10518 call_dummy_breakpoint_offset, call_dummy_p,
10519 call_dummy_stack_adjust_p, call_dummy_words,
10520 sizeof_call_dummy_words, call_dummy_start_offset,
10521 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10522 call_dummy_address, push_return_address and push_dummy_frame for
10523 generic dummy frames.
10525 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10527 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10528 size computation for alloca.
10529 (sh_fp_frame_init_saved_regs): Likewise.
10531 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10533 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10534 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10535 * arm-tdep.c (arm_store_return_value): Use them.
10536 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10537 * remote-rdp.c (remote_rdp_fetch_register): Use
10538 ARM_MAX_REGISTER_RAW_SIZE.
10539 (remote_rdp_store_register): Likewise.
10541 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10543 * dwarf2cfi.c: Code cleanup, removed unused variables,
10544 added default labels to switch {} statements.
10545 * x86-64-tdep.c: Ditto.
10546 * x86-64-linux-nat.c: Ditto.
10548 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10550 * solib.h: Protect against multiple inclusion.
10552 2002-05-06 Jim Blandy <jimb@redhat.com>
10554 Add first preprocessor macro-expansion files.
10555 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10556 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10557 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10558 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10559 (COMMON_OBS): Add macrotab.o, macroexp.o.
10560 (macroexp.o, macrotab.o): New rules.
10562 Separate the job of reading the line number info statement program
10563 header (...expialidocious) out into its own function.
10564 * dwarf2read.c (struct line_head, struct filenames, struct
10565 directories): Replace with...
10566 (struct line_header): New structure, containing the full
10567 contents of the statement program header, including the
10568 include directory and file name tables.
10569 (read_file_scope): If we have line number info, instead of just
10570 calling dwarf_decode_lines to do all the work, call
10571 dwarf_decode_line_header first to get a `struct line_header'
10572 containing the data in the statement program header, and then
10573 pass that to dwarf_decode_lines, which will pick up where that
10574 left off. Be sure to clean up the `struct line_header' object.
10575 (dwarf_decode_line_header, free_line_header, add_include_dir,
10576 add_file_name): New functions.
10577 (dwarf_decode_lines): Move all the code to read the statement
10578 program header into dwarf_decode_line_header. Take the line
10579 header it built as the first argument, instead of the offset to
10580 the compilation unit's line number info. Use the new `struct
10581 line_header' type instead of the old structures. No need to do
10582 cleanups here now, since we don't allocate anything.
10583 (dwarf2_statement_list_fits_in_line_number_section,
10584 dwarf2_line_header_too_long): New complaints.
10586 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10588 * gdbtypes.c (init_vector_type): New function.
10589 (build_builtin_type_vec128): Simplify the representation of SIMD
10591 (build_gdbtypes): Initialize new builtin vector types.
10592 (_initialize_gdbtypes): Register new vector types with gdbarch.
10593 (builtin_type_v4_float, builtin_type_v4_int32,
10594 builtin_type_v8_int16, builtin_type_v16_int8,
10595 builtin_type_v2_int32, builtin_type_v4_int16,
10596 builtin_type_v8_int8): New (renamed) SIMD types.
10598 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10600 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10601 (i387_fill_fxsave): Likewise.
10603 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10605 * alpha-tdep.c (alpha_extract_return_value): Don't use
10606 non-constant array size in prototype.
10608 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10610 From Brian Taylor <briant at model dot com>:
10611 * ui-out.c (ui_out_field_core_addr): Use the function
10612 longest_local_hex_string_custom'to format addresses > 32 bits
10615 * ui-out.c (ui_out_field_core_addr): Update comment.
10617 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10619 * stack.c (select_and_print_frame): Make static. Delete the
10621 (func_command): Update call.
10622 (select_frame_command): Delete code computing the frame level.
10623 * frame.h (select_and_print_frame): Delete declaration.
10625 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10627 * sparc-tdep.c (sparc_get_saved_register): Comment why
10628 get_prev_frame call is safe.
10630 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10632 * frame.h (select_frame): Delete level parameter.
10633 * stack.c (select_frame): Update. Use frame_relative_level to
10634 obtain the frame's level.
10635 (select_and_print_frame): Update call.
10636 (select_frame_command): Ditto.
10637 (up_silently_base): Ditto.
10638 (down_silently_base): Ditto.
10639 * ocd.c (ocd_start_remote): Ditto.
10640 * remote-rdp.c (remote_rdp_open): Ditto.
10641 * remote-mips.c (mips_initialize): Ditto.
10642 (common_open): Ditto.
10643 * remote-e7000.c (e7000_start_remote): Ditto.
10644 * m3-nat.c (select_thread): Ditto.
10645 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10646 (child_get_current_exception_event): Ditto.
10647 * varobj.c (varobj_create): Ditto.
10648 (varobj_update): Ditto.
10649 (c_value_of_root): Ditto.
10650 * tracepoint.c (finish_tfind_command): Ditto.
10651 * corelow.c (core_open): Ditto.
10652 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10653 * thread.c (info_threads_command): Ditto.
10654 (switch_to_thread): Ditto.
10655 * infrun.c (normal_stop): Ditto.
10656 (restore_selected_frame): Ditto.
10657 (restore_inferior_status): Ditto.
10658 * breakpoint.c (insert_breakpoints): Ditto.
10659 (watchpoint_check): Ditto.
10660 (bpstat_stop_status): Ditto.
10661 (do_enable_breakpoint): Ditto.
10662 * blockframe.c (flush_cached_frames): Ditto.
10663 (reinit_frame_cache): Ditto.
10665 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10667 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10670 2002-05-04 Jim Blandy <jimb@redhat.com>
10672 * gdbtypes.c (replace_type): Doc fix.
10674 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10676 * valprint.c (strcat_longest): Delete commented out function.
10679 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10681 * MAINTAINERS: Mark a29k as deleted.
10682 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10683 Move new configurations to the top.
10684 * configure.tgt: Remove a29k.
10685 * config/a29k/tm-vx29k.h: Delete.
10686 * config/a29k/vx29k.mt: Delete.
10687 * config/a29k/tm-a29k.h: Delete.
10688 * config/a29k/a29k-udi.mt: Delete.
10689 * config/a29k/a29k.mt: Delete.
10690 * a29k-tdep.c: Delete.
10691 * remote-udi.c: Delete.
10692 * remote-mm.c: Delete.
10693 * remote-eb.c: Delete.
10694 * remote-adapt.c: Delete.
10695 * Makefile.in: Remove obsolete code.
10696 * config/s390/s390x.mt: Ditto.
10697 * config/s390/s390.mt: Ditto.
10698 * config/sparc/sparclynx.mh: Ditto.
10699 * config/sparc/linux.mh: Ditto.
10700 * config/pa/hppaosf.mh: Ditto.
10701 * config/pa/hppabsd.mh: Ditto.
10702 * config/ns32k/nbsd.mt: Ditto.
10703 * config/mips/vr5000.mt: Ditto.
10704 * config/m68k/sun3os4.mh: Ditto.
10705 * config/m68k/nbsd.mt: Ditto.
10706 * config/m68k/m68klynx.mh: Ditto.
10707 * config/m32r/m32r.mt: Ditto.
10708 * config/i386/x86-64linux.mt: Ditto.
10709 * config/i386/nbsdelf.mt: Ditto.
10710 * config/i386/nbsd.mt: Ditto.
10711 * config/i386/i386lynx.mh: Ditto.
10713 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10715 * target.c (debug_print_register): New function. Handle oversize
10717 (debug_to_fetch_registers): Call.
10718 (debug_to_store_registers): Call.
10720 2002-05-03 Jim Blandy <jimb@redhat.com>
10722 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10723 (read_type): Doc fix.
10724 * gdbtypes.c (replace_type): Doc fix.
10726 * stabsread.c (multiply_defined_struct): New complaint.
10727 (read_struct_type): If the type we were passed isn't empty, or
10728 incomplete, don't read the new struct type into it; complain,
10729 and return the original type unchanged. Take a new `type_code'
10730 argument, which is the type code for the new type.
10731 (read_type): Rather than storing the type's type code here, pass
10732 it as an argument to read_struct_type, and let that take care of
10733 storing it. That way, we don't overwrite the original type code,
10734 so read_struct_type can use it to decide whether we're overwriting
10735 something we shouldn't.
10736 (complain_about_struct_wipeout): New function.
10738 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10740 * gdbarch.sh: Assert that gdbarch is non-NULL.
10741 * gdbarch.c: Regenerate.
10743 2002-05-03 Jason Merrill <jason@redhat.com>
10745 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10748 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10750 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10751 (x86_64_dwarf2gdb_regno_map_length),
10752 (x86_64_dwarf2_reg_to_regnum): Added.
10753 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10754 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10755 (_initialize_x86_64_tdep): Synced with the change above.
10756 (x86_64_skip_prologue): Reformulated message.
10758 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10760 * f-exp.y: Also use new prev_lexptr variable
10761 to improve error reporting. Based on Michael Snyder
10762 2002-04-24 dated patch to c-exp.y.
10763 * jv-exp.y: Likewise.
10764 * m2-exp.y: Likewise.
10766 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10768 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10769 we are dealing with vectors.
10771 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10773 * config/m68k/tm-nbsd.h: Obvious fix,
10774 correct machine name.
10776 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10778 * p-typeprint.c (pascal_type_print_base): Add support
10779 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10781 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10783 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10784 for fondamental pascal 'char' type.
10786 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10788 * p-lang.h (is_pascal_string_type): Declaration changed,
10789 new sixth argument of type char ** added.
10790 * p-lang.c (is_pascal_string_type): Implementation
10791 changed. Args length_pos, length_size, string_pos, char_size
10792 can now be NULL. New argument arrayname set to the field
10793 name of the char array. Return value set to char array
10794 field index plus one.
10795 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10796 is_pascal_string_type function.
10798 2002-05-02 Andrew Cagney <cagney@redhat.com>
10800 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10801 <cagney@redhat.com> change.
10802 * gdbarch.c: Regenerate.
10804 2002-05-02 Andrew Cagney <cagney@redhat.com>
10806 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10807 before probing for a new one. Detect errorenous gdbarch_init
10809 * gdbarch.c: Regenerate.
10811 2002-05-01 Andrew Cagney <cagney@redhat.com>
10813 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10814 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10815 * config/v850/tm-v850.h: Ditto. Update copyright.
10817 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10819 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10822 2002-04-30 Michael Snyder <msnyder@redhat.com>
10824 * arm-tdep.c: Whitespace clean-ups.
10825 (arm_skip_prologue): Fix thinko; two lines
10826 should have been removed as part of 4/24 change.
10828 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10830 * rs6000-tdep.c: Added comment describing how fpscr register
10831 numbers were chosen.
10833 2002-04-30 Michael Snyder <msnyder@redhat.com>
10835 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10837 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10839 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10840 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10841 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10843 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10845 From Louis Hamilton <hamilton@redhat.com>:
10846 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10847 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10848 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10849 not bfd-private xcoff data, to determine wordsize.
10850 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10852 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10854 GDB 5.2 released from 5.2 branch.
10856 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10858 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10859 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10860 (x86_64_register_info_table): Added comments with register numbers.
10862 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10864 * rs6000-tdep.c (rs6000_extract_return_value,
10865 rs6000_store_return_value): Handle returning vectors.
10866 (rs6000_gdbarch_init): Use
10867 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10868 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10870 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10872 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10873 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10875 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10877 * hpread.c (hpread_psymtab_to_symtab_1,
10878 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10879 with fprintf_unfiltered (gdb_stderr,...).
10881 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10883 * remote-array.c (printf_monitor, write_monitor,
10884 array_insert_breakpoint, array_remove_breakpoint ):
10885 Replace fprintf (stderr,...
10886 with fprintf_unfiltered (gdb_stderr,....
10887 * remote-es.c: Likewise.
10888 * remote-os9k.c: Likewise.
10889 * remote-st.c: Likewise.
10891 2002-04-28 Andreas Schwab <schwab@suse.de>
10893 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10894 linux-proc.o and gcore.o.
10896 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10898 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10899 code without frame pointers.
10901 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10903 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10904 ON_STACK is needed.
10906 2002-04-26 Ben Elliston <bje@redhat.com>
10908 * target.c (do_xfer_memory): Correct reference to the new option
10909 "trust-readonly-sections".
10911 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10913 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10914 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10915 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10917 (read_array_type): Record the fact that this array type is really a
10918 vector (i.e. are passed in by value).
10920 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10922 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10923 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10924 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10925 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10926 * alpha-linux-tdep.c: Include frame.h.
10927 (alpha_linux_sigcontext_addr): New function.
10928 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10929 alpha_linux_sigcontext_addr.
10930 * alpha-osf1-tdep.c: Include gdbcore.h.
10931 (alpha_osf1_sigcontext_addr): New function.
10932 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10933 alpha_osf1_sigcontext_addr.
10934 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10935 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10937 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10939 * stack.c (selected_frame_level):
10940 (select_frame): Do not set selected_frame_level.
10941 * frame.h (selected_frame_level): Delete declaration.
10943 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10945 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10946 convert_from_func_ptr-addr when AIX / PowerOpen.
10948 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10950 * valops.c (hand_function_call): Call
10951 generic_save_call_dummy_addr.
10952 * frame.h (generic_save_call_dummy_addr): Declare.
10953 * blockframe.c (struct dummy_frame): Add fields call_lo and
10955 (generic_find_dummy_frame): Check for PC in range call_lo to
10956 call_hi instead of entry_point_address.
10957 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10958 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10959 (generic_save_call_dummy_addr): New function.
10961 2002-04-24 David S. Miller <davem@redhat.com>
10963 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10964 sparc_skip_prologue.
10965 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10966 information to find prologue when possible.
10967 (sparc_prologue_frameless_p): Call examine_prologue directly.
10968 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10969 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10971 (SKIP_PROLOGUE): Likewise.
10973 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10975 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10976 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10977 indicate that the condition it was testing is always true.
10978 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10979 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10980 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10982 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10984 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10985 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10986 tdep->jb_pc and tdep->jb_elt_size.
10987 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10988 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10989 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10990 * alpha-nat.c (get_longjmp_target): Remove.
10991 (JB_ELEMENT_SIZE): Ditto.
10993 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10994 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10995 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10996 to alpha_get_longjmp_target.
10997 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10998 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10999 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11001 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11003 * README: Update to GDB 5.2.
11005 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11007 * gdbarch.sh (LC_ALL): Set to `c'.
11009 2002-04-25 Theodore A. Roth <troth@verinet.com>
11011 * avr-tdep.c: Ran through gdb_indent.sh.
11013 2002-04-25 Theodore A. Roth <troth@verinet.com>
11015 * MAINTAINERS: Add myself as AVR maintainer.
11016 * NEWS: Note new target avr.
11018 2002-04-25 Theodore A. Roth <troth@verinet.com>
11020 * Makefile.in: Add support for AVR target.
11021 * configure.tgt: Add support for AVR target.
11022 * avr-tdep.c: New file
11023 * config/avr/avr.mt: New file.
11025 2002-04-25 Theodore A. Roth <troth@verinet.com>
11027 * MAINTAINERS: Add myself to write-after-approval.
11029 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11031 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11032 with fprintf_unfiltered (gdb_stderr,....
11034 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11037 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11039 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11041 * p-exp.y: Also use new prev_lexptr variable
11042 to improve error reporting. Based on Michael Snyder
11043 2002-04-24 dated patch to c-exp.y.
11045 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11047 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11048 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11049 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11051 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11053 (FUNCTION_START_OFFSET): Remove.
11054 (BREAKPOINT): Ditto.
11056 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11058 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11061 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11063 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11064 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11065 alpha_linux_pc_in_sigtramp.
11066 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11067 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11068 alpha_osf1_pc_in_sigtramp.
11069 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11070 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11071 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11072 alphafbsd_pc_in_sigtramp.
11073 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11074 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11075 alphanbsd_pc_in_sigtramp.
11076 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11077 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11079 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11081 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11083 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11085 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11087 (alphanbsd-nat.o): New dependency list.
11088 (alphanbsd-tdep.o): Ditto.
11089 * NEWS: Note new native NetBSD/alpha configuration.
11090 * alphanbsd-nat.c: New file.
11091 * alphanbsd-tdep.c: Ditto.
11092 * configure.host (alpha*-*-netbsd*): New host.
11093 * configure.tgt (alpha*-*-netbsd*): New target.
11094 * config/alpha/nbsd.mh: New file.
11095 * config/alpha/nbsd.mt: Ditto.
11096 * config/alpha/nm-nbsd.h: Ditto.
11097 * config/alpha/tm-nbsd.h: Ditto.
11099 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11101 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11102 (alpha-osf1-tdep.o): New dependency list.
11103 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11104 and skip_sigtramp_frame members.
11105 * alpha-linux-tdep.c: Include gdbcore.h.
11106 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11107 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11108 * alpha-osf1-tdep.c: New file.
11109 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11111 (alpha_frame_past_sigtramp_frame): New function.
11112 (alpha_dynamic_sigtramp_offset): Ditto.
11113 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11114 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11115 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11116 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11117 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11118 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11119 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11120 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11121 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11122 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11123 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11124 to find_solib_trampoline_target.
11125 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11126 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11127 (SKIP_TRAMPOLINE_CODE): Remove.
11128 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11129 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11130 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11131 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11132 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11133 (PROC_SIGTRAMP_MAGIC): Ditto.
11134 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11135 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11136 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11137 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11138 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11140 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11142 * NEWS: Note that Alpha targets are now multi-arch.
11144 2002-04-24 Michael Snyder <msnyder@redhat.com>
11146 * parser-defs.h (prev_lexptr): New external variable.
11147 * parse.c (parse_exp_1): Set prev_lexptr to null before
11148 calling the language-specific parser.
11149 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11150 (yyerror): Use prev_lexptr in error reporting.
11152 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11154 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11155 * gregset.h: If FILL_FPXREGSET is defined, provide
11156 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11157 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11158 is defined, call fill_fpxregset.
11160 2002-04-24 Roland McGrath <roland@frob.com>
11162 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11163 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11164 (supply_gregset, supply_fpregset): New functions.
11166 * gnu-nat.c (gnu_find_memory_regions): New function.
11167 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11168 (gnu_xfer_memory): Add a cast.
11170 2002-04-24 Michael Snyder <msnyder@redhat.com>
11172 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11173 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11174 of argument regs ("str r(0123), [r11, #-nn"]).
11175 (arm_skip_prologue): Better handling for frameless functions.
11176 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11177 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11179 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11181 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11182 NUM_PSEUDO_REGS can be used.
11184 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11186 * arch-utils.h: Update copyright.
11188 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11189 * gdbarch.h, gdbarch.c: Re-generate.
11191 * inferior.h (IN_SIGTRAMP): Delete definition.
11192 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11193 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11195 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11196 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11197 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11198 (find_proc_framesize): Ditto.
11199 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11200 (alpha_init_extra_frame_info): Ditto.
11201 * infrun.c (handle_inferior_event): Ditto.
11202 (handle_inferior_event): Ditto.
11203 (check_sigtramp2): Ditto.
11204 * blockframe.c (create_new_frame): Ditto.
11205 (get_prev_frame): Ditto.
11206 * ppc-linux-tdep.c: Update comments.
11207 * i386-linux-tdep.c: Update comments.
11208 * breakpoint.c (bpstat_what): Update comment.
11210 2002-04-24 David S. Miller <davem@redhat.com>
11212 * i960-tdep.c (register_in_window_p): New function.
11213 (i960_find_saved_register): Use it instead of
11214 REGISTER_IN_WINDOW_P.
11215 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11217 * symtab.h (find_stab_function_addr): Kill extern.
11218 * minsyms.c (find_stab_function_addr): Remove from here...
11219 * dbxread.c: ... to here, and mark it static.
11221 2002-04-20 David S. Miller <davem@redhat.com>
11223 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11224 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11226 2002-04-21 David S. Miller <davem@redhat.com>
11228 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11229 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11230 (vx_write_register): Likewise.
11232 2002-04-23 J. Brobecker <brobecker@gnat.com>
11234 * source.c (is_regular_file): New function.
11235 (openp): Check wether file to open is a regular file
11236 to avoid opening directories.
11238 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11240 * findvar.c (extract_signed_integer): Cast printf argument
11241 to suppress format warning.
11242 (extract_unsigned_integer): Likewise.
11243 * infcmd.c (registers_info): Likewise.
11244 * top.c (get_prompt_1): Likewise.
11245 * valops.c (value_assign): Likewise.
11246 * valprint.c (print_decimal): Likewise.
11248 2002-04-22 H.J. Lu (hjl@gnu.org)
11250 * c-exp.y (typebase): Support
11252 [long|long long|short] [signed|unsigned] [int|]
11256 signed [long|long long|short] int
11258 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11260 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11262 * vax-tdep.h: New file.
11263 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11264 Make several routines static.
11265 (vax_get_saved_register): New function.
11266 (vax_gdbarch_init): New function.
11267 (_initialize_vax_tdep): Register vax_gdbarch_init.
11268 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11269 Remove macros now under the control of gdbarch.
11271 2002-04-22 Michael Snyder <msnyder@redhat.com>
11273 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11274 Some whitespace and coding standards tweaks.
11276 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11278 * vax-tdep.c: Include regcache.h.
11279 (vax_call_dummy_words): New.
11280 (sizeof_vax_call_dummy_words): New.
11281 (vax_fix_call_dummy): New function.
11282 (vax_saved_pc_after_call): Ditto.
11283 * config/vax/tm-vax.h: Don't include regcache.h.
11284 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11285 (CALL_DUMMY): Remove.
11286 (CALL_DUMMY_WORDS): Define.
11287 (SIZEOF_CALL_DUMMY_WORDS): Define.
11288 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11290 2002-04-18 Michael Snyder <msnyder@redhat.com>
11292 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11294 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11296 * vax-tdep.c (vax_frame_chain): New function.
11297 (vax_push_dummy_frame): Ditto.
11298 (vax_pop_frame): Ditto.
11299 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11300 (FRAMELESS_FUNCTION_INVOCATION): Use
11301 generic_frameless_function_invocation_not.
11302 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11303 (POP_FRAME): Use vax_pop_frame.
11305 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11307 * vax-tdep.c (vax_store_struct_return): New function.
11308 (vax_extract_return_value): Ditto.
11309 (vax_store_return_value): Ditto.
11310 (vax_extract_struct_value_address): Ditto.
11311 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11312 vax_store_struct_return.
11313 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11314 (STORE_RETURN_VALUE): Use vax_store_return_value.
11315 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11317 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11319 * vax-tdep.c (vax_frame_saved_pc): New function.
11320 (vax_frame_args_address_correct): Ditto.
11321 (vax_frame_args_address): Ditto.
11322 (vax_frame_locals_address): Ditto.
11323 (vax_frame_num_args): Move code to be in proximity to
11324 other frame-related functions.
11325 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11326 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11327 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11328 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11329 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11331 2002-04-22 H.J. Lu (hjl@gnu.org)
11333 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11336 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11338 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11339 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11340 (FRAME_INIT_SAVED_REGS): New macro.
11342 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11344 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11346 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11348 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11350 (fetch_osf_core_registers): Likewise.
11351 (supply_gregset): Likewise.
11353 2002-04-22 J. Brobecker <brobecker@gnat.com>
11355 * symfile.h (get_section_index): Define.
11356 * symfile.c (get_section_index): New function.
11357 * mdebugread.c (SC_IS_SBSS): New macro.
11358 (SC_IS_BSS): Return true for the scBss storage class only, as
11359 the scSBss storage class refers to the .sbss section.
11360 (parse_partial_symbols): Discard the symbols which associated
11361 section does not exist.
11362 Make sure to use the .sbss section index for symbols which
11363 storage class is scBss, rather than using the .bss section index.
11365 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11367 * vax-tdep.c: Update copyright years.
11368 (vax_register_name): New function.
11369 (vax_register_byte): Ditto.
11370 (vax_register_raw_size): Ditto.
11371 (vax_register_virtual_size): Ditto.
11372 (vax_register_virtual_type): Ditto.
11373 * config/vax/tm-vax.h: Update copyright years.
11374 (REGISTER_NAMES): Remove.
11375 (REGISTER_NAME): Define.
11376 (REGISTER_BYTE): Use vax_register_byte.
11377 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11378 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11379 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11381 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11383 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11385 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11387 2002-04-21 David S. Miller <davem@redhat.com>
11389 * arch-utils.c (generic_prologue_frameless_p): Kill
11390 SKIP_PROLOGUE_FRAMELESS_P code.
11391 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11393 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11394 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11395 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11397 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11398 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11399 (sparc_gdbarch_init): Pass it to
11400 set_gdbarch_prologue_frameless_p.
11402 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11404 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11405 (alphabsd-nat.o): New dependency list.
11407 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11409 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11411 (alpha-linux-tdep.o): New dependency list.
11412 (alphafbsd-tdep.o): Likewise.
11414 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11416 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11418 * alpha-tdep.c: ...from here.
11419 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11421 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11423 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11424 prototype from here...
11425 * alpha-tdep.h: ...to here.
11427 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11429 * frame.h (selected_frame_level): Document as deprecated.
11430 (frame_relative_level): Declare.
11431 * stack.c (frame_relative_level): New function.
11432 (selected_frame_level): Document as deprecated.
11433 (select_frame): Do not set the selected_frame_level.
11435 * stack.c (frame_info, record_selected_frame): Update.
11436 (frame_command, current_frame_command): Update.
11437 (up_silently_base, up_command, down_silently_base): Update.
11438 (down_command): Update.
11439 * inflow.c (kill_command): Update.
11440 * tracepoint.c (finish_tfind_command): Update.
11441 * corelow.c (core_open): Update.
11442 * thread.c (info_threads_command): Update.
11443 (do_captured_thread_select): Update.
11444 * infcmd.c (finish_command): Update.
11445 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11447 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11449 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11451 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11453 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11456 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11458 * alphafbsd-tdep.c: Update copyright years. Include
11460 (alphafbsd_use_struct_convention): Make static.
11461 (alphafbsd_init_abi): New function.
11462 (_initialize_alphafbsd_tdep): New function.
11463 * config/alpha/tm-fbsd.h: Update copyright years.
11464 (USE_STRUCT_CONVENTION): Remove.
11466 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11468 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11469 an Alpha ABI variant.
11470 (alpha_abi_handler_list): Declare.
11471 (alpha_gdbarch_register_os_abi): New function.
11472 (alpha_gdbarch_init): Give registered ABI variant handlers a
11473 chance to tweak the gdbarch once we have set up defaults.
11474 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11476 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11478 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11479 to standard_coerce_float_to_double.
11480 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11482 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11484 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11485 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11486 from gdbarch_tdep rather than a constant.
11487 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11488 the default text address for all Alpha Unix ABIs.
11489 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11490 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11492 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11494 * alpha-tdep.h: New file. Includes several Alpha target constants
11496 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11497 let gdbarch deal with.
11498 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11499 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11500 to dependency list.
11501 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11502 Alpha target register names.
11503 * alphabsd-nat.c: Likewise.
11504 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11505 Alpha target register names. Make serveral routines static.
11506 (alpha_get_saved_register): New function.
11507 (alpha_abi_names): New.
11508 (process_note_abi_tag_sections): New function.
11509 (get_elfosabi): New function.
11510 (alpha_gdbarch_init): New function.
11511 (alpha_dump_tdep): New function.
11512 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11514 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11516 * frame.c (find_saved_register): Delete #ifdef
11517 HAVE_REGISTER_WINDOWS code.
11518 * config/sparc/tm-sparc.h: Update comments.
11519 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11521 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11523 * i960-tdep.c (i960_find_saved_register): New function.
11524 (i960_get_saved_register): New function.
11525 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11526 (i960_get_saved_register): Declare.
11527 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11529 2002-04-20 David S. Miller <davem@redhat.com>
11531 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11533 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11535 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11536 instead of NUM_PSEUDO_REGS.
11538 2002-04-20 David S. Miller <davem@redhat.com>
11540 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11541 GDB_MULTI_ARCH_PARTIAL
11542 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11543 define, let tm-sp64.h do it.
11545 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11547 * frame.c (find_saved_register): Avoid a NULL pointer
11548 dereference and actually walk the frame list.
11550 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11552 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11553 sorted in most most-recent-used order. Document.
11554 * gdbarch.h, gdbarch.c: Regenerate.
11556 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11558 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11560 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11561 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11562 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11565 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11568 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11569 (build_builtin_type_vec128): Ditto.
11570 (append_composite_type_field): Fix calculation of type length in
11573 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11575 * config/djgpp/README: Update.
11577 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11580 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11582 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11583 (alpha_setup_arbitrary_frame): ...to this.
11584 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11585 for alpha_setup_arbitrary_frame.
11587 2002-04-18 Andrew Cagney <cagney@redhat.com>
11589 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11590 * gdbarch.h, gdbarch.c: Regenerate.
11592 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11593 * target.h (memory_breakpoint_from_pc): Update declaration.
11594 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11596 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11597 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11598 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11599 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11600 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11601 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11602 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11603 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11604 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11605 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11606 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11607 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11609 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11611 * monitor.c (monitor_insert_breakpoint): Ditto.
11612 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11614 * config/mcore/tm-mcore.h: Update copyright.
11615 * mem-break.c: Ditto.
11616 * xstormy16-tdep.c: Ditto.
11618 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11620 * p-exp.y: Add precedence rule for '^' token.
11621 This removes the shift/reduce conflicts.
11622 Remove the comment concerning these shift/reduce conflicts.
11624 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11626 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11627 (registers_powerpc_nofp): New register set for processors
11628 without floating point unit.
11630 2002-04-18 David S. Miller <davem@redhat.com>
11632 * MAINTAINERS: Add myself to write-after-approval.
11634 2002-04-17 Michael Snyder <msnyder@redhat.com>
11636 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11638 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11640 * rs6000-tdep.c (frame_initial_stack_address): Use
11641 frame_register_read to read the alloca_reg.
11643 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11645 * frame.c (find_saved_register): Find saved registers in the next
11649 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11651 * gdbarch.sh (LANG): Set to ``c''.
11653 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11655 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11657 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11659 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11662 * hpread.c (hpread_get_lntt): Add declaration.
11663 Also fix PR gdb/391.
11665 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11667 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11668 * aclocal.m4, configure: Re-generate.
11671 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11673 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11674 instead of tm_print_insn.
11676 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11678 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11680 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11682 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11683 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11684 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11686 2002-04-12 Don Howard <dhoward@redhat.com>
11688 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11689 max_user_call_depth.
11690 (init_cmd_lists): Initialize the new value;
11691 * cli/cli-script.c (execute_user_command): Limit the call depth of
11692 user defined commands. This avoids a core-dump when user commands
11693 are infinitly recursive.
11695 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11697 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11698 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11699 from tdep struct instead of DEFAULT_LR_SAVE.
11700 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11701 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11702 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11704 2002-04-12 Michael Snyder <msnyder@redhat.com>
11706 * Remote.c: Spelling fix.
11707 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11708 If no symbol found for "sbrk", try "_sbrk".
11709 (make_output_phdrs): Use bfd_section_name.
11710 (gcore_copy_callback): Use bfd_section_name.
11711 * eval.c: Indentation fix-ups.
11712 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11713 in case it gets applied to an address that is already
11714 in the instruction space.
11715 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11716 * symfile.c: Fix indentation, long lines.
11717 * source.c: White space fix-up.
11719 2002-04-12 Andrew Cagney <cagney@redhat.com>
11721 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11722 * frame.c (frame_register_read): New function. Return non-zero on
11724 (read_relative_register_raw_bytes_for_frame): Delete.
11725 (read_relative_register_raw_bytes): Delete.
11726 * frame.h (frame_register_read): Declare.
11727 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11728 * sh-tdep.c: Ditto.
11729 * infcmd.c (do_registers_info): Ditto.
11730 * hppa-tdep.c: Ditto.
11731 * rs6000-tdep.c: Ditto.
11732 * h8500-tdep.c: Ditto.
11733 * mips-tdep.c: Ditto.
11734 * h8300-tdep.c: Ditto.
11735 * z8k-tdep.c: Ditto.
11737 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11739 From Jimi X <jimix@watson.ibm.com>:
11740 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11743 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11745 From Jimi X <jimix@watson.ibm.com>:
11746 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11749 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11751 From Jimi X <jimix@watson.ibm.com>:
11752 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11753 register sets for these processor variants.
11755 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11757 * regformats/reg-ppc.dat: Support FPSCR.
11759 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11761 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11762 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11763 Add fpscr as an invalid/unfetchable register.
11764 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11765 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11766 (fill_fpregset): Add support for register fpscr.
11767 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11768 (fill_gregset): Account for the fact that register ``mq'' might
11770 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11771 (registers_power): Add fpscr to register set at slot 71.
11772 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11773 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11775 2002-04-11 Michael Snyder <msnyder@redhat.com>
11777 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11778 * configure: Regenerate.
11779 * config.in: Regenerate.
11780 * acconfig.h: Add define for _SYSCALL32.
11781 * core-sol2.c: Remove #define _SYSCALL32.
11782 * solib-legacy.c: Remove #define _SYSCALL32.
11784 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11786 * stack.c (select_frame): Cleanup internal error message, do not
11789 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11791 * stack.c (select_frame): Check that selected_frame and the
11792 specified level are as expected.
11793 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11795 * frame.h (struct frame_info): Add field `level'. Update
11797 Work-in-progress PR gdb/464.
11799 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11801 * maint.c (maint_print_section_info): Rename print_section_info.
11802 (print_bfd_section_info, print_objfile_section_info): Update.
11803 * inferior.h (struct gdbarch): Add opaque declaration.
11804 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11805 * gdbarch.h: Regenerate.
11807 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11809 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11810 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11811 (kernel_u_size): Added.
11812 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11813 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11815 2002-04-04 Jim Ingham <jingham@apple.com>
11817 * valarith.c (find_size_for_pointer_math): New function, either returns
11818 the size for a pointer's target, returns 1 for void *, or errors for
11820 (value_add, value_sub): use find_size_for_pointer_math.
11822 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11824 * linux-low.c (linux_look_up_symbols): New hook.
11825 (linux_target_ops): Add linux_look_up_symbols.
11826 * remote-utils.c (decode_address): New function.
11827 (look_up_one_symbol): New function.
11828 * server.c (handle_query): Call target look_up_symbols hook.
11829 * server.h (look_up_one_symbol): Add prototype.
11830 * target.h (struct target_ops): Add look_up_symbols hook.
11832 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11834 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11835 override FP_REGNUM with frame->fp. Update copyright.
11836 * parse.c (num_std_regs, std_regs): Delete.
11837 (target_map_name_to_register): Do not search std_regs. Update
11838 function description.
11839 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11840 declarations. Update copyright.
11843 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11845 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11846 after the last symbol in a block.
11848 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11850 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11851 is non zero as a found symbol.
11853 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11855 * findvar.c: Include "builtin-regs.h".
11856 (value_of_register): Call value_of_builtin_reg when applicable.
11857 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11858 (target_map_name_to_register): Call
11859 builtin_reg_map_name_to_regnum.
11860 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11861 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11862 (builtin_regs_h): Define.
11863 (builtin-regs.o): New target.
11864 (findvar.o): Add $(builtin_regs_h).
11865 * builtin-regs.c, builtin-regs.h: New files.
11866 * std-regs.c: New file.
11867 Partial fix for PR gdb/251.
11869 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11871 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11872 it's no longer required.
11874 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11876 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11878 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11880 From Jimi X <jimix@watson.ibm.com>:
11881 * rs6000-tdep.c (rs6000_software_single_step): Use
11882 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11883 and size. Use target_insert_breakpoint() and
11884 target_remove_breakpoint() to insert and remove breakpoints
11885 instead of explicit memory reads and writes.
11887 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11889 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11890 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11891 ELF_OBJECT_FORMAT ifdef.
11893 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11895 From Jimi X <jimix@watson.ibm.com>:
11896 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11898 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11900 From Jimi X <jimix@watson.ibm.com>:
11901 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11902 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11904 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11906 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11907 s/asprintf/xasprintf/.
11908 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11910 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11912 I believe Jeff Law denies responsability for this one:
11913 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11914 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11915 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11916 Work-around for PR gdb/366.
11918 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11920 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11921 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11922 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11924 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11926 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11927 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11930 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11932 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11935 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11937 * README (Reporting Bugs in GDB): Document the bug web page as the
11938 prefered way of submitting bugs.
11941 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11943 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11944 -1. Update comment.
11945 * gdbarch.h, gdbarch.c: Re-generate.
11947 2002-04-07 Andreas Schwab <schwab@suse.de>
11949 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11950 buffer to regcache_collect.
11952 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11954 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11955 * gdbarch.c, gdbarch.h: Re-generate.
11957 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11959 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11960 declaration. Fix -Werror.
11962 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11964 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11965 * gdbarch.c: Regenerate.
11967 2002-04-05 Michael Snyder <msnyder@redhat.com>
11969 * breakpoint.c (clear_command): Rewrite middle section to
11970 combine two loops with identical control conditions.
11971 Add a cleanup to eliminate a memory leak.
11972 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11974 2002-04-05 H.J. Lu (hjl@gnu.org)
11976 * solib-svr4.c (bkpt_names): Add "__start".
11978 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11980 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11981 as test for 64 bit target.
11983 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11985 * h8500-tdep.c (h8500_write_fp): Delete function.
11986 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11987 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11988 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11989 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11990 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11991 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11993 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11994 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11995 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11996 (d10v_write_fp): Delete function.
11997 * inferior.h (write_fp, generic_target_write_fp): Delete
11999 * regcache.c (generic_target_write_fp): Delete function.
12000 (write_fp): Delete function.
12001 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12002 * gdbarch.h, gdbarch.c: Regenerate.
12003 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12004 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12005 (sparc64_write_fp): Delete declaration.
12006 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12007 (h8500_write_fp): Delete declaration.
12009 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12011 * sparc-tdep.c (sparc64_write_fp): Delete.
12012 (sparc_push_dummy_frame): Replace write_fp call with code to store
12014 (sparc_gdbarch_init): Do not initialize write_fp.
12016 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12018 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12021 2002-03-29 Jim Blandy <jimb@redhat.com>
12023 * stack.c (get_selected_block): Add new argument `addr_in_block',
12024 used to return the exact code address we used to select the block,
12025 not just the block.
12026 * blockframe.c (get_frame_block, get_current_block): Same.
12027 * frame.h (get_frame_block, get_current_block,
12028 get_selected_block): Update declarations.
12029 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12030 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12032 2002-04-05 Michael Snyder <msnyder@redhat.com>
12034 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12037 2002-04-05 J. Brobecker <brobecker@gnat.com>
12039 * utils.c (xfullpath): New function.
12040 * defs.h (xfullpath): Add declaration.
12041 * source.c (openp): Use xfullpath in place of gdb_realpath to
12042 avoid resolving the basename part of filenames when the
12043 associated file is a symbolic link. This fixes a potential
12044 inconsistency between the filenames known to GDB and the
12045 filenames it prints in the annotations.
12046 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12047 to be able to match a filename with either the real filename, or
12048 the name of any symbolic link to this file.
12049 (lookup_partial_symtab): Ditto.
12051 2002-04-04 Michael Snyder <msnyder@redhat.com>
12053 * breakpoint.c: Add support for hardware breakpoints in overlays.
12054 (overlay_events_enabled): New state variable.
12055 (insert_breakpoints): Use overlay_events_enabled to decide
12056 whether to attempt to set a breakpoint at the overlay load addr.
12057 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12058 (remove_breakpoint): Use overlay_events_enabled to decide
12059 whether breakpoints need to be removed from overlay load addr.
12060 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12061 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12062 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12063 disable_overlay_breakpoints): Update overlay_events_enabled.
12065 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12067 * dwarf2read.c (struct function_range): New.
12068 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12069 (check_cu_functions): New.
12070 (read_file_scope): Initialize global function lists.
12071 Call dwarf_decode_line after processing children.
12072 (read_func_scope): Add to global function list.
12073 (dwarf_decode_lines): Call check_cu_functions everywhere
12074 record_line is called. Call record_line with a linenumber
12075 of 0 to mark sequence ends.
12077 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12079 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12080 change sync with glibc.
12082 2002-04-03 Jim Blandy <jimb@redhat.com>
12084 * configure.in: Call AC_C_INLINE.
12085 * configure: Regenerated.
12087 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12089 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12090 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12092 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12094 * NEWS: Mention gcore support on FreeBSD/i386.
12096 * fbsd-proc.c: New file.
12097 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12098 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12100 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12103 2002-03-29 Jim Blandy <jimb@redhat.com>
12105 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12106 unescaped newlines in string literals, but newer ones don't. So
12109 2002-03-26 Michael Snyder <msnyder@redhat.com>
12110 Andrew Cagney <cagney@redhat.com>
12112 * cli/cli-dump.c: New file. Dump memory to file,
12113 restore file to memory.
12114 * cli/cli-dump.h: New file.
12115 * Makefile.in: Add rules, dependencies for cli-dump.o.
12116 * NEWS: Mention new commands.
12118 2002-03-28 Michael Snyder <msnyder@redhat.com>
12120 * symfile.c (symbol_file_add): Move test for null symbols to later.
12122 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12124 From veksler at il.ibm.com:
12125 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12126 the xstrduped original path.
12129 2002-03-27 Michael Snyder <msnyder@redhat.com>
12131 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12132 * infcmd.c (_initialize_infcmd): Ditto.
12133 * language.c (_initialize_language): Ditto.
12134 * symfile.c (_initialize_symfile): Ditto.
12135 * top.c (_init_main): Ditto.
12136 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12138 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12140 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12141 vector registers handling.
12142 (skip_prologue): Handle new AltiVec instructions. Fill in new
12143 fields of frame data.
12144 (frame_get_saved_regs): Fill in information for AltiVec registers.
12146 2002-03-27 Jim Blandy <jimb@redhat.com>
12148 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12149 a function; leave this macro here to invoke that function.
12150 (symbol_init_mangled_name): Declaration for that function.
12151 * symtab.c (symbol_init_mangled_name): New function.
12153 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12155 * valarith.c: Replace strerror with safe_strerror.
12156 * tracepoint.c: Ditto.
12157 * lin-lwp.c: Ditto.
12158 * go32-nat.c: Ditto.
12160 * gnu-nat.c: Ditto.
12162 2002-03-27 Andreas Schwab <schwab@suse.de>
12164 * event-top.c (command_line_handler): Remove useless if.
12166 2002-03-27 Andreas Jaeger <aj@suse.de>
12168 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12171 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12173 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12174 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12175 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12176 (x86_64_linux_dr_get_status, supply_gregset),
12177 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12178 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12179 (x86_64_register_info_table): Add.
12180 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12181 (x86_64_register_raw_size, x86_64_register_virtual_type),
12182 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12183 general x86_64_register_info_table.
12184 (i386_gdbarch_init): gdbarch_register_bytes is now set
12185 dynamicaly during initialization.
12186 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12187 * gdbserver/linux-x86-64-low.c: Ditto.
12189 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12191 * gdbserver/server.c (main): Call target_signal_to_host_p
12192 and target_signal_to_host on signals received from the remote.
12193 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12194 target_signal_from_host on signals sent to the remote.
12195 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12196 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12198 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12200 * signals/signals.c: Include "server.h" in gdbserver build.
12201 (target_signal_from_name): Don't use STREQ.
12202 (_initialize_signals): Likewise. Don't include function in
12205 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12207 * signals.c: Moved to...
12208 * signals/signals.c: Here.
12209 * Makefile (signals.o): Update.
12211 2002-03-26 Jeff Law (law@redhat.com)
12213 * somread.c (som_symtab_read): Remove some commented out code and
12214 updated related comments. Do not set the minimal symbol table to
12215 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12216 in a dynamic executable.
12217 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12218 where we are unable to find the minimal symbol for the given
12221 2002-03-25 Jeff Law (law@redhat.com)
12223 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12225 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12227 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12229 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12231 * command.h: Update copyright.
12232 (struct cmd_list_element): Replace definition with opaque
12234 (enum cmd_types): Document that it will eventually be moved to
12236 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12237 (MALLOCED_REPLACEMENT): Delete macro.
12238 * Makefile.in (cli_decode_h): Add $(command_h).
12239 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12240 * top.c: Include "cli/cli-decode.h".
12241 * completer.c: Include "cli/cli-decode.h".
12242 * maint.c: Include "cli/cli-decode.h".
12243 * cli/cli-decode.h: Include "command.h".
12244 (enum command_class): Delete.
12245 (enum cmd_types): Comment out.
12246 (enum cmd_auto_boolean): Delete.
12247 (enum var_types): Delete.
12249 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12251 * cli/cli-decode.c: Include "gdb_assert.h".
12252 (add_set_or_show_cmd): New static function.
12253 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12254 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12255 all fields, such as func, from the set command.
12257 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12259 * MAINTAINERS (sh-elf): Change warning flag to -w.
12261 2002-03-23 Andrew Cagney <cagney@redhat.com>
12263 * defs.h (error): Add printf format attribute.
12264 * thread-db.c (thread_from_lwp): Fix error format string.
12265 * stack.c (parse_frame_specification): Ditto.
12266 * cli/cli-decode.c (undef_cmd_error): Ditto.
12267 * scm-lang.c (scm_lookup_name): Ditto.
12268 * tracepoint.c (trace_error): Ditto.
12269 * remote-utils.c (usage): Ditto.
12270 * remote.c (compare_sections_command): Ditto.
12273 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12275 * gdbtypes.c (append_composite_type_field): New function.
12276 (init_composite_type): New function.
12277 * gdbtypes.h (append_composite_type_field): Declare.
12278 (init_composite_type): Ditto.
12280 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12282 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12284 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12285 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12286 structure returning convention for SYSV ABI case, but not
12287 for GNU/Linux, FreeBSD, or NetBSD.
12289 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12291 * symtab.h (lookup_block_symbol): Add mangled_name argument
12294 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12295 with new mangled_name argument.
12296 * linespec.c (decode_line_1): Likewise.
12297 * valops (value_of_this): Likewise.
12298 * symtab.c (lookup_transparent_type): Likewise.
12299 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12300 (lookup_symbol): If we are given a mangled name, pass it down
12301 to lookup_symbol_aux.
12302 (lookup_block_symbol): If we are given a mangled name to check
12303 against, only return symbols which match it.
12305 2002-03-22 Christopher Faylor <cgf@redhat.com>
12307 * win32-nat.c (child_create_inferior): Check for proper shell to use
12308 here, in case the user changes it on the fly.
12309 (_initialize_inftarg): Remove shell path considerations.
12311 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12313 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12314 for gdbarch_max_register_raw_size and max_register_virtual_size.
12315 Adjust copyright year.
12317 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12319 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12320 in a function to cover the entire beginning of the function
12321 as well if it does not already.
12323 2002-03-21 Tom Rix <trix@redhat.com>
12325 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12326 (rs6000_ptrace64): Renamed from ptrace64.
12328 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12330 * gdbserver/remote-utils.c (remote_open): Don't call
12331 getprotobyname, we're all using TCP here so just use
12333 * gdbserver/gdbreplay.c (remote_open): Ditto.
12335 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12337 * regcache.c (_initialize_regcache): No need to call
12338 build_regcache() at this time; it gets called whenever
12339 the gdbarch changes.
12341 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12343 * sparc-nat.c: Include sys/param.h where possible.
12345 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12348 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12349 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12350 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12352 * stabsread.c (rs6000_builtin_type): Likewise.
12353 (read_sun_floating_type): Likewise.
12355 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12357 * stabsread.c (read_member_functions): Remove skip code for duplicate
12358 constructor/destructor methods. Use standard parsing for these
12359 methods and just do not chain them to the list of methods after
12362 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12364 * coffread.c: Remove redundant static declarations. Replace
12365 occurrences of `PTR' with `void *'.
12366 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12367 * top.h (quit_cover): Likewise.
12368 * defs.h (catch_errors): Likewise.
12370 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12372 * defs.h (XMALLOC): Define.
12373 * gdb-events.sh (XMALLOC): Delete macro.
12374 * gdb-events.c, gdb-events.h: Regenerate.
12375 * gdbarch.sh (XMALLOC): Delete macro.
12376 * gdbarch.c: Regenerate.
12377 * serial.c (XMALLOC): Delete macro.
12378 * ui-file.c (XMALLOC): Ditto.
12379 * ser-unix.h (XMALLOC): Ditto.
12380 * sh-tdep.c (XMALLOC): Ditto.
12381 * ui-out.c (XMALLOC): Ditto.
12382 * utils.c (XMALLOC): Ditto.
12383 * i386-tdep.c (XMALLOC): Ditto.
12384 * gdb-events.c (XMALLOC): Ditto.
12385 * d10v-tdep.c (XMALLOC): Ditto.
12386 * cli-out.c (XMALLOC): Ditto.
12388 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12389 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12390 * ui-file.c, ui-out.c: Ditto.
12392 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12394 * command.h (struct cmd_list_element): Add field context.
12395 (set_cmd_context, get_cmd_context): Declare.
12396 * cli/cli-decode.h: Ditto.
12397 * cli/cli-decode.c (get_cmd_context): New function.
12398 (set_cmd_context): New function.
12399 (add_cmd): Initialize context.
12400 Part of fixing PR gdb/145 and PR gdb/146.
12402 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12404 * cli/cli-decode.c (cmd_type): New function.
12405 * command.h (cmd_type): Declare.
12406 * infrun.c (set_schedlock_func): Call function cmd_type.
12407 * kod.c (kod_set_os): Call cmd_type.
12408 * cris-tdep.c (cris_version_update): Use function cmd_type.
12409 (cris_mode_update, cris_abi_update): Ditto.
12411 * command.h: (execute_cmd_post_hook): Declare.
12412 (execute_cmd_pre_hook): Declare.
12413 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12414 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12415 functions. Execute pre/post hook while ensuring that afterwords
12416 hook_in is cleared.
12417 * top.c (execute_command): Use execute_cmd_post_hook, and
12418 execute_cmd_pre_hook to execute pre/post commands.
12419 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12421 (hook_stop_stub): Call execute_cmd_pre_hook.
12423 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12425 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12426 set'' and this leads to a core dump. Move xstrdup of
12427 operating_system to after check that it is not NULL.
12429 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12431 * kod.c (kod_set_os): Remove unnecessary check that
12432 ``command->type'' is set_cmd.
12434 * valprint.c (set_input_radix): Use input_radix.
12435 (set_output_radix): Use output_radix.
12436 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12439 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12441 * value.h (struct value): Delete field ``substring_addr''. Change
12442 aligner fields to force_doublest_align, force_longest_align,
12443 force_core_addr_align and force_pointer_aligh.
12445 * value.h (struct value): Fix typo in above change.
12447 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12449 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12450 to fix internal_error from ``maintenance print architecture''.
12452 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12454 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12455 for gcc versions after gcc-2.8.1.
12457 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12459 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12460 for method resolution. Restore adjustment of ``this'' pointer after
12461 calling value_struct_elt, which was accidentally removed during the
12464 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12466 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12468 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12469 get_saved_register.
12470 * value.h (value_of_register): Update.
12472 2002-03-14 Richard Henderson <rth@redhat.com>
12474 * configure.in: Detect declaration for canonicalize_file_name.
12475 * utils.c (canonicalize_file_name): Declare, if needed.
12476 (gdb_realpath): Prefer realpath if available and usable.
12477 * config.in, configure: Rebuild.
12479 2002-03-14 Richard Henderson <rth@redhat.com>
12481 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12482 a constant array bound.
12484 * MAINTAINERS: Add myself to write-after-approval.
12486 2002-03-14 Michael Snyder <msnyder@redhat.com>
12488 * symfile.c (syms_from_objfile): Return immediately if no syms.
12489 (symbol_file_add): Return immediately if no syms.
12490 (find_sym_fns): Return immediately if no syms.
12492 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12494 * gdbserver/remote-util.c (remote_open): Print remote-side's
12495 IP address when remote debugging over the network.
12497 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12499 * config/sparc/fbsd.mh: Fix copyright.
12500 * config/sparc/fbsd.mt: Likewise.
12502 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12504 * MAINTAINERS: Fix typo in name of gdb warnings option.
12505 (x86-64): Fix formating so that this can be parsed by awk.
12507 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12509 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12510 * defs.h: Include "gdb/signals.h".
12511 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12513 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12515 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12516 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12519 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12520 Don Howard <dhoward@redhat.com>
12522 * mips-tdep.c (ST0_FR): Define.
12523 (mips2_fp_compat): New function, temporarily disabled.
12524 (mips_read_fp_register_single): New function.
12525 (mips_read_fp_register_double): New function.
12526 (mips_print_register): Use them.
12527 (do_fp_register_row): Likewise.
12529 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12531 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12534 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12536 * stabsread.c (read_member_functions): Fix is_stub test for
12537 static member functions, improve comment.
12539 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12541 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12542 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12543 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12544 commands that set boolean values.
12545 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12546 (arm_rdi_resume): Always initialize PC.
12547 (arm_rdi_open): Don't use rslt as a boolean.
12548 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12549 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12550 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12551 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12553 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12555 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12556 * configure: Rebuilt.
12558 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12560 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12561 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12563 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12565 * cli/cli-decode.c (set_cmd_completer): New function.
12566 * command.h (set_cmd_completer): Declare.
12567 * cli/cli-decode.h (set_cmd_completer): Ditto.
12569 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12570 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12571 * win32-nat.c (_initialize_inftarg): Ditto.
12572 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12573 * proc-api.c (_initialize_proc_api): Ditto.
12574 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12575 * source.c (_initialize_source): Ditto.
12576 * exec.c (_initialize_exec): Ditto.
12577 * solib.c (_initialize_solib): Ditto.
12578 * top.c (init_main): Ditto.
12579 * tracepoint.c (_initialize_tracepoint): Ditto.
12580 * symfile.c (_initialize_symfile): Ditto.
12581 * printcmd.c (_initialize_printcmd): Ditto.
12582 * infcmd.c (_initialize_infcmd): Ditto.
12583 * corefile.c (_initialize_core): Ditto.
12585 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12587 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12589 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12591 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12593 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12595 * NEWS: Update headings, 5.2 has branched.
12597 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12599 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12600 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12601 (register_addr, REGISTER_RAW_SIZE): Likewise.
12602 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12603 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12605 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12607 * MAINTAINERS (x86-64): Add myself.
12608 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12609 changed value_ptr -> struct value *
12611 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12613 * configure.host (sparc64-*-freebsd): Add.
12614 * configure.tgt: Likewise.
12615 * config/sparc/fbsd.mh: New file.
12616 * config/sparc/fbsd.mt: Likewise.
12617 * config/sparc/nm-fbsd.h: Likewise.
12618 * config/sparc/tm-fbsd.h: Likewise.
12620 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12622 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12623 regformats/reg-s390x.dat.
12625 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12627 * utils.c: Add FIXME explaining true/false problem.
12629 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12631 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12633 2002-02-28 Michael Chastain <mec@shout.net>
12635 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12637 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12639 * gdbserver/linux-s390-low.c: New file.
12640 * regformats/reg-s390.dat: New file.
12641 * regformats/reg-s390x.dat: New file.
12642 * gdbserver/configure.srv: Add S/390.
12643 * gdbserver/Makefile.in: Add S/390.
12644 * configure.tgt: Enable gdbserver for S/390.
12646 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12648 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12649 first line of the doc string for "info dos", except at the end of
12650 the sentence, since the short help stops at the first period.
12652 2002-02-28 Jason Merrill <jason@redhat.com>
12654 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12656 2002-02-27 Fred Fish <fnf@redhat.com>
12658 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12659 comment (dumy -> dummy).
12661 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12663 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12665 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12667 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12669 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12671 * gdbserver/acconfig.h: New file.
12672 * gdbserver/i387-fp.c: New file.
12673 * gdbserver/i387-fp.h: New file.
12674 * gdbserver/linux-x86-64.c: New file.
12675 * regformats/reg-x86-64.dat: New file.
12676 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12677 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12678 * gdbserver/configure.in: Add support for regsets.
12679 * gdbserver/config.in: Regenerate.
12680 * gdbserver/configure: Regenerate.
12681 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12682 * gdbserver/linux-low.h: New file.
12683 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12685 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12686 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12687 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12688 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12689 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12690 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12691 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12692 "i387-fp.h". Add PTRACE_GETREGS and friends.
12693 * gdbserver/regcache.c (supply_register): New function.
12694 (supply_register_by_name): New function.
12695 (collect_register): New function.
12696 (collect_register_by_name): New function.
12698 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12700 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12701 (config.status): Add configure.srv dependency.
12702 (server_h): Add config.h dependency.
12704 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12706 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12707 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12708 * gdbserver/configure.srv: Change i386-*-linux* to use
12711 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12713 * x86-64-tdep.c: Re-indent. Update copyright date.
12715 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12717 From Michal Ludvig <mludvig@suse.cz>:
12718 * x86-64-tdep.c (value.h): Delete.
12719 (gdb_assert.h): Include.
12720 (x86_64_register_convert_to_virtual,
12721 x86_64_register_convert_to_raw ): Add check which lets only
12722 floating-point values to be converted.
12723 (value_push): Delete.
12724 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12725 (i386_gdbarch_init): Number of register_bytes fixed.
12727 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12729 * MAINTAINERS: Add x86-64 target.
12731 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12733 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12734 * osfsolib.c (solib_map_sections): Ditto.
12735 * irix5-nat.c (solib_map_sections): Ditto.
12736 * corelow.c (gdb_check_format): Ditto.
12737 * symfile.c (symfile_bfd_open): Ditto.
12738 * solib.c (solib_map_sections): Ditto.
12741 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12743 * remote.c (_initialize_remote): By default, disable ``e'' and
12744 ``E'' step out-of-range packets.
12746 2002-02-26 Andreas Schwab <schwab@suse.de>
12748 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12749 m68k_linux_frame_saved_pc.
12750 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12752 (SIGCONTEXT_PC_OFFSET): Remove.
12753 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12754 m68k_linux_sigtramp_saved_pc): New functions.
12755 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12756 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12757 (UCONTEXT_PC_OFFSET): Define.
12758 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12759 non-RT and RT signal trampolines.
12761 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12763 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12764 (TARGET_NBPG, STACK_END_ADDR): Delete
12765 (VARIABLES_INSIDE_BLOCK): Delete.
12767 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12769 * utils.c (perror_with_name): Make string parameter constant.
12770 (print_sys_errmsg): Ditto.
12772 * defs.h (perror_with_name): Update.
12773 (print_sys_errmsg): Update.
12776 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12778 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12779 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12781 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12783 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12784 if it already matches the current architecture from the exec file.
12785 Include arch-utils.h for gdbarch_info_init prototype.
12786 * Makefile.in (rs6000-nat.o): Update dependencies.
12788 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12790 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12791 list of exported variables.
12793 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12795 * gdbserver/configure.srv: New file.
12796 * gdbserver/configure.in: Use configure.srv instead
12797 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12799 * gdbserver/configure: Regenerated.
12800 * gdbserver/terminal.h: New file.
12801 * gdbserver/Makefile.in: Update for configure changes. Remove
12802 more unneeded include paths.
12804 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12806 From wiz at danbala:
12807 * config/sparc/tm-sp64.h: Fix grammar and typos.
12810 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12812 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12813 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12814 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12815 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12816 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12817 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12818 * s390-tdep.c: Ditto.
12819 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12820 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12821 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12822 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12823 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12824 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12825 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12826 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12827 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12828 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12831 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12833 * lin-thread.c: Delete file.
12834 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12835 to gdb_proc_service.h.
12836 * configure: Re-generate.
12838 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12839 * serial.c (serial_open): Delete check for "ocd".
12842 * Makefile.in (linux-thread.o): Delete target.
12843 * linux-thread.c: Delete file.
12845 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12846 renamed SH files to be consistent.
12848 * symtab.c (sort_search_symbols): Use xfree.
12850 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12852 * arm-linux-tdep.c (arm_linux_init_abi): Register
12853 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12854 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12855 definition with undef, since we don't want the sysvr4 definition.
12856 (SKIP_TRAMPOLINE_CODE): Likewise.
12858 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12860 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12862 * configure.in: (AC_CHECK_FUNCS) Added test for
12863 canonicalize_file_name Regenerated.
12864 * config.in, configure: Regenerated.
12865 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12866 defined use canonicalize_file_name.
12868 2002-02-23 Michael Chastain <mec@shout.net>
12870 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12872 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12874 * README: Remove references to cygnus.com.
12875 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12876 dot com'' form. Remove references to cygnus.com and sourceware.
12878 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12880 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12881 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12882 1003.1-2001 no longer allows "head -1".
12883 * gdb/Makefile.in (version.c): Likewise.
12884 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12885 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12886 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12888 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12890 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12891 * command.h (cmd_cfunc_eq): Declare.
12892 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12894 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12895 ``struct cmd_list_element *''.
12896 * cli/cli-cmds.c (is_complete_command): Update. Use
12898 * top.c (execute_command): Pass the command to
12899 is_complete_command.
12900 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12902 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12904 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12905 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12906 architecture defines.
12907 * s390-tdep.c (s390_gdbarch_init): Likewise.
12909 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12911 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12912 (arm_linux_push_arguments): Likewise.
12913 (arm_linux_init_abi): Register them. Also register linux-specific
12915 (find_minsym_and_objfile): Use strcmp, not STREQ.
12916 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12917 (arm_linux_call_dummy_words): Delete declaration.
12918 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12919 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12921 (LOWEST_PC): Delete.
12923 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12925 * maint.c (print_section_info): Do not prepend `0x' to filepos
12926 output, it will be handled by local_hex_string_custom.
12928 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12930 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12931 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12932 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12934 2002-02-22 Jim Blandy <jimb@redhat.com>
12936 Indicate that the bcache functions don't change the strings
12938 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12939 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12941 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12943 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12945 2002-02-21 Christopher Faylor <cgf@redhat.com>
12947 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12948 find the complete path to a loaded DLL.
12950 2002-02-21 Fred Fish <fnf@redhat.com>
12952 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12953 that marks the end of the range of a function, enter a line number
12954 entry that has a line number of zero and a PC offset that matches
12955 the end of the function. This starts a range of PC's for which no
12956 line number information is known.
12957 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12958 PC's for which no line number info is found (line number is zero)
12959 then we didn't find any valid line information.
12960 * symtab.h: Document use of zero line number entry.
12962 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12964 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12965 (have_ptrace_getvrregs): Define for run time checks.
12966 (gdb_vrregset_t): New type for Altivec register handling.
12967 (fetch_register, store_register): Fetch/store altivec register
12969 (fetch_altivec_register, store_altivec_register): New functions.
12970 (supply_vrregset, fill_vrregset): New functions.
12971 (fetch_altivec_registers, store_altivec_registers): New functions.
12972 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12975 2002-02-21 Jiri Smid <smid@suse.cz>
12977 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12979 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12981 * Makefile.in (armnbsd-nat.o): Update dependencies.
12982 * armnbsd-nat.c (supply_gregset): New function. Common code to
12983 supply the integer register set.
12984 (supply_fparegset): New function. Similar for FPA registers.
12985 (fetch_regs, fetch_fp_regs): Use them.
12986 (fetch_core_registers): Likewise.
12987 (fetch_elfcore_registers): New function.
12988 (arm_netbsd_elfcore_fns): New core-file type specification.
12989 (_initialize_arm_netbsd_nat): Register it.
12991 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12993 * armnbsd-nat.c: Include gdbcore.h.
12994 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12995 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12996 'void' to declaration, to shut up ARI.
12997 (fetch_core_registers): Make static. Rewrite using supply_register.
12998 (arm_netbsd_core_fns): New core-file type specification.
12999 (_initialize_arm_netbsd_nat): New function.
13001 2002-02-21 Christopher Faylor <cgf@redhat.com>
13003 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13006 2002-02-20 Christopher Faylor <cgf@redhat.com>
13008 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13011 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13013 * jv-exp.y (parse_number): Change type of implicit longs
13014 to builtin_type_uint64.
13016 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13018 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13019 to be an integer instead of a `union wait'.
13021 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13023 * mips-linux-nat.c: Call the operating system GNU/Linux.
13024 * mips-linux-tdep.c: Likewise.
13025 * mips-tdep.c: Likewise.
13027 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13030 * jv-exp.y (parse_number): Handle 64-bit integers.
13032 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13034 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13035 AC_STDC_HEADERS to AC_HEADER_STDC.
13036 * gdbserver/configure: Regenerated.
13038 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13040 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13042 * sparc-tdep.c (get_longjmp_target): Likewise.
13044 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13046 * News: Add news about ARM and Multi-arch. Mention the new target
13049 2002-02-19 Jim Blandy <jimb@redhat.com>
13051 * stabsread.c (error_type_complaint): Improve error message.
13053 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13055 * gdbserver/README: Update documentation.
13056 * gdbserver/configure.in: Update configury to match documentation.
13057 * gdbserver/Makefile.in: Likewise.
13058 * gdbserver/configure: Regenerated.
13059 * gdbserver/aclocal.m4: New file, generated by aclocal.
13060 * gdbserver/config.in: New file, generated by autoheader.
13062 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13064 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13067 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13069 * arm-tdep.h (enum arm_float_model): New enum.
13070 (struct gdbarch_tdep): Add fp_model.
13071 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13072 up floating-point conversions until we know the floating-point model
13073 in use by the inferior. Don't complain about being unable to
13074 determine the ABI of the inferior when we don't have one.
13075 (arm_extract_return_value): Support different floating-point models.
13076 (arm_store_return_value): Likewise.
13077 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13079 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13081 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13083 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13084 of ``current_gdbarch''.
13086 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13088 * armnbsd-nat.c : ANSIfy all function declarations.
13089 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13090 (fetch_inferior_registers): Re-implement in terms of above.
13091 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13092 (store_inferior_registers): Re-implement in terms of above.
13094 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13096 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13098 * arm-linux-tdep.c: Likewise.
13099 * config/arm/tm-linux.h: Likewise.
13101 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13103 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13104 * config/arm/nbsd.mt (TM_FILE): Delete.
13105 * config/arm/tm-nbsd.h: Delete.
13107 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13109 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13110 Initialize CALL_DUMMY_LENGTH.
13112 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13114 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13116 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13117 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13118 defines one thing and that is incorrect for this port.
13119 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13121 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13123 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13125 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13127 * win32-nat.c (display_selector): New function. Displays information
13128 about the information returned by GetThreadSelectorEntry API function.
13129 (display_selectors): New function. Displays the infomation of
13130 the selector given as argument, or of CS, DS ans FS selectors
13131 if no argument is given.
13132 ( _initialize_inftarg): Add "w32" as info prefix command.
13133 Add "info w32 selector" as command calling display_selectors.
13135 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13137 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13138 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13141 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13143 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13145 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13147 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13148 (arm_fix_call_dummy): Call it.
13149 (arm_call_dummy_breakpoint_offset): Delete.
13150 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13151 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13153 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13155 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13156 Default to func_frame_chain_valid.
13157 * gdbarch.h, gdbarch.c: Re-generate.
13158 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13160 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13162 * ppc-linux-nat.c: Update copyright.
13163 (fetch_register, store_register): Add tid parameter, don't compute
13165 (fetch_ppc_registers, store_ppc_registers): Add tid
13166 parameter. Pass it along to callees.
13167 (fetch_inferior_registers, store_inferior_registers): Compute tid
13168 here, and pass it to calleed functions.
13169 (fill_gregset, supply_fpregset): Clean up formatting.
13171 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13173 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13174 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13176 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13178 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13179 * gdbarch.c gdbarch.h: Regenerate.
13180 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13182 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13183 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13184 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13186 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13187 * arm-tdep.c (arm_get_longjmp_target): New function.
13188 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13189 this to a positive value register arm_get_longjmp_target as the
13191 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13192 (arm_linux_init_abi): Set up longjmp description in tdep.
13193 * armnbsd-nat.c (get_longjmp_target): Delete.
13194 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13195 description in tdep.
13196 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13197 (get_longjmp_target): Delete declaration.
13198 (GET_LONGJMP_TARGET): Delete.
13199 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13200 (GET_LONGJMP_TARGET): Delete.
13202 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13204 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13205 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13206 of ``current_gdbarch''.
13208 2002-02-17 Tom Tromey <tromey@redhat.com>
13210 * cli/cli-cmds.c (compare_strings): New function.
13211 (complete_command): Only print each unique item once.
13212 * completer.h (complete_line): Declare.
13213 * completer.c (complete_line): New function.
13214 (line_completion_function): Use it.
13216 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13218 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13219 * gdbarch.h, gdbarch.c: Re-generate.
13221 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13223 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13225 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13227 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13228 * valops.c (value_arg_coerce): Don't take the address of a reference
13229 to convert an argument to a reference.
13231 2002-02-15 Christopher Faylor <cgf@redhat.com>
13233 * win32-nat.c (get_image_name): New function.
13234 (handle_load_dll): Use get_image_name function.
13235 (get_child_debug_event): Avoid registering debug events until possibly
13236 execed process is started.
13237 (child_create_inferior): Allow invocation via shell so that command
13238 line redirection, etc. works ok.
13239 (_initialize_inftarg): Add new command: "set shell" to control whether
13240 a shell is used to start a process.
13242 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13244 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13245 instead of find_register_by_number.
13246 (cannot_store_register): Likewise.
13248 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13250 * dwarf2read.c: Replace fprintf (stderr, ...) by
13251 fprintf_unfiltered (gdb_stderr, ...).
13253 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13255 * gdbserver/gdbserver.1: Document --attach.
13257 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13259 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13261 * arm-tdep.c (arm_default_arm_le_breakpoint)
13262 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13263 (arm_default_thumb_be_breakpoint): New. Initialize them from
13264 traditional breakpoint defines.
13265 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13266 (arm_gdbarch_init): Initialize new breakpoint variables.
13267 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13268 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13269 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13270 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13272 (arm_netbsd_init_abi_common): ... here; new function.
13273 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13274 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13275 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13276 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13278 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13280 * arm-tdep.h (enum arm_abi): New enum.
13281 (struct gdbarch_tdep): New structure.
13282 (LOWEST_PC): Provide a default.
13283 (arm_gdbarch_register_os_abi): Declare new function.
13284 * arm-tdep.c (arm_abi_names): New array.
13285 (process_note_abi_tag_sections): New function.
13286 (get_elfosabi): New function.
13287 (arm_gdbarch_register_os_abi): New function.
13288 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13289 support for that ABI has been built in, then call the appropriate
13290 configuration routine. Use gdbarch_num_regs() to get the number
13292 (arm_dump_tdep): New function.
13293 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13294 place-holder functions.
13295 (_initialize_arm_tdep): Register them.
13296 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13298 * armnbsd-tdep.c: New file.
13299 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13300 * config/arm/nbsd.mt (TDEPFILES): Add it.
13301 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13303 * armnbsd-nat.c: Include regcache.h.
13304 * Makefile.in (armnbsd-nat.o): Update dependency list.
13306 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13308 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13310 * gdbserver/Makefile.in: Fix typos in target rules.
13312 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13314 Fix part of PR gdb/267.
13315 * linespec.c (find_methods): Handle constructors specially for now.
13317 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13319 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13321 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13322 standard_coerce_float_to_double().
13324 2002-02-14 Christopher Faylor <cgf@redhat.com>
13326 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13329 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13331 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13332 find_variant_by_name, because it confuses the multiarch
13333 framework. Return NULL if there isn't an architecture with the
13334 user supplied name, instead of forcing a different one without
13335 recording the change with the multiarch machinery.
13336 (find_variant_by_name): Delete.
13338 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13340 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13341 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13343 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13345 * stack.c (print_frame_info_base): When calling
13346 print_frame_info_listing_hook, set current_source_symtab.
13348 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13350 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13351 and remove unused $(INCLUDE_DIR).
13352 Add regcache.c to OBS.
13353 Add generated register protocol files to clean target.
13354 Update dependencies for new objects, obsolete old target code.
13356 * gdbserver/linux-low.c: Remove all platform-specific code to
13357 new files. Remove various dead code. Update to use regcache
13359 * gdbserver/remote-utils.c (fromhex): Add return statement
13361 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13363 (input_interrupt): Add integer parameter to match prototype
13364 of a signal handler.
13365 (outreg): Use register_data ().
13366 (prepare_resume_reply): Use gdbserver_expedite_regs.
13367 * gdbserver/server.c (main): Dynamically allocate own_buf because
13368 PBUFSIZ is no longer constant. Use registers_to_string () and
13369 registers_from_string ().
13370 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13371 for error (), fatal (), and warning (). Update definition of
13372 PBUFSIZ to use regcache functionality. Add include guard.
13373 * gdbserver/utils.c (fatal): Add missing ``const''.
13374 (warning): New function.
13376 * regformats/regdat.sh: Include "regcache.h" in generated files.
13377 Provide init_registers () function.
13378 * regformats/regdef.h: Add prototype for set_register_cache ().
13381 * gdbserver/linux-arm-low.c: New file.
13382 * gdbserver/linux-i386-low.c: New file.
13383 * gdbserver/linux-ia64-low.c: New file.
13384 * gdbserver/linux-m68k-low.c: New file.
13385 * gdbserver/linux-mips-low.c: New file.
13386 * gdbserver/linux-ppc-low.c: New file.
13387 * gdbserver/linux-sh-low.c: New file.
13389 * gdbserver/regcache.c: New file.
13390 * gdbserver/regcache.h: New file.
13392 * gdbserver/low-linux.c: Removed obsolete file.
13394 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13396 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13397 * config/i386/linux.mt: Likewise.
13398 * config/ia64/linux.mt: Likewise.
13399 * config/m68k/linux.mh: Likewise.
13400 * config/powerpc/linux.mh: Likewise.
13401 * config/mips/linux.mt: Likewise.
13403 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13405 * config/i386/i386lynx.mh: Mark gdbserver variables
13406 as (currently) obsolete for this target.
13407 * config/i386/nbsd.mt: Likewise.
13408 * config/i386/nbsdelf.mt: Likewise.
13409 * config/m32r/m32r.mt: Likewise.
13410 * config/m68k/m68klynx.mh: Likewise.
13411 * config/m68k/nbsd.mt: Likewise.
13412 * config/m68k/sun3os4.mh: Likewise.
13413 * config/mips/vr5000.mt: Likewise.
13414 * config/ns32k/nbsd.mt: Likewise.
13415 * config/pa/hppabsd.mh: Likewise.
13416 * config/pa/hppaosf.mh: Likewise.
13417 * config/powerpc/nbsd.mt: Likewise.
13418 * config/rs6000/rs6000lynx.mh: Likewise.
13419 * config/s390/s390.mt: Likewise.
13420 * config/s390/s390x.mt: Likewise.
13421 * config/sparc/sparclynx.mh: Likewise.
13422 * config/sparc/sun4os4.mh: Likewise.
13423 * config/i386/x86-64linux.mt: Likewise.
13424 * config/sparc/linux.mh: Likewise.
13426 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13428 * configure.tgt: Configure gdbserver only for known working
13429 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13430 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13431 SUBDIRS if it is configured. Update comment for ${nativefile}.
13432 * configure: Regenerated.
13434 2002-02-13 Michael Snyder <msnyder@redhat.com>
13436 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13438 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13439 (default_gcore_mach): Just return 0, work around a problem in bfd.
13440 (default_gcore_target): OK to return NULL if exec_bfd is null.
13441 (make_mem_sec): Use a cast, avoid a warning.
13443 * procfs.c (find_memory_regions_callback): Use a cast instead of
13444 calling host_pointer_to_address (which complains if
13445 sizeof (host pointer) != sizeof (target pointer)).
13446 (procfs_make_note_section): Avoid overflow in psargs string.
13448 * procfs.c (procfs_make_note_section): Make the default
13449 implementation return an error.
13451 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13453 * procfs.c (procfs_make_note_section): Provide a default definition
13454 (for alpha-dec-osf4.0f). Fix typos.
13456 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13458 * linux-proc.c: Add include of regcache.h.
13459 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13461 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13463 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13464 * memattr.c (create_mem_region): Disallow useless empty region.
13465 Regions are half-open intervals, so allow [A..B) [B..C) as
13468 2002-02-13 Michael Chastain <mec@shout.net>
13470 * defs.h: Kill CONST_PTR.
13471 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13472 * c-lang.c (c_builtin_types): Likewise.
13473 * ch-lang.c (ch_builtin_types): Likewise.
13474 * f-lang.c (f_builtin_types): Likewise.
13475 * language.c (unknown_builtin_types): Likewise.
13476 * m2-lang.c (m2_builtin_types): Likewise.
13477 * p-lang.c (pascal_builtin_types): Likewise.
13478 * scm-lang.c (c_builtin_types): Likewise.
13480 2002-02-13 Keith Seitz <keiths@redhat.com>
13482 * arm-tdep.h (arm_get_next_pc): Add declaration.
13484 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13486 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13487 with other related struct-returning functions.
13488 (arm_extract_struct_value_address): New function.
13489 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13490 initialize float_format, double_format and long_double_format as
13491 appropriate to the endianness of the target.
13492 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13493 (arm_use_struct_convention): Delete declaration.
13494 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13496 2002-02-13 Keith Seitz <keiths@redhat.com>
13498 * defs.h (core_addr_to_string_nz): New function.
13500 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13502 Apply missing bits of 2002-01-15 patch.
13503 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13504 (fill_fpregset): Use i387_fill_fsave.
13506 2002-02-12 Keith Seitz <keiths@redhat.com>
13508 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13509 (core_addr_to_string_nz): New function.
13511 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13513 * arm-linux-nat.c: Really include arm-tdep.h.
13514 * config/arm/tm-linux.h (struct type, struct value): Declare.
13516 2002-02-11 Michael Snyder <msnyder@redhat.com>
13518 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13519 (gcore section): Ifdef for Solaris and Unixware only.
13520 (procfs_do_thread_registers): Unixware needs one lwpstatus
13521 per thread (not one prstatus or pstatus).
13522 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13523 not over all gdb threads. For unixware, call elfcore_write_pstatus
13524 once before iterating over threads.
13526 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13528 * arm-tdep.h: New file.
13529 * arm-tdep.c: Include arm-tdep.h.
13530 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13531 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13532 (arm_print_float_info, arm_register_type, convert_to_extended)
13533 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13534 (arm_extract_return_value, arm_register_name): Make static.
13535 (arm_software_single_step): Similarly. Fix types in declaration.
13536 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13537 (arm_store_return_value, arm_store_struct_return): New functions.
13538 (arm_gdbarch_init): Register the above functions. Also register
13539 call_dummy_start_offset, sizeof_call_dummy_words,
13540 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13541 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13542 max_register_virtual_size, register_size. Set up
13543 prologue_cache.saved_regs here, rather than ...
13544 (_initialize_arm_tdep): ... here.
13545 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13547 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13548 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13549 (arm_print_float_info, arm_register_type, convert_to_extended)
13550 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13551 (arm_extract_return_value, arm_register_name): Delete declarations.
13552 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13553 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13554 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13555 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13556 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13557 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13558 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13559 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13560 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13561 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13562 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13563 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13565 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13566 * remote-rdi.c remote-rdp.c: Likewise.
13567 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13568 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13569 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13572 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13573 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13574 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13575 from non-ARM_ prefixed definitions.
13576 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13578 * remote-rdi.c remote-rdp.c: Likewise.
13579 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13581 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13583 * arm-tdep.c (arm_frameless_function_invocation)
13584 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13585 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13586 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13587 (arm_pop_frame, arm_get_next_pc): Make static.
13588 (arm_gdbarch_init): Register above in gdbarch structure.
13589 (arm_read_fp): Renamed from arm_target_read_fp.
13590 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13591 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13592 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13593 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13594 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13595 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13596 (arm_pc_is_thumb_dummy): Delete declarations.
13597 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13598 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13599 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13600 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13602 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13604 * symtab.c (compare_search_syms): New function.
13605 (sort_search_symbols): New function.
13606 (search_symbols): Sort symbols after searching rather than
13609 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13611 * NEWS: Linux -> GNU/Linux.
13613 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13615 * gdbarch.sh: For for level one methods, disallow a definition
13616 when partially multi-arched. Add comments explaining rationale.
13617 * gdbarch.h: Re-generate.
13619 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13621 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13622 multi-arch partial.
13624 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13626 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13627 field. Use diff -u.
13628 * gdbarch.c: Re-generate.
13630 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13632 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13633 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13636 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13638 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13639 multi-arch partial.
13640 (PUSH_ARGUMENTS): Switch to using predefault.
13641 * gdbarch.c: Regenerate.
13643 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13645 * valops.c (PUSH_ARGUMENTS): Delete definition.
13646 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13647 partial. Default to default_push_arguments.
13648 * gdbarch.h, gdbarch.c: Regenerate.
13650 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13652 * defs.h (throw_exception): Rename return_to_top_level. Update
13654 * utils.c (error_stream, internal_verror, quit): Ditto.
13655 * top.c (throw_exception, catcher): Ditto.
13656 * sparclet-rom.c (sparclet_load): Ditto.
13657 * remote.c (interrupt_query, minitelnet): Ditto.
13658 * remote-sds.c (interrupt_query): Ditto.
13659 * remote-mips.c (mips_error, mips_kill): Ditto.
13660 * ocd.c (interrupt_query): Ditto.
13661 * monitor.c (monitor_interrupt_query): Ditto.
13662 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13663 * target.h: Update comment.
13665 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13667 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13669 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13670 default_double_format.
13671 * gdbarch.h, gdbarch.c: Re-generate.
13672 * findvar.c (floatformat_unknown): Delete variable definition.
13673 * doublest.h (floatformat_unknown): Delete variable declaration.
13675 2002-02-09 Jim Blandy <jimb@redhat.com>
13677 * stabsread.c (read_type): Add code to parse Sun's syntax for
13678 prototyped function types.
13680 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13682 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13683 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13685 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13687 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13688 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13689 now _initialize_xcoffsolib gets called again and overrides the
13690 commands from solib.c in a native configuration.
13692 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13694 * doublest.c (store_typed_floating): Don't try to return a value.
13697 2002-02-08 Jim Blandy <jimb@redhat.com>
13699 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13700 is prototyped and has no arguments, print its argument list as
13703 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13705 * MAINTAINERS (write-after-approval): Add myself.
13706 (paper-trail): I've escaped!
13708 2002-02-08 Christopher Faylor <cgf@redhat.com>
13710 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13712 (_initialize_check_for_gdb_ini): Ditto.
13714 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13716 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13717 xaprintf -> xasprintf.
13719 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13721 * win32-nat.c: Remove use of printf and sprintf functions.
13723 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13725 * arm-tdep.c (arm_frame_chain_valid): Make static.
13726 (arm_push_arguments): Likewise.
13727 (arm_gdbarch_init): New function.
13728 (_initialize_arm_tdep): Call it.
13729 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13730 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13731 (FRAME_CHAIN_VALID): Delete.
13732 (arm_frame_chain_valid): Delete declaration.
13733 (PUSH_ARGUMENTS): Delete.
13734 (arm_push_arguments): Delete declaration.
13735 (CALL_DUMMY_P): Delete.
13737 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13738 Corinna Vinschen <vinschen@redhat.com>
13740 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13741 on builtin float types.
13743 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13745 * utils.c: Include <curses.h> before "bfd.h".
13746 * tui/tui-hooks.c: Likewise.
13747 * tui/tui.c: Likewise.
13748 * tui/tuiCommand.c: Likewise.
13749 * tui/tuiData.c: Likewise.
13750 * tui/tuiDataWin.c: Likewise.
13751 * tui/tuiDisassem.c: Likewise.
13752 * tui/tuiGeneralWin.c: Likewise.
13753 * tui/tuiIO.c: Likewise.
13754 * tui/tuiLayout.c: Likewise.
13755 * tui/tuiRegs.c: Likewise.
13756 * tui/tuiSource.c: Likewise.
13757 * tui/tuiSourceWin.c: Likewise.
13758 * tui/tuiStack.c: Likewise.
13759 * tui/tuiWin.c: Likewise.
13761 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13763 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13764 to include space for pseudoregs as well. Update loops accordingly.
13765 (sh_fp_frame_init_saved_regs): Ditto.
13766 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13768 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13770 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13771 Add Richard Earnshaw to Arm maintainers.
13773 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13775 * defs.h (warning_begin): Delete declaration.
13777 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13780 2002-02-07 Michael Snyder <msnyder@redhat.com>
13782 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13783 Logic bug, remove misplaced else.
13785 2002-02-07 Klee Dienes <klee@apple.com>
13787 * fork-inferior.c (fork_inferior): Add '!' to the list of
13788 characters that need to be quoted when building a string for the
13789 shell. Quote '!' specifically with a backslash, since CSH chokes
13790 when trying to evaluate "str!str".
13792 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13794 * rdi-share/host.h: Only provide a typedef for bool if it is not
13797 2002-02-04 Michael Snyder <msnyder@redhat.com>
13799 * breakpoint.h (enum bptype): Add new overlay event bp type.
13800 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13802 * breakpoint.c (create_internal_breakpoint): New function.
13803 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13804 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13805 (create_thread_event_breakpoint): Ditto.
13806 (create_solib_event_breakpoint): Ditto.
13807 (create_overlay_event_breakpoint): New function.
13808 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13809 (update_breakpoints_after_exec): Delete and re-initialize
13810 overlay event breakpoints after an exec. Add FIXME comment
13811 about longjmp breakpoint.
13812 (print_it_typical): Ignore overlay event breakpoints.
13813 (print_one_breakpoint): Ditto.
13815 (bpstat_what): Do not stop for overlay event breakpoints.
13816 (delete_breakpoint): Don't delete overlay event breakpoints.
13817 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13818 (breakpoint_re_set): Re-create overlay event breakpoint.
13820 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13821 (overlay_manual_command): Disable overlay breakpoints.
13822 (overlay_off_command): Disable overlay breakpoints.
13824 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13826 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13827 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13828 to here from config/tm-arm.h.
13829 (coff_sym_is_thumb): Make static.
13830 (arm_elf_make_msymbol_special): New function.
13831 (arm_coff_make_msymbol_special): New function.
13832 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13833 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13834 (coff_sym_is_thumb): Delete declaration.
13835 (arm_elf_make_msymbol_special): Declare.
13836 (arm_coff_make_msymbol_special): Declare.
13837 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13838 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13840 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13842 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13844 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13846 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13847 * gdbarch.c gdbarch.h: Regenerate.
13848 * arch-utils.c (default_print_float_info): New function.
13849 * arch-utils.h (default_print_float_info): Prototype it.
13850 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13851 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13852 (PRINT_FLOAT_INFO): Document it.
13854 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13855 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13856 (PRINT_FLOAT_INFO): Define.
13858 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13860 * win32-nat.c (_initialize_check_for_gdb_ini):
13861 Add typecast to sprintf argument to suppress a warning.
13863 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13865 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13866 to allow easier handling of pass state.
13867 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13868 that gives exception name and address.
13869 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13870 and set last_sig value to ourstatus->value.sig. Some missing
13872 (child_continue): Correctly report continue_status.
13873 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13874 TARGET_SIGNAL_0 (new default value).
13875 (child_resume): consider sig argument passed to decide if
13876 the exception should be passed to debuggee or not.
13878 2002-02-05 Michael Snyder <msnyder@redhat.com>
13880 * regcache.c (fetch_register): Call target_fetch_register
13881 only if we don't call FETCH_PSEUDO_REGISTER.
13882 (store_register): Call target_store_register only if we
13883 don't call STORE_PSEUDO_REGISTER.
13885 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13887 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13888 ELF_MAKE_MSYMBOL_SPECIAL.
13889 * gdbarch.c, gdbarch.h: Regenerate.
13890 * arch-utils.c (default_make_msymbol_special): New function.
13891 * arch-utils.h (default_make_msymbol_special): Export.
13892 * elfread.c (elf_symtab_read): Compile use of
13893 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13895 * coffread.c (coff_symtab_read): Ditto, for
13896 COFF_MAKE_MSYMBOL_SPECIAL.
13898 2002-02-05 Jim Blandy <jimb@redhat.com>
13900 * solib-svr4.c (svr4_truncate_ptr): New function.
13901 (svr4_relocate_section_addresses): Do the address arithmetic with
13902 the appropriate truncation for target addresses, even when
13903 CORE_ADDR is larger than a target address.
13905 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13907 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13910 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13912 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13915 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13917 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13919 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13921 * gdbserver/linux-low.c: Remove unused include files.
13923 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13925 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13926 (read_inferior_memory): Use it.
13927 (write_inferior_memory): Likewise.
13929 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13931 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13932 grubbing through sys_errlist.
13934 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13936 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13938 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13939 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13941 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13943 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13944 (do_sfunc, set_cmd_sfunc): New functions.
13946 * command.h (struct cmd_list_element): Add field func.
13947 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13948 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13949 * cli/cli-decode.h: Ditto.
13951 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13952 (help_all, help_cmd_list): Ditto.
13953 (find_cmd, complete_on_cmdlist): Ditto.
13954 * top.c (execute_command): Ditto.
13956 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13959 * infcmd.c (notice_args_read): Fix function signature.
13961 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13962 * cli/cli-decode.c (add_set_cmd): Ditto.
13963 * utils.c (initialize_utils): Ditto.
13964 * maint.c (_initialize_maint_cmds): Ditto.
13965 * infrun.c (_initialize_infrun): Ditto.
13966 * demangle.c (_initialize_demangler): Ditto.
13967 * remote.c (add_packet_config_cmd): Ditto.
13968 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13969 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13970 * proc-api.c (_initialize_proc_api): Ditto.
13971 * kod.c (_initialize_kod): Ditto.
13972 * valprint.c (_initialize_valprint): Ditto.
13973 * top.c (init_main): Ditto.
13974 * infcmd.c (_initialize_infcmd): Ditto.
13975 * corefile.c (_initialize_core): Ditto.
13976 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13977 * arch-utils.c (initialize_current_architecture): Ditto.
13978 (_initialize_gdbarch_utils): Ditto.
13979 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13981 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13982 * wince.c (_initialize_inftarg): Ditto.
13983 * symfile.c (_initialize_symfile): Ditto.
13984 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13985 * language.c (_initialize_language): Ditto.
13986 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13988 2002-02-04 Michael Snyder <msnyder@redhat.com>
13990 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13992 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13994 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13995 Add rules for building the register data files.
13997 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13999 * regformats/regdat.sh: Add braces to the definition of
14000 expedite_regs_${arch}.
14002 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14004 * regformats/regdef.h (struct reg): Add comment describing the
14005 requirements for offset and size fields.
14007 2002-02-04 Andreas Schwab <schwab@suse.de>
14009 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14010 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14012 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14014 * gdbarch.sh (copyright): Update years in generated header.
14015 (SMASH_TEXT_ADDRESS): Add rule.
14016 * gdbarch.h, gdbarch.c: Re-generate.
14017 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14018 * dbxread.c: Likewise.
14019 * dwarfread.c: Likewise.
14020 * elfread.c: Likewise.
14021 * somread.c: Likewise.
14023 * arm-tdep.c (arm_smash_text_address): New function.
14024 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14026 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14028 Add support for hardware watchpoints on win32 native.
14029 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14030 CONTEXT_DEBUG_REGISTERS.
14031 (dr variable): New variable. Static array containing a local copy
14032 of debug registers.
14033 (debug_registers_changed): New variable. Reflects when debug registers
14034 are changed and need to be written to inferior.
14035 (debug_registers_used): New variable. Reflects when any debug register
14036 was set, used when new threads are created.
14037 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14039 (thread_rec): Set dr array if id is the thread of current_event .
14040 (child_continue, child_resume): Change the debug registers for all
14041 threads if debug_registers_changed.
14042 (child_add_thread): Change the debug registers if debug_registers_used.
14043 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14044 Link nm.h to new nm-cygwin.h file.
14045 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14046 of hardware registers.
14048 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14050 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14051 Restore behavour broken by 2002-01-20 Andrew Cagney
14052 <ac131313@redhat.com> IEEE_FLOAT removal.
14054 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14056 * c-valprint.c (c_val_print): Pass a proper valaddr to
14057 cp_print_class_method.
14058 * valops.c (search_struct_method): If there is only one method
14059 and args is NULL, return that method.
14061 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14063 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14064 accessing tag_name directly.
14066 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14068 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14069 of accessing tag_name directly.
14071 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14074 * gdbtypes.c (replace_type): New function.
14075 * gdbtypes.h (replace_type): Add prototype.
14076 * stabsread.c (read_type): Use replace_type.
14078 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14080 * Makefile.in (memattr.o): Add missing dependencies rule.
14082 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14084 * breakpoint.c (break_at_finish_command): Really export.
14085 (break_at_finish_at_depth_command): Ditto.
14086 (tbreak_at_finish_command): Ditto.
14087 * hppa-tdep.c: Include completer.h.
14088 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14089 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14091 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14093 * utils.c (do_write): New function.
14094 (error_stream): Rewrite combining the code from error_begin and
14096 (verror): Rewrite using error_stream.
14097 (error_begin): Delete function.
14099 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14101 * utils.c (error_begin): Make static.
14102 * defs.h (error_begin): Delete declaration.
14104 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14105 (decode_line_1): Use cplusplus_error instead of error_begin,
14106 cplusplus_hint and return_to_top_level.
14107 * coffread.c (coff_symfile_read): Use error instead of error_begin
14108 and return_to_top_level.
14109 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14111 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14113 * language.h (type_error, range_error): Make string parameter
14115 * language.c (warning_pre_print): Delete extern declaration.
14116 * dwarfread.c (warning_pre_print): Ditto.
14117 * language.c (type_error, range_error): Rewrite to use verror and
14118 vwarning instead of warning_begin.
14120 2002-02-01 Michael Snyder <msnyder@redhat.com>
14122 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14123 (set_ignore_count): Move misplaced comment back where it belongs.
14125 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14127 * command.h (NO_FUNCTION): Delete macro.
14128 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14129 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14130 * tracepoint.c (_initialize_tracepoint): Ditto.
14131 * cli/cli-decode.c (add_set_cmd): Ditto.
14132 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14134 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14136 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14137 Update ``this'' pointer when calling virtual functions.
14139 2002-02-01 Michael Snyder <msnyder@redhat.com>
14141 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14142 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14144 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14146 * regformats/reg-arm.dat: New file.
14147 * regformats/reg-i386.dat: New file.
14148 * regformats/reg-ia64.dat: New file.
14149 * regformats/reg-m68k.dat: New file.
14150 * regformats/reg-mips.dat: New file.
14151 * regformats/reg-ppc.dat: New file.
14152 * regformats/reg-sh.dat: New file.
14153 * regformats/regdef.h: New file.
14154 * regformats/regdat.sh: New file.
14156 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14158 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14159 (arm_frame_args_address, arm_frame_locals_address): New functions.
14160 (arm_frame_num_args): New function.
14161 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14162 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14163 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14165 2002-01-31 Michael Snyder <msnyder@redhat.com>
14167 * breakpoint.c (break_at_finish_command): Export.
14168 (break_at_finish_at_depth_command): Export.
14169 (tbreak_at_finish_command): Export.
14170 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14171 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14172 "txbreak" commands, which are HPPA specific.
14174 * printcmd.c (disassemble_command): Remove an ancient
14175 artifact of an old merge.
14177 * symfile.h (enum overlay_debugging_state):
14178 Define enum constant values for overlay mode.
14179 * symfile.c (overlay_debugging): Use enums instead of literals.
14180 (overlay_is_mapped, overlay_auto_command,
14181 overlay_manual_command): Ditto.
14183 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14184 breakpoint_here_p, breakpoint_inserted_here_p,
14185 breakpoint_thread_match, bpstat_stop_status,
14186 describe_other_breakpoints, check_duplicates, clear_command):
14187 Coding standard fixes.
14189 * target.c (target_xfer_memory): Add spaces, coding standard.
14190 (do_xfer_memory): Add missing line to trust-readonly
14191 code: check bfd SEC_READONLY flag for section.
14193 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14195 * PROBLEMS: Fix typo, 5.1->5.1.1.
14197 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14199 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14200 data symbols, since we search based on textlow and texthigh.
14201 (find_pc_sect_symtab): Likewise.
14203 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14205 * defs.h (vwarning): Declare.
14206 * utils.c (vwarning): New function.
14207 (warning): Call vwarning.
14208 (warning_begin): Delete function.
14210 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14211 the warning message.
14212 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14215 2002-01-30 Michael Snyder <msnyder@redhat.com>
14217 * NEWS: Mention "set trust-readonly-sections" command.
14218 Mention generate-core-file command.
14220 2002-01-15 Michael Snyder <msnyder@redhat.com>
14222 * target.c: New command, "set trust-readonly-sections on".
14223 (do_xfer_memory): Honor the suggestion to trust readonly sections
14224 by reading them from the object file instead of from the target.
14225 (initialize_targets): Register command "set trust-readonly-sections".
14227 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14229 * parse.c (target_map_name_to_register): Simplify, search regs and
14230 pseudo-regs using a single loop.
14232 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14234 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14236 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14238 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14239 * config/i386/i386v42mp.mh: Add i387-nat.o .
14240 * i386v4-nat.c: Include i387-nat.h.
14241 (supply_fpregset): Use i387_supply_fsave.
14242 (fill_fpregset): Use i387_fill_fsave.
14244 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14246 * arm-tdep.c (arm_call_dummy_words): Define.
14247 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14248 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14249 (CALL_DUMMY_WORDS): Define.
14250 (arm_call_dummy_words): Declare.
14251 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14252 (arm_linux_call_dummy_words): Declare.
14254 2002-01-30 Andreas Schwab <schwab@suse.de>
14256 * m68klinux-nat.c: Fix last change to use regcache_collect
14257 instead of referencing registers[] directly.
14259 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14261 * parse.c (target_map_name_to_register): Delete code wrapped in
14262 #ifdef REGISTER_NAME_ALIAS_HOOK.
14264 2002-01-28 Michael Snyder <msnyder@redhat.com>
14266 * regcache.c (legacy_read_register_gen): Need to be able to
14267 read pseudo-register as well as real register.
14268 (legacy_write_register_gen): Ditto.
14270 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14272 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14273 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14274 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14275 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14276 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14277 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14278 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14279 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14280 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14281 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14282 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14283 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14284 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14285 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14286 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14287 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14288 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14289 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14290 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14291 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14293 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14295 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14296 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14297 (initialize_current_architecture): Update target_byte_order using
14298 information from BFD.
14299 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14300 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14302 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14304 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14305 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14307 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14308 #ifdef INVALID_FLOAT.
14309 * infcmd.c (do_registers_info): Ditto.
14310 * values.c (unpack_double): Ditto. Add comment.
14312 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14313 already commented out.
14315 2002-01-26 Andreas Schwab <schwab@suse.de>
14317 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14318 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14319 registers and add support for PTRACE_GETREGS.
14321 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14323 GDB 5.1.1 released from 5.1 branch.
14324 * NEWS: Add 5.1.1 news.
14325 * README: Sync with 5.1 branch.
14327 2002-01-23 Fred Fish <fnf@redhat.com>
14329 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14330 stabstring on initial malloc. Reallocing will copy it for us,
14333 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14335 * Makefile.in (hpread_h): Delete.
14336 (HFILES_NO_SRCDIR): Remove hpread.h.
14337 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14338 (hpread.o): Update dependencies.
14339 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14341 * hp-psymtab-read.c: Remove file.
14342 * hp-symtab-read.c: Remove file.
14343 * hpread.h: Remove file.
14345 * hpread.c: Merge all contents of hp-psymtab-read.c,
14346 hp-symtab-read.c and hpread.h into this file, as it was prior to
14349 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14350 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14351 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14352 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14354 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14356 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14357 fill_gregset): Call gdbarch_tdep() just once, assign result to
14358 variable and use that, instead of calling the function several
14361 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14363 * configure.host: Accept sparcv9 as alias for sparc64.
14364 * configure.tgt: Likewise.
14366 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14368 * solib-aix5.c (build_so_list_from_mapfile)
14369 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14370 arguments is not reversed.
14371 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14372 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14374 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14376 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14377 modified version of obsolete sh_fetch_pseudo_register.
14378 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14379 (sh4_register_read): New function.
14380 (sh_pseudo_register_write): New function. Renamed and modified
14381 version of obsolete sh_store_pseudo_register.
14382 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14383 (sh4_register_write): New function.
14384 (sh_gdbarch_init): Remove setting of gdbarch function
14385 fetch_pseudo_register and store_pseudo_register. Remove setting of
14386 register_convert_to_raw, register_convert_to_virtual,
14387 register_convertible.
14388 (sh_sh4_register_convertible): Delete. No longer needed. All is
14389 taken care by architecture specific functions
14390 register_read/register_write.
14391 (sh_sh4_register_convert_to_virtual): Make static.
14392 (sh_sh4_register_convert_to_raw): Ditto.
14394 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14396 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14397 (floatformat_is_nan, floatformat_mantissa): Ditto.
14399 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14400 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14401 builtin_type_ieee_double_little,
14402 builtin_type_ieee_double_littlebyte_bigword,
14403 builtin_type_m68881_ext, builtin_type_i960_ext,
14404 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14405 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14406 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14407 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14409 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14411 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14412 parameter. Set frameless flag if it exists and depended of
14413 whether the scanned function is frameless or not.
14414 (xstormy16_skip_prologue): If function is frameless, return
14415 result of xstormy16_scan_prologue().
14416 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14419 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14421 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14422 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14423 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14424 sh_sh4_register_byte, sh_sh4_register_raw_size,
14425 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14426 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14427 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14428 sh_store_pseudo_register, sh_do_pseudo_register): Call
14429 gdbarch_tdep() just once, assign result to variable and use that,
14430 instead of calling the function several times.
14432 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14434 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14435 macros instead of LAST_FPU_CTRL_REGNUM.
14436 (store_register): Likewise.
14438 2002-01-21 Jim Blandy <jimb@redhat.com>
14440 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14441 is up-to-date before running the program, not just when a program
14444 2002-01-21 Fred Fish <fnf@redhat.com>
14446 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14447 when we have found all instructions we are looking for.
14449 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14451 * arm-tdep.c (arm_register_name): New function.
14452 (arm_registers_names): Make static.
14453 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14454 (arm_register_name): Declare.
14455 (REGISTER_NAME): Use it.
14457 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14458 Kevin Buettner <kevinb@redhat.com>
14460 Convert arm targets to new FRAME interface.
14461 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14462 (arm_frame_find_save_regs): Delete.
14463 (arm_frame_init_saved_regs): New.
14464 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14465 Allocate extra_info as required. Convert all uses of fsr.regs
14466 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14468 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14469 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14470 (check_prologue_cache, save_prologue_cache): Likewise.
14471 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14472 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14473 (FRAME_FIND_SAVED_REGS): Delete.
14474 (arm_frame_find_saved_regs): Delete prototype.
14475 (arm_frame_init_saved_regs): New prototype.
14476 (FRAME_INIT_SAVED_REGS): Define.
14478 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14480 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14482 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14484 From Jeff Law <law@redhat.com>:
14485 * infttrace.c: Include <sys/pstat.h>.
14486 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14487 exec file if the ttrace equivalent fails.
14489 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14491 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14492 (closeLogFile): Ditto.
14494 2002-01-20 Michael Chastain <mec@shout.net>
14496 * top.c (print_gdb_version): Bump copyright year to 2002.
14498 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14500 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14501 Zannoni and Eli Zaretskii.
14503 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14505 * buildsym.c: Update copyright years.
14506 * c-typeprint.c: Likewise.
14507 * dwarf2read.c: Likewise.
14508 * f-typeprint.c: Likewise.
14509 * gdbtypes.c: Likewise.
14510 * gdbtypes.h: Likewise.
14511 * hp-symtab-read.c: Likewise.
14512 * hpread.c: Likewise.
14513 * mdebugread.c: Likewise.
14514 * p-typeprint.c: Likewise.
14516 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14518 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14519 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14520 byte-order selectable.
14521 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14522 * arch-utils.c: Ditto.
14523 (set_endian): Ditto.
14524 (set_endian_from_file): Ditto.
14525 * gdbserver/low-sim.c (create_inferior): Ditto.
14526 * gdbarch.sh: Ditto.
14527 * gdbarch.h: Re-generate.
14528 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14529 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14530 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14531 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14532 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14533 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14534 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14535 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14537 * config/mips/tm-wince.h: Remove #undef of macro
14538 TARGET_BYTE_ORDER_SELECTABLE.
14539 * config/sh/tm-wince.h: Ditto.
14541 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14543 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14544 member function fields. Add accessor macro
14545 TYPE_FN_FIELD_ARTIFICIAL.
14546 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14547 * c-typeprint.c (c_type_print_base): Skip artificial member
14550 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14552 * f-typeprint.c: Delete unused function f_type_print_args.
14553 * p-typeprint.c: Delete unused function pascal_type_print_args.
14555 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14557 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14558 comment. Add ``artificial'' to ``union field_location''.
14560 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14562 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14563 * mdebugread.c (parse_symbol): Likewise.
14564 * stabsread.c (define_symbol): Likewise.
14565 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14566 initializing TYPE_FIELD_BITPOS to n (obsolete).
14567 (hpread_doc_function_type): Likewise.
14568 * hpread.c (hpread_function_type): Likewise.
14570 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14572 * configure.in (host_makefile_frag): Only require a host makefile
14573 fragment when a native build.
14574 * configure: Re-generate.
14576 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14578 * doublest.h (floatformat_from_type): Declare.
14579 * doublest.c (floatformat_from_type): New function.
14580 (convert_typed_floating): Use.
14582 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14583 call to function floatformat_from_type.
14585 * gdbarch.sh (IEEE_FLOAT): Delete.
14586 * gdbarch.h, gdbarch.c: Re-generate.
14587 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14588 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14589 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14590 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14591 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14592 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14593 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14594 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14595 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14596 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14597 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14598 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14600 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14601 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14602 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14603 * sh-tdep.c (sh_gdbarch_init): Ditto.
14604 * mips-tdep.c (mips_gdbarch_init): Ditto.
14605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14606 * cris-tdep.c (cris_gdbarch_init): Ditto.
14608 2002-01-20 Jiri Smid <smid@suse.cz>
14610 * configure.host, configure.tgt: Support x86-64.
14611 * NEWS: Note new target x86-64.
14613 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14614 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14615 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14616 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14617 x86-64-linux-nat.o): Fix dependencies.
14619 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14621 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14622 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14623 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14624 * config/sparc/xm-sun4os4.h: Delete file.
14625 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14627 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14629 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14630 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14631 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14632 * config/i386/i386lynx.mh (XM_FILE): Delete.
14633 * config/rs6000/xm-rs6000ly.h: Delete file.
14634 * config/sparc/xm-sparclynx.h: Delete file.
14635 * config/m68k/xm-m68klynx.h: Delete file.
14636 * config/i386/xm-i386lynx.h: Delete file.
14637 * config/xm-lynx.h: Delete file.
14638 * config/djgpp/fnchange.lst: Update.
14640 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14642 * alpha-tdep.c (alpha_register_byte): New function.
14643 (alpha_register_raw_size): Ditto.
14644 (alpha_register_virtual_size): Ditto.
14645 (alpha_skip_prologue_internal): Renamed from
14646 alpha_skip_prologue.
14647 (alpha_skip_prologue): New version that calls
14648 alpha_skip_prologue_internal.
14649 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14650 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14651 second argument from alpha_skip_prologue.
14652 (REGISTER_BYTE): Use alpha_register_byte.
14653 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14654 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14655 (FRAMELESS_FUNCTION_INVOCATION): Use
14656 generic_frameless_function_invocation_not.
14657 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14658 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14660 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14662 * config/mips/xm-news-mips.h: Delete file.
14663 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14665 * config/m88k/xm-m88k.h: Delete file.
14666 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14667 * config/m88k/xm-delta88v4.h: Ditto.
14668 * config/m88k/xm-delta88.h: Ditto.
14670 * config/alpha/xm-fbsd.h: Delete file.
14671 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14673 * config/sparc/xm-sparc.h: Delete file.
14674 * Makefile.in (xm-sun4os4.h): Delete dependency.
14675 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14676 * config/sparc/xm-sun4os4.h: Ditto.
14677 * config/sparc/xm-linux.h: Ditto.
14679 * config/i386/xm-windows.h: Delete file.
14681 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14683 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14684 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14686 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14688 * alpha-tdep.c (alpha_call_dummy_words): New.
14689 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14690 (CALL_DUMMY_P): Define.
14691 (CALL_DUMMY_WORDS): Define.
14692 (SIZEOF_CALL_DUMMY_WORDS): Define.
14694 2002-01-19 Per Bothner <per@bothner.com>
14696 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14697 isn't NULL, which can happen with some gcj-3.x-produced code.
14699 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14701 * alpha-tdep.c (alpha_register_virtual_type): New function.
14702 (alpha_init_frame_pc_first): Ditto.
14703 (alpha_fix_call_dummy): Ditto.
14704 (alpha_store_struct_return): Ditto.
14705 (alpha_extract_struct_value_address): Ditto.
14706 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14707 alpha_register_virtual_type.
14708 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14709 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14710 alpha_extract_struct_value_address.
14711 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14712 (INIT_FRAME_PC): Use init_frame_pc_noop.
14713 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14715 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14717 * i386gnu-nat.c: Include "i386-tdep.h".
14718 (fetch_fpregs): Simplify code dealing with uninitialized floating
14719 point states such that it doesn't require FP7_REGNUM.
14721 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14723 * alpha-tdep.c (frame_extra_info): New.
14724 (alpha_find_saved_regs): Make static. Use
14726 (alpha_frame_init_saved_regs): New function.
14727 (alpha_frame_saved_pc): Use frame->extra_info.
14728 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14729 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14730 (init_extra_frame_info): Rename to...
14731 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14732 (alpha_print_extra_frame_info): New function.
14733 (alpha_frame_locals_address): Ditto.
14734 (alpha_frame_args_address): Ditto.
14735 (alpha_pop_frame): Use frame->extra_info.
14736 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14737 alpha_frame_args_address.
14738 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14739 (alpha_find_saved_regs): Remove prototype.
14740 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14741 (EXTRA_FRAME_INFO): Remove.
14742 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14743 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14745 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14747 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14748 (alpha_cannot_fetch_register): Ditto.
14749 (alpha_cannot_store_register): Ditto.
14750 (alpha_register_convertible): Ditto.
14751 (alpha_use_struct_convention): Ditto.
14752 * config/alpha/tm-alpha.h: Update copyright years.
14753 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14754 (INNER_THAN): Use core_addr_lessthan.
14755 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14756 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14757 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14758 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14759 (FRAME_CHAIN): Remove unnecessary cast.
14761 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14763 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14766 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14768 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14769 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14770 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14771 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14772 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14773 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14774 * x86-64-linux-nat.c: Ditto.
14776 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14778 * alpha-tdep.c (alpha_register_name): New function.
14779 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14780 (REGISTER_NAME): Define.
14782 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14784 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14786 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14788 * alpha-tdep.c: Update copyright years.
14789 (alpha_next_pc): New function.
14790 (alpha_software_single_step): Ditto.
14791 * config/alpha/tm-alpha.h: Add prototype for
14792 alpha_software_single_step.
14794 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14796 * alphabsd-nat.c: Update copyright years.
14797 (fill_gregset): Use regcache_collect.
14798 (fill_fpregset): Likewise.
14799 (fetch_inferior_registers): Only fetch integer registers
14800 if requested to do so.
14801 (store_inferior_registers): Only store integer registers
14802 if requested to do so.
14804 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14806 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14807 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14808 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14809 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14810 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14811 * config/arm/linux.mh (XDEPFILES): Delete.
14812 * config/arm/nbsd.mh (XDEPFILES): Delete.
14813 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14814 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14815 * config/i386/i386m3.mh (XDEPFILES): Delete.
14816 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14817 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14818 * config/i386/fbsd.mh (XDEPFILES): Delete.
14819 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14820 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14821 * config/i386/i386v4.mh (XDEPFILES): Delete.
14822 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14823 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14824 * config/i386/i386aix.mh (XDEPFILES): Delete.
14825 * config/i386/go32.mh (XDEPFILES): Delete.
14826 * config/i386/cygwin.mh (XDEPFILES): Delete.
14827 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14828 * config/i386/i386mach.mh (XDEPFILES): Delete.
14829 * config/i386/i386v32.mh (XDEPFILES): Delete.
14830 * config/i386/linux.mh (XDEPFILES): Delete.
14831 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14832 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14833 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14834 * config/i386/i386sco.mh (XDEPFILES): Delete.
14835 * config/i386/i386v.mh (XDEPFILES): Delete.
14836 * config/i386/nbsd.mh (XDEPFILES): Delete.
14837 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14838 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14839 * config/i386/symmetry.mh (XDEPFILES): Delete.
14840 * config/i386/obsd.mh (XDEPFILES): Delete.
14841 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14842 * config/ia64/linux.mh (XDEPFILES): Delete.
14843 * config/ia64/aix.mh (XDEPFILES): Delete.
14844 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14845 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14846 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14847 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14848 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14849 * config/m68k/linux.mh (XDEPFILES): Delete.
14850 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14851 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14852 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14853 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14854 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14855 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14856 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14857 * config/m88k/delta88.mh (XDEPFILES): Delete.
14858 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14859 * config/m88k/m88k.mh (XDEPFILES): Delete.
14860 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14861 * config/mips/linux.mh (XDEPFILES): Delete.
14862 * config/mips/irix6.mh (XDEPFILES): Delete.
14863 * config/mips/irix5.mh (XDEPFILES): Delete.
14864 * config/mips/irix4.mh (XDEPFILES): Delete.
14865 * config/mips/irix3.mh (XDEPFILES): Delete.
14866 * config/mips/decstation.mh (XDEPFILES): Delete.
14867 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14868 (NATDEPFILES): Move core-aout.o to here.
14869 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14870 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14871 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14872 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14873 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14874 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14875 * config/pa/hpux11.mh (XDEPFILES): Delete.
14876 * config/powerpc/aix.mh (XDEPFILES): Delete.
14877 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14878 * config/powerpc/linux.mh (XDEPFILES): Delete.
14879 * config/romp/rtbsd.mh: Rename XDEPFILES.
14880 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14881 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14882 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14883 * config/s390/s390.mh (XDEPFILES): Delete.
14884 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14885 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14886 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14887 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14888 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14889 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14890 * config/sparc/linux.mh (XDEPFILES): Delete.
14891 * config/vax/vaxult.mh (XDEPFILES): Delete.
14892 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14893 * Makefile.in (DEPFILES): Remove XDEPFILES.
14895 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14897 * utils.c (internal_verror): Fix comments, default is yes not no.
14898 Update queries to match. Default to quit and dump core.
14900 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14902 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14904 * defs.h, event-top.c, gdbcmd.h: Ditto.
14905 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14906 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14907 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14908 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14909 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14910 * mi/mi-main.c:Ditto.
14912 * stack.c, symfile.c: Update copyright.
14914 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14916 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14917 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14918 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14919 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14921 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14923 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14924 * gdbserver/low-lynx.c (myattach): Likewise.
14925 * gdbserver/low-nbsd.c (myattach): Likewise.
14926 * gdbserver/low-sim.c (myattach): Likewise.
14927 * gdbserver/low-sparc.c (myattach): Likewise.
14928 * gdbserver/low-sun3.c (myattach): Likewise.
14930 * gdbserver/low-linux.c (myattach): New function.
14932 * gdbserver/server.c (attach_inferior): New function.
14933 (main): Handle "--attach".
14935 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14937 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14940 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14942 * c-typeprint.c (is_type_conversion_operator): Add additional
14943 check for non-conversion operators.
14945 2002-01-15 Michael Snyder <msnyder@redhat.com>
14947 * linux-proc.c: Add "info proc" command, a la procfs.c.
14948 (read_mapping): New function, abstract and re-use code.
14949 (linux_find_memory_regions): Use new func read_mapping.
14950 (linux_info_proc_cmd): New function, implement "info proc".
14951 (_initialize_linux_proc): Add new command "info proc".
14953 2002-01-15 Michael Snyder <msnyder@redhat.com>
14955 * symfile.c (generic_load): Use bfd_map_over_sections method
14956 instead of manipulating bfd structure members directly.
14957 (add_section_size_callback): New function, bfd sections callback
14958 used by generic_load.
14959 (load_sections_callback): New function, bfd sections callback
14960 used by generic_load.
14962 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14964 [Based on work by Jim Blandy]
14965 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14966 (builtin_type_vec128): Export.
14967 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14969 (builtin_type_vec128): New builtin type for 128 bit vector
14971 (build_gdbtypes): Initialize builtin_type_v16qi and
14972 builtin_type_v8hi. Create the vec128 register builtin type
14974 (build_builtin_type_vec128): New function.
14975 (_initialize_gdbtypes): Register builtin_type_v16qi and
14976 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14977 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14978 AltiVec register to new builtin type.
14980 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14982 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14985 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14987 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14988 CLEAN_UP_REGISTER_VALUE.
14989 * regcache.c (supply_register): Update only call.
14991 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14993 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14994 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14995 a29k-*-vxworks* targets as obsolete.
14997 2002-01-14 Michael Snyder <msnyder@redhat.com>
14999 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15000 until we can resolve portability issues.
15001 * gregset.h: Remove references to fpxregs.
15002 * gcore.c (gcore_command): Initialize note_sec to NULL.
15004 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15006 * signals.c (target_signal_to_name): Rewrite. Only use
15007 signals[].name when in bounds and non-NULL.
15009 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15011 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15012 * signals.c (target_signal_to_name): Verify that SIG is within the
15013 bounds of the signals array.
15015 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15017 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15019 2002-01-13 Keith Seitz <keiths@redhat.com>
15021 * stack.c (print_frame_info_base): Print the frame's pc
15022 only if when print_frame_info_listing_hook is not defined.
15024 2002-01-13 Keith Seitz <keiths@redhat.com>
15026 * varobj.c (varobj_set_value): Make sure that there were no
15027 errors evaluating the object before attempting to set its
15029 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15030 so this offset adjustment is no longer necessary.
15031 (create_child): Don't set the error flag if the child is
15032 a CPLUS_FAKE_CHILD.
15033 (value_of_child): If value_fetch_lazy fails, return NULL
15034 so that callers will be notified that an error occurred.
15035 (c_value_of_variable): Delay check of variable's validity
15036 until later. We actually want all structs and unions to have
15038 Do not return "???" for variables which could not be evaluated.
15039 This error condition must be returned to the caller so that it
15040 can get the error condition from gdb.
15041 (cplus_name_of_child): Adjust index for vptr before figuring
15042 out the name of the child.
15043 (cplus_value_of_child): If a child's (real) parent is not valid,
15044 don't even bother trying to give a value for it. Just return
15045 an error. Change all instances in this function.
15046 (cplus_type_of_child): If our parent is one of the "fake"
15047 parents, we need to get at the type of the real parent, and
15048 derive the child's true type using this information.
15050 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15052 From 2002-01-09 John Marshall <johnm@falch.net>:
15053 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15054 sources.redhat.com, and tweak some related URLs which had
15055 suffered from linkrot.
15057 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15060 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15061 structures passed in registers.
15063 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15065 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15066 white space which prevented compilation. Reported by DSK
15067 <dsk@student.unsw.edu.au>.
15069 2002-01-11 Michael Snyder <msnyder@redhat.com>
15071 * symfile.c (build_section_addr_info_from_section_tab):
15072 Use bfd access method instead of manipulating bfd directly.
15073 (syms_from_objfile): Ditto.
15074 (simple_overlay_update_1): Ditto.
15075 (simple_overlay_update): Ditto.
15076 (generic_load): Ditto.
15077 (overlay_unmapped_address): FIXME comment, bfd access methods.
15078 (sections_overlap): FIXME comment, bfd access methods.
15079 (pc_in_mapped_range): FIXME comment, bfd access methods.
15080 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15081 (section_is_mapped): FIXME comment, bfd access methods.
15082 (section_is_overlay): FIXME comment, bfd access methods.
15084 * symfile.c (generic_load): Whitespace and long line cleanups.
15085 Remove duplicate variable, change several local variables to
15086 more appropriate data types.
15087 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15089 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15091 From Peter Schauer:
15092 * language.c (longest_local_hex_string_custom): Use phex_nz to
15093 convert NUM to a hex string.
15095 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15097 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15099 Update Copyright year.
15101 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15103 * language.c (longest_raw_hex_string): Delete unused function.
15105 2002-01-11 Petr Sorfa <petrs@caldera.com>
15107 * MAINTAINERS (write-after-approval): Add myself.
15108 * dwarf2read.c (read_tag_string_type): Handling of
15110 (read_tag_string_type): FORTRAN fix to prevent propagation of
15112 (set_cu_language): Handling of DW_LANG_Fortran95
15114 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15116 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15117 GETPID(inferior_ptid).
15118 (store_inferior_registers): Likewise.
15120 2002-01-10 Jason Merrill <jason@redhat.com>
15122 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15125 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15127 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15128 and bfd/elf32-sh-nbsd.c.
15130 2002-01-10 Michael Snyder <msnyder@redhat.com>
15132 * NEWS: Mention --pid and corefile/proc-id behavior change.
15134 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15135 * gcore.c: Include cli/cli-decode.h instead of command.h.
15137 * main.c (captured_main): Add new command line option "--pid".
15138 If the second command line argument (following the symbol-file)
15139 begins with a digit, try to attach to it before trying to open
15141 (print_gdb_help): Document the "--pid" argument.
15143 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15145 * completer.c (command_completer): New function.
15147 * completer.h <command_completer>: Add prototype.
15149 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15150 completer for the "help" command.
15152 2002-01-09 Jason Merrill <jason@redhat.com>
15154 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15156 2002-01-09 Michael Snyder <msnyder@redhat.com>
15158 * i386-linux-nat.c (fill_fpxregset): Make global.
15159 (store_fpxregset): Ditto.
15161 * gregset.h (gdb_fpxregset_t): Define.
15162 (supply_fpxregset): Prototype.
15163 (fill_fpxregset): Prototype.
15165 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15167 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15169 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15170 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15171 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15173 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15175 * MAINTAINERS: Update target maintainer rules so that any
15176 Maintainer can approve a tested patch for a maintenance-only
15179 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15181 * MAINTAINERS (write-after-approval): Add myself.
15183 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15186 2002-01-08 Michael Snyder <msnyder@redhat.com>
15188 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15189 real name of the executable, rather than the /proc name.
15191 2002-01-03 Michael Snyder <msnyder@redhat.com>
15193 Implement a "generate-core-file" command in gdb, save target state.
15194 * gcore.c: New file. Implement new command 'generate-core-file'.
15195 Save a corefile image of the current state of the inferior.
15196 * linux-proc.c: Add linux-specific code for saving corefiles.
15197 * target.h (struct target_ops): Add new target vectors for saving
15198 corefiles; to_find_memory_regions and to_make_corefile_notes.
15199 (target_find_memory_regions): New macro.
15200 (target_make_corefile_notes): New macro.
15201 * target.c (update_current_target): Inherit new target methods.
15202 (dummy_find_memory_regions): New place-holder method.
15203 (dummy_make_corefile_notes): New place-holder method.
15204 (init_dummy_target): Initialize new dummy target vectors.
15205 * exec.c (exec_set_find_memory_regions): New function.
15206 Allow the exec_ops vector for memory regions to be taken over.
15207 (exec_make_note_section): New function, target vector method.
15208 * defs.h (exec_set_find_memory_regions): Export prototype.
15209 * procfs.c (proc_find_memory_regions): New function, corefile method.
15210 (procfs_make_note_section): New function, corefile method.
15211 (init_procfs_ops): Set new target vector pointers.
15212 (find_memory_regions_callback): New function.
15213 (procfs_do_thread_registers): New function.
15214 (procfs_corefile_thread_callback): New function.
15215 * sol-thread.c (sol_find_memory_regions): New function.
15216 (sol_make_note_section): New function.
15217 (init_sol_thread_ops): Initialize new target vectors.
15218 * inftarg.c (inftarg_set_find_memory_regions): New function.
15219 Allow to_find_memory_regions vector to be taken over.
15220 (inftarg_set_make_corefile_notes): New function.
15221 Allow to_make_corefile_notes vector to be taken over.
15222 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15223 interface layer if not target_has_execution (may be a corefile).
15224 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15225 * config/sparc/sun4sol2.mh: Ditto.
15226 * config/alpha/alpha-linux.mh: Ditto.
15227 * config/arm/linux.mh: Ditto.
15228 * config/i386/x86-64linux.mh: Ditto.
15229 * config/ia64/linux.mh: Ditto.
15230 * config/m68k/linux.mh: Ditto.
15231 * config/mips/linux.mh: Ditto.
15232 * config/powerpc/linux.mh: Ditto.
15233 * config/sparc/linux.mh: Ditto.
15235 2002-01-07 Michael Snyder <msnyder@redhat.com>
15237 * arm-linux-nat.c: Remove references to regcache.c internal data
15238 (registers[] and register_valid[]).
15240 2002-01-07 Michael Snyder <msnyder@redhat.com>
15242 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15243 so that attaching to a pid will automatically read the process's
15244 symbol file and shlibs.
15245 * Makefile.in: Add rule for linux-proc.o.
15246 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15247 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15248 * config/arm/linux.mh: Ditto.
15249 * config/i386/linux.mh: Ditto.
15250 * config/i386/x86-64linux.mh: Ditto.
15251 * config/ia64/linux.mh: Ditto.
15252 * config/m68k/linux.mh: Ditto.
15253 * config/mips/linux.mh: Ditto.
15254 * config/powerpc/linux.mh: Ditto.
15255 * config/sparc/linux.mh: Ditto.
15257 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15259 * win32-nat.c: Add i386-tdep.h dependency.
15261 2002-01-07 Michael Snyder <msnyder@redhat.com>
15263 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15264 instead of bfd_get_arch_size. Don't bail out just because
15265 there's no exec_bfd.
15267 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15268 * p-valprint.c (pascal_object_print_value): Ditto.
15269 * somread.c (som_symtab_read): Ditto.
15270 * symfile.c (simple_free_overlay_region_table): Ditto.
15271 * valops.c (value_assign): Ditto.
15273 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15274 use tilde_expand and strerror for opening save-tracepoints file.
15276 * thread-db.c (thread_db_new_objfile): Indendation fix.
15278 * infptrace.c (GDB_MAX_ALLOCA): New define.
15279 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15280 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15281 can be overridden with whatever value is appropriate to the host).
15282 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15283 alloca to allocate potentially large buffer.
15284 * rs6000-nat.c (child_xfer_memory): Ditto.
15285 * symm-nat.c (child_xfer_memory): Ditto.
15286 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15288 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15290 From Nick Clifton <nickc@redhat.com>
15291 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15293 2002-01-07 Michael Snyder <msnyder@redhat.com>
15295 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15296 Don't use exec_bfd if it's NULL.
15298 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15300 * valops.c (value_arg_coerce): Fix formatting.
15302 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15304 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15305 * gnu-nat.c: Ditto.
15307 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15309 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15310 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15311 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15312 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15313 z8k-coff have not been multi-arched. Update z8k-coff build
15316 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15318 * MAINTAINERS: Mark a29k target as obsolete.
15319 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15320 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15322 * NEWS: Note that a29k targets are obsolete.
15323 * a29k-tdep.c: Mark as obsolete.
15324 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15325 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15326 a29k-*-vxworks* targets as obsolete.
15327 * remote-adapt.c: Obsolete.
15328 * remote-eb.c: Obsolete.
15329 * remote-mm.c: Obsolete.
15330 * remote-udi.c: Obsolete.
15331 * config/a29k/a29k-udi.mt: Obsolete.
15332 * config/a29k/a29k.mt: Obsolete.
15333 * config/a29k/tm-a29k.h: Obsolete.
15334 * config/a29k/tm-vx29k.h: Obsolete.
15335 * config/a29k/vx29k.mt: Obsolete.
15337 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15339 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15340 with BFD_ENDIAN_BIG.
15342 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15344 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15345 * configure, config.in: Re-generate.
15346 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15347 * defs.h: Do not include <endian.h>.
15349 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15351 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15352 * config.in: Regenerate.
15353 * configure.in: Update copyright years.
15354 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15355 * configure: Regenerate.
15356 * i386bsd-nat.c: Update copyright years.
15357 (fill_gregset): Use regcache_collect.
15358 (fetch_inferior_registers): Only fetch integer registers
15359 if requested to do so. Add support for XMM registers
15360 using PT_GETXMMREGS.
15361 (store_inferior_registers): Only store integer registers
15362 if requested to do so. Add support for XMM registers
15363 using PT_SETXMMREGS.
15364 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15365 (store_inferior_registers): Remove.
15366 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15367 (fetch_elfcore_registers): New function.
15368 (i386nbsd_elfcore_fns): New.
15369 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15370 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15372 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15373 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15374 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15375 * config/i386/tm-nbsd.h: Update copyright years.
15376 (HAVE_SSE_REGS): Define.
15377 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15378 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15379 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15380 (SIGCONTEXT_PC_OFFSET): Remove.
15381 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15383 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15385 * configure.tgt: Remove powerpc-*-macos* target.
15386 * config/m68k/xm-mpw.h: Delete file.
15387 * config/xm-mpw.h: Delete file.
15388 * ser-mac.c: Delete file.
15389 * mpw-make.sed: Delete file.
15390 * mpw-config.in: Delete file.
15391 * mac-xdep.c: Delete file.
15392 * mac-gdb.r: Delete file.
15393 * mac-defs.h: Delete file.
15394 * mac-nat.c: Delete file.
15395 * config/powerpc/macos.mh: Delete file.
15396 * config/powerpc/macos.mt: Delete file.
15397 * config/powerpc/nm-macos.h: Delete file.
15398 * config/powerpc/tm-macos.h: Delete file.
15399 * source.c (openp, open_source_file): Remove obsolete code.
15400 * top.c (gdb_readline): Ditto.
15401 * utils.c (query): Ditto.
15402 * event-top.c (display_gdb_prompt): Ditto.
15403 * Makefile.in (ser-mac.o): Delete obsolete target.
15406 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15408 * defs.h (BIG_ENDIAN): Delete macro definition.
15409 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15410 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15411 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15412 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15413 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15414 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15415 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15416 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15417 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15418 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15419 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15420 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15421 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15422 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15423 * gdbarch.c: Re-generate.
15425 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15427 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15430 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15432 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15434 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15436 * value.h (value_ptr): Delete typedef.
15438 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15440 * i386nbsd-nat.c: Update copyright years.
15441 Include i386-tdep.h.
15443 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15445 * stabsread.c: Update copyright years.
15447 From Debashis Mahata <debashis.mahata@wipro.com>:
15448 (read_struct_fields): Deal with Sun C compiler erroneous stab
15449 output for structs and unions.
15452 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15454 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15457 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15459 * cp-abi.c: Fix whitespace.
15460 (baseclass_offset): New wrapper function.
15461 * cp-abi.h (baseclass_offset): Add prototype.
15462 (struct cp_abi_ops): Add baseclass_offset pointer.
15464 * valops.c (vb_match): Move to...
15465 * gnu-v2-abi.c (vb_match): here.
15466 * valops.c (baseclass_offset): Move to...
15467 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15469 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15471 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15472 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15473 * hpacc-abi.c (init_hpacc_ops): Likewise.
15475 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15477 * valops.c (find_overload_match): Accept obj as a
15478 reference parameter. Update it before returning.
15479 * value.h (find_overload_match): Update prototype.
15480 * eval.c (evaluate_subexp_standard): Pass object to
15481 find_overload_match by reference.
15483 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15485 * valarith.c: Replace value_ptr with struct value pointer. Remove
15486 register attribute from value declarations.
15489 * scm-lang.c (scm_lookup_name): Ditto.
15491 2002-01-03 Michael Snyder <msnyder@redhat.com>
15493 Abstract the functionality of iterating over mapped memory
15494 regions into a general purpose iterator function.
15495 * procfs.c (iterate_over_mappings): New function, general purpose
15496 iterator for memory sections.
15497 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15498 (solib_mappings_callback): New function, callback for above.
15499 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15500 (info_mappings_callback): New function, callback for above.
15502 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15504 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15506 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15507 * i386-tdep.c: Include "elf-bfd.h".
15508 (process_note_abi_tag_sections): New function.
15509 (i386_gdbarch_init): Add code to recognize various OS/ABI
15512 * maint.c (_initialize_maint_cmds): Add missing \ in
15515 For older changes see ChangeLog-2001
15521 version-control: never