1 2003-01-07 Andrew Cagney <cagney@redhat.com>
3 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
4 extra_info using frame_extra_info_zalloc.
5 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
7 (sh64_init_extra_frame_info): Ditto.
8 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
15 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
16 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
17 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
18 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
19 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
21 * mn10300-tdep.c (analyze_dummy_frame): Use
22 deprecated_set_frame_extra_info_hack.
23 * mcore-tdep.c (analyze_dummy_frame): Ditto.
25 2003-01-07 J. Brobecker <brobecker@gnat.com>
27 * mdebugread.c (parse_symbol): Skip stProc entries which storage
28 class is not scText. These do not define "real" procedures.
29 (parse_partial_symbols): Likewise.
31 2003-01-06 Michael Snyder <msnyder@redhat.com>
33 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
35 2003-01-06 Andrew Cagney <ac131313@redhat.com>
37 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
38 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
39 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
40 deprecated_frame_xmalloc_with_cleanup.
41 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
42 deprecated_frame_xmalloc.
43 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
44 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
46 2003-01-06 Andrew Cagney <cagney@redhat.com>
48 * x86-64-linux-tdep.c: Include "osabi.h".
49 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
51 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
53 2003-01-06 Andrew Cagney <cagney@redhat.com>
55 * MAINTAINERS (Target Instruction Set Architectures): Update
56 arm-elf. Can be built with -Werror, has been multiarched.
58 * value.h (unpack_long): Make buffer parameter constant.
59 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
60 * scm-lang.h (scm_parse): Ditto.
61 * defs.h (extract_typed_address, extract_address): Ditto.
62 (extract_long_unsigned_integer): Ditto.
63 * inferior.h (unsigned_pointer_to_address): Ditto.
64 (signed_pointer_to_address): Ditto.
65 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
66 * gdbarch.h, gdbarch.c: Regenerate.
67 * findvar.c (extract_long_unsigned_integer): Update.
68 (extract_address): Update.
69 (extract_typed_address): Update.
70 (unsigned_pointer_to_address): Update.
71 * values.c (unpack_long): Update.
72 (unpack_double): Update.
73 (unpack_pointer): Update.
74 (unpack_field_as_long): Update.
75 * d10v-tdep.c (d10v_pointer_to_address): Update.
76 * avr-tdep.c (avr_pointer_to_address): Update.
77 * scm-lang.c (scm_unpack): Update.
78 * findvar.c (signed_pointer_to_address): Update.
80 2003-01-06 Michal Ludvig <mludvig@suse.cz>
82 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
83 since it is in i386-tdep.c.
85 2003-01-06 J. Brobecker <brobecker@gnat.com>
87 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
88 failure introduced in the previous change.
90 2003-01-05 Michael Chastain <mec@shout.net>
92 * README: Remove references to deleted remote-*.c files:
93 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
94 remote-nrom.c, remote-os9k.c, remote-udi.c.
96 2003-01-05 Mark Kettenis <kettenis@gnu.org>
98 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
99 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
100 i386_get_longjmp_target.
102 2003-01-05 Andrew Cagney <ac131313@redhat.com>
104 * arm-tdep.c (prologue_cache): Change to a pointer.
105 (_initialize_arm_tdep): Allocate prologue_cache.
106 (check_prologue_cache): Update.
107 (save_prologue_cache): Update.
108 (arm_gdbarch_init): Update.
110 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
112 * stabsread.c (update_method_name_from_physname): Call complaint()
115 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
117 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
118 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
119 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
121 * blockframe.c: Include "gdbcmd.h" and "command.h".
122 (backtrace_below_main): New variable.
123 (file_frame_chain_valid, func_frame_chain_valid)
124 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
125 (generic_func_frame_chain_valid): Remove functions.
126 (frame_chain_valid, do_flush_frames_sfunc): New functions.
127 (_initialize_blockframe): New function.
128 * Makefile.in (blockframe.o): Update dependencies.
129 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
130 comment. Call frame_chain_valid ().
131 * frame.h: Remove old prototypes. Add prototype for
132 frame_chain_valid and update comments to match.
133 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
135 * gdbarch.h: Regenerated.
136 * gdbarch.c: Regenerated.
138 * alpha-tdep.c (alpha_gdbarch_init): Don't call
139 set_gdbarch_frame_chain_valid.
140 * avr-tdep.c (avr_gdbarch_init): Likewise.
141 * cris-tdep.c (cris_gdbarch_init): Likewise.
142 * frv-tdep.c (frv_gdbarch_init): Likewise.
143 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
144 * i386-tdep.c (i386_svr4_init_abi): Likewise.
145 (i386_nw_init_abi): Likewise.
146 (i386_gdbarch_init): Likewise.
147 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
148 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
149 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
150 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
151 * mips-tdep.c (mips_gdbarch_init): Likewise.
152 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
153 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
154 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
155 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
156 * s390-tdep.c (s390_gdbarch_init): Likewise.
157 * sh-tdep.c (sh_gdbarch_init): Likewise.
158 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
159 * v850-tdep.c (v850_gdbarch_init): Likewise.
160 * vax-tdep.c (vax_gdbarch_init): Likewise.
161 * x86-64-tdep.c (x86_64_init_abi): Likewise.
163 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
164 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
165 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
166 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
167 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
168 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
169 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
170 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
172 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
174 * Makefile.in (acconfig_h): Remove incorrect macro.
176 (osabi.o): Update dependencies.
177 * configure.tgt: Set gdb_osabi based on target triplet.
178 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
179 * configure: Regenerated.
180 * config.in: Regenerated.
181 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
182 (GDB_OSABI_DEFAULT): Define if not already defined.
183 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
184 (set_osabi_string): New variables.
185 (gdbarch_register_osabi): Add new OS ABI to
186 gdb_osabi_available_names.
187 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
188 (set_osabi, show_osabi): New functions.
189 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
191 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
193 * arch-utils.c (gdbarch_info_init): Set osabi to
194 GDB_OSABI_UNINITIALIZED.
195 * gdbarch.sh: Add osabi to struct gdbarch and to struct
196 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
197 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
198 * gdbarch.c: Regenerated.
199 * gdbarch.h: Regenerated.
200 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
202 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
203 * osabi.h (enum gdb_osabi): Move to defs.h.
204 (gdbarch_init_osabi): Update prototype.
205 * defs.h (enum gdb_osabi): Moved here.
206 * Makefile.in: Update dependencies.
208 * alpha-tdep.h: Don't include "osabi.h".
209 (struct gdbarch_tdep): Remove osabi member.
210 * alpha-tdep.c: Include "osabi.h".
211 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
212 iterate over arches. Update call to gdbarch_init_osabi.
213 (alpha_dump_tdep): Don't dump osabi.
214 * alpha-linux-tdep.c: Include "osabi.h".
215 * alpha-osf1-tdep.c: Include "osabi.h".
216 * alphafbsd-tdep.c: Include "osabi.h".
217 * alphanbsd-tdep.c: Include "osabi.h".
219 * arm-tdep.h: Don't include "osabi.h".
220 (struct gdbarch_tdep): Remove osabi member.
221 * arm-tdep.c: Include "osabi.h".
222 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
223 iterate over arches. Update call to gdbarch_init_osabi.
224 (arm_dump_tdep): Don't dump osabi.
225 * arm-linux-tdep.c: Include "osabi.h".
226 * armnbsd-tdep.c: Include "osabi.h".
228 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
229 Update call to gdbarch_init_osabi.
231 * i386-tdep.h: Don't include "osabi.h".
232 (struct gdbarch_tdep): Remove osabi member.
233 * i386-tdep.c: Include "osabi.h".
234 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
235 iterate over arches. Update call to gdbarch_init_osabi.
236 (i386_dump_tdep): Don't dump osabi.
237 * i386-linux-tdep.c: Include "osabi.h".
238 * i386-sol2-tdep.c: Include "osabi.h".
239 * i386bsd-tdep.c: Include "osabi.h".
240 * i386gnu-tdep.c: Include "osabi.h".
241 * i386ly-tdep.c: Include "osabi.h".
242 * i386nbsd-tdep.c: Include "osabi.h".
243 * i386obsd-tdep.c: Include "osabi.h".
245 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
246 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
247 check osabi when iterating over arches. Update call to
249 (mips_dump_tdep): Don't dump osabi.
251 * ns32k-tdep.h: Don't include "osabi.h".
252 (struct gdbarch_tdep): Remove.
253 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
254 gdbarch_lookup_osabi. Don't iterate over arches. Don't
255 allocate tdep. Update call to gdbarch_init_osabi.
256 (ns32k_dump_tdep): Remove.
257 (_initialize_ns32k_tdep): Update call to gdbarch_register.
258 * ns32knbsd-tdep.c: Include "osabi.h".
260 * ppc-tdep.h: Don't include "osabi.h".
261 (struct gdbarch_tdep): Remove osabi member.
262 * rs6000-tdep.c: Include "osabi.h".
263 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
264 osabi when iterating over arches. Update call to
266 (rs6000_dump_tdep): Don't dump osabi.
267 * ppc-linux-tdep.c: Include "osabi.h".
268 * ppcnbsd-tdep.c: Include "osabi.h".
270 * sh-tdep.h: Don't include "osabi.h".
271 (struct gdbarch_tdep): Remove osabi member.
272 * sh-tdep.c: Include "osabi.h".
273 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
274 iterate over arches. Update call to gdbarch_init_osabi.
275 (sh_dump_tdep): Don't dump osabi.
276 * shnbsd-tdep.c: Include "osabi.h".
278 * sparc-tdep.c: Include "osabi.h".
279 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
280 iterate over arches. Update call to gdbarch_init_osabi.
281 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
284 * vax-tdep.h: Don't include "osabi.h".
285 (struct gdbarch_tdep): Remove.
286 * vax-tdep.c: Include "osabi.h".
287 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
288 iterate over arches. Don't allocate tdep. Update call
289 to gdbarch_init_osabi.
290 (vax_dump_tdep): Remove.
291 (_initialize_vax_tdep): Update call to gdbarch_register.
293 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
295 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
297 (breakpoint_re_set_one): Don't fetch the value for a disabled
300 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
302 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
303 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
304 (COERCE_FLOAT_TO_DOUBLE): Remove.
305 * gdbarch.c: Regenerate.
306 * gdbarch.h: Regenerate.
307 * Makefile.in: Remove value_h from gdbarch_h.
308 * valops.c (coerce_float_to_double): New variable.
309 (default_coerce_float_to_double): Remove.
310 (standard_coerce_float_to_double): Remove.
311 (value_arg_coerce): Use coerce_float_to_double.
312 (_initialize_valops): Add "set coerce-float-to-double".
313 * value.h (default_coerce_float_to_double): Remove prototype.
314 (standard_coerce_float_to_double): Remove prototype.
316 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
318 * mdebugread.c (parse_symbol): Likewise.
319 * stabsread.c (define_symbol): Mark all functions as prototyped.
321 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
322 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
323 set_gdbarch_coerce_float_to_double.
324 * arm-tdep.c (arm_gdbarch_init): Likewise.
325 * frv-tdep.c (frv_gdbarch_init): Likewise.
326 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
327 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
328 * mips-tdep.c (mips_gdbarch_init): Likewise.
329 (mips_coerce_float_to_double): Remove.
330 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
331 (rs6000_coerce_float_to_double): Remove.
332 * s390-tdep.c (s390_gdbarch_init): Likewise.
333 * sh-tdep.c (sh_gdbarch_init): Likewise.
334 (sh_coerce_float_to_double): Remove.
335 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
336 (sparc_coerce_float_to_double): Remove.
337 * v850-tdep.c (v850_gdbarch_init): Likewise.
338 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
339 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
340 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
341 (hppa_coerce_float_to_double): Remove prototype.
342 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
344 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
346 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
348 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
350 Suggested by Stewart Brown <sb24@avaya.com>:
351 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
352 in recursive calls. Handle TYPE_CODE_TYPEDEF.
353 (c_type_print_varspec_suffix): Likewise.
355 2003-01-04 Mark Kettenis <kettenis@gnu.org>
357 * configure.in: Don't set and AC_SUBST SUBDIRS.
358 * configure: Regenerated.
360 * configure.in: Remove code dealing with shared libraries.
361 * Makefile.in: Remove HLDFLAGS and HLDENV.
362 * configure: Regenerated.
364 2003-01-04 Andrew Cagney <ac131313@redhat.com>
366 * frame.c (deprecated_frame_xmalloc): New function.
367 (deprecated_set_frame_saved_regs_hack): New function.
368 (deprecated_set_frame_extra_info_hack): New function.
369 * frame.h (deprecated_frame_xmalloc): Declare.
370 (deprecated_set_frame_saved_regs_hack): Declare.
371 (deprecated_set_frame_extra_info_hack): Declare.
373 2003-01-04 Mark Kettenis <kettenis@gnu.org>
375 * configure.in: Move code that provides the --enable-gdbtk option
376 right after the code that handles the --enable-tui option, and
378 * configure: Regenerated.
380 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
381 AC_CHECK_FUNCS and remove the old check for pread64.
382 * acinclude.m4 (AC_GNU_SOURCE): New macro.
383 * acconfig.h (_GNU_SOURCE): Add.
384 (HAVE_PREAD64): Remove.
385 * configure, aclocal.m4, config.in: Regenerated.
387 2003-01-03 Andrew Cagney <ac131313@redhat.com>
389 * alpha-tdep.c: Use get_frame_saved_regs.
390 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
391 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
392 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
393 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
394 * vax-tdep.c, xstormy16-tdep.c: Ditto.
396 2003-01-03 Mark Kettenis <kettenis@gnu.org>
398 * configure.in: Remove all use of the SUBDIRS variable; add
399 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
400 code providing the --enable-multi-ice option, and move it right in
401 front of the code that checks whether gdbserver is supported.
403 * configure: Regenerated.
404 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
407 2003-01-03 Andrew Cagney <cagney@redhat.com>
409 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
410 * avr-tdep.c, cris-tdep.c: Ditto.
411 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
412 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
414 2003-01-03 Mark Kettenis <kettenis@gnu.org>
416 * configure.in: Remove --enable-netrom option.
417 * configure: Regenerated.
419 2003-01-03 Mark Kettenis <kettenis@gnu.org>
421 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
422 declaration for `struct re_pattern_buffer' instead.
423 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
425 2003-01-03 J. Brobecker <brobecker@gnat.com>
427 * mdebugread.c (parse_symbol): Count until the stEnd matching
430 2003-01-02 Mark Kettenis <kettenis@gnu.org>
432 * configure.in: Remove --with-cpu option.
433 subscripts. Remove evil changequotes here.
434 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
435 * config.in, configure: Regenerated.
437 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
438 * configure.in: Cleanup section that sources GDB and BFD configure
439 subscripts. Remove evil changequotes here.
440 * config.in, configure: Regenerated.
442 2003-01-02 Andrew Cagney <ac131313@redhat.com>
444 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
445 frame accessor methods.
446 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
447 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
448 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
449 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
450 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
451 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
454 2003-01-02 Mark Kettenis <kettenis@gnu.org>
456 * configure.in: Remove UI_OUT configuration code.
457 * ada-lang.c: Update assuming UI_OUT is always true.
458 * Makefile.in (UIOUT_CFLAGS): Remove.
459 * configure: Regenerated.
460 * TODO: Remove blurb about elimination of -DUI_OUT.
462 * configure.in: Move code that provides the --enable-gdbcli,
463 --enable-gdbmi options right before the code that handles the
464 --enable-tui option. Polish a bit.
465 * configure: Regenerated.
467 * configure.in: Rewrite check for GNU regex and the
468 --without-included regex option, and move it into the "Checks for
469 library functions" section. This makes us use the system regex
470 again by default on systems with version 2 of the GNU C library.
471 This was apparently broken.
472 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
473 * acconfig.h (USE_INCLUDED_REGEX): Remove.
474 * config.in, configure: Regenerated.
476 * configure.in: Move code that provides the --enable-tui option
477 before the "Checks for libraries" section. Polish the code
478 somewhat and set need_curses to yes if we build the TUI. Rewrite
479 code that looks for a library providing termcap functionality to
480 match more closely what's done in the Readline library, and move
481 it into to the "Checks for libraries" section.
482 * configure: Regenerated.
483 * Makefile.in (TERMCAP): Remove variable.
484 * config/i386/go32.mh (TERMCAP): Remove variable.
486 2003-01-02 Andrew Cagney <ac131313@redhat.com>
488 * MAINTAINERS: Mention gdb_mbuild.sh.
489 * gdb_mbuild.sh: Rewrite.
491 2003-01-02 Mark Kettenis <kettenis@gnu.org>
493 * configure.in: Fix typo in last change.
494 * config.in, configure: Regenerated.
496 2003-01-02 Andrew Cagney <ac131313@redhat.com>
498 * valarith.c (value_binop): Delete obsolete code and comments.
499 * configure.host: Ditto.
500 * buildsym.h (make_blockvector): Ditto.
501 * buildsym.c (make_blockvector): Ditto.
502 * defs.h (enum language): Ditto.
503 (chill_demangle): Ditto.
504 * elfread.c (elf_symtab_read): Ditto.
505 * dwarfread.c (CHILL_PRODUCER): Ditto.
506 (set_cu_language): Ditto.
507 (handle_producer): Ditto.
508 * expprint.c (print_subexp): Ditto.
509 * gdbtypes.c (chill_varying_type): Ditto.
510 * gdbtypes.h (builtin_type_chill_bool): Ditto.
511 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
512 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
513 (chill_varying_type): Ditto.
514 * language.h (_LANG_chill): Ditto.
515 * language.c (binop_result_type, integral_type): Ditto.
516 (character_type, string_type, structured_type): Ditto.
517 (lang_bool_type, binop_type_check): Ditto.
518 * stabsread.h (os9k_stabs): Ditto.
519 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
520 (define_symbol, read_type, read_struct_fields): Ditto.
521 (read_array_type, read_enum_type, read_huge_number): Ditto.
522 (read_range_type, start_stabs): Ditto.
523 * symfile.c (init_filename_language_table): Ditto.
524 (add_psymbol_with_dem_name_to_list): Ditto.
525 * symtab.c (symbol_init_language_specific): Ditto.
526 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
527 * symtab.h (struct general_symbol_info): Ditto.
528 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
529 * typeprint.c (typedef_print): Ditto.
530 * utils.c (fprintf_symbol_filtered): Ditto.
531 * valops.c (value_cast, search_struct_field, value_slice): Delete
533 (varying_to_slice): Delete function.
534 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
535 (varying_to_slice): Delete declaration.
536 * MAINTAINERS: Update.
538 2003-01-02 Mark Kettenis <kettenis@gnu.org>
540 * configure.in: Reorganize "Checks for library functions section"
541 a bit. Remove check for `btowc' and `isascii' functions.
542 * configure: Regenerated.
544 * acconfig.h (_MSE_INT_H): Remove.
545 * configure.in: Create "Checks for header files" section, and move
546 appropriate tests there. Don't check for objlist.h, wchar.h,
547 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
548 misdetection fix. Also add "Checks for types", "Checks for
549 compiler characteristics" and "Checks for library functions"
551 * config.in, configure: Regenerated.
553 * configure.in: Create "Checks for programs" section, and move
554 appropriate tests there.
556 2003-01-01 Mark Kettenis <kettenis@gnu.org>
558 * configure.in: Create "Checks for libraries" section, and move
559 appropriate tests there. Cleanup check for wctype in libw. Use
560 AC_SEARCH_LIBS to see whether we need libsocket.
561 * configure: Regenerated.
563 2002-12-31 Mark Kettenis <kettenis@gnu.org>
565 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
566 * config.in, configure: Regenerated.
568 2002-12-31 Mark Kettenis <kettenis@gnu.org>
570 * gdb_dirent.h: Cleanup and update code to match the example in
572 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
573 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
574 * configure: Regenerated.
576 2002-12-30 Adam Fedor <fedor@gnu.org>
578 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
579 (yylex): Initialize c to avoid uninitialized warning.
581 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
583 * doc/fdl.texi: Revert the last change.
585 2002-12-29 Mark Kettenis <kettenis@gnu.org>
587 * tracepoint.c (ISATTY): Removed.
589 2002-12-26 J. Brobecker <brobecker@gnat.com>
591 Continuing work to convert the hppa targets to multiarch partil.
593 * hppa-tdep.c: Add some missing forward declarations.
594 (frameless_function_invocation): Prefix the function name
595 by "hppa_" to avoid polluting the namespace. Update all calls
596 to use the new function name.
597 (saved_pc_after_call): Ditto.
598 (init_extra_frame_info): Ditto.
599 (frame_chain): Ditto.
600 (push_dummy_frame): Ditto.
601 (target_read_pc): Ditto.
602 (target_write_pc): Ditto.
603 (in_solib_call_trampoline): Ditto.
604 (in_solib_return_trampoline): Ditto.
605 (skip_trampoline_code): Ditto.
606 (hppa_read_fp): New function, renamed from target_read_fp.
607 (hppa_target_read_fp): New function, using hppa_read_fp.
608 This function conforms to the function profile for the
609 READ_FP gdbarch method.
610 (hppa_extract_struct_value_address): New function, extracted
611 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
613 (hppa_frame_num_args): New function.
614 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
616 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
617 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
618 for the switch to multiarch partial.
619 Update some of the macros definitions to match some changes
620 described above in the name of the function they are calling.
621 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
622 not be straightforward to convert. Do now wrap it inside
623 "#if !... #endif" to remember that this macro has still not
625 (FIX_CALL_DUMMY): Likewise.
627 2002-12-26 J. Brobecker <brobecker@gnat.com>
629 Continuing work to convert the hppa targets to multiarch partial.
631 * hppa-tdep.c (hppa_register_raw_size): New function replacing
632 the body of macro REGISTER_RAW_SIZE.
633 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
634 config/pa/tm-hppah.h. These functions will be used to initialize
635 the gdbarch structure.
636 (hppa_hpux_pc_in_sigtramp): New function.
637 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
638 (hppa_hpux_frame_base_before_sigtramp): New function.
639 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
640 Add gdbcore.h #include.
641 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
642 of this gdbarch-eligible macro to a call to the new associated
644 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
645 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
646 into a call to the new associated function.
647 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
648 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
649 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
651 2002-12-24 David Carlton <carlton@math.stanford.edu>
653 * config/sparc/tm-sparc.h: Delete duplicate definition of
654 DEPRECATED_PC_IN_CALL_DUMMY.
656 2002-12-24 Kevin Buettner <kevinb@redhat.com>
658 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
660 * configure.tgt: Recognize mips64*-*-linux*.
661 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
662 (supply_32_bit_reg): New function.
663 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
664 (fill_gregset): Use regcache_collect() instead of
665 deprecated_registers[].
666 (register_addr): Change name to mips_linux_register_addr().
667 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
668 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
669 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
670 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
671 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
672 (MIPS64_LINUX_JB_PC): New defines.
673 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
674 (mips64_elf_fpregset_t): New typedefs.
675 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
676 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
677 (mips64_linux_register_addr, set_mips_linux_register_addr)
678 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
679 (init_register_addr_data)
681 (fetch_core_registers): Add support for core file formats with 64-bit
683 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
684 (register_addr_data): New static global variable.
685 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
686 gdbarch_register_osabi() for each MIPS machine.
687 * config/mips/linux64.mt: New file.
688 * config/mips/tm-linux64.h: New file.
690 2002-12-23 Adam Fedor <fedor@gnu.org>
692 * maint.c (maintenance_demangle): Add switch to demangle
693 ObjC language symbols as well.
695 2002-12-23 Adam Fedor <fedor@gnu.org>
697 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
698 last argument from complaint function call.
700 2002-12-23 Kevin Buettner <kevinb@redhat.com>
702 * exec.c (print_section_info): Add FIXME comments regarding format
705 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
707 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
708 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
710 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
712 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
714 2002-12-23 David Carlton <carlton@math.stanford.edu>
716 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
717 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
718 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
719 information associated to a minsym, not lookup_symbol.
721 2002-12-21 Mark Kettenis <kettenis@gnu.org>
723 * x86-64-tdep.h (x86_64_init_abi): New prototype.
724 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
725 (x86_64_init_abi): Make non-static. Set number of pseudo
727 (x86_64_gdbarch_init): Remove function.
728 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
729 Remove code dealing with dissambly.
730 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
731 (_initialize_x86_64_linux_tdep): New function.
732 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
735 2002-12-14 Mark Kettenis <kettenis@gnu.org>
737 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
738 (struct gdb_osabi_handler): Remove member `arch'. Add member
740 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
741 construct a `struct bfd_arch_info' and store it in the `struct
742 gdb_osabi_handler' that is created.
743 (gdbarch_init_osabi): Check for compatibility based on machine
744 type and architecture.
745 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
747 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
748 second argument in call to gdbarch_register_osabi.
749 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
750 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
751 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
752 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
753 * arm-tdep.c (_initialize_arm_tdep): Likewise.
754 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
755 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
756 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
757 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
758 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
759 * i386-tdep.c (_initialize_i386_tdep): Likewise.
760 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
761 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
762 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
763 _initialize_i386bsd_tdep and updated likewise.
764 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
765 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
766 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
767 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
768 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
769 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
770 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
771 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
772 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
773 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
775 2002-12-20 Kevin Buettner <kevinb@redhat.com>
777 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
778 DT_MIPS_RLD_MAP case for 64-bit targets.
780 2002-12-20 Kevin Buettner <kevinb@redhat.com>
782 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
783 ``temp_saved_regs'', not the pointer or other storage contiguous
786 2002-12-20 Kevin Buettner <kevinb@redhat.com>
788 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
789 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
790 (mips_linux_get_longjmp_target): Delete declarations.
791 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
792 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
793 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
794 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
795 (mips_linux_get_longjmp_target)
796 (mips_linux_svr4_fetch_link_map_offsets): Make static.
797 (mips_linux_init_abi): New function.
798 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
800 2002-12-19 Keith Seitz <keiths@redhat.com>
802 patch committed by Elena Zannoni <ezannoni@redhat.com>
803 * thread.c (do_captured_list_thread_ids): Call prune_threads and
804 target_find_new_threads. Fix for PR mi/669.
806 2002-12-19 David Carlton <carlton@math.stanford.edu>
808 * linespec.c (decode_line_1): Move code into decode_all_digits.
809 (decode_all_digits): New function.
811 2002-12-19 Kevin Buettner <kevinb@redhat.com>
813 * exec.c (print_section_info): Select a format string to use with
814 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
816 2002-12-18 Andrew Cagney <ac131313@redhat.com>
818 * frame.c (deprecated_update_current_frame_pc_hack): Replace
819 deprecated_update_current_frame_pc_hack.
820 (deprecated_update_frame_base_hack): New function.
821 * frame.h (deprecated_update_frame_pc_hack): Replace
822 (deprecated_update_frame_base_hack): Declare.
823 * infrun.c (normal_stop): Update.
825 2002-12-18 Andrew Cagney <ac131313@redhat.com>
827 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
828 frame_extra_info_zalloc.
829 (rs6000_frame_args_address): Use get_frame_extra_info.
830 (frame_get_saved_regs): Use get_frame_saved_regs.
831 (frame_initial_stack_address): Use get_frame_saved_regs and
832 get_frame_extra_info.
833 (frame_initial_stack_address): Use get_frame_extra_info.
835 2002-12-17 Kevin Buettner <kevinb@redhat.com>
837 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
839 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
840 checks for r3900_regnames[].
842 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
844 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
846 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
848 2002-12-17 David Carlton <carlton@math.stanford.edu>
850 * symtab.c (lookup_partial_symbol): Don't search past the end of
853 2002-12-17 Andrew Cagney <ac131313@redhat.com>
855 * stack.c (frame_info): Use get_frame_saved_regs.
856 * breakpoint.c (until_break_command): Use get_frame_pc.
858 2002-12-16 Kevin Buettner <kevinb@redhat.com>
860 * buildsym.c (block_end_complaint, anon_block_end_complaint)
861 (innerblock_complaint, innerblock_anon_complaint)
862 (blockvector_complaint): Delete deprecated complaint structs.
863 (finish_block, make_blockvector, end_symtab): Replace calls
864 to complain() with calls to complaint().
865 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
866 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
867 (unexpected_type_complaint, bad_sclass_complaint)
868 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
869 Delete deprecated complaint structs.
870 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
871 Replace calls to complain() with calls to complaint().
872 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
873 (unknown_symtype_complaint, unknown_symchar_complaint)
874 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
875 (lbrac_mismatch_complaint, repeated_header_complaint)
876 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
877 Delete deprecated complaint structs.
878 (unknown_symtype_complaint, lbrac_mismatch_complaint)
879 (repeated_header_complaint)
880 (function_outside_compiliation_unit_complaint): New functions.
881 (add_old_header_file, find_corresponding_bincl_psymtab)
882 (set_namestring, find_stab_function_addr, read_dbx_symtab)
883 (process_one_symbol): Replace calls to complain() with, possibly
884 indirect, calls to complaint().
885 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
886 (unknown_attribute_form, unknown_attribute_length)
887 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
888 (const_ignored, botched_modified_type, op_deref2, op_deref4)
889 (basereg_not_handled, dup_user_type_allocation)
890 (dup_user_type_definition, missing_tag, bad_array_element_type)
891 (subscript_data_items, unhandled_array_subscript_format)
892 (unknown_array_subscript_format, not_row_major)
893 (missing_at_name): Delete deprecated complaint structs.
894 (bad_die_ref_complaint, unknown_attribute_form_complaint)
895 (dup_user_type_definition_complaint)
896 (bad_array_element_type_complaint): New functions.
897 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
898 (decode_subscript_data_item, dwarf_read_array_type)
899 (read_tag_string_type, read_subroutine_type, read_func_scope)
900 (locval, scan_partial_symbols, decode_modified_type)
901 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
902 (attribute_size): Replace calls to complain() with, possibly
903 indirect, calls to complaint().
904 * elfread.c (section_info_complaint, section_info_dup_complaint)
905 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
906 Delete deprecated complaint structs.
907 (elf_symtab_read, elfstab_offset_sections): Replace calls to
908 complain() with calls to complaint().
909 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
911 (stub_noname_complaint): New function.
912 (check_typedef, add_mangled_type): Replace calls to complain()
913 with calls to complaint().
914 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
915 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
916 (hpread_unhandled_type_complaint, hpread_struct_complaint)
917 (hpread_array_complaint, hpread_type_lookup_complaint)
918 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
919 (hpread_unhandled_common_complaint)
920 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
921 struct definitions and declarations.
922 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
923 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
924 Replace calls to complain() with, possibly indirect, calls to
926 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
928 * mdebugread.c (bad_file_number_complaint, index_complaint)
929 (aux_index_complaint, block_index_complaint)
930 (unknown_ext_complaint, unknown_sym_complaint)
931 (unknown_st_complaint, block_overflow_complaint)
932 (basic_type_complaint, unknown_type_qual_complaint)
933 (array_index_type_complaint, bad_tag_guess_complaint)
934 (block_member_complaint, stEnd_complaint)
935 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
936 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
937 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
938 (bad_continued_complaint, bad_rfd_entry_complaint)
939 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
940 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
941 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
942 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
944 (index_complaint, unknown_ext_complaint, basic_type_complaint)
945 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
946 (unexpected_type_code_complaint)
947 (function_outside_compilation_unit_complaint): New functions.
948 (parse_symbol, parse_type, upgrade_type, parse_procedure)
949 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
950 Replace calls to complain() with, possibly indirect calls to
952 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
953 Delete deprecated complaint structs.
954 (lookup__objc_class, lookup_child_selector): Replace complain()
956 * remote-vx.c (cant_contact_target): Delete deprecated complaint
958 (vx_lookup_symbol): Replace complain() with complaint().
959 * stabsread.c (invalid_cpp_abbrev_complaint)
960 (invalid_cpp_type_complaint, member_fn_complaint)
961 (const_vol_complaint, error_type_complaint)
962 (invalid_member_complaint, range_type_base_complaint)
963 (reg_value_complaint, vtbl_notfound_complaint)
964 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
965 (unresolved_sym_chain_complaint, stabs_general_complaint)
966 (lrs_general_complaint, multiply_defined_struct): Delete
967 deprecated complaint structs.
968 (invalid_cpp_abbrev_complaint, ref_value_complaint)
969 (stabs_general_complaint, lrs_general_complaint)
970 (msg_unknown_complaint): New functions.
971 (dbx_lookup_type, read_cfront_baseclasses)
972 (read_cfront_member_functions, resolve_symbol_reference)
973 (define_symbol, resolve_live_range, add_live_range, read_type)
974 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
975 (read_one_struct_field, read_baseclasses, read_tilde_fields)
976 (read_cfront_static_fields, attach_fields_to_type)
977 (complain_about_struct_wipeout, read_range_type)
978 (common_block_start, common_block_end, cleanup_undefined_types)
979 (scan_file_globals): Replace complain() with complaint().
980 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
981 Delete deprecated complaint struct declarations.
982 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
983 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
984 (bf_not_found_complaint, ef_complaint, eb_complaint)
985 (function_outside_compilation_unit_complaint): New functions.
986 (record_include_begin, record_include_end, enter_line_range)
987 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
988 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
989 complain() with complaint().
991 2002-12-16 Andrew Cagney <ac131313@redhat.com>
993 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
994 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
995 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
996 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
997 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
998 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
999 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1000 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1001 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1002 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1003 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1004 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1005 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1006 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1007 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1008 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1009 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1010 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1011 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1012 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1013 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1014 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1015 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1016 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1017 * config/m88k/xm-dgux.h: Delete.
1018 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1019 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1020 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1021 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1022 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1023 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1024 * ch-valprint.c: Delete.
1026 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1028 * infrun.c (handle_inferior_event): Rearrange code to resume if
1029 no catchpoint triggers for an event.
1031 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1033 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1034 and TARGET_WAITKIND_VFORKED cases.
1036 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1038 * infrun.c (handle_inferior_event): Assume that catchpoints
1039 are not affected by DECR_PC_AFTER_BREAK.
1041 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1043 * target.c (update_current_target): Don't inherit DONT_USE.
1044 * target.h (struct target_ops): Remove DONT_USE.
1045 (target_next): Remove macro.
1047 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1049 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1051 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1053 * arm-tdep.c (convert_from_extended): New argument to hold the
1054 type of floating point result we want to convert to. Make input
1055 argument const. Fix all callers.
1056 (convert_to_extended): Similarly.
1057 (arm_extract_return_value): Now takes a regcache argument. Change
1058 code to use regcache accessor functions. Correctly extract
1059 smaller-than-word results on big-endian machines.
1060 (arm_store_return_value): Now takes a regcache argument. Change
1061 code to use regcache accessor functions. Correctly zero/sign extend
1062 smaller than word results before storing into r0.
1063 (arm_gdbarch_init): Register new-style extract_return_value and
1064 store_return_value functions.
1066 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1068 * thread-db.c (thread_from_lwp): Uniquify error msg.
1069 (lwp_from_thread): Ditto.
1070 (check_event): Ditto.
1071 (find_new_threads_callback): Ditto.
1072 (thread_db_pid_to_str): Ditto.
1074 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1076 * frame.h (get_frame_saved_regs): Declare.
1077 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1079 * frame.c (get_frame_saved_regs): New function.
1080 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1082 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1084 * frame.c (deprecated_update_current_frame_pc_hack): New
1086 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1087 * infrun.c (normal_stop): Use said function instead of directly
1088 modifying the frame's PC.
1090 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1092 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1094 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1096 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1097 config/mips/tm-irix6.h (NUM_REGS): Delete.
1098 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1099 (temp_saved_regs): Declare as a pointer rather than an array.
1100 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1101 that ``temp_saved_regs'' has storage allocated to it and that
1102 it's the correct size.
1104 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1106 * defs.h (init_last_source_visited): New prototype.
1108 * source.c (add_path): New function that adds to a specified path.
1109 (mod_path): Change to call add_path.
1110 (init_last_source_visited): New function to allow interfaces to
1111 initialize static variable: last_source_visited. Part of fix
1113 * Makefile.in: Add support for mi/mi-cmd-env.c.
1115 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1117 * frame.h (frame_id_unwind): Declare.
1118 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1120 (frame_id_unwind_ftype): Declare.
1121 * frame.c (frame_id_unwind): New function.
1122 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1123 (create_new_frame, get_prev_frame): Pass id_unwind to
1125 (frame_saved_regs_id_unwind): New function.
1126 (frame_saved_regs_id_unwind): New function.
1127 * dummy-frame.c (dummy_frame_id_unwind): New function.
1128 (struct dummy_frame): Add field id.
1129 (generic_push_dummy_frame): Initialize `id'.
1130 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1132 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1134 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1135 pass that to set_momentary_breakpoint. Move comments to where they
1137 * frame.h (set_current_frame): Delete declaration.
1138 * frame.c (set_current_frame): Delete function.
1140 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1142 * frame.c (frame_extra_info_zalloc): New function.
1143 * frame.h (frame_extra_info_zalloc): Declare.
1145 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1147 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1148 in the previous prototype change to set_momentary_breakpoint.
1150 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1152 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1154 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1155 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1156 (stop_stepping): Remove outdated check for child vfork events.
1158 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1160 * GDB 5.3 released from gdb_5_3-branch.
1162 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1164 * corelow.c (init_core_ops): Delete references to to_require_attach
1165 and to_require_detach.
1166 * exec.c (init_exec_ops): Likewise.
1167 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1168 hppa_require_detach directly.
1169 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1170 * inftarg.c (child_detach): Remove.
1171 (child_detach_from_process): Rename to child_detach, remove
1172 after_fork argument.
1173 (child_attach): Remove.
1174 (child_attach_to_process): Rename to child_attach, remove after_fork
1176 (init_child_ops): Delete references to to_require_attach
1177 and to_require_detach.
1178 * infttrace.c (hppa_require_attach): Update comment.
1179 * target.c (cleanup_target, update_current_target)
1180 (init_dummy_target, setup_target_debug): Delete references to
1181 to_require_attach and to_require_detach.
1182 (find_default_require_detach, find_default_require_attach)
1183 (debug_to_require_attach, debug_to_require_detach): Remove
1185 * target.h (struct target_ops): Remove to_require_attach
1186 and to_require_detach.
1187 (target_require_attach, target_require_detach): Delete macros.
1188 (find_default_require_detach, find_default_require_attach): Delete
1190 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1192 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1194 * frame.c (get_frame_extra_info): New function.
1195 * frame.h (get_frame_extra_info): Declare.
1197 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1199 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1200 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1201 with `struct frame_id'.
1202 (set_longjmp_resume_breakpoint): Ditto.
1203 * infrun.c (handle_inferior_event): Update.
1204 * breakpoint.c (watch_command_1, until_break_command): Update.
1205 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1206 (handle_inferior_event, step_over_function): Update.
1207 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1208 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1209 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1210 * infcmd.c (finish_command, run_stack_dummy): Update.
1212 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1214 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1215 (dwarf2_non_const_array_bound_ignored)
1216 (dwarf2_missing_line_number_section)
1217 (dwarf2_statement_list_fits_in_line_number_section)
1218 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1219 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1220 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1221 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1222 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1223 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1224 (dwarf2_missing_member_fn_type_complaint)
1225 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1226 (dwarf2_const_value_length_mismatch)
1227 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1228 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1229 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1230 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1231 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1232 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1233 complaints using deprecated struct..
1234 (dwarf2_non_const_array_bound_ignored_complaint)
1235 (dwarf2_complex_location_expr_complaint)
1236 (dwarf2_unsupported_at_frame_base_complaint)
1237 (dwarf2_const_value_length_mismatch_complaint)
1238 (dwarf2_macros_too_long_complaint)
1239 (dwarf2_macro_malformed_definition_complaint)
1240 (dwarf2_invalid_attrib_class_complaint): New functions.
1241 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1242 (read_structure_scope, read_array_type, read_common_block)
1243 (read_tag_pointer_type, read_base_type, read_partial_die)
1244 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1245 (new_symbol, dwarf2_const_value, read_type_die)
1246 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1247 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1248 complain() with, possibly indirect, calls to complaint().
1250 2002-12-11 Andrew Cagney <cagney@redhat.com>
1252 * frame.c (deprecated_get_frame_saved_regs): Rename
1253 get_frame_saved_regs.
1254 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1255 * sparc-tdep.c: Update.
1256 * hppa-tdep.c: Update.
1257 * h8500-tdep.c: Update.
1259 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1261 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1262 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1263 ``char *'' for return and parameter types.
1264 * gdbarch.h, gdbarch.c: Regenerate.
1265 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1266 return type from ``char *'' to ``const char *''.
1267 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1270 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1272 * i386-tdep.c: Include "dummy-frame.h".
1273 (i386_frame_chain, i386_frame_saved_pc): Replace
1274 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1275 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1277 2002-12-10 Andrew Cagney <cagney@redhat.com>
1279 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1280 Change to a function with predicate.
1281 * gdbarch.h, gdbarch.c: Re-generate.
1282 * frame.c (get_prev_frame): Update. Test
1283 DEPRECATED_INIT_FRAME_PC_P.
1284 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1285 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1286 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1287 * alpha-tdep.c (alpha_gdbarch_init): Update.
1288 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1289 * mips-tdep.c (mips_gdbarch_init): Update.
1290 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1291 * arm-tdep.c: Update comments.
1292 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1293 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1294 * frv-tdep.c (frv_gdbarch_init): Ditto.
1295 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1296 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1297 * s390-tdep.c (s390_gdbarch_init): Ditto.
1298 * v850-tdep.c (v850_gdbarch_init): Ditto.
1299 * vax-tdep.c (vax_gdbarch_init): Ditto.
1300 * sh-tdep.c (sh_gdbarch_init): Ditto.
1301 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1303 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1305 * i386-tdep.c (i386_gdbarch_init): Ditto.
1306 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1307 * cris-tdep.c (cris_gdbarch_init): Ditto.
1308 * avr-tdep.c (avr_gdbarch_init): Ditto.
1309 * arm-tdep.c (arm_gdbarch_init): Ditto.
1310 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1311 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1313 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1315 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1317 * hppah-nat.c (saved_vfork_pid): Add.
1318 (child_post_follow_vfork): Remove.
1319 (child_follow_fork): New function.
1320 (child_wait): Call detach_breakpoints after receiving the child vfork.
1321 Call child_resume directly instead of going through resume ().
1322 Make sure we have the exec before reporting the vfork.
1323 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1324 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1325 (follow_fork): New function. Call target_follow_fork.
1326 (follow_inferior_reset_breakpoints): New function broken out from
1327 old follow_inferior_fork.
1328 (resume): Remove hack to follow exec after vfork.
1329 * inftarg.c (child_post_follow_vfork): Remove.
1330 (child_follow_fork): New function.
1331 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1332 * target.c (cleanup_target): Replace to_post_follow_vfork with
1334 (update_current_target): Likewise.
1335 (setup_target_debug): Likewise.
1336 (debug_to_post_follow_vfork): Remove.
1337 (debug_to_follow_fork): New function.
1338 * target.h (struct target_ops): Replace to_post_folow_vfork with
1340 (child_post_follow_vfork): Remove prototype.
1341 (child_follow_fork): Add prototype.
1342 (target_post_follow_vfork): Remove macro.
1343 (target_follow_fork): Add macro.
1345 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1347 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1348 (child_post_follow_vfork): Cancel pending exec event if we follow
1350 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1351 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1352 event at the following wait call if necessary.
1353 * infrun.c (follow_vfork): Don't follow_exec here.
1354 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1355 case about HP/UX 10.20. Remove code pushed down to
1356 hppah-nat.c:child_wait.
1357 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1358 vfork_in_flight is set.
1360 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1362 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1363 for the parent's fork event.
1364 * infrun.c (handle_inferior_event): Only expect one fork event.
1365 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1366 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1368 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1370 * PROBLEMS: Delete reference to PR gdb/725.
1372 * MAINTAINERS (gdb.c++): Add David Carlton.
1374 2002-12-09 David Carlton <carlton@math.stanford.edu>
1376 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1377 * cli/cli-cmds.c: Ditto.
1379 2002-12-09 Andrew Cagney <cagney@redhat.com>
1381 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1382 function address in <>.
1383 * gdbarch.c: Re-generate.
1385 2002-12-09 David Carlton <carlton@math.stanford.edu>
1387 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1389 2002-12-09 David Carlton <carlton@math.stanford.edu>
1391 * linespec.c (symtab_from_filename): New function.
1392 (decode_line_1): Move code into symtab_from_filename.
1394 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1396 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1398 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1400 * f-valprint.c (info_common_command): Use get_frame_pc.
1401 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1402 * ax-gdb.c (agent_command): Ditto.
1403 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1404 (rs6000_pop_frame): Ditto.
1405 (rs6000_frameless_function_invocation): Ditto.
1406 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1407 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1408 * macroscope.c (default_macro_scope): Ditto.
1409 * stack.c (print_frame_info_base): Ditto.
1410 (print_frame, frame_info, print_frame_label_vars): Ditto.
1411 (return_command, func_command, get_frame_language): Ditto.
1412 * infcmd.c (finish_command): Ditto.
1413 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1414 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1415 (break_at_finish_at_depth_command_1): Ditto.
1416 (break_at_finish_command_1): Ditto.
1417 (until_break_command, get_catch_sals): Ditto.
1418 * blockframe.c (func_frame_chain_valid): Ditto.
1419 (frameless_look_for_prologue): Ditto.
1420 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1422 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1424 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1425 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1427 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1429 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1431 * gdbarch.h, gdbarch.c: Re-generate.
1432 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1433 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1435 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1436 declaration to a function returning a CORE_ADDR.
1437 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1438 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1439 (init_frame_pc_default): Ditto.
1440 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1441 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1442 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1443 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1444 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1445 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1447 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1448 to init_frame_pc_noop.
1449 (i386_interix_init_frame_pc): Delete function.
1450 * z8k-tdep.c (init_frame_pc): Delete function.
1451 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1452 (INIT_FRAME_PC_FIRST): Ditto.
1453 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1454 (INIT_FRAME_PC_FIRST): Ditto.
1455 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1456 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1458 (INIT_FRAME_PC_FIRST): Convert to an expression.
1459 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1461 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1463 * blockframe.c: Use get_frame_base instead of directly accessing
1464 the `struct frame_info' member frame.
1465 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1466 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1468 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1470 * Makefile.in (readline_h): Define.
1471 (completer.o): Depend on readline_h.
1473 (event-top.o): Ditto.
1480 (tracepoint.o): Ditto.
1482 (cli-dump.o): Ditto.
1483 (tui-hooks.o): Ditto.
1486 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1488 More cleanup from import of readline 4.3.
1489 * completer.h (complete_line, readline_line_completion_function):
1491 (line_completion_function): Removed, not used outside of completer.c.
1492 * completer.c (readline_line_completion_function,
1493 complete_function, line_completion_function): Use const for first
1495 (line_completion_function): Make static.
1496 (filename_completer): filename_completion_function is now called
1497 rl_filename_completion_function
1498 * corelow.c: Include <readline/readline.h>.
1504 * top.c (init_main): No need to coerce
1505 readline_line_completion_function anymore.
1506 * cli/cli-dump.c: Include <readline/readline.h>.
1508 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1510 * stack.c (frame_info): Use get_prev_frame.
1511 * blockframe.c (frame_address_in_block): Ditto.
1512 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1513 (rs6000_frameless_function_invocation): Ditto.
1514 (rs6000_frame_saved_pc): Ditto.
1515 (rs6000_frame_chain): Ditto.
1516 * arch-utils.c (init_frame_pc_default): Ditto.
1518 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1520 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1521 Delete redundant definition.
1523 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1525 Import of readline 4.3:
1526 * cli/cli-cmds.c: Include readline/tilde.h.
1527 * cli/cli-setshow.c: Ditto.
1528 * defs.h: Don't declare tilde_expand anymore, since readline
1531 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1533 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1534 -Werror on this file.
1536 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1538 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1540 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1541 * gdbarch.c: Regenerate.
1543 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1545 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1546 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1547 provide a default value.
1548 * gdbarch.h, gdbarch.c: Regenerate.
1549 * frame.c (get_prev_frame): Update. Check
1550 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1551 * s390-tdep.c (s390_gdbarch_init): Update.
1552 * mips-tdep.c (mips_gdbarch_init): Update.
1553 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1554 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1555 * alpha-tdep.c (alpha_gdbarch_init): Update.
1557 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1559 * ia64-linux-nat.c: Include gdb_string.h.
1560 * alpha-nat.c: Ditto.
1561 * ppc-linux-nat.c: Ditto.
1562 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1563 Update dependencies.
1565 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1567 * gdbthread.h: Include "frame.h".
1568 (struct thread_info): Replace step_frame_address with
1570 * inferior.h: Include "frame.h".
1571 (step_frame_id): Replace external variable step_frame_address.
1572 * gdbthread.h (save_infrun_state): Replace step_frame_address
1573 parameter with step_frame_id parameter.
1574 (load_infrun_state): Ditto.
1575 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1576 * infcmd.c (step_frame_id, step_1, step_once): Update.
1577 * thread.c (load_infrun_state, save_infrun_state): Update.
1578 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1579 (handle_inferior_event, step_over_function): Update.
1580 (normal_stop, context_switch, restore_inferior_status): Update.
1581 (struct inferior_status): Replace step_frame_address with
1584 2002-12-05 David Carlton <carlton@math.stanford.edu>
1586 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1587 DW_TAG_member as well as a declaration as being a C++ static data
1589 (read_structure_scope): Combine tests for DW_TAG_member and
1592 2002-12-05 David Carlton <carlton@math.stanford.edu>
1594 * linespec.c (decode_compound): New function.
1595 (decode_line_1): Move code into decode_compound.
1597 2002-12-05 David Carlton <carlton@math.stanford.edu>
1599 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1601 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1602 the static block. See PR gdb/804.
1604 2002-12-05 David Carlton <carlton@math.stanford.edu>
1606 * symtab.c (lookup_symbol_aux_block): New function.
1607 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1609 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1611 * gdbarch.sh: Dump the predicate function and macro values.
1612 (read): Print error on standard error.
1613 * gdbarch.c: Regenerate.
1615 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1617 * Makefile.in (mips_tdep_h): Define.
1618 (mips-tdep.o): Add mips_tdep_h to dependency list.
1619 * mips-tdep.h: New file.
1620 * mips-tdep.c (mips-tdep.h): Include.
1621 (enum mips_abi): Move to mips-tdep.h.
1622 (mips_abi): New function.
1624 2002-12-04 David Carlton <carlton@math.stanford.edu>
1626 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1628 2002-12-04 David Carlton <carlton@math.stanford.edu>
1630 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1632 (lookup_symbol_aux_minsyms): New function.
1634 2002-12-04 J. Brobecker <brobecker@gnat.com>
1636 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1638 2002-12-04 J. Brobecker <brobecker@gnat.com>
1640 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1641 which is an obsolete macro name.
1643 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1645 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1646 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1648 2002-12-03 H.J. Lu (hjl@gnu.org)
1650 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1651 (create_breakpoints): Make sure the addr_string field is not
1654 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1656 * sparc-nat.c (fetch_inferior_registers)
1657 (store_inferior_registers): Add comment on problem of LWP vs
1660 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1661 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1662 (lin_lwp_store_registers): Remove.
1663 (init_lin_lwp_ops): Use fetch_inferior_registers
1664 and store_inferior_registers directly.
1665 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1666 (store_inferior_registers): Likewise.
1669 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1671 * frame.h (get_frame_id): Convert to a function.
1672 (null_frame_id, frame_id_p): Declare.
1673 (frame_id_eq, frame_id_inner): Declare.
1674 (frame_id_build): New function.
1675 * frame.c (get_frame_id): Update. Use null_frame_id.
1676 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1678 (null_frame_id, frame_id_p): Define.
1679 (frame_id_eq, frame_id_inner): Define.
1680 (frame_id_build): New function.
1681 * varobj.c (varobj_create): Update.
1682 (varobj_update): Update.
1683 * valops.c (value_assign): Update.
1684 (new_root_variable): Update.
1685 * infrun.c (save_inferior_status): Update.
1686 * breakpoint.c (watch_command_1): Update.
1688 2002-12-03 J. Brobecker <brobecker@gnat.com>
1690 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1693 2002-12-03 Andrew Cagney <cagney@redhat.com>
1695 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1698 * PROBLEMS: Mention PR gdb/725.
1700 2002-12-03 Andreas Schwab <schwab@suse.de>
1702 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1704 2002-12-02 Adam Fedor <fedor@gnu.org>
1705 Klee Dienes <kdienes@apple.com>
1707 * objc-lang.c (objc_printstr): Add width arg to match
1709 (compare_selectors): Add 'const' to arg types.
1710 (compare_classes): Likewise.
1711 (find_imps): Cast msym pointer to avoid compiler warning.
1712 (print_object_command): Validate the address before
1713 passing it to the print routine.
1714 (find_objc_msgcall_submethod): Change function argument to
1716 * objc-lang.h: Add 'extern' to all function declarations.
1717 (value_nsstring): Add declaration.
1719 2002-12-02 J. Brobecker <brobecker@gnat.com>
1721 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1722 Fixes a build failure on HP/UX.
1724 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1726 (hpread_has_name): Advance declaration to avoid a compilation warning.
1727 (pst_syms_count): Add missing variable type. By change, the compiler
1728 was defaulting to int, which seems a good choice. Fixes a compilation
1730 (pst_syms_size): Likewise.
1732 2002-12-02 J. Brobecker <brobecker@gnat.com>
1734 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1735 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1736 later to set the proper gdbarch methods depending on the osabi.
1737 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1739 2002-12-02 J. Brobecker <brobecker@gnat.com>
1741 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1742 * osabi.c (gdb_osabi_name): Add strings images for the two new
1744 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1746 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1748 * MAINTAINERS (Java): Global maintainers are responible for Java.
1749 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1750 part Java maintainers.
1752 2002-12-02 J. Brobecker <brobecker@gnat.com>
1754 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1755 Fixes a compilation failure on AiX.
1757 2002-12-02 J. Brobecker <brobecker@gnat.com>
1759 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1760 why aix-thread.o is not listed.
1762 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1764 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1765 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1766 * gdbarch.h, gdbarch.c: Re-generate.
1767 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1768 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1769 * config/pa/tm-hppa.h, frame.h: Update.
1770 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1771 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1772 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1773 * cris-tdep.c, alpha-tdep.c: Update.
1774 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1775 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1776 (get_prev_frame): Ditto.
1778 2002-11-30 Andrew Cagney <cagney@redhat.com>
1780 * exec.c (xfer_memory): Replace boolean with int.
1781 * p-exp.y: Use 0 instead of false.
1782 * corelow.c (gdb_check_format): Change return type to int from
1784 * utils.c: Don't include <curses.h> or <term.h> first.
1786 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1788 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1789 (m68hc11_register_byte): Remove.
1790 (m68hc11_gdbarch_init): Don't set the above.
1792 2002-11-29 Andrew Cagney <cagney@redhat.com>
1794 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1795 by calling get_selected_frame.
1796 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1797 set_current_frame, create_new_frame, select_frame and
1799 * remote-e7000.c (e7000_start_remote): Ditto.
1800 * remote-mips.c (common_open): Ditto
1801 * remote-rdp.c (remote_rdp_open): Ditto.
1803 2002-11-29 Andreas Schwab <schwab@suse.de>
1805 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1806 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1807 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1808 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1809 read_memory_unsigned_integer instead of read_memory_integer when
1810 dealing with addresses and instruction opcodes.
1811 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1812 (m68k_linux_frame_saved_pc): Likewise.
1814 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1816 * stack.c (selected_frame, select_frame): Move from here ...
1817 * frame.c (selected_frame, select_frame): ... to here. Include
1819 * Makefile.in (frame.o): Update dependencies.
1820 * frame.c (get_selected_frame): New function.
1821 * frame.h (get_selected_frame): Declare.
1822 (deprecated_selected_frame): Rename selected_frame.
1823 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1824 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1825 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1826 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1827 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1828 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1829 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1830 * z8k-tdep.c, cli/cli-cmds.c: Update.
1832 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1834 * frame.h (get_selected_block): Add comments.
1836 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1838 * frame.c (pc_notcurrent): New function.
1839 (find_frame_sal): New function.
1840 * frame.h (find_frame_sal): Declare.
1841 (struct symtab_and_line): Add opaque declaration.
1842 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1844 (frame_info): Ditto.
1845 * ada-lang.c (find_printable_frame): Ditto.
1847 2002-11-28 J. Brobecker <brobecker@gnat.com>
1849 * configure.in: Check that the pthdebug library is recent enough
1850 before enabling thread support on native AiX.
1851 * configure: Regenerate.
1853 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1854 from the list of object files as it is now appended by configure
1855 if thread support is enabled.
1856 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1857 if thread support is enabled.
1859 2002-11-28 Andrew Cagney <cagney@redhat.com>
1861 * stack.c (get_selected_block): In-line get_current_block.
1862 * frame.h (get_current_block): Delete declaration.
1863 * blockframe.c (get_current_block): Delete function.
1865 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1867 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1868 USE_GENERIC_DUMMY_FRAMES.
1869 * gdbarch.h, gdbarch.c: Regenerate.
1870 * valops.c, frame.c: Update.
1871 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1872 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1873 * config/pa/tm-hppa.h, blockframe.c: Update.
1874 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1875 * m68k-tdep.c, alpha-tdep.c: Ditto.
1877 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1878 * mips-tdep.c: Ditto.
1880 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1882 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1883 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1884 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1885 * gdbarch.c, gdbarch.h: Re-generate.
1886 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1887 (CALL_DUMMY_LOCATION): Delete macro definition.
1888 (PC_IN_CALL_DUMMY): Delete macro definitions.
1890 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1891 default is already generic_pc_in_call_dummy.
1892 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1893 * v850-tdep.c (v850_gdbarch_init): Ditto.
1894 * sh-tdep.c (sh_gdbarch_init): Ditto.
1895 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1896 * mips-tdep.c (mips_gdbarch_init): Ditto.
1897 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1898 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1899 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1900 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1901 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1902 * avr-tdep.c (avr_gdbarch_init): Ditto.
1904 * arm-tdep.c (arm_gdbarch_init): Do not set
1905 use_generic_dummy_frames, default is already 1.
1906 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1907 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1908 * v850-tdep.c (v850_gdbarch_init): Ditto.
1909 * sh-tdep.c (sh_gdbarch_init): Ditto.
1910 * s390-tdep.c (s390_gdbarch_init): Ditto.
1911 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1912 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1913 * mips-tdep.c (mips_gdbarch_init): Ditto.
1914 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1916 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1917 * i386-tdep.c (i386_gdbarch_init): Ditto.
1918 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1919 * frv-tdep.c (frv_gdbarch_init): Ditto.
1920 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1921 * cris-tdep.c (cris_gdbarch_init): Ditto.
1922 * avr-tdep.c (avr_gdbarch_init): Ditto.
1924 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1925 call_dummy_location, default is already AT_ENTRY_POINT.
1926 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1927 * v850-tdep.c (v850_gdbarch_init): Ditto.
1928 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1929 * sh-tdep.c (sh_gdbarch_init): Ditto.
1930 * s390-tdep.c (s390_gdbarch_init): Ditto.
1931 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1932 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1933 * mips-tdep.c (mips_gdbarch_init): Ditto.
1934 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1935 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1936 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1937 * i386-tdep.c (i386_gdbarch_init): Ditto.
1938 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1939 * frv-tdep.c (frv_gdbarch_init): Ditto.
1940 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1941 * cris-tdep.c (cris_gdbarch_init): Ditto.
1942 * avr-tdep.c (avr_gdbarch_init): Ditto.
1943 * arm-tdep.c (arm_gdbarch_init): Ditto.
1944 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1946 2002-11-28 Andrew Cagney <cagney@redhat.com>
1948 * frame.h: Update comments on set_current_frame, create_new_frame,
1949 flush_cached_frames, reinit_frame_cache, select_frame and
1952 2002-11-27 Andrew Cagney <cagney@redhat.com>
1954 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1955 deprecated pc_in_call_dummy function.
1956 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1957 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1958 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1959 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1960 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1962 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1964 * Makefile.in: Remove Tix dependencies.
1965 * acinclude.m4: Ditto.
1966 * aclocal.m4: Ditto.
1967 * configure.in: Ditto.
1968 * configure: Regenerated.
1970 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1972 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1973 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1974 * gdbarch.c: Re-generate.
1976 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1978 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1979 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1980 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1981 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1982 pc_in_call_dummy_at_entry_point.
1983 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1984 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1985 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1986 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1987 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1988 pc_in_call_dummy_on_stack.
1989 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1990 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1991 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1992 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1993 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1995 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1997 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1998 pc_in_call_dummy_before_text_end
1999 (deprecated_pc_in_call_dummy_after_text_end): Rename
2000 pc_in_call_dummy_after_text_end.
2001 (deprecated_pc_in_call_dummy_on_stack): Rename
2002 pc_in_call_dummy_on_stack.
2003 (deprecated_pc_in_call_dummy_at_entry_point): Rename
2004 pc_in_call_dummy_at_entry_point.
2005 * m68k-tdep.c (m68k_gdbarch_init): Update.
2006 * s390-tdep.c (s390_gdbarch_init): Update.
2007 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2008 * vax-tdep.c (vax_gdbarch_init): Update.
2009 * sparc-tdep.c (sparc_gdbarch_init): Update.
2010 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2011 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2012 * i386-tdep.c (i386_gdbarch_init): Update.
2013 * frv-tdep.c (frv_gdbarch_init): Update.
2014 * cris-tdep.c (cris_gdbarch_init): Update.
2015 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2016 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2017 (deprecated_pc_in_call_dummy_after_text_end)
2018 (deprecated_pc_in_call_dummy_on_stack)
2019 (deprecated_pc_in_call_dummy_at_entry_point): Update.
2020 * alpha-tdep.c (alpha_gdbarch_init): Update.
2022 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
2024 * acconfig.h (HAVE_PREAD64): Add.
2025 * configure.in: Check for pread64.
2026 * config.in: Regenerated.
2027 * configure: Regenerated.
2028 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2029 * linux-proc.c (linux_proc_xfer_memory): New function.
2030 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2032 2002-11-25 David Carlton <carlton@math.stanford.edu>
2034 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2037 2002-11-25 Andrew Cagney <ac131313@redhat.com>
2039 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2040 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2042 2002-11-25 Jim Blandy <jimb@redhat.com>
2044 * symfile.c (init_objfile_sect_indices): New function.
2045 (default_symfile_offsets): Move the section-index-initializing
2046 stuff into init_objfile_sect_indices, and call that.
2048 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2049 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2051 * symfile.c (syms_from_objfile): Adjust indentation.
2053 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2054 || info_verbose isn't true.
2056 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2058 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2059 default to get_frame_base.
2060 * gdbarch.h, gdbarch.c: Regenerate.
2061 * arch-utils.c (default_frame_address): Delete function.
2062 * arch-utils.h (default_frame_address): Delete declaration
2064 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2066 * varobj.c (find_frame_addr_in_frame_chain):
2067 Use get_frame_base instead of FRAME_FP,
2070 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2072 * frame.h (FRAME_FP): Delete macro.
2073 (get_frame_base): New function declaration.
2074 * frame.c (get_frame_base): New function.
2075 (get_frame_id): Use ->frame.
2076 (frame_find_by_id): Rewrite to use get_frame_id.
2077 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2078 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2079 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2080 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2081 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2082 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2083 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2085 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2087 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2089 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2091 * frame.c (set_unwind_by_pc): Revert change below, use
2093 (get_prev_frame): Ditto.
2095 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2097 * dummy-frame.c (pc_in_dummy_frame): New function.
2098 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2099 (find_dummy_frame): Update comment.
2100 (generic_pop_current_frame): Use get_frame_type.
2101 * dummy-frame.h (pc_in_dummy_frame): Declare.
2102 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2103 (create_new_frame): Use pc_in_dummy_frame.
2104 (get_prev_frame): Use pc_in_dummy_frame.
2105 (frame_saved_regs_register_unwind): Use get_prev_frame.
2106 (deprecated_generic_get_saved_register): Use get_prev_frame.
2108 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2110 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2112 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2113 (varobj_create): Note that frame ID should be used.
2114 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2116 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2118 * breakpoint.c: Include "gdb_assert.h".
2119 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2121 * Makefile.in (breakpoint.o): Update dependencies.
2122 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2123 deprecated_frame_in_dummy.
2124 * stack.c (print_frame_info_base): Ditto.
2125 (frame_info): Ditto.
2126 (print_frame_info_base): Ditto. Delete dead code.
2128 2002-11-23 Andreas Schwab <schwab@suse.de>
2130 * Makefile.in (m68k_tdep_h): Define.
2131 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2132 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2133 * m68k-tdep.c: Move register number enum ...
2134 * m68k-tdep.h: ... to this new file and rename the constants from
2135 E_* to M68K_*. All uses changed.
2136 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2137 * abug-rom.c: Include "m68k-tdep.h". Use
2138 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2139 * cpu32bug-rom.c: Likewise.
2140 * dbug-rom.c: Likewise.
2141 * m68k-tdep.c: Likewise.
2142 * m68klinux-nat.c: Likewise.
2143 * remote-est.c: Likewise.
2144 * rom68k-rom.c: Likewise.
2145 * config/m68k/tm-linux.h: Likewise.
2147 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2149 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2150 dummy frame initialization code.
2151 * mips-tdep.c (mips_gdbarch_init): Ditto.
2153 2002-11-22 Christopher Faylor <cgf@redhat.com>
2155 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2158 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2160 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2161 to default_frame_address.
2162 * gdbarch.h, gdbarch.c: Re-generate.
2164 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2165 or frame_locals_address to default_frame_address.
2166 * m68k-tdep.c (m68k_gdbarch_init): Update.
2167 * i386-tdep.c (i386_gdbarch_init): Update.
2168 * frv-tdep.c (frv_gdbarch_init): Update.
2169 * sh-tdep.c (sh_gdbarch_init): Update.
2170 * v850-tdep.c (v850_gdbarch_init): Update.
2171 * sparc-tdep.c (sparc_gdbarch_init): Update.
2172 * mips-tdep.c (mips_gdbarch_init): Update.
2173 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2174 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2177 * cris-tdep.c (cris_frame_args_address): Delete function.
2178 (cris_frame_locals_address): Delete function.
2179 (cris_gdbarch_init): Do not set frame_args_address or
2180 frame_locals_address.
2182 2002-11-22 Michael Snyder <msnyder@redhat.com>
2184 * thread-db.c (thread_db_load): Tell the user what's going on
2185 if dlopen fails on libthread_db.
2187 2002-11-23 Andreas Schwab <schwab@suse.de>
2189 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2190 invariant return values.
2192 2002-11-22 Andreas Schwab <schwab@suse.de>
2194 * valops.c (value_slice): Move declaration of `offset' to avoid
2197 2002-11-22 Christopher Faylor <cgf@redhat.com>
2199 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2200 (struct so_stuff): Add end_addr field.
2201 (register_loaded_dll): Calculate and store end address of loaded dll.
2202 (solib_address): New function.
2203 (child_solib_loaded_library_pathname): Pass carefully constructed
2204 section info to safe_symbol_file_add rather than ignoring it.
2205 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2207 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2208 (child_create_inferior): Fix a compiler warning.
2209 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2210 (solib_address): Declare new function.
2212 2002-11-22 Andreas Schwab <schwab@suse.de>
2214 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2217 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2219 * maint.c (_initialize_maint_cmds): Fix typo. From
2220 Francesco Potorti` <pot@gnu.org>.
2222 2002-11-21 Andrew Cagney <cagney@redhat.com>
2224 * mips-tdep.c (mips_dump_tdep): Delete references to
2225 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2226 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2227 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2228 * printcmd.c (build_address_symbolic): Delete calls to
2229 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2230 (address_info): Ditto.
2233 2002-11-19 Klee Dienes <kdienes@apple.com>
2234 Adam Fedor <fedor@gnu.org>
2236 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2237 the ability to explicitly specify the quote characters and word
2238 break characters; if NULL is specified for either, use the old
2239 behavior of using the characters used by the completer.
2240 (skip_chars): New function. Convenience wrapper around
2241 skip_quoted_chars to provide the original skip_chars behavior.
2242 * completer.h (skip_quoted_chars): Add prototype.
2244 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2246 Problems reported by Paul Eggert.
2247 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2249 2002-11-19 Andreas Schwab <schwab@suse.de>
2251 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2252 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2253 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2254 (m68k_linux_frame_saved_pc): Move to ...
2255 * m68klinux-tdep.c: ... here. New file.
2256 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2257 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2259 2002-11-19 Adam Fedor <fedor@gnu.org>
2261 * objc-exp.y: Revert to old skip_quoted usage.
2263 2002-11-19 Adam Fedor <fedor@gnu.org>
2265 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2266 (objc_lang_h): Define.
2267 (YYFILES): Add objc-exp.tab.c.
2268 (local-maintainer-clean): Remove objc-exp.tab.c.
2269 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2271 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2273 * p-exp.y (typecast rule): Add automatic dereference of
2274 pascal classes if needed.
2275 (THIS): Set current_type.
2276 Automatically dereference pascal classes.
2277 (typebase rule): Add ^typebase recognition.
2279 2002-11-18 Adam Fedor <fedor@gnu.org>
2281 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2282 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2283 (op_name): Handle OP_OBJC_SELF.
2284 * Makefile.in (expprint.o): Add additional depends.
2286 2002-11-18 Adam Fedor <fedor@gnu.org>
2288 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2289 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2290 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2291 * objc-exp.y: Likewise.
2293 2002-11-18 Adam Fedor <fedor@gnu.org>
2295 * gdb/parser-defs.h: (struct objc_class_str): New structure
2296 for parsing ObjC classes.
2298 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2300 * stack.c (frame_relative_level): Copy function from here ...
2301 * frame.c (frame_relative_level): ...to here.
2303 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2305 * frame.h (enum frame_type): Define.
2306 (get_frame_type): Declare.
2307 (struct frame_info): Add field `type'. Delete field
2308 signal_handler_caller.
2309 (deprecated_set_frame_signal_handler_caller): Declare.
2310 * frame.c (get_frame_type): New function.
2311 (deprecated_set_frame_type): New function.
2312 (create_new_frame): Set the frame's type.
2313 (get_prev_frame): Similar.
2314 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2315 * s390-tdep.c: Ditto.
2316 * m68klinux-nat.c: Ditto.
2317 * ns32k-tdep.c: Ditto.
2318 * x86-64-linux-tdep.c: Ditto.
2319 * vax-tdep.c: Ditto.
2320 * rs6000-tdep.c: Ditto.
2321 * ppc-linux-tdep.c: Ditto.
2322 * i386-interix-tdep.c: Ditto.
2323 * mips-tdep.c: Ditto.
2324 * m68k-tdep.c: Ditto.
2325 * hppa-tdep.c: Ditto.
2326 * ia64-tdep.c: Ditto.
2327 * cris-tdep.c: Ditto.
2328 * arm-tdep.c: Ditto.
2329 * alpha-tdep.c: Ditto.
2330 * i386-tdep.c: Ditto.
2332 * ada-lang.c: Ditto.
2333 * blockframe.c: Update.
2334 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2335 deprecated_set_frame_type instead of signal_handler_caller.
2336 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2337 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2338 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2340 2002-11-18 Klee Dienes <kdienes@apple.com>
2342 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2344 2002-11-18 Klee Dienes <kdienes@apple.com>
2346 * buildsym.c (pop_context): Add comment.
2348 2002-11-18 Klee Dienes <kdienes@apple.com>
2350 * buildsym.h (pop_context): Convert to function, defined in
2352 * buildsym.c: Include gdb_assert.h.
2353 (pop_context): Implement as C function. Add check for stack
2355 * dbxread.c (process_one_symbol): Complain and stop processing
2356 that symbol if we are already at the top of the context stack for
2357 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2358 when processing N_RBRAC.
2360 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2362 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2364 (struct target_waitstatus): Add opaque definition.
2365 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2366 * exec.c (init_exec_ops): Likewise.
2367 * fork-child.c (clone_and_follow_inferior): Remove.
2368 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2369 * inferior.h (clone_and_follow_inferior): Remove prototype.
2370 * infrun.c (follow_fork_mode_both): Remove.
2371 (follow_fork_mode_kind_names): Remove commented out "both".
2372 (follow_inferior_fork): Remove follow_fork_mode_both support.
2373 * inftarg.c (child_clone_and_follow_inferior): Remove.
2374 (child_post_follow_inferior_by_clone): Remove.
2375 (init_child_ops): Don't set to_clone_and_follow_inferior
2376 or to_post_follow_inferior_by_clone.
2377 * target.c (default_clone_and_follow_inferior): Remove.
2378 (cleanup_target): Don't set to_clone_and_follow_inferior
2379 or to_post_follow_inferior_by_clone.
2380 (find_default_clone_and_follow_inferior): Remove.
2381 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2382 (debug_to_clone_and_follow_inferior): Remove.
2383 (debug_to_post_follow_inferior_by_clone): Remove.
2384 (setup_target_debug): Don't set to_clone_and_follow_inferior
2385 or to_post_follow_inferior_by_clone.
2386 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2387 and to_post_follow_inferior_by_clone.
2388 (child_clone_and_follow_inferior): Remove prototype.
2389 (child_post_follow_inferior_by_clone): Remove prototype.
2390 (target_clone_and_follow_inferior): Remove macro.
2391 (target_post_follow_inferior_by_clone): Remove macro.
2392 (find_default_clone_and_follow_inferior): Remove prototype.
2394 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2396 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2397 inferior_has_vforked, and inferior_has_execd instead of
2398 target_has_forked, target_has_vforked, and target_has_execd.
2399 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2400 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2401 (CHILD_WAIT): Define.
2402 (child_wait): Add prototype.
2403 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2405 (hpux_has_vforked): Likewise, from child_has_vforked.
2406 (hpux_has_execd): Likewise, from child_has_execd.
2407 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2408 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2409 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2410 and hpux_has_syscall_event instead of the target hooks.
2411 * infrun.c (inferior_has_forked, inferior_has_vforked)
2412 (inferior_has_execd): New functions.
2413 * inftarg.c (not_same_real_pid): Remove.
2414 (child_wait): Remove references to not_same_real_pid,
2415 target_has_forked, target_has_vforked, target_has_execd,
2416 and target_has_syscall_event.
2417 (child_has_forked, child_has_vforked, child_has_execd)
2418 (child_has_syscall_event): Remove.
2419 (init_child_ops): Remove references to child_has_forked,
2420 child_has_vforked, child_has_execd, and child_has_syscall_event.
2421 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2422 (hpux_has_vforked): Likewise, from child_has_vforked.
2423 (hpux_has_execd): Likewise, from child_has_execd.
2424 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2425 * target.c (cleanup_target): Remove references to
2426 to_has_forked, to_has_vforked, to_has_execd, and
2427 to_has_syscall_event.
2428 (update_current_target): Likewise.
2429 (setup_target_debug): Likewise.
2430 (debug_to_has_forked): Remove.
2431 (debug_to_has_vforked): Remove.
2432 (debug_to_has_execd): Remove.
2433 (debug_to_has_syscall_event): Remove.
2434 * target.h (struct target_ops): Remove to_has_forked.
2435 to_has_vforked, to_has_execd, and to_has_syscall_event.
2436 (child_has_forked, child_has_vforked, child_has_execd)
2437 (child_has_syscall_event): Remove prototypes.
2438 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2440 (target_has_forked, target_has_vforked, target_has_execd)
2441 (target_has_syscall_event): Remove macros.
2443 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2445 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2446 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2447 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2448 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2449 * target.c (cleanup_target): Remove reference to
2450 to_can_follow_vfork_prior_to_exec.
2451 (update_current_target): Likewise.
2452 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2453 (setup_target_debug): Remove reference to
2454 to_can_follow_vfork_prior_to_exec.
2455 * target.h (struct target_ops): Remove
2456 to_can_follow_vfork_prior_to_exec.
2457 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2458 (target_can_follow_vfork_prior_to_exec): Remove definition.
2459 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2461 * infrun.c (follow_vfork_when_exec): Remove.
2462 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2463 (follow_exec): Likewise.
2464 (handle_inferior_event): Likewise.
2465 (keep_going): Likewise.
2467 2002-11-15 Andrew Cagney <cagney@redhat.com>
2469 * frame.c (generic_unwind_get_saved_register): Make static.
2470 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2471 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2472 defaults to generic_unwind_get_saved_register.
2473 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2474 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2475 * frv-tdep.c (frv_gdbarch_init): Ditto.
2476 * i386-tdep.c (i386_gdbarch_init): Ditto.
2477 * s390-tdep.c (s390_gdbarch_init): Ditto.
2478 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2479 * v850-tdep.c (v850_gdbarch_init): Ditto.
2480 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2481 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2482 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2484 2002-11-15 Andrew Cagney <cagney@redhat.com>
2486 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2489 2002-11-15 Andrew Cagney <cagney@redhat.com>
2491 * frame.h (sigtramp_saved_pc): Delete declaration.
2492 * blockframe.c (sigtramp_saved_pc): Delete function.
2493 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2494 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2495 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2496 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2498 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2500 * frame.c (frame_pc_unwind): New function.
2501 (frame_saved_regs_pc_unwind): New function.
2502 (frame_register_unwind): Pass unwind_cache instead of
2503 register_unwind_cache.
2504 (set_unwind_by_pc): Add unwind_pc parameter, set.
2505 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2506 (get_prev_frame): Ditto.
2507 * frame.h (frame_pc_unwind_ftype): Declare.
2508 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2509 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2510 (frame_pc_unwind): Declare.
2511 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2512 (struct dummy_frame): Add comment mentioning that values are for
2514 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2515 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2516 (generic_file_frame_chain_valid): Ditto.
2517 * stack.c (frame_info): Ditto.
2519 2002-11-15 David Carlton <carlton@math.stanford.edu>
2521 * linespec.c (locate_first_half): New function.
2522 (decode_line_1): Move code into locate_first_half.
2524 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2526 * complaints.h: Add comment explaining how to eliminate a
2527 deprecated_complain call.
2528 * complaints.h: Fix spelling errors.
2530 2002-11-15 David Carlton <carlton@math.stanford.edu>
2532 * printcmd.c: Remove #include "disasm.h".
2534 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2536 * frame.h: Move the most relevant interface functions to the start
2539 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2541 * regcache.h (deprecated_registers): Rename registers.
2542 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2543 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2544 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2545 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2546 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2547 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2548 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2549 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2550 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2551 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2552 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2553 * v850ice.c: Update.
2555 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2557 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2560 2002-11-13 Andrew Cagney <cagney@redhat.com>
2562 * regcache.h (deprecated_read_register_bytes): Rename
2563 read_register_bytes.
2564 (deprecated_write_register_bytes): Rename write_register_bytes.
2565 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2566 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2567 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2568 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2569 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2570 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2571 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2572 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2573 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2574 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2575 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2576 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2577 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2578 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2580 2002-11-13 Jim Blandy <jimb@redhat.com>
2582 * findvar.c (read_var_value): Doc fix.
2584 2002-11-13 Andrew Cagney <cagney@redhat.com>
2586 * regcache.c (struct regcache): Replace passthough_p with
2588 (regcache_xmalloc): Initialize readonly_p.
2589 (build_regcache): Initialize readonly_p.
2590 (regcache_save): New function.
2591 (regcache_restore): New function.
2592 (regcache_cpy): Re-implement using regcache_save and
2594 (regcache_raw_read): Update.
2595 (regcache_cooked_read): When a read-only cache, checked for cached
2596 pseudo register values.
2597 (regcache_raw_write): Assert that the cache is not read-only.
2598 Remove code handling a non-passthrough cache.
2599 * regcache.h (regcache_save): Declare.
2600 (regcache_restore): Declare.
2602 2002-11-13 Andrew Cagney <cagney@redhat.com>
2604 * regcache.c (struct regcache_descr): Add fields
2605 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2606 (init_legacy_regcache_descr): Compute the size of a cooked
2607 register cache and then assign that to sizeof_raw_registers. Set
2608 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2609 (init_legacy_regcache_descr): Ditto.
2611 2002-11-13 Andrew Cagney <cagney@redhat.com>
2613 * regcache.c (register_buffer): Move to near start of file, update
2615 (regcache_raw_read): Use.
2616 (regcache_raw_write): Use.
2617 (struct regcache): Rename raw_registers to registers and
2618 raw_register_valid_p to register_valid_p.
2619 (regcache_xmalloc): Update.
2620 (regcache_xfree): Update.
2621 (register_buffer): Update.
2622 (regcache_cpy): Update.
2623 (regcache_cpy_no_passthrough): Update.
2624 (regcache_valid_p): Update.
2625 (deprecated_grub_regcache_for_registers): Update.
2626 (deprecated_grub_regcache_for_register_valid): Update.
2627 (set_register_cached): Update.
2628 (regcache_raw_write): Update.
2630 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2632 * p-exp.y (name_not_typename): Use copy_name to
2633 set current_type variable for fields of THIS.
2635 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2637 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2638 * monitor.c (init_base_monitor_ops): Likewise.
2639 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2640 * remote-array.c (init_array_ops): Likewise.
2641 * remote-e7000.c (init_e7000_ops): Likewise.
2642 * remote-es.c (init_es1800_ops): Likewise.
2643 (init_es1800_child_ops): Likewise.
2644 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2645 * remote-sim.c (init_gdbsim_ops): Likewise.
2646 * remote-st.c (init_st2000_ops): Likewise.
2647 * sol-thread.c (init_sol_core_ops): Likewise.
2648 (init_sol_thread_ops): Likewise.
2649 * v850ice.c (init_850ice_ops): Likewise.
2650 * win32-nat.c (init_child_ops): Likewise.
2651 * wince.c (init_child_ops): Likewise.
2653 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2655 * utils.c (gdb_realpath): Make rp a constant pointer.
2657 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2659 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2660 a constant buffer; cannonicalize_file_name(); realpath() with a
2661 pathconf() defined buffer, xstrdup().
2663 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2665 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2666 to hang2.C; hang3.c to hang3.C.
2668 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2670 * findvar.c (read_var_value): Reenable TLS code.
2672 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2673 Jim Blandy <jimb@redhat.com>
2675 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2676 * target.c (update_current_target): Add
2677 to_get_thread_local_address.
2678 * target.h (to_get_thread_local_address): Export.
2679 (target_get_thread_local_address): Define.
2680 (target_get_thread_local_address_p): Define.
2681 * thread-db.c: Include solib-svr4.h.
2682 (td_thr_tls_get_addr_p): Define.
2683 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2684 (thread_db_get_thread_local_address): New function.
2685 (init_thread_db_ops): Initialize to_get_thread_local_address.
2686 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2687 * configure: Regenerate.
2688 * config.in: Regenerate.
2690 2002-11-11 David Carlton <carlton@math.stanford.edu>
2692 * linespec.c (set_flags): New function.
2693 (decode_line_1): Move code into set_flags.
2695 2002-11-11 David Carlton <carlton@math.stanford.edu>
2697 * linespec.c (decode_line_1): Move chunks of code to separate
2699 (initialize_defaults): New function.
2700 (decode_indirect): New function.
2702 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2704 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2705 instead of void_code_ptr.
2706 (sigtramp_saved_pc): Ditto.
2708 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2711 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2713 * gdbtypes.h (struct main_type): Move artificial flag out of
2714 loc. New member of ``struct field'' named static_kind. Reduce
2715 overloaded meaning of bitsize.
2716 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2717 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2718 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2720 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2722 (template_to_fixed_record_type, template_to_static_fixed_type)
2723 (to_record_with_fixed_variant_part): Likewise.
2724 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2725 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2726 * dwarfread.c (struct_type, enum_type): Likewise.
2727 * hpread.c (hpread_read_enum_type)
2728 (hpread_read_function_type, hpread_read_doc_function_type)
2729 (hpread_read_struct_type): Likewise.
2730 * mdebugread.c (parse_symbol): Likewise.
2732 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2734 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2735 * stack.c (print_frame_info_base): Update.
2736 (print_frame_info_base, frame_info): Update.
2737 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2738 (sparc_frame_saved_pc): Update.
2739 * ada-lang.c (find_printable_frame): Update.
2740 * breakpoint.c (deprecated_frame_in_dummy): Update.
2742 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2744 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2746 (regmap): Extend to cover all registers.
2747 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2748 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2750 (fetch_register, sore_register): Simplify.
2751 (old_fetch_inferior_registers, old_store_inferior_registers):
2753 (cannot_fetch_register, cannot_store_register): Change
2754 implementation to use regmap array to decide which registers
2755 cannot be fetched/stored. This removes $orig_eax from the
2756 registers that cannot be fetched/stored.
2757 (fetch_inferior_registers): Call fetch_register directly instead
2758 of calling old_fetch_inferior_registers.
2759 (store_inferior_registers): Call store_register directly instead
2760 of calling old_store_inferior_registers.
2761 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2762 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2763 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2765 2002-11-09 Klee Dienes <kdienes@apple.com>
2767 * i387-tdep.c (i387_supply_register): When called with NULL as a
2768 buffer, mark the register as not provided (to mirror the behavior
2769 of supply_register).
2770 (i387_supply_fxsave): Ditto.
2771 (i387_supply_fsave): Ditto (inherits the behavior from
2772 i387_supply_register).
2774 2002-11-09 Klee Dienes <kdienes@apple.com>
2776 * blockframe.c (sigtramp_saved_pc): Use
2777 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2778 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2779 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2781 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2783 * frame.c (get_prev_frame): Test prev_p to identify a previously
2784 unwound frame. Initialize prev_p.
2785 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2788 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2790 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2791 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2792 more comments. Zap dead code.
2794 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2796 * infcmd.c (print_vector_info, print_float_info): Move code that
2797 checks whether the target has any registers and whether there is a
2798 selected frame up, such that it is also used if a target provides
2799 multi-arch definitions of these functions.
2801 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2803 * Makefile.in (DESTDIR): Define.
2804 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2807 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2808 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2810 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2812 * i386-linux-tdep.c: Include "reggroups.h".
2813 (i386_linux_register_reggroup_p): New function.
2814 (i386_linux_init_abi): Set register_reggroup_p to
2815 i386_linux_register_reggroup_p.
2816 * i386-tdep.h (i386_register_reggroup_p): Declare.
2817 * i386-tdep.c: Include "reggroups.h".
2818 (i386_init_reggroups): New function.
2819 (i386_add_reggroups): New function.
2820 (i386_register_reggroup_p): New function.
2821 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2822 (_initialize_i386_tdep): Call i386_init_reggroups.
2823 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2826 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2828 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2829 request that's available in *BSD.
2831 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2833 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2836 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2838 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2839 * dummy-frame.c (find_dummy_frame): Rename
2840 generic_find_dummy_frame, make static. Return the dummy frame
2841 instead of the regcache.
2842 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2843 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2844 (dummy_frame_register_unwind): Rename
2845 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2846 * dummy-frame.h (dummy_frame_register_unwind): Rename
2847 generic_call_dummy_register_unwind.
2849 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2851 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2852 except the inclusion of "i386/tm-i386.h", to...
2853 * config/i386/nm-i386v42mp.h: ...here.
2854 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2856 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2858 * Makefile.in (frame.o): Update dependencies.
2859 * blockframe.c (current_frame, frame_obstack_alloc)
2860 (frame_saved_regs_zalloc, get_current_frame)
2861 (set_current_frame, create_new_frame)
2862 (set_unwind_by_pc, get_next_frame)
2863 (flush_cached_frames, reinit_frame_cache)
2864 (frame_saved_regs_register_unwind)
2865 (deprecated_generic_get_saved_register)
2866 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2867 (_initialize_blockframe): Move frame code from here...
2868 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2869 "annotate.h" and "dummy-frame.h".
2870 (_initialize_frame): New function.
2872 2002-11-08 Jim Blandy <jimb@redhat.com>
2874 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2875 when we finish a function a context.
2876 * buildsym.h (outermost_context_p): New macro.
2877 (Bug analyzed by David Edelsohn.)
2879 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2881 * blockframe.c: Include "dummy-frame.h".
2882 (struct dummy_frame, dummy_frame_stack)
2883 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2884 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2885 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2886 (generic_save_call_dummy_addr, generic_pop_current_frame)
2887 (generic_pop_dummy_frame, generic_fix_call_dummy)
2888 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2889 dummy frame code from here...
2890 * dummy-frame.c: ...to here. New file.
2891 * dummy-frame.h: New file.
2892 (generic_call_dummy_register_unwind): Declare.
2893 (generic_find_dummy_frame): Declare.
2894 * Makefile.in (SFILES): Add dummy-frame.c.
2895 (dummy-frame.o): Specify dependencies.
2896 (dummy_frame_h): Define.
2897 (COMMON_OBS): Add dummy-frame.o.
2898 (blockframe.o): Update dependencies.
2900 2002-11-08 Jim Blandy <jimb@redhat.com>
2902 * dwarf2read.c (read_func_scope): Restore local_symbols and
2903 param_symbols after we finish the function context. (Based on a
2904 patch from David Edelsohn.)
2906 2002-11-08 David Carlton <carlton@math.stanford.edu>
2908 * linespec.c (symbol_found): New function.
2909 (minsym_found): New function.
2910 (decode_line_1): Separate out some code into separate functions.
2912 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2914 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2915 the benefit of the interix target.
2916 * i386-tdep.h (i386_frameless_signal_p): Declare.
2918 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2920 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2921 declaration that snuck in from change below.
2923 2002-11-06 Andrew Cagney <cagney@redhat.com>
2925 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2927 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2928 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2929 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2930 (i386_mxcsr_regnum_p): new function. Use instead of
2932 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2933 (i386_sse_regnum_p): Declare.
2934 (i386_mxcsr_regnum_p): Declare.
2935 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2936 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2937 (IS_FP_REGNUM): Update definition.
2938 (IS_FPU_CTRL_REGNUM): Update definition..
2939 (IS_SSE_REGNUM): Update definition..
2940 * i386v-nat.c (register_u_addr): Update.
2941 * go32-nat.c (fetch_register): Update.
2942 (store_register): Update.
2944 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2946 Preparation work to convert the hppa targets to multiarch partial.
2948 * hppa-tdep.c: Add new functions replacing macro bodies from
2949 config/pa/tm-hppa.h. These function will be used to initialize
2950 the gdbarch structure. Import some comments from tm-hppa.h,
2951 and place them where appropriate, to avoid loosing them when
2952 we cleanup this file.
2953 (hppa_reg_struct_has_addr): New function.
2954 (hppa_inner_than): New function.
2955 (hppa_stack_align): New function.
2956 (hppa_pc_requires_run_before_use): New function.
2957 (hppa_instruction_nullified): New function.
2958 (hppa_register_byte): New function.
2959 (hppa_register_virtual_type): New function.
2960 (hppa_store_struct_return): New function.
2961 (hppa_cannot_store_register): New function.
2962 (hppa_frame_args_address): New function.
2963 (hppa_frame_locals_address): New function.
2964 (hppa_smash_text_address): New function.
2965 (hppa_coerce_float_to_double): New function. Requires the inclusion
2968 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2970 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2971 gdbarch-eligible macro to a call to the new associated function
2972 created in hppa-tdep.c.
2973 (INNER_THAN): Likewise.
2974 (STACK_ALIGN): Likewise.
2975 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2976 (INSTRUCTION_NULLIFIED): Likewise.
2977 (REGISTER_BYTE): Likewise.
2978 (REGISTER_VIRTUAL_TYPE): Likewise.
2979 (STORE_STRUCT_RETURN): Likewise.
2980 (CANNOT_STORE_REGISTER): Likewise.
2981 (FRAME_ARGS_ADDRESS): Likewise.
2982 (FRAME_LOCALS_ADDRESS): Likewise.
2983 (SMASH_TEXT_ADDRESS): Likewise.
2984 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2985 (ABOUT_TO_RETURN): Delete, as no longer used.
2987 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2989 * printcmd.c (disassemble_command): Remove obsolete function.
2990 (_initialize_printcmd): Do not create disassemble command here.
2991 * cli/cli-cmds.c (disassemble_command): New function. Implements
2992 disassemble command.
2993 (init_cli_cmds): Create disassemble command here instead.
2995 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2997 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2999 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3001 * regcache.h (regcache_cooked_read_using_offset_hack)
3002 (regcache_cooked_write_using_offset_hack): Delete declarations.
3003 (register_changed): Delete declaration.
3004 * regcache.c (regcache_cooked_read_using_offset_hack)
3005 (regcache_cooked_write_using_offset_hack): Delete functions.
3006 (cooked_xfer_using_offset_hack): Delete function.
3007 (register_changed): Delete function.
3009 2002-11-07 Jim Blandy <jimb@redhat.com>
3011 * macroscope.c: #include "complaints.h".
3012 (sal_macro_scope): Cope with filenames that appear in the symtabs,
3013 but not in the macro table.
3014 * Makefile.in (macroscope.o): Record dependency.
3016 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3018 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3020 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3022 * regcache.c (deprecated_registers_fetched): Update.
3023 * regcache.h (deprecated_registers_fetched): Rename
3025 * remote-vxsparc.c (vx_read_register): Update.
3026 * remote-vxmips.c (vx_read_register): Update.
3027 * remote-vx68.c (vx_read_register): Update.
3028 * irix5-nat.c (fetch_core_registers): Update.
3029 * mipsm3-nat.c (fetch_inferior_registers): Update.
3030 * sun3-nat.c (fetch_inferior_registers): Update.
3031 * symm-nat.c (fetch_inferior_registers): Update.
3032 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3033 (fetch_core_registers): Update.
3034 (fetch_kcore_registers): Update.
3035 * mips-nat.c (fetch_inferior_registers): Update.
3036 * corelow.c (get_core_registers): Update.
3037 * a68v-nat.c (fetch_inferior_registers): Update.
3039 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3041 Put in place the framework necessary for multiarching the hppa targets.
3042 * hppa-tdep.c (hppa_gdbarch_init): New function.
3043 (hppa_dump_tdep): New function.
3044 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3045 tdep structure dumper.
3046 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3047 until the multi-arching conversion has partially been completed.
3049 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3051 * valops.c (value_assign): Merge lval_register case into
3052 lval_reg_frame_relative. Use frame_register and
3053 regcache_cooked_write instead of get_saved_register and
3054 write_register_bytes. After flushing the register cache, try to
3055 re-select the selected frame.
3057 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3059 * regcache.h (deprecated_register_valid): Rename register_valid.
3060 * regcache.c: Update.
3061 * ia64-aix-nat.c: Update.
3062 * i386gnu-nat.c: Update.
3063 * alpha-nat.c: Update.
3064 * sparc-nat.c: Update.
3065 * lynx-nat.c: Update.
3066 * remote-mips.c: Update.
3068 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3070 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3071 to end of file, to be more consistent with the pratice followed
3074 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3076 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3077 (print_float_info): Print registers in float_reggroup.
3078 (print_vector_info): Print registers in vector_reggroup.
3079 (default_print_registers_info): When all, print registers in
3080 all_reggroup. Otherwize, print registers in general_reggroup.
3081 (registers_info): Rewrite. Add support for register groups.
3084 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3086 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3088 (symtab_symbol_info): Remove eons old ifdeffed out code.
3089 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3092 2002-11-06 Theodore A. Roth <troth@openavr.org>
3094 * c-exp.y: Add missing semi-colons.
3095 * f-exp.y: Add missing semi-colons.
3096 * m2-exp.y: Add missing semi-colons.
3097 * p-exp.y: Add missing semi-colons.
3098 Add empty action to start rule to avoid a type clash error when
3099 building with bison >= 1.50.
3101 2002-11-06 Jim Blandy <jimb@redhat.com>
3103 * macrotab.h (struct macro_source_file): Doc fix.
3105 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3107 * varobj.c (child_exists, cplus_number_of_children): Change
3108 STREQ macro references to strcmp.
3109 (cplus_name_of_child): Change code to handle the fact that
3110 fields are not necessarily contiguous with regards to their
3111 access control. This is a fix for PR gdb/792.
3113 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3115 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3116 * gdbarch.h, gdbarch.c: Regnerate.
3117 * frame.h (frame_register): Declare.
3118 * frame.c (frame_register): New function.
3119 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3120 GET_SAVED_REGISTER, otherwize call
3121 generic_unwind_get_saved_register.
3122 (frame_register_read): Use frame_register instead of
3125 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3127 From Jim Ingham <jingham@apple.com>:
3128 * event-top.c (gdb_disable_readline): New function.
3129 (_initialize_event_loop): Move comment.
3131 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3133 * event-loop.c (start_event_loop): Add comment.
3136 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3138 * infcmd.c (default_print_registers_info): Do not call
3139 PRINT_REGISTER_HOOK.
3141 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3143 * sparc-tdep.c (sparc_print_register_hook): Make static.
3144 (sparc_print_registers_info): New function.
3145 (sparc_do_registers_info): New function.
3146 (sparclet_print_registers_info): New function.
3147 (sparclet_do_registers_info): New function.
3148 (do_sparc_print_registers_info): New function.
3149 (sparc_print_registers): New static function, clone of infcmd.c's
3150 default_print_registers_info.
3151 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3152 (sparclet_do_registers_info): Declare.
3153 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3154 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3156 (sparc_do_registers_info): Declare.
3157 (PRINT_REGISTER_HOOK): Delete macro.
3158 (sparc_print_register_hook): Delete declaration.
3160 2002-11-05 David Carlton <carlton@math.stanford.edu>
3162 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3164 (lookup_symbol_aux_local): New function.
3165 (lookup_symbol_aux_symtabs): New function.
3166 (lookup_symbol_aux_psymtabs): New function.
3168 2002-11-05 David Carlton <carlton@math.stanford.edu>
3170 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3171 previous values of 'objfile' and 'block'.
3173 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3175 * values.c (value_change_enclosing_type): Set
3176 enclosing_type field correctly also for the case where
3177 more memory needs to be allocated.
3179 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3181 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3184 * i387-tdep.c (i387_print_float_info): Replace calls to
3185 register_read and deprecated_read_register_gen with calls to
3186 frame_register_read, and make the necessary adjustments to the
3189 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3191 * gdbarch.sh (register_reggroup_p): Allow default value.
3192 * gdbarch.h, gdbarch.c: Regenerate.
3194 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3196 * regcache.h: Add coment indicating replacements for deprecated
3199 2002-11-02 Andrew Cagney <cagney@redhat.com>
3201 * reggroups.h, reggroups.c: New files.
3202 * regcache.c: Include "reggroups.h".
3203 (enum regcache_dump_what): Add `regcache_dump_groups'.
3204 (regcache_dump): Contract size of the "Type" column. When
3205 specified, dump the register's groups.
3206 (maintenance_print_register_groups): New function.
3207 (_initialize_regcache): Add command `maint print register-groups'.
3208 * Makefile.in (COMMON_OBS): Add reggroups.o
3209 (SFILES): Add reggroups.c.
3210 (reggroups_h): Define.
3211 (regcache.o, gdbarch.o): Update dependencies.
3212 (reggroups.o): Specify dependencies.
3213 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3214 Add opaque declaration for `struct reggroup' in generated .h file.
3215 Include "reggroups.h" in generated .c file.
3216 gdbarch.h, gdbarch.c: Re-generate.
3218 2002-11-02 Andrew Cagney <cagney@redhat.com>
3220 * regcache.h (deprecated_read_register_gen): Rename
3222 (deprecated_write_register_gen): Rename write_register_gen.
3223 * i387-tdep.c: Update.
3224 * x86-64-linux-nat.c: Update
3226 * thread-db.c: Update.
3227 * win32-nat.c: Update.
3228 * mips-tdep.c: Update.
3229 * d10v-tdep.c: Update.
3230 * cris-tdep.c: Update.
3231 * remote-sim.c: Update.
3232 * remote-rdi.c: Update.
3233 * remote-rdp.c: Update.
3236 * blockframe.c: Update.
3237 * x86-64-tdep.c: Update.
3238 * xstormy16-tdep.c: Update.
3239 * sh-tdep.c: Update.
3240 * s390-tdep.c: Update.
3241 * rs6000-tdep.c: Update.
3242 * sparc-tdep.c: Update.
3243 * i386-tdep.c: Update.
3244 * dwarf2cfi.c: Update.
3245 * regcache.c: Update.
3247 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3249 New interix-specific files:
3250 * config/i386/nm-interix.h: New file.
3251 * config/i386/interix.mh: New file.
3252 * config/i386/interix.mt: New file.
3253 * i386-interix-nat.c: New file.
3254 * i386-interix-tdep.c: New file.
3256 2002-11-01 Andrew Cagney <cagney@redhat.com>
3258 * frame.h (deprecated_generic_get_saved_register): Rename
3259 generic_get_saved_register.
3260 * blockframe.c (deprecated_generic_get_saved_register): Update.
3261 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3262 (xstormy16_frame_saved_register): Update.
3263 * sh-tdep.c (sh_gdbarch_init): Update.
3264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3265 * ia64-tdep.c (ia64_get_saved_register): Update.
3266 * cris-tdep.c (cris_gdbarch_init): Update.
3267 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3268 * arm-tdep.c (arm_gdbarch_init): Update.
3270 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3272 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3274 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3276 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3277 trampolines in sigaction.
3279 2002-10-31 Andrew Cagney <cagney@redhat.com>
3281 * h8300-tdep.c: Include "gdb_assert.h".
3282 (h8300_print_register): Add gdbarch, file and frame parameters.
3283 Use frame_read_unsigned_register to read the register's value.
3284 Use fprintf_filtered to display output.
3285 (h8300_print_registers_info): Replace h8300_do_registers_info.
3286 (h8300_gdbarch_init): Set print_registers_info.
3288 2002-10-31 Andrew Cagney <cagney@redhat.com>
3290 * frame.c (frame_read_unsigned_register): New function.
3291 (frame_read_signed_register): New function.
3292 * frame.h (frame_read_unsigned_register): Declare.
3293 (frame_read_signed_register): Declare.
3295 2002-10-31 Andrew Cagney <cagney@redhat.com>
3297 * h8500-tdep.c (h8500_print_registers_info): New static function,
3298 clone of infcmd.c's default_print_registers_info.
3299 (h8500_do_registers_info): New funtion.
3300 (h8500_print_register_hook): Rename print_register_hook, make
3303 * config/h8500/tm-h8500.h: Update copyright.
3304 (DEPRECATED_DO_REGISTERS_INFO): Define.
3305 (h8500_do_registers_info: Declare.
3306 (PRINT_REGISTER_HOOK): Delete macro.
3307 (print_register_hook): Delete function.
3309 2002-10-31 Andrew Cagney <cagney@redhat.com>
3311 * z8k-tdep.c (z8k_print_register_hook): Make static.
3312 (z8k_print_registers_info): New static function, clone of
3313 infcmd.c's default_print_registers_info.
3314 (z8k_do_registers_info): New function. Wrap
3315 z8k_print_registers_info.
3316 * config/z8k/tm-z8k.h: Update copyright.
3317 (PRINT_REGISTER_HOOK): Delete macro.
3318 (z8k_print_register_hook): Delete declaration.
3319 (DEPRECATED_DO_REGISTERS_INFO): Define.
3320 (z8k_do_registers_info): Declare.
3322 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3324 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3325 as this is already provided by value.h, and was actually causing
3326 a compilation error because of a conflict in parameter type
3327 declaration due to a missing const keyword.
3328 (low_text_segment_addres): Fix a compilation warning.
3330 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3332 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3333 registers without a name.
3334 (mips_linux_cannot_store_register): Don't store registers without
3337 2002-10-28 David Carlton <carlton@math.stanford.edu>
3339 * symtab.c (find_addr_symbol): Delete. (It was already commented
3341 * symtab.h: Delete prototype for find_addr_symbol.
3343 2002-10-26 Andrew Cagney <cagney@redhat.com>
3345 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3347 gdbarch.h, gdbarch.c: Re-generate.
3348 * infcmd.c (default_print_registers_info): Update reference.
3349 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3350 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3351 * sh-tdep.c (sh_gdbarch_init): Ditto.
3352 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3353 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3355 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3357 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3358 cfi_init_extra_frame_info.
3359 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3360 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3362 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3363 target where necessary. Add more comments and remove the ones
3364 that don't provide any useful information.
3366 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3367 deprecated_read_register_dummy with
3368 frame_unwind_unsigned_register.
3370 * i386-tdep.c (i386_extract_struct_value_address): Use
3371 regcache_raw_read_unsigned instead of
3372 regcache_cooked_read_unsigned since we know that the register
3373 we're reading isn't a pseudo register. Rename variable 'val' into
3374 the more descriptive 'addr'.
3376 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3377 (x86_64_push_return_address): Add comment.
3378 (x86_64_pop_frame): Make static.
3379 (examine_argument): Clarify comment.
3380 (x86_64_skip_prologue): Make prolog_expact variable static.
3382 * dwarf2cfi.c: Fix some formatting problems.
3383 (context_cpy, read_encoded_pointer): Clarify comments.
3385 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3386 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3387 i386 target back into x86_64_gdbarch_init. Add some comments and
3388 remove meaningless ones.
3390 2002-10-25 Andrew Cagney <cagney@redhat.com>
3392 * complaints.h (struct deprecated_complaint): Rename `struct
3394 * complaints.c (complain): Update.
3395 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3396 incorrect comment indicating that "symfile.h" was being included
3397 for the `struct complaint' definition.
3398 * remote-vx.c: Update.
3399 * objc-lang.c: Update.
3400 * xcoffread.c: Update.
3402 * mdebugread.c: Update.
3403 * stabsread.c: Update.
3404 * dwarf2read.c: Update.
3405 * dwarfread.c: Update.
3406 * elfread.c: Update.
3407 * coffread.c: Update.
3408 * stabsread.h: Update.
3409 * dbxread.c: Update.
3410 * buildsym.c: Update.
3411 * gdbtypes.c: Update.
3412 * macrotab.c: Update.
3414 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3416 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3417 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3418 (x86_64_init_abi): ...new function.
3420 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3421 * i386v-nat.c: Include "i386-tdep.h".
3423 2002-10-25 Andrew Cagney <cagney@redhat.com>
3425 * gdbtypes.c (address_space_name_to_int): Update.
3426 (address_space_int_to_name): Update.
3427 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3428 multi-arch predicate.
3429 (address_class_name_to_type_flags): Ditto.
3430 * gdbarch.h, gdbarch.c: Re-generate.
3432 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3434 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3436 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3438 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3440 * symtab.h (INIT_SAL): Delete macro.
3442 * symtab.c (init_sal): New function.
3444 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3445 to init_sal function call.
3446 (find_sal_from_funcs_and_line): Ditto.
3447 (all_sals_for_line): Ditto.
3448 * breakpoint.c (create_internal_breakpoint): Ditto.
3449 (create_fork_vfork_event_catchpoint): Ditto.
3450 (create_exec_event_catchpoint): Ditto.
3451 (parse_breakpoint_sals): Ditto.
3452 (watch_command_1): Ditto.
3453 (handle_gnu_4_16_catch_command): Ditto.
3454 (clear_command): Ditto.
3455 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3456 * infcmd.c (run_stack_dummy): Ditto.
3457 * infrun.c (process_event_stop_test): Ditto.
3458 (check_sigtramp2): Ditto.
3459 (step_over_function): Ditto.
3460 * linespec.c (decode_line_2): Ditto.
3461 (decode_line_1): Ditto.
3462 * source.c (line_info): Ditto.
3463 * symtab.c (find_pc_sect_line): Ditto.
3465 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3467 * dwarf2cfi.c (struct context)
3468 (struct context_reg): Moved to dwarf2cfi.h
3469 (context_alloc, frame_state_alloc, context_cpy):
3470 Made extern instead of static, removed prototypes.
3471 * dwarf2cfi.h (struct context)
3472 (struct context_reg): New, moved from dwarf2cfi.c
3473 (context_alloc, frame_state_alloc, context_cpy):
3475 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3476 Changed from static to extern.
3477 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3478 (LINUX_SIGCONTEXT_FP_OFFSET)
3479 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3480 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3481 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3482 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3483 set_gdbarch_*() calls now use x86-64 specific functions
3484 instead of DWARF2 CFI ones.
3485 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3486 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3487 (x86_64_init_extra_frame_info): New prototypes.
3489 2002-10-23 David Carlton <carlton@math.stanford.edu>
3491 * linespec.c: #include "parser-defs.h".
3492 Delete prototype for find_template_name_end.
3493 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3495 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3497 * NEWS: add recent mi fixes.
3498 * varobj.c (struct varobj): Add new "updated" flag.
3499 (new_variable): Default "updated" flag to 0.
3500 (varobj_set_value): Set "updated" flag to 1 if value
3502 (varobj_update): Check varobj "updated" flag before
3503 comparing old and refreshed values. Fix for
3506 2002-10-23 David Carlton <carlton@math.stanford.edu>
3508 * parse.c (parse_exp_1): Use BLOCK_START.
3509 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3511 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3513 2002-10-23 David Carlton <carlton@math.stanford.edu>
3515 * symtab.c: Delete cplusplus_hint.
3516 Delete prototype for find_template_name_end.
3518 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3520 * symtab.h: Update comment.
3522 2002-10-23 Michael Snyder <msnyder@redhat.com>
3524 * printcmd.c (address_info): Restore quotes in output.
3525 * valops.c (value_of_local): Restore quotes in error message.
3527 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3529 * symtab.c (symbol_demangled_name): New function.
3530 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3531 turning most of it into a function.
3532 (symbol_demangled_name): Export.
3534 2002-10-23 Michael Snyder <msnyder@redhat.com>
3536 * valops.c (value_of_local): Restore quotes in error message.
3538 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3540 * symtab.c (symbol_init_language_specific): New function.
3541 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3542 turning most of it into a function.
3543 (symbol_init_language_specific): Export.
3545 2002-10-23 David Carlton <carlton@math.stanford.edu>
3547 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3548 (dwarf_attr_name): Ditto.
3549 (dwarf_type_encoding_name): Ditto.
3550 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3551 (process_die): Handle DW_TAG_namespace,
3552 DW_TAG_imported_declaration, DW_TAG_imported_module.
3553 (read_namespace): New function.
3555 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3557 * configure.in: Define NEW_PROC_API on Interix too.
3558 * configure: Regenerate.
3560 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3562 * configure: Regenerate using the proper version of autoconf.
3564 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3566 * findvar.c (read_var_value): Temporarily disable TLS code, until
3567 complete TLS support is added.
3569 2002-10-21 Jim Blandy <jimb@redhat.com>
3570 Elena Zannoni <ezannoni@redhat.com>
3572 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3573 for thread local storage locations.
3574 (struct symbol): Add objfile field.
3575 (SYMBOL_OBJFILE): Define.
3576 * dwarf2read.c (is_thread_local): New static variable.
3577 (new_symbol): If variable is in thread local fill in address class
3578 and objfile appropriately.
3579 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3581 * printcmd.c (address_info): Print the information for thread
3582 local storage variable.
3583 * findvar.c (read_var_value): In case of thread local variable,
3584 defer to the target vector code to compute address.
3586 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3588 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3589 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3591 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3593 * symtab.h (address_class): Rename
3594 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3595 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3596 * printcmd.c (address_info): Ditto.
3597 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3599 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3601 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3602 DBREG_DRX macro to acces debug registers.
3604 * Makefile.in (i386obsd-tdep.o): New target.
3606 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3607 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3609 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3610 * config/i386/obsd.mt: New file.
3611 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3612 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3613 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3614 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3615 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3616 * i386obsd-tdep.c: New file.
3618 2002-10-19 Adam Fedor <fedor@gnu.org>
3620 * objc-exp.y (name_not_typename): Fix invalid comment.
3622 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3624 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3625 to allocate partial syms and macro byte caches.
3627 2002-10-18 David Carlton <carlton@math.stanford.edu>
3629 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3631 2002-10-18 Adam Fedor <fedor@gnu.org>
3633 * stabsread.c (find_name_end): New function.
3634 (define_symbol): Use it.
3636 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3638 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3639 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3640 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3641 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3643 2002-10-17 David Carlton <carlton@math.stanford.edu>
3645 * symfile.h: Add opaque declaration for struct obstack.
3646 Declare obsavestring to take a const char *.
3647 * symfile.c (obsavestring): Make first argument a const char *.
3649 2002-10-16 Adam Fedor <fedor@gnu.org>
3651 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3652 names when matching breakpoints in current file.
3654 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3656 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3657 (read_tag_pointer_type): Add address class support.
3658 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3659 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3661 * gdbarch.h, gdbarch.c: Regenerate.
3662 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3663 (make_type_with_address_space, recursive_type_dump): Add address
3665 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3666 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3667 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3669 2002-10-16 Klee Dienes <kdienes@apple.com>
3671 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3672 to get the last character of a char[] buffer, not
3673 name[sizeof(vptr_name)-1].
3675 2002-10-14 Adam Fedor <fedor@gnu.org>
3677 * symtab.h: New objc_specific struct.
3678 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3679 (SYMBOL_DEMANGLED_NAME): Likewise.
3681 2002-10-14 Adam Fedor <fedor@gnu.org>
3683 * symfile.c (init_filename_language_table): Add ObjC file extension.
3685 2002-10-14 Adam Fedor <fedor@gnu.org>
3687 * utils.c (puts_filtered_tabular): New function.
3688 (fprintf_symbol_filtered): Get ObjC demangled name.
3689 * defs.h (puts_filtered_tabular): Declared.
3691 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3693 * c-lang.h (c_type_print_varspec_prefix): Delete.
3694 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3695 ``need_post_space'' parameter. Adjust all callers.
3697 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3699 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3700 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3701 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3702 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3704 2002-10-13 Adam Fedor <fedor@gnu.org>
3706 * source.c (print_source_lines): Update comments.
3708 2002-10-13 Adam Fedor <fedor@gnu.org>
3710 * valops.c (value_of_local): New function.
3711 (value_of_this): Use it.
3712 * value.h (value_of_local): Declared.
3714 2002-10-13 Adam Fedor <fedor@gnu.org>
3716 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3717 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3719 2002-10-12 Adam Fedor <fedor@gnu.org>
3721 * language.c (binop_result_type): Add language_objc to case.
3722 (integral_type): Likewise.
3723 (character_type): Likewise.
3724 (string_type): Likewise.
3725 (boolean_type): Likewise.
3726 (structured_type): Likewise.
3727 (binop_type_check): Likewise.
3729 2002-10-11 Adam Fedor <fedor@gnu.org>
3731 * printcmd.c (address_info): Print 'self' for ObjC.
3733 2002-10-11 Adam Fedor <fedor@gnu.org>
3735 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3738 2002-10-11 Adam Fedor <fedor@gnu.org>
3740 * language.h (CAST_IS_CONVERSION): Add language_objc.
3742 2002-10-11 Adam Fedor <fedor@gnu.org>
3744 * defs.h (enum language): Add language_objc.
3746 2002-10-11 Klee Dienes <kdienes@apple.com>
3748 * corefile.c (read_memory_typed_address): New function.
3749 * gdbcore.h (read_memory_typed_address): Add prototype.
3750 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3751 to read a value destined for a CORE_ADDR, not read_memory_integer.
3752 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3753 (f77_get_dynamic_lowerbound): Ditto.
3755 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3757 * utils.c (string_to_core_addr): After turning string into
3758 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3759 which will do necessary sign-extension, etc.
3761 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3763 * c-exp.y (THIS): Delete token and grammar rule.
3764 (yylex): Don't return THIS.
3765 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3766 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3767 * demangle.c (cplus_markers): Update comment. Put '$'
3768 first. Remove CPLUS_MARKER.
3769 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3770 * jv-exp.y (THIS): Delete token and grammar rule.
3771 (yylex): Don't return THIS.
3772 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3773 * objc-exp.y (THIS): Delete token and grammar rule.
3774 (yylex): Don't return THIS.
3775 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3776 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3777 (read_member_functions): Likewise for opname.
3778 (read_tilde_fields): Use is_cplus_marker.
3780 * defs.h (CPLUS_MARKER): Don't define.
3781 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3782 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3783 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3784 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3785 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3787 * config/i386/tm-i386v4.h: Delete file.
3788 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3789 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3790 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3791 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3792 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3793 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3794 * config/i386/i386v4.mt (TM_FILE): Likewise.
3795 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3797 2002-10-10 Marko Mlinar <markom@opencores.org>
3799 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3800 accidentially not commited 2002-10-09
3801 * gdbarch.h, gdbarch.c: Re-generate.
3803 2002-10-09 Marko Mlinar <markom@opencores.org>
3805 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3806 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3807 * gdbarch.h, gdbarch.c: Re-generate.
3809 2002-10-08 Petr Sorfa <petrs@caldera.com>
3811 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3813 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3814 so we can work on more than one compilation unit at a time. This
3815 helps prepare GDB to handle inter-CU die references.
3816 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3817 the code to be defined before struct comp_unit_head.
3818 (comp_unit_head): Added new members - offset, cu_head,
3819 begin_die, next and dwarf2_abbrevs.
3820 (dwarf2_abbrevs): Removed single static var; now member of
3821 struct comp_unit_head.
3822 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3824 (psymtab_to_symtab_1): Changed to work with the new
3825 struct comp_unit_head.
3826 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3827 constructs the dwarf2_abbrevs[] inside the cu_header.
3828 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3829 dwarf2_abbrev table to clean up.
3830 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3831 handling of dwarf2_abbrevs inside the cu_header.
3832 (read_partial_die): Now supports the call to the new
3833 dwarf2_lookup_abbrev.
3834 (read_full_die): Now supports the call to the new
3835 dwarf2_lookup_abbrev.
3837 2002-10-06 Christopher Faylor <cgf@redhat.com>
3839 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3840 insure that shell variables, such as "transformed_name" are propagated
3841 to later shell statements in rule.
3843 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3845 * config/i386/nm-i386sco.h: Add protection against
3846 multiple-inclusion. Include "i386/nm-i386v.h".
3847 (REGISTER_U_ADDR): Remove define.
3848 (i386_register_u_addr): Remove prototype.
3850 2002-10-04 Michael Snyder <msnyder@redhat.com>
3852 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3853 before treating it as a single-step event.
3855 2002-10-03 Adam Fedor <fedor@gnu.org>
3857 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3858 (objc_demangle): Remove assignment in if statements, Replace
3860 (add_msglist): Likewise.
3861 (end_msglist): Likewise.
3862 (complare_selectors): Likewise.
3863 (selectors_info): Likewise.
3864 (compare_classes): Likewise.
3865 (classes_info): Likewise.
3866 (print_object_command): Likewise.
3867 (find_objc_msgcall_submethod): Replace PTR with void *.
3868 * objc-lang.h: Remove check for __STDC__.
3870 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3872 * ui-out.h (ui_out_field_fmt_int): New prototype.
3873 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3874 of field width and alignment.
3875 * stack.c (print_frame_info_base): When printing frame level, use
3876 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3879 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3881 * MAINTAINERS: Add self to Write After Approval list.
3883 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3885 * infcmd.c (interrupt_target_command_wrapper): Delete.
3886 (interrupt_target_command): Make non static.
3887 (nofp_registers_info): Make static.
3888 * stack.c (return_command_wrapper): Delete.
3889 (return_command): Make non static.
3891 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3893 * event-top.c (gdb_setup_readline): New function. Code moved from
3894 _initialize_event_loop().
3895 (_initialize_event_loop): Call gdb_setup_readline().
3897 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3899 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3900 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3901 * gdbarch.h, gdbarch.c: Re-generate.
3903 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3906 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3908 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3909 of fill_in_vptr_fieldno.
3911 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3913 * inferior.h (registers_info, stepi_command, nexti_command,
3914 continue_command, interrupt_target_command): Export from infcmd.c.
3915 * frame.h (args_info, selected_frame_level_changed_hook,
3916 return_command): Export from stack.c.
3917 * v850ice.c (stepi_command, nexti_command, continue_command): use
3918 prototypes from inferior.h.
3919 * tracepoint.c (registers_info, args_info, locals_info): Use
3920 prototypes from frame.h and inferior.h.
3921 * Makefile.in (mi-main.o): Add dependency on frame.h.
3923 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3925 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3926 value in register 3 adjusted by ppc_gp0_regnum.
3928 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3930 2002-10-02 Marko Mlinar <markom@opencores.org>
3932 * MAINTAINERS: Add myself to the Write After Approval list.
3934 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3936 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3937 of the section for the N64 ABI, fixed.
3939 * config/mips/tm-irix6.h: Include solib.h.
3941 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3943 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3946 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3948 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3949 and that "mi0" syntax has been removed.
3951 2002-09-30 David Carlton <carlton@math.stanford.edu>
3953 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3954 * ppc-sysv-tdep.c: #include "gdb_string.h".
3955 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3958 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3960 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3961 "vrsave"'s register number.
3963 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3965 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3966 use frame_unwind_signed_register to obtain the PC.
3967 (mips_frame_chain): Handle a generic dummy frame.
3968 (mips_init_extra_frame_info): When a generic dummy frame, don't
3969 re-compute the frame base.
3970 (mips_pop_frame): Handle generic dummy frames.
3971 (mips_gdbarch_init): When generic dummy frames, set
3972 use_generic_dummy_frames, push_dummy_frame to
3973 generic_push_dummy_frame, pc_in_call_dummy to
3974 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3975 generic_save_dummy_frame_tos.
3977 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3979 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3980 against TOP when TOP was explictly set.
3981 (generic_push_dummy_frame): Set TOP to zero.
3983 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3985 * event-loop.c (start_event_loop): Rename variable 'result' to
3986 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3988 2002-09-30 Keith Seitz <keiths@redhat.com>
3990 * gdb-events.sh (selected_thread_changed): New event.
3991 * gdb-events.c: Regenerated.
3992 * gdb-events.h: Regenerated.
3994 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3996 * MAINTAINERS: Add self to Write After Approval list.
3998 2002-09-30 Fernando Nasser <fnasser@redhat.com>
4000 * disasm.c: New file.
4001 * disasm.h: New file.
4002 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4003 (compare_lines): Ditto.
4004 (dump_insns): Ditto.
4005 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4007 (do_assembly_only): Ditto.
4008 (do_disassembly): Renamed to gdb_disassembly and moved to
4009 disasm.c. Sdded uiout argument.
4010 * Makefile.in: Add new files. Reorder SFILES list. Update
4011 dependencies. Include libgdb.a later in the insight executable.
4013 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4015 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4016 bfd/elf64-alpha-fbsd.c.
4018 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4020 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4023 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4025 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4027 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4029 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4030 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4031 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4032 (S_msg_sig_post_reply): Ditto.
4034 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
4036 * sh-tdep.c (sh_use_struct_convention): Use definition according
4038 (sh_push_arguments): Store in register with correct endianess.
4039 (sh_default_store_return_value): Ditto.
4040 (sh_gdbarch_init): Set sizeof long double to 8.
4042 2002-09-27 Mark Kettenis <kettenis@gnu.org>
4044 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4045 Fix some whitespace problems.
4047 2002-09-27 David Carlton <carlton@math.stanford.edu>
4049 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4050 (mcore-tdep.o): Ditto.
4051 (ns32k-tdep.o): Ditto.
4052 (ns32knbsd-tdep.o): Ditto.
4054 (vax-tdep.o): Ditto.
4055 * cris-tdep.c: #include "gdb_string.h"
4056 * mcore-tdep.c: Ditto.
4057 * ns32k-tdep.c: Ditto.
4058 * ns32knbsd-tdep.c: Ditto.
4060 * vax-tdep.c: Ditto.
4062 2002-09-27 David Carlton <carlton@math.stanford.edu>
4064 * config/djgpp/fnchange.lst: Add entries for
4065 gdb/testsuite/gdb.c++/m-static files.
4067 2002-09-27 Jim Wilson <wilson@redhat.com>
4069 * MAINTAINERS: Add myself to the Write After Approval list.
4071 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4073 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4076 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4078 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4081 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4083 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4084 (rs6000_struct_return_address): Delete variable.
4085 (rs6000_store_struct_return): Update.
4086 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4087 deprecated_extract_struct_value_address.
4088 (rs6000_frame_align): New function.
4089 (rs6000_gdbarch_init): Set frame_align.
4091 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4093 From Grace Sainsbury <graces@redhat.com>:
4094 * Makefile.in (gdbtk-main.o): New target.
4095 (gdb.o): New target.
4097 (main.o): Update dependencies.
4098 (gdb$(EXEEXT)): Add gdb.o.
4099 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4100 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4101 (SUBDIR_GDBTK_CLEAN): Set.
4102 (install-gdbtk): Install the insight binary.
4103 (uninstall-gdbtk): New target.
4104 (all-gdbtk, clean-gdbtk): New rule.
4105 * top.c (use_windows): Default to zero.
4106 * main.c: Include "main.h".
4108 (struct captured_main_args): Delete.
4109 (gdb_main): New function.
4113 2002-09-25 Andrew Cagney <cagney@redhat.com>
4115 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4116 (frame_map_regnum_to_name): New function.
4117 (frame_map_name_to_regnum): New function.
4118 * frame.h (frame_map_name_to_regnum): Declare.
4119 (frame_map_regnum_to_name): Declare.
4120 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4121 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4122 * parse.c: Do not include "builtin-regs.h".
4123 (target_map_name_to_register): Delete function.
4124 (write_dollar_variable): Use frame_map_name_to_regnum.
4125 * parser-defs.h (target_map_name_to_register): Delete declaration.
4126 * expprint.c: Include "frame.h".
4127 (print_subexp): Use frame_map_regnum_to_name.
4128 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4129 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4131 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4133 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4134 wasn't saved, and the next innermost frame is a dummy, return the
4135 dummy frame's link register.
4137 2002-09-24 Jim Blandy <jimb@redhat.com>
4139 Fix from Paul Breed:
4140 * main.c (captured_main): Add a `break' after the case for 'b'.
4142 2002-09-24 Keith Seitz <keiths@redhat.com>
4144 * varobj.c (c_type_of_child): Use get_target_type instead
4145 of TYPE_TARGET_TYPE.
4147 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4149 * source.c (get_current_or_default_source_symtab_and_line): Remove
4151 (set_default_source_symtab_and_line): New function. Attempts to
4152 determine a source file to list lines from if one is not currently
4154 (get_current_source_symtab_and_line): Initialize sal.pc and
4156 (set_current_source_symtab_and_line): Mark argument as const.
4157 * source.h: Update declarations and comments.
4158 * linespec.c (decode_line_1): Replace call to removed routine above.
4159 * stack.c (print_frame_info_base): Ditto.
4160 * cli/cli-cmds.c (edit_command): Ditto.
4161 (list_command): Ditto.
4163 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4165 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4166 sal.pc and sal.end fields.
4167 (get_current_or_default_source_symtab_and_line): Ditto.
4168 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4169 so we do not cause a new source symtab to be searched for (reverting an
4170 unintentional change from the 2002-09-20 patch).
4171 * scm-lang.c (scm_unpac): Ditto.
4173 2002-09-21 Andrew Cagney <cagney@redhat.com>
4175 * complaints.c (symfile_explanations): Remove new-line from
4176 ``isolated_message''.
4177 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4178 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4180 2002-09-20 Nick Clifton <nickc@redhat.com>
4182 * NEWS: Announce that V850EA ISA is no longer supported.
4183 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4185 2002-09-20 David Carlton <carlton@math.stanford.edu>
4187 * Makefile.in (c-lang.o): Correct dependencies.
4188 (utils.o): Gather dependencies.
4190 * c-lang.c: #include "gdb_string.h"
4192 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4194 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4195 * cli/cli-cmds.c (list_command): New function. Implements the new
4197 (_init_cli_cmds): Add new command definition.
4198 * gdb.1: Document edit command.
4199 * doc/gdb.texinfo: Document edit command.
4201 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4203 * source.c: Make global variables current_source_symtab and
4204 current_source_line static.
4205 (list_command): Moved to cli/cli-cmds.c.
4206 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4207 (get_first_line_listed): New accessor function.
4208 (get_lines_to_list): New accessor function.
4209 (get_current_source_symtab_and_line): New function. Retrieves the
4210 position in the source code that we consider current.
4211 (get_current_or_default_source_symtab_and_line): New function.
4212 Like the above but attempts to determine a default position if one
4213 is not currently defined.
4214 (set_current_source_symtab_and_line): New function. Sets the source
4215 code position considered current and returns the previously set one.
4216 (clear_current_source_symtab_and_line): Reset stored information about
4217 a current source line.
4218 (_initialize_source): Remove registration for the "list" command and
4220 * source.h: Add declarations for the new functions above.
4221 * symtab.h: Remove declarations for the global variables mentioned
4223 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4224 obtain current source line.
4225 * linespec.c (decode_line_1): Ditto.
4226 * macroscope.c (default_macro_scope): Ditto.
4227 * scm-lang.c (scm_unpac): Ditto.
4228 * stack.c (print_frame_info_base): Ditto.
4229 * symfile.c (clear_symtab_users): Ditto.
4230 * symtab.c (decode_line_spec): Ditto.
4231 * cli/cli-cmds.c (list_command): Moved here from source.c.
4232 (ambiguous_line_spec): Moved here from source.c.
4233 (_init_cli_cmds): Add definition for "list" and its alias.
4234 * Makefile.in: Update dependencies.
4236 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4238 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4239 with what gcc thinks is correct.
4241 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4243 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4244 multiple register push instruction.
4246 2002-09-19 Jim Blandy <jimb@redhat.com>
4248 Add support for distinct host and target character sets.
4249 * charset.c, charset.h: New files.
4250 * c-exp.y: #include "charset.h".
4251 (yylex): Convert character and string literals to the target
4252 character set, before returning them as the semantic value of the
4254 * c-lang.c: #include "charset.h".
4255 (c_emit_char): Use charset-specific methods to recognize
4256 characters with backslash escape forms, to decide which characters
4257 to print literally and which to print using numeric escape
4258 sequences, and to convert target characters to host characters
4260 * utils.c: #include "charset.h".
4261 (no_control_char_error): New function.
4262 (parse_escape): Use charset-specific methods to recognize
4263 backslash escapes, parse `control character' notation, and convert
4264 characters from the host character set to the target character set.
4265 * configure.in: Set the default host character set.
4266 Check where to find iconv, and what its argument types might be.
4267 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4268 * Makefile.in (SFILES): List charset.c.
4269 (COMMON_OBS): List charset.o.
4270 (charset.o): New rule.
4271 (charset_h): New header dependency variable.
4272 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4273 (LIBICONV): New variable, set by configure.
4274 (CLIBS): Include $(LIBICONV) here.
4275 * aclocal.m4, config.in, configure: Regenerated.
4277 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4279 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4282 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4284 * gdb_mbuild.sh: New file.
4286 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4288 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4290 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4292 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4293 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4294 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4295 valops.c, value.h: Revert previous change.
4297 2002-09-18 Michael Snyder <msnyder@redhat.com>
4299 Preliminary support for Objective-C:
4300 * defs.h (language_objc): New enum value.
4301 (puts_filtered_tabular): Declaration only, exported from utils.c.
4302 (skip_quoted): Delete, declared in completer.h.
4303 * c-exp.y: Include completer.h.
4306 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4307 New operator enum values.
4308 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4309 * language.c (binop_result_type): Handle language_objc case.
4310 (integral_type, character_type, string_type, boolean_type,
4311 structured_type, binop_type_check): Ditto.
4312 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4313 (struct objc_specific): Add to general_symbol_info.
4314 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4315 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4316 * parser-defs.h (struct objc_class_str): New struct type.
4317 (start_msglist, end_msglist, add_msglist): Declaration only,
4318 exported from objc-lang.c.
4319 * value.h (value_of_local, value_nsstring,
4320 call_function_by_hand_expecting_type): Exported from valops.c.
4321 * valops.c (find_function_addr): Export.
4322 (call_function_by_hand_expecting_type): New function.
4323 (value_of_local): New function.
4324 * symfile.c (init_filename_language_table): Add ".m" extension
4326 * utils.c (puts_filtered_tabular): New function.
4327 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4328 (set/show demangle): Extend help-string to refer to ObjC.
4329 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4330 * stabsread.c (symbol_reference_defined): Objective-C symbols
4331 may contain colons: make allowances when scanning stabs strings
4333 (objc_find_colon): New function.
4334 * printcmd.c (address_info): If language == objc then print
4335 "self" instead of "this".
4336 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4337 OP_NSSTRING, and OP_SELF.
4338 (prefixify_subexp): Ditto.
4339 * source.c (print_source_lines): Mention objc in comment.
4340 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4343 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4345 * complaints.h: Update copyright.
4346 (struct complaints): Declare.
4347 (struct complaint): Make `message' constant.
4348 (internal_complaint): Declare.
4349 (complaint): Declare.
4350 (complaint_root): Delete declaration.
4351 (symfile_complaints): Delete declaration.
4352 (struct complaints): Add opaque declaration.
4353 (clear_complaints): Add a complaints parameter.
4354 * complaints.c: Update copyright.
4355 (enum complaint_series): Define.
4356 (complaint_root): Delete.
4357 (struct complaints): Define.
4358 (complaint_sentinel, symfile_complaint_book): New variables.
4359 (symfile_explanations, symfile_complaints): New variables.
4361 (get_complaints): New function.
4362 (vcomplaint): New function.
4363 (complaint): New function.
4364 (internal_complaint): New function.
4365 (complain): Call vcomplain with symfile_complaint.
4366 (clear_complaints): Rewrite.
4367 (_initialize_complaints): Use add_setshow_command.
4368 * Makefile.in (complaints.o): Update dependencies.
4369 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4370 to call to clear_complaints.
4371 (new_symfile_objfile, reread_symbols): Ditto.
4372 (oldsyms_complaint): Delete.
4373 (empty_symtab_complaint, unknown_option_complaint): Delete.
4374 (free_named_symtabs): Use complaint instead of complain.
4376 2002-09-18 Michael Snyder <msnyder@redhat.com>
4378 Contributed by Apple Computer, Inc. Merged with current sources
4379 by Adam Fedor <fedor@doc.com> [cagney].
4381 * objc-lang.c: First clean-up round: comments, indentation.
4382 * objc-lang.h: Ditto.
4383 * objc-lang.y: Ditto.
4385 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4387 * maint.c (maintenance_internal_error): Print the parameter as the
4389 (maintenance_internal_warning): New function.
4390 (_initialize_maint_cmds): Add command `maint internal-warning'.
4392 * defs.h (internal_warning, internal_vwarning): Declare.
4393 * utils.c (struct internal_problem): Define.
4394 (internal_vproblem): New function.
4395 (internal_warning): New function.
4396 (internal_vwarning): New function.
4397 (internal_warning_problem, internal_error_problem): New variables.
4398 (internal_verror): Just call internal_vproblem.
4400 2002-09-18 Michael Snyder <msnyder@redhat.com>
4402 * objc-lang.c: New file, support for Objective-C.
4403 Preliminary check-in, not yet integrated into gdb.
4404 * objc-lang.h: New file.
4405 * objc-exp.y: New file.
4407 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4409 * infrun.c (signal_stop_update): Convert definition to ISO C.
4410 (signal_print_update): Ditto.
4411 (signal_pass_update): Ditto.
4412 * inflow.c (terminal_save_ours): Ditto.
4414 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4417 * config/djgpp/fnchange.lst: Handle name clashes between
4418 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4421 * i386-linux-tdep.h: Fix tipo.
4423 2002-09-18 Adam Fedor <fedor@gnu.org>
4425 * MAINTAINERS: Add myself to the Write After Approval list.
4427 2002-09-18 Jim Blandy <jimb@redhat.com>
4429 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4430 texthigh and textlow to reader-specific structs caused
4431 objfile_relocate to miss them. This is fixable, but the work that
4432 the change was supposed to prepare GDB for never got done anyway.
4434 2002-09-18 David Carlton <carlton@math.stanford.edu>
4436 * MAINTAINERS: Alphabetize Write After Approval list.
4438 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4441 * values.c (value_static_field): Call read_var_value.
4443 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4445 * valops.c (hand_function_call): Align the initial stack pointer
4446 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4447 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4449 * mips-tdep.c (mips_frame_align): New function.
4450 (mips_gdbarch_init): Set frame_align.
4451 * gdbarch.sh (FRAME_ALIGN): New method.
4452 * gdbarch.h, gdbarch.c: Re-generate.
4454 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4456 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4459 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4461 * NEWS: Mention that MIPS $fp behavior changed.
4462 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4463 reference to FP_REGNUM.
4464 (mipsnbsd_cannot_store_register): Ditto.
4465 * mips-linux-nat.c: Update copyright.
4466 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4467 (mips_linux_cannot_store_register): Ditto.
4468 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4469 * config/mips/tm-mips.h: Update copyright.
4470 (FP_REGNUM): Delete macro.
4471 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4472 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4473 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4474 (mips_r3041_reg_names, mips_r3051_reg_names)
4475 (mips_r3081_reg_names): Replace "fp" with "".
4478 2002-09-17 Theodore A. Roth <troth@verinet.com>
4480 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4481 generic_read_register_dummy() (PR gdb/703).
4482 (avr_push_return_address): #if 0 out unused vars.
4483 (avr_gdbarch_init): Enable use of avr_push_return_address().
4485 2002-09-17 Michael Snyder <msnyder@redhat.com>
4487 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4488 RTE will take care of it.
4490 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4492 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4493 invalid, return SP_REGNUM.
4495 2002-09-17 Michael Snyder <msnyder@redhat.com>
4497 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4498 point registers without sign extension.
4500 2002-09-17 Andrew Cagney <cagney@redhat.com>
4502 * blockframe.c (deprecated_read_register_dummy): Rename
4503 generic_read_register_dummy.
4504 * frame.c (frame_unwind_signed_register): New function.
4505 (frame_unwind_unsigned_register): New function.
4506 * frame.h (frame_unwind_signed_register): Declare.
4507 (frame_unwind_unsigned_register): Declare.
4508 (deprecated_read_register_dummy): Rename
4509 generic_read_register_dummy.
4511 * h8300-tdep.c (h8300_frame_chain): Update.
4512 (h8300_frame_saved_pc): Update.
4513 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4514 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4515 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4516 (s390_frame_chain): Update.
4517 * v850-tdep.c (v850_find_callers_reg): Update.
4518 (v850_frame_saved_pc): Update.
4519 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4520 (m32r_find_callers_reg): Update.
4521 (m32r_frame_saved_pc): Update.
4522 * sh-tdep.c (sh_find_callers_reg): Update.
4523 (sh64_get_saved_pr): Update.
4524 (sh_init_extra_frame_info): Update.
4525 (sh_init_extra_frame_info): Update.
4526 (sh64_init_extra_frame_info): Update.
4527 (sh64_init_extra_frame_info): Update.
4528 * mcore-tdep.c (mcore_find_callers_reg): Update.
4529 (mcore_frame_saved_pc): Update.
4530 (mcore_init_extra_frame_info): Update.
4531 * i386-tdep.c (i386_frame_saved_pc): Update.
4532 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4533 (ia64_init_extra_frame_info): Update.
4534 (ia64_init_extra_frame_info): Update.
4535 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4536 * cris-tdep.c (cris_init_extra_frame_info): Update.
4537 * avr-tdep.c (avr_frame_chain): Update.
4538 (avr_init_extra_frame_info): Update.
4539 (avr_frame_saved_pc): Update.
4540 * arm-tdep.c (arm_find_callers_reg): Update.
4541 (arm_init_extra_frame_info): Update.
4542 (arm_frame_saved_pc): Update.
4544 2002-09-17 Tom Tromey <tromey@redhat.com>
4546 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4549 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4551 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4552 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4554 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4557 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4559 * osfsolib.c: Remove file, replaced by solib-osf.c.
4560 * Makefile.in: Remove compilation rules for osfsolib.c.
4562 2002-09-16 David Carlton <carlton@math.stanford.edu>
4564 * cp-valprint.c (cp_print_class_method): Correct args to
4565 check_stub_method_group.
4567 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4569 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4570 `set architecture'. Unify naming convention of functions.
4571 (h8300_skip_prologue): Improve prologue analysis.
4572 (h8300_push_arguments): Rewritten to more closely match GCC's
4573 bizarre argument-passing behavior, along with the comment describing
4575 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4576 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4577 sim, remote-e7000.c, remote-hms.c and remote.c
4579 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4581 * i386-tdep.c (gdb_print_insn_i386): Removed.
4582 (i386_print_insn): New function.
4583 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4584 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4587 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4589 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4592 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4594 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4595 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4596 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4598 2002-09-13 Christopher Faylor <cgf@redhat.com>
4600 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4602 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4604 * gdbtypes.c (check_stub_method): Make static.
4605 (check_stub_method_group): New function.
4606 * gdbtypes.h: Update prototypes.
4607 * cp-support.c: New file.
4608 * cp-support.h: New file.
4610 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4611 (update_method_name_from_physname): New function.
4612 (read_member_functions): Correct method names for operators
4613 and v3 constructors/destructors. Separate v2 constructors and
4615 * Makefile.in (stabsread.o): Update dependencies.
4616 (SFILES): Add cp-support.c.
4617 (COMMON_OBS): Add cp-support.o.
4618 (cp_support_h, cp-support.o): Add.
4620 * cp-valprint.c (cp_print_class_method): Call
4621 check_stub_method_group instead of check_stub_method. Remove
4623 * p-valprint.c (pascal_object_print_class_method): Likewise.
4624 * valops.c (search_struct_method): Likewise.
4625 (find_method_list, value_struct_elt_for_reference): Likewise.
4627 2002-09-13 Andrew Cagney <cagney@redhat.com>
4629 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4630 * gdbarch.h, gdbarch.c: Regenerate.
4632 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4634 * frame.c (find_saved_register): Delete function.
4635 * frame.h (find_saved_register): Delete declaration.
4638 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4640 * mips-tdep.c (read_next_frame_reg): Re-hack using
4641 frame_register_unwind.
4643 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4645 * mips-tdep.c (mips_get_saved_register): Re-hack using
4646 frame_register_unwind.
4648 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4650 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4651 vector. Will be useful for Interix.
4652 * gdbarch.h, gdbarch.c: Regenerate.
4654 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4655 name of the malloc function by NAME_OF_MALLOC.
4657 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4659 * value.h (find_function_in_inferior): Add const keyword to
4660 one of the parameters. Allows us to invoke this function with
4662 * valops.c (find_function_in_inferior): Likewise.
4664 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4666 * exec.c (xfer_memory): Fix compilation warning with old versions
4668 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4670 2002-09-12 David Carlton <carlton@math.stanford.edu>
4672 * symtab.h: Run through gdb_indent.h.
4673 Add 2002 to Copyright year list.
4675 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4677 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4679 * MAINTAINERS: Add myself to write after approval list.
4681 2002-09-11 J. Brobecker <brobecker@gnat.com>
4683 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4685 2002-09-11 J. Brobecker <brobecker@gnat.com>
4687 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4690 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4692 * procfs.c (do_detach): Clear current signal, not just fault.
4693 Corrects problem with breakpoint trap signal leaking to detached
4696 2002-09-10 Michael Snyder <msnyder@redhat.com>
4698 * buildsym.c (finish_block): Protect against null pointer.
4700 2002-09-10 Andrew Cagney <cagney@redhat.com>
4702 * infcmd.c (default_print_registers_info): Send all output to
4703 ``file'' instead of ``gdb_stdout''.
4705 2002-09-10 Michael Snyder <msnyder@redhat.com>
4707 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4708 LONGEST, and use signed register read (addresses are sign-
4711 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4713 * event-loop.c (gdb_do_one_event): Make public.
4714 * event-loop.h (gdb_do_one_event): Declare.
4716 2002-09-10 Jeff Law <law@redhat.com>
4718 * infttrace.c (child_resume): Simplify and rework to avoid
4721 2002-09-09 Fred Fish <fnf@intrinsity.com>
4723 * printcmd.c (print_scalar_formatted): "len" is the number of
4724 target bytes, NOT the number of target bits.
4726 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4728 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4729 * top.c (init_main): Set rl_terminal_name.
4731 2002-09-08 Aidan Skinner <aidan@velvet.net>
4733 * ada-lang.c (ada_array_bound, ada_type_match,
4734 _initialize_ada_language): Fix K&R definitions.
4735 * ada-tasks.c (get_current_task): Fix K&R definitions.
4736 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4738 2002-09-07 Christopher Faylor <cgf@redhat.com>
4740 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4743 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4745 * i386-tdep.c (i386_register_virtual_type,
4746 i386_register_convertible, i386_register_convert_to_virtual,
4747 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4748 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4749 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4750 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4751 Don't set push_arguments twice.
4753 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4754 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4755 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4756 sigtramp_end to NULL.
4757 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4759 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4761 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4764 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4765 * gdbarch.h, gdbarch.c: Re-generate.
4766 * blockframe.c (find_pc_sect_partial_function): Convert to use
4767 SIGTRAMP_START_P predicate.
4769 2002-09-05 Michael Snyder <msnyder@redhat.com>
4771 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4772 generic_dummy_frame method and old method. Also distinguish
4773 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4774 (arm_extract_return_value): Use new regcache method.
4776 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4777 adjustment that doesn't conform to the ABI.
4778 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4779 saved regcache, not from current regcache.
4781 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4783 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4786 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4788 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4789 if arm_apcs_32 is false.
4791 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4793 GDB 5.3 branch created.
4795 2002-09-03 Theodore A. Roth <troth@verinet.com>
4797 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4798 generic_unwind_get_saved_register.
4800 2002-09-03 David Carlton <carlton@math.stanford.edu>
4802 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4803 argument (PR gdb/653). Update call to smash_to_method_type.
4804 (read_structure_scope): Update call to dwarf2_add_member_fn.
4806 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4808 * x86-64-linux-tdep.c: Include gdb_string.h
4809 * x86-64-linux-nat.c: Ditto.
4811 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4813 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4814 when YYDEBUG is set to 1.
4815 * c-exp.y: Likewise.
4816 * f-exp.y: Likewise.
4817 * jv-exp.y: Likewise.
4818 * m2-exp.y: Likewise.
4819 * p-exp.y: Likewise.
4821 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4823 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4825 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4826 solib_svr4_fetch_link_map_offsets to
4827 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4828 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4829 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4830 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4831 solib-svr4.o, and solib-legacy.o.
4832 * config/i386/tm-nbsd.h: Include solib.h.
4834 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4836 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4837 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4838 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4839 comment noting that this needs its own target configuration.
4840 * config/i386/nbsd.mt: New file.
4841 * config/i386/nbsdaout.mt: Remove.
4842 * config/i386/nbsdelf.mt: Ditto.
4843 * config/i386/tm-nbsdaout.h: Ditto.
4845 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4847 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4848 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4849 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4851 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4852 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4853 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4855 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4857 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4858 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4859 * i386-tdep.h (i386bsd_init_abi): New prototype.
4860 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4861 function declaration.
4862 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4863 for NetBSD-a.out or NetBSD-ELF.
4864 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4865 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4866 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4867 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4869 (i386nbsd_pc_in_sigtramp): New function.
4870 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4871 i386nbsd_pc_in_sigtramp.
4872 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4873 and i386nbsdelf_init_abi OS ABI handlers.
4874 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4875 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4877 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4879 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4880 registers if the target really has them.
4882 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4884 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4887 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4889 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4891 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4892 (alphanbsd_skip_sigtramp_frame): New functions.
4893 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4894 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4895 to alphanbsd_sigcontext_addr.
4897 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4899 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4901 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4902 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4903 nbsd_pc_in_sigtramp.
4904 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4905 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4906 * nbsd-tdep.c: Include gdb_string.h.
4907 (nbsd_pc_in_sigtramp): New function.
4908 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4909 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4910 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4911 ppcnbsd_pc_in_sigtramp.
4912 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4913 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4914 shnbsd_pc_in_sigtramp.
4915 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4916 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4917 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4919 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4921 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4922 watchpoints to NULL.
4923 (insert_breakpoints): set val field of watchpoints if NULL.
4926 2002-08-29 Jim Blandy <jimb@redhat.com>
4928 * symtab.c (lookup_symbol_aux): In the cases where we find a
4929 minimal symbol of an appropriate name and use its address to
4930 select a symtab to read and search, use `name' (as passed to us)
4931 as the demangled name when searching the symtab's global and
4932 static blocks, not the minsym's name.
4934 2002-08-29 Keith Seitz <keiths@redhat.com>
4936 * stack.c (print_frame_info_base): Always set current_source_symtab
4937 and current_source_line.
4939 2002-08-29 Donn Terry <donnte@microsoft.com>
4941 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4943 2002-08-28 Keith Seitz <keiths@redhat.com>
4945 * stack.c (select_frame): Add FIXME concerning selected-frame
4947 (select_frame_command): Send selected-frame-level-changed
4948 event notification, but only if the level actually changed.
4949 (up_silently_base): Add selected-frame-level-changed event
4951 (down_silently_base): Likewise.
4953 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4955 * Makefile.in: Update dependencies for all gdb/*.c files.
4957 2002-08-27 Tom Tromey <tromey@redhat.com>
4959 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4960 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4961 Update dependencies.
4962 * i387-tdep.c: Include gdb_string.h.
4963 * osabi.c: Likewise.
4964 * i386-linux-nat.c: Likewise.
4965 * lin-lwp.c: Likewise.
4966 * ax-gdb.c: Likewise.
4967 * signals/signals.c: Likewise.
4968 * jv-valprint.c: Likewise.
4969 * p-lang.c: Likewise.
4970 * c-valprint.c: Likewise.
4971 * cp-abi.c: Likewise.
4973 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4975 * cli/cli-script.h (copy_command_lines): Export.
4976 * breakpoint.c: Include cli/cli-script.h.
4977 * Makefile.in (breakpoint.o): Update dependencies.
4979 2002-08-26 Michael Snyder <msnyder@redhat.com>
4981 * breakpoint.c (insert_breakpoints): Protect all references
4982 to 'process_warning'. Shorten long lines.
4984 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4986 * cli/cli-script.c (copy_command_lines): New function.
4987 * defs.h (copy_command_lines): Export.
4988 * testsuite/gdb.base/commands.exp: New tests for commands
4989 attached to a temporary breakpoint, and for commands that
4990 delete the breakpoint they are attached to.
4992 2002-08-26 Michael Snyder <msnyder@redhat.com>
4994 * breakpoint.c (bpstat_stop_status): Instead of copying the
4995 pointer to the breakpoint commands struct, make a new copy
4996 of the struct and point to that.
4997 (bpstat_clear): Free the commands struct.
4998 (bpstat_clear_actions): Free the commands struct.
4999 (bpstat_do_actions): Free the command actions. Also execute
5000 the local cleanups, instead of deleting them.
5001 (delete_breakpoint): Leave the commands field of the bpstat
5002 chain alone -- it will be freed later.
5004 2002-08-26 Kevin Buettner <kevinb@redhat.com>
5006 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5007 deleted in 2002-08-20 commit. This function is still used by
5010 2002-08-26 Keith Seitz <keiths@redhat.com>
5012 * gdb-events.sh: Add selected-frame-level-changed event.
5013 * gdb-events.c: Regenerated.
5014 * gdb-events.h: Regenerated.
5016 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
5019 * inflow.c (terminal_save_ours): New function to save terminal
5021 * inferior.h (terminal_save_ours): Declare.
5022 * target.c (debug_to_terminal_save_ours): New function.
5023 (cleanup_target): Defaults to_terminal_save_ours.
5024 (update_current_target): Inherit to_terminal_save_ours.
5025 (setup_target_debug): Set to_terminal_save_ours.
5026 * target.h (target_terminal_save_ours): New to save terminal settings.
5027 (target_ops): New member to_terminal_save_ours.
5028 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5029 * hpux-thread.c (init_hpux_thread_ops): Likewise.
5030 * inftarg.c (init_child_ops): Likewise.
5031 * m3-nat.c (init_m3_ops): Likewise.
5032 * procfs.c (init_procfs_ops): Likewise.
5033 * wince.c (init_child_ops): Likewise.
5034 * win32-nat.c (init_child_ops): Likewise.
5035 * sol-thread.c (init_sol_thread_ops): Likewise.
5037 2002-08-26 Mark Kettenis <kettenis@gnu.org>
5039 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5040 use regcache_* functions.
5041 (i386_gdbarch_init): Set store_return_value instead of
5042 deprecated_store_return_value.
5044 * regcache.c (regcache_raw_write_signed,
5045 regcache_raw_write_unsigned): New functions.
5046 * regcache.h (regcache_raw_write_signed,
5047 regcache_raw_write_unsigned): New prototypes.
5049 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5051 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5052 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5053 source file dependencies. Cleanup corresponding generator rules.
5055 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5057 * regcache.h (register_offset_hack): Declare.
5058 (regcache_cooked_read_using_offset_hack): Declare.
5059 (regcache_cooked_write_using_offset_hack): Declare.
5061 * regcache.c (register_offset_hack): New function.
5062 (regcache_cooked_read_using_offset_hack): New function.
5063 (regcache_cooked_write_using_offset_hack): New function.
5064 (regcache_dump): Check that the registers, according to their
5065 offset, are packed hard against each other.
5066 (cooked_xfer_using_offset_hack): New function.
5068 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5070 * regcache.c (struct regcache_descr): Add field register_type.
5071 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5073 (init_regcache_descr): Initialize register_type. Pass the descr
5074 to init_legacy_regcache_descr. Use register_type instead of
5075 REGISTER_VIRTUAL_TYPE.
5076 (register_type): New function.
5077 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5078 * regcache.h (register_type): Declare.
5080 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5082 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5083 instead of deprecated_store_return_value. Fix fallout from
5084 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5086 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5088 * regcache.c (max_register_size): New function.
5089 (init_legacy_regcache_descr): Ensure that max_register_size is
5090 large enough for REGISTER_VIRTUAL_SIZE.
5091 * regcache.h (max_register_size): Declare.
5093 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5095 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5097 (e500_extract_return_value): Change type of valbuf pointer to
5100 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5102 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5105 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5106 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5107 long long) to prevent compiler warning on 64-bit systems.
5109 2002-08-23 Andrew Cagney <cagney@redhat.com>
5111 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5112 (DEPRECATED_STORE_RETURN_VALUE): New method.
5113 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5114 * gdbarch.h, gdbarch.c: Re-generate.
5116 * values.c (set_return_value): Pass current_regcache to
5118 * arch-utils.h (legacy_store_return_value): Declare.
5119 * arch-utils.c (legacy_store_return_value): New function.
5120 (legacy_extract_return_value): Update parameters.
5122 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5124 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5125 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5126 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5127 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5128 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5129 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5130 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5131 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5132 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5133 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5135 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5136 * i386-tdep.c (i386_extract_return_value): Update.
5137 * arch-utils.c (legacy_extract_return_value): Update.
5138 * frv-tdep.c (frv_gdbarch_init): Update.
5139 * cris-tdep.c (cris_gdbarch_init): Update.
5140 * d10v-tdep.c (d10v_gdbarch_init): Update.
5141 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5142 * m68k-tdep.c (m68k_gdbarch_init): Update.
5143 * mcore-tdep.c (mcore_gdbarch_init): Update.
5144 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5145 * s390-tdep.c (s390_gdbarch_init): Update.
5146 * sparc-tdep.c (sparc_gdbarch_init): Update.
5147 * sh-tdep.c (sh_gdbarch_init): Update.
5148 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5149 * v850-tdep.c (v850_gdbarch_init): Update.
5150 * avr-tdep.c (avr_gdbarch_init): Update.
5151 * ia64-tdep.c (ia64_gdbarch_init): Update.
5152 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5153 * vax-tdep.c (vax_gdbarch_init): Update.
5154 * alpha-tdep.c (alpha_gdbarch_init): Update.
5155 * arm-tdep.c (arm_gdbarch_init): Update.
5156 * mips-tdep.c (mips_gdbarch_init): Update.
5157 * i386-tdep.c (i386_gdbarch_init): Update.
5159 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5161 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5162 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5164 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5166 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5169 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5171 * infrun.c (handle_inferior_event): Move a comment outside of a
5172 function call, in order to avoid indent reformatting this part
5173 of the code in an unreadable way.
5175 2002-08-23 Grace Sainsbury <graces@redhat.com>
5177 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5178 when breakpoints fail. Move general breakpoint error messages to
5180 * breakpoint.c (insert_breakpoints): Change warnings when
5181 breakpoints are nto inserted to specify the type. Remove call to
5182 memory_error when hardware breakpoints can't be inserted. Remove
5183 multiple calls to warning so all messages are sent to the user at
5185 (delete_breakpoints): Make insert error messsages more explicit.
5187 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5189 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5190 gdbserver/ChangeLog.
5192 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5194 * i386-tdep.c: Include "objfiles.h".
5195 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5196 skip_trampoline_code.
5197 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5198 (CPLUS_MARKER): Define to '.'.
5200 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5202 (linux_corefile_thread_callback): Increase args->num_notes.
5203 (linux_make_note_section): Initialize thread_args.num_notes, and
5204 use it to determine whether notes for any threads were created.
5206 2002-08-23 Donn Terry <donnte@microsoft.com>
5208 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5209 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5211 (write_with_trace): Conditionalize out the switch branch handling
5212 PCSHOLD if the corresponding macro is not defined. Likewise for
5213 PRSABORT and PRSTOP.
5214 This change will be needed by the Interix port.
5216 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5218 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5219 write_register wherever possible instead of manipulating the
5220 register bytes directly.
5221 Assign VALUE_CONTENTS to a variable and use that.
5222 The GPR numbers are now dependent on the architecture.
5224 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5226 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5228 (skip_prologue): Add support for BookE/e500 instructions.
5229 (e500_extract_return_value): New function.
5230 (frame_get_saved_regs): Add support for saving ev registers and
5232 (e500_store_return_value): New function.
5233 (rs6000_gdbarch_init): Move up default intializations of
5234 deprecated_extract_return_value and store_return_value. Overwrite
5235 init of store_return_value with e500 specific version.
5236 Set extract_return_value for e500.
5238 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5240 * blockframe.c (generic_call_dummy_register_unwind): Use
5241 regcache_cooked_read to catch cases in which the variable is
5242 stored in a pseudo register.
5244 2002-08-22 Andrew Cagney <cagney@redhat.com>
5246 * NEWS: Mention that the i960 has been made obsolete.
5247 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5249 (remote-nrom.o): Obsolete target.
5250 (remote-nindy.o, i960-tdep.o): Ditto.
5251 * remote-nrom.c: Make file obsolete.
5252 * remote-nindy.c, remote-vx960.c: Ditto.
5253 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5254 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5255 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5256 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5257 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5258 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5259 i960-*-vxworks* obsolete.
5260 * MAINTAINERS: Note that the i960 is obsolete.
5262 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5264 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5265 detach to allow reinitialization.
5267 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5269 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5272 2002-08-22 Jim Blandy <jimb@redhat.com>
5274 * coffread.c (coff_symfile_read): Don't try to read the line
5275 number table from disk if the image file doesn't have a symbol
5276 table; we'll never actually look at the info anyway, and Windows
5277 ships DLL's with bogus file offsets for the line number data.
5279 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5281 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5284 2002-08-21 Michael Snyder <msnyder@redhat.com>
5286 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5287 (MSYMBOL_SIZE): Replace macro with function.
5288 (DEFAULT_MIPS_TYPE): Delete unused macro.
5289 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5290 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5292 2002-08-21 Jim Blandy <jimb@redhat.com>
5294 * valops.c (value_cast): Simplify and correct logic for doing a
5295 static cast from a pointer to a base class to a pointer to a
5298 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5300 * infcmd.c (default_print_registers_info): Replace
5302 (registers_info): Use gdbarch_print_registers_info instead of
5304 * inferior.h (default_print_registers_info): Replace
5306 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5307 (DO_REGISTERS_INFO): Change to a predicate function.
5308 * gdbarch.h, gdbarch.c: Regenerate.
5310 2002-08-21 Keith Seitz <keiths@redhat.com>
5312 * gdb-events.sh: Add target-changed event.
5313 * gdb-events.c: Regenerated.
5314 * gdb-events.c: Regenerated.
5315 * valops.c (value_assign): Add target-changed event notification
5316 to inlval_register, lval_memory, and lval_reg_frame_relative.
5318 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5320 * NEWS: Add an entry regarding the improvement of the next/step
5321 operation on Alpha Tru64 multi-processor machines.
5323 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5325 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5327 * Makefile.in: Update all _h macro definitions.
5328 * Makefile.in (install-gdbtk): Move to install section.
5329 (rdi-share/libangsd.a): Move to end of file.
5331 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5333 * frame.c (frame_register_unwind): When a register, set addrp to
5334 the register's byte.
5336 2002-08-20 Michael Snyder <msnyder@redhat.com>
5338 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5339 used locally, so move them from the target machine header to here.
5340 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5341 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5343 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5345 2002-08-20 Andrew Cagney <cagney@redhat.com>
5347 * NEWS: Mention that the Apollo line was made obsolete.
5348 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5349 m68*-hp-hpux* obsolete.
5350 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5351 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5352 * buildsym.c (make_blockvector): Make static.
5353 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5354 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5355 (ALLDEPFILES): Remove dstread.c.
5356 (dstread.o): Obsolete make rule.
5357 * dstread.c: Makefile obsolete.
5359 * config/m68k/hp300hpux.mt: Ditto.
5360 * config/m68k/hp300hpux.mh: Ditto.
5361 * config/m68k/hp300bsd.mt: Ditto.
5362 * config/m68k/hp300bsd.mh: Ditto.
5363 * config/m68k/apollo68b.mt: Ditto.
5364 * config/m68k/apollo68v.mh: Ditto.
5365 * config/m68k/apollo68b.mh: Ditto.
5367 2002-08-20 Michael Snyder <msnyder@redhat.com>
5369 * mips-tdep.c (mips_in_return_stub): Make static.
5370 (mips_gdbarch_init): Set in_solib_return_trampoline.
5371 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5373 2002-08-20 Michael Snyder <msnyder@redhat.com>
5375 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5376 * gdbarch.c, gdbarch.h: Regenerate.
5377 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5379 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5381 2002-08-20 Michael Snyder <msnyder@redhat.com>
5383 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5384 (mips_gdbarch_init): Set skip_trampoline_code,
5385 in_solib_call_trampoline.
5386 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5387 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5389 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5391 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5393 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5394 vector type for ev registers.
5395 (e500_pseudo_register_read): New function.
5396 (e500_pseudo_register_write): New function.
5397 (e500_dwarf2_reg_to_regnum): New function.
5398 (PPC_UISA_NOFP_SPRS): New macro.
5399 (PPC_EV_REGS): New macro.
5400 (PPC_GPRS_PSEUDO_REGS): New macro.
5401 (registers_e500): New register set for e500.
5402 (variants): Add e500 variant.
5403 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5404 before setting architectural dependent variations. Initialize ev
5405 registers numbers. Add case for e500 architecture. Set the
5406 number of pseudo registers.
5408 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5410 * rs6000-tdep.c: Clean up comments.
5412 2002-08-20 Andrew Cagney <cagney@redhat.com>
5414 * h8300-tdep.c: Re-indent file.
5416 2002-08-20 Jim Blandy <jimb@redhat.com>
5418 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5421 2002-08-20 Keith Seitz <keiths@redhat.com>
5423 * breakpoints.c (watch_command_1): Use internal breakpoint
5424 when setting a watchpoint_scope breakpoint.
5426 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5428 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5429 (build_builtin_type_vec64i): Ditto.
5430 (build_builtin_type_vec128): Ditto.
5431 (build_builtin_type_vec128i): Ditto.
5433 2002-08-19 Michael Snyder <msnyder@redhat.com>
5435 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5436 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5437 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5438 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5439 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5440 CALL_DUMMY_ADDRESS): Delete.
5441 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5442 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5443 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5444 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5445 push_return_address.
5446 (mips_register_raw_size, mips_eabi_use_struct_convention,
5447 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5448 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5449 mips_init_extra_frame_info, mips_eabi_push_arguments,
5450 mips_n32n64_push_arguments, mips_push_return_address,
5451 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5452 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5454 2002-08-19 Michael Snyder <msnyder@redhat.com>
5456 * mips-tdep.c (mips_frame_num_args): New function.
5457 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5458 frame_saved_pc, frame_args_address, frame_locals_address,
5459 frame_num_args, and frame_args_skip.
5460 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5461 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5462 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5463 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5465 2002-08-20 Michael Snyder <msnyder@redhat.com>
5467 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5468 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5469 * mips-tdep.c (mips_store_struct_return): New function.
5470 (mips_extract_struct_value_address): New function.
5471 (mips_gdbarch_init): Set store_struct_return and
5472 extract_struct_value_address.
5474 2002-08-20 David Carlton <carlton@math.stanford.edu>
5476 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5477 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5478 (read_file_scope): Check that line_header is nonzero before
5479 decoding macro information.
5481 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5483 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5484 flag the general-purpose registers as floating-point on targets
5485 that don't support the floating-point registers.
5487 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5489 * rs6000-tdep.c (altivec_register_p): Delete.
5490 (rs6000_do_altivec_registers): Delete.
5491 (rs6000_altivec_registers_info): Delete.
5492 (rs6000_do_registers_info): Delete.
5493 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5494 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5496 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5498 * infcmd.c (do_registers_info): Print vector registers in hex
5500 (print_vector_info): Check that printing registers
5502 (print_float_info): Ditto.
5504 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5506 * mips-tdep.c (mips_gdbarch_init): Update.
5507 (mips_o32_extract_return_value): Rewrite.
5508 (mips_o32_store_return_value): Rewrite.
5509 (mips_o32_xfer_return_value): New function.
5510 (mips_xfer_register): Tweak debug print message. Allow for
5511 buf_offset when dumping the value transfered.
5513 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5515 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5516 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5517 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5518 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5519 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5521 2002-08-14 Michael Snyder <msnyder@redhat.com>
5523 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5525 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5527 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5529 (P): New macro to define a register as a pseudo register.
5530 (R, R4, R8, R16, FR32, R64, R0): Updated.
5531 (struct variant): Add new fields for number of pseudo registers
5532 and number of total registers.
5533 (tot_num_registers): New macro replacing....
5534 (num_registers): ...deleted macro.
5535 (num_registers): New function.
5536 (num_pseudo_registers): New function.
5537 (variants): Update all variants to intialize new fields correctly.
5538 Postpone initialization of number of pseudo regs and real regs.
5539 (init_variants): New function.
5540 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5543 2002-08-19 David Carlton <carlton@math.stanford.edu>
5545 * valops.c (search_struct_field): Change error message to treat
5546 return value of 0 from value_static_field as meaning that field is
5548 (value_struct_elt_for_reference): Ditto.
5549 * values.c (value_static_field): Treat an unresolved location the
5550 same as a nonexistent symbol. Fix PR gdb/635.
5551 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5552 enclosed. Fix PR gdb/574.
5553 * MAINTAINERS: Add self to Write After Approval list.
5555 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5557 * mips-tdep.c (mips_xfer_register): New function.
5558 (mips_n32n64_extract_return_value): Rewrite.
5559 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5560 instead of deprecated_extract_return_value.
5562 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5564 * rs6000-tdep.c (TDEP): Delete macro.
5565 (branch_dest): Replace use of TDEP macro with its body.
5566 (rs6000_pop_frame): Ditto.
5567 (rs6000_push_arguments): Ditto.
5568 (rs6000_skip_trampoline_code): Ditto.
5569 (rs6000_frame_saved_pc): Ditto.
5570 (rs6000_frame_chain): Ditto.
5571 (rs6000_register_name): Ditto.
5572 (rs6000_register_byte): Ditto.
5573 (rs6000_register_raw_size): Ditto.
5574 (rs6000_register_virtual_type): Ditto.
5575 (rs6000_register_convertible): Ditto.
5576 (rs6000_convert_from_func_ptr_addr): Ditto.
5578 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5580 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5582 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5583 MIPS_LINUX_JB_ELEMENT_SIZE.
5584 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5585 for MAX_REGISTER_RAW_SIZE arrays.
5586 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5587 MIPS_LINUX_JB_ELEMENT_SIZE.
5589 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5591 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5593 2002-08-19 Aidan Skinner <aidan@velvet.net>
5595 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5596 ada-valprint.c ada-tasks.c.
5597 (YYFILES): Add ada-exp.y.
5598 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5599 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5600 (ada-exp.tab.o): New target.
5602 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5604 * regcache.c (regcache_xfer_part): New function.
5605 (regcache_raw_read_part): New function.
5606 (regcache_raw_write_part): New function.
5607 (regcache_cooked_read_part): New function.
5608 (regcache_cooked_write_part): New function.
5609 * regcache.h (regcache_raw_read_part): Declare.
5610 (regcache_raw_write_part): Declare.
5611 (regcache_cooked_read_part): Declare.
5612 (regcache_cooked_write_part): Declare.
5614 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5616 * remote.c (remote_open_1): Add async_p.
5617 (remote_async_open_1): Delete.
5618 (open_remote_target): Delete.
5619 (remote_open, extended_remote_open): Update calls to remote_open_1.
5620 (remote_async_open, extended_remote_async_open): Call
5621 remote_open_1 instead of remote_async_open_1.
5623 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5625 * blockframe.c: Fix a few coding standard violations.
5627 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5629 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5631 * config/i386/tm-i386sco5.h: ... here. File removed.
5632 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5634 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5635 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5636 (TM_FILE): Set to tm-i386.h.
5637 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5638 * config/i386/tm-i386v.h: Remove file.
5639 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5640 instead of "i386/tm-i386v.h".
5641 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5642 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5644 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5645 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5648 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5650 * config/i386/nm-i386v.h: Add protection against
5652 (i386_register_u_addr): Remove prototype.
5653 (register_u_addr): New prototype.
5654 (REGISTER_U_ADDR): Redefine accordingly.
5655 * i386v-nat.c: Improve several comments.
5656 (i386_register_u_addr): Change signature and rename to
5657 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5660 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5662 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5663 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5664 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5665 deprecated_extract_return_value.
5666 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5667 rename mips_o32o64_push_arguments.
5668 (mips_gdbarch_init): Update.
5669 (mips_extract_return_value): Delete.
5670 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5671 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5672 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5673 (mips_n32n64_extract_return_value): Clone
5674 mips_extract_return_value.
5675 (mips_store_return_value): Delete.
5676 (mips_o32_store_return_value): Clone mips_store_return_value.
5677 (mips_o64_store_return_value): Clone mips_store_return_value.
5678 (mips_eabi_store_return_value): Clone mips_store_return_value.
5679 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5681 2002-08-18 Aidan Skinner <aidan@velvet.net>
5683 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5684 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5686 2002-08-18 Aidan Skinner <aidan@velvet.net>
5688 * ada-lang.c: Run through gdb_indent.sh.
5689 * ada-lang.h: Run through gdb_indent.sh.
5690 * ada-tasks.c: Run through gdb_indent.sh.
5691 * ada-typeprint.c: Run through gdb_indent.sh.
5692 * ada-valprint.c: Run through gdb_indent.sh.
5694 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5696 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5699 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5701 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5703 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5704 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5706 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5707 write_register_gen instead of write_register_bytes.
5709 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5710 i[3456]-*-osf1mk* configurations have been made obsolete.
5711 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5712 i[3456]86-*-osf1mk* hosts obsolete.
5713 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5715 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5716 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5717 config/i386/i386m3.mt, config/i386/nm-m3.h,
5718 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5719 config/i386/i386mk.mh, config/i386/i386mk.mt,
5720 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5722 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5723 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5724 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5726 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5728 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5729 (hppa_value_returned_from_stack): Declare.
5730 (hppa_extract_return_value): Declare.
5731 * config/pa/hppa.mt: New file.
5732 * configure.tgt: Recognize hppa*-*-*.
5733 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5735 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5737 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5740 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5742 * top.c (gdb_rl_operate_and_get_next): Make sure
5743 operate-and-get-next functions correctly even when the history
5744 list is completely filled.
5746 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5748 * MAINTAINERS (Target Instruction Set Architectures): Rename
5749 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5750 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5751 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5752 already listed under Host/Native.
5754 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5755 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5758 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5760 * config/ia64/ia64.mt: New file.
5761 * config/alpha/alpha.mt: New file.
5762 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5763 ia64-linux-gnu. Mention that ia64-elf is broken.
5764 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5766 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5768 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5769 generic_func_frame_valid instead of func_frame_valid.
5771 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5773 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5774 procfs appears to be broken when debugging on multi-processor
5775 machines. So enable software single stepping in order to avoid
5776 using the procfs interface to do next/step operations, using
5777 internal breakpoints instead.
5779 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5780 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5781 make this pc address equal to the value it would have if the
5782 system stepping capability was used. Also set a new flag used
5783 to ensure that we don't readjust the PC one more time later.
5785 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5786 address by DECR_PC_AFTER_BREAK when software single step is
5787 in use for this architecture, as this has already been taken
5788 care of in handle_inferior_event().
5790 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5792 * infrun.c (handle_inferior_event): Minor reformatting, to make
5793 a rather long condition expression easier to read.
5795 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5797 * Makefile.in (gdbtk.o): Move to end of file.
5798 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5799 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5800 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5801 (gdbtk-wrapper.o, gdbres.o): Ditto.
5803 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5805 * Makefile.in (copying.o): Separate out compile rule.
5806 (hpux-thread.o, procfs.o, signals.o): Ditto.
5807 (v850ice.o, z8k-tdep.o): Ditto.
5808 (tui-file.o): Move to TUI section.
5809 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5810 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5812 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5814 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5815 skip_trampoline_code, for better namespace-proofing.
5817 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5819 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5821 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5823 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5825 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5826 signal, check whether we hit a breakpoint before checking for a
5827 single step breakpoint. Otherwise, GDB fails to notice that a
5828 breakpoint has been hit when stepping onto a breakpoint.
5830 2002-08-16 Keith Seitz <keiths@redhat.com>
5832 * gdb-events.sh (clear_gdb_event_hooks): New function.
5833 * gdb-events.c: Regenerate.
5834 * gdb-events.h: Regenerate.
5836 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5838 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5839 not_a_sw_breakpoint.
5840 * breakpoint.h (bpstat_stop_status): Add parameter names.
5842 2002-08-16 Grace Sainsbury <graces@redhat.com>
5844 * remote.c (remote_insert_hw_breakpoint)
5845 (remote_remove_hw_breakpoint): Fix calculation of length field
5848 2002-08-15 Michael Snyder <msnyder@redhat.com>
5850 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5851 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5852 (supply_fpregset): Ditto.
5854 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5855 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5856 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5857 (TARGET_READ_SP): Delete.
5858 (DO_REGISTERS_INFO): Delete.
5859 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5861 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5862 from macros to functions.
5864 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5865 (mips_register_convertible, mips_register_convert_to_virtual,
5866 mips_register_convert_to_raw): Make static.
5867 (mips_read_sp): New function.
5868 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5869 (mips_do_registers_info): Make static.
5870 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5871 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5872 (mips_register_convert_from_type, mips_register_convert_to_type):
5874 (mips_gdbarch_init): Set up function_start_offset,
5875 register_virtual_size, pc_in_sigtramp.
5877 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5879 * infcmd.c (vector_info): New function.
5880 (_initialize_infcmd): Add command "info vector".
5881 (print_vector_info): New function.
5883 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5884 * gdbarch.h, gdbarch.c: Regenerate.
5886 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5888 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5889 ``print_all''. Only print vector registers when ``print_all''.
5891 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5893 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5894 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5896 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5897 Add `args' parameter.
5898 * gdbarch.h, gdbarch.c: Regenerate.
5900 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5902 * infcmd.c (float_info): Call print_float_info.
5903 (print_float_info): New function. By default, print the
5904 floating-point registers.
5906 * arch-utils.h (default_print_float_info): Delete declaration.
5907 * arch-utils.c (default_print_float_info): Delete function.
5909 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5911 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5914 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5917 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5918 * configure.host: Make i[3456]86-*-aix host obsolete.
5919 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5920 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5921 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5922 config/i386/xm-i386aix.h: Make files obsolete.
5923 * i386aix-nat.c: Make file obsolete.
5924 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5925 (i386aix-nat.o): Make target obsolete.
5927 * config/i386/nm-gnu.h: Removed.
5928 * config/i386/nm-i386gnu.h: New file.
5929 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5930 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5932 * config/i386/tm-i386gnu.h: ... here. Removed.
5933 * config/i386/xm-i386gnu.h: Removed.
5934 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5935 (NAT_FILE): Set to nm-i386gnu.h.
5936 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5937 * i386-tdep.c: New file.
5938 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5939 (i386gnu-tdep.o): Specify dependencies.
5941 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5943 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5944 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5945 Adjust a few comments to reflect reality a bit closer.
5946 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5947 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5948 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5949 target_insert_watchpoint, target_remove_watchpoint):
5951 * config/i386/nm-i386sco5.h: ... here.
5952 (kernel_u_size): Add prototype. Improve a few comments and add
5953 protection against multiple inclusion.
5955 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5958 * uw-thread.c (SP_ARG0): Define if not already defined.
5959 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5961 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5963 * config/i386/tm-i386.h: Don't include "regcache.h".
5965 * i387-tdep.h (i387_print_float_info): New prototype.
5966 * i387-tdep.c (print_i387_value, print_i387_ext,
5967 print_i387_status_word, print_i387_control_word): Add `struct
5968 ui_file *' argument and use it for output.
5969 (i387_print_float_info): Renamed from i387_float_info. Add
5970 `struct gdbarch *' and `struct ui_file *' arguments and use the
5972 * i386-tdep.c: Include "i387-tdep.h".
5973 (i386_gdbarch_init): Set print_float_info.
5974 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5975 (FLOAT_INFO): Remove define.
5977 2002-08-13 Michael Snyder <msnyder@redhat.com>
5979 * mips-tdep.c (mips_push_arguments): Rename to
5980 mips_eabi_push_arguments, and tune for EABI.
5981 (MIPS_REGS_HAVE_HOME_P): Delete.
5982 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5983 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5984 Delete references to mips_regs_have_home_p.
5986 2002-08-14 Keith Seitz <keiths@redhat.com>
5988 * Makefile.in (install-gdbtk): Create insight plugin directory.
5989 Install plugins.tcl file.
5991 2002-08-14 Keith Seitz <keiths@redhat.com>
5993 * configure.in: Move SUBDIRS to near top of the file so that
5994 --enable options may add things to it.
5995 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5996 * configure: Regenerate.
5998 2002-08-13 Michael Snyder <msnyder@redhat.com>
6000 * mips-tdep.c (mips_o32o64_push_arguments): New function,
6001 cloned from mips_push_arguments, tuned for o32/o64 ABI.
6002 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6004 2002-08-13 Andrew Cagney <ac131313@redhat.com>
6006 * vax-tdep.c (vax_get_saved_register): Delete function.
6007 (vax_gdbarch_init): Update.
6008 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6009 (ns32k_gdbarch_init): Update.
6010 * alpha-tdep.c (alpha_get_saved_register): Delete function.
6011 (alpha_gdbarch_init): Update.
6013 2002-08-13 Andrew Cagney <cagney@redhat.com>
6015 * regcache.c (init_regcache_descr): Overallocate the
6016 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6017 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6019 (set_register_cached): Add range checking assertions. Use
6022 2002-08-13 Mark Kettenis <kettenis@gnu.org>
6024 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6025 numbers for MMX registers.
6027 2002-08-13 Andrew Cagney <cagney@redhat.com>
6029 * i386-tdep.c (i386_gdbarch_init): Use
6030 generic_unwind_get_saved_register.
6032 2002-08-13 Kevin Buettner <kevinb@redhat.com>
6034 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6035 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6037 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6038 Delete. Add comment regarding this now-deleted target method.
6040 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6042 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6043 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6044 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6045 real PC and the page number (if it's within the memory bank window).
6046 (m68hc11_pseudo_register_write): Likewise when saving.
6047 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6048 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6049 (m68hc11_register_raw_size): And use 32-bit for it.
6050 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6051 16K memory bank is used by the prog; also use the virtual pc.
6053 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6055 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6056 (m68hc11_gdbarch_init): Install it in gdbarch.
6057 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6058 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6059 (MSYMBOL_SIZE): New for documentation.
6060 (insn_return_kind): Enum to specify how a function returns.
6061 (frame_extra_info): Cleanup and record the return mode.
6062 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6063 register in address computation.
6064 (m68hc11_get_return_insn): New to obtain the return instruction used
6066 (m68hc11_frame_init_saved_regs): Take into account the return
6067 instruction used by the function for far and interrupt functions.
6068 (m68hc11_init_extra_frame_info): Take into account page register.
6069 (m68hc11_frame_args_address): Adjust according to the return mode.
6070 (show_regs): Print page register only when it's used.
6072 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6074 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6075 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6076 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6078 (m68hc11_register_raw_size): Likewise.
6080 2002-08-13 Andrew Cagney <cagney@redhat.com>
6082 * i386-tdep.c (i386_register_name): Handle mmx registers.
6083 (mmx_regnum_p): New function.
6084 (i386_mmx_names): New array.
6085 (mmx_num_regs): New variable.
6086 (i386_pseudo_register_read): New function.
6087 (i386_pseudo_register_write): New function.
6088 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6090 * regcache.c (regcache_raw_read_unsigned): New function.
6091 (regcache_raw_read_signed): New function.
6092 * regcache.h (regcache_raw_read_unsigned): Declare.
6093 (regcache_raw_read_signed): Declare.
6095 2002-08-13 Andrew Cagney <cagney@redhat.com>
6097 * regcache.c (regcache_raw_read_as_address): Delete function.
6098 (regcache_cooked_read_signed): New function.
6099 (regcache_cooked_read_unsigned): New function.
6100 * regcache.h (regcache_cooked_read_signed): Declare.
6101 (regcache_cooked_read_unsigned): Declare.
6102 (regcache_raw_read_as_address): Delete declaration.
6104 * blockframe.c (generic_read_register_dummy): Use
6105 regcache_cooked_read_unsigned.
6106 * i386-tdep.c (i386_extract_struct_value_address): Use
6107 regcache_cooked_read_unsigned.
6109 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6112 double sizes according to ELF ABI flags.
6113 (gdbarch_tdep): Record elf_flags.
6115 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6117 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6118 (m6812_prolog): They can appear in 68HC12 function prologue.
6119 (m68hc11_frame_chain): Cleanup.
6121 2002-08-12 Andrew Cagney <cagney@redhat.com>
6123 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6125 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6126 (i386_linux_register_raw_size): Delete function.
6127 (i386_linux_init_abi): Update.
6128 * i386-tdep.c (i386_register_raw_size): Delete function.
6129 (i386_register_byte): Delete function.
6130 (i386_gdbarch_init): Update.
6131 (i386_register_size): Delete array.
6132 (i386_register_offset): Delete array.
6134 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6135 (REGISTER_RAW_SIZE): Delete macro.
6136 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6137 (REGISTER_BYTE): Delete macro.
6139 2002-08-11 Aidan Skinner <aidan@velvet.net>
6141 * ada-lang.c (ada_lookup_partial_symbol)
6142 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6143 prototype names so that grep ^func works properly.
6145 * ada-lang.c (ada_array_element_type)
6146 (ada_lookup_partial_symbol): Fix typos in parameter list.
6148 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6149 Fix prototype names so that grep ^func works properly.
6151 2002-08-10 Andrew Cagney <cagney@redhat.com>
6152 Elena Zannoni <ezannoni@redhat.com>
6153 Martin M. Hunt <hunt@redhat.com>
6155 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6156 (build_builtin_type_vec128i): Set the vector bit.
6157 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6158 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6159 (build_builtin_type_vec64): New function.
6160 (build_builtin_type_vec64i): New function.
6161 (build_gdbtypes): Initialize builtin_type_vec64 and
6162 builtin_type_vec64i.
6164 2002-08-09 Andrew Cagney <cagney@redhat.com>
6166 * regcache.c (regcache_dump): Compare the register offset
6168 * arch-utils.c (generic_register_byte): New function.
6169 * arch-utils.h (generic_register_byte): Declare.
6170 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6171 * gdbarch.h, gdbarch.c: Regenerate.
6173 2002-08-09 Andrew Cagney <cagney@redhat.com>
6175 * regcache.c: Include "gdbcmd.h"
6176 (_initialize_regcache): Add commands "maintenance print
6177 registers", "maintenance print raw-registers" and "maintenance
6178 print cooked-registers".
6179 (enum regcache_dump_what): Define.
6180 (dump_endian_bytes): New function.
6181 (regcache_dump): New function.
6182 (regcache_print): New function.
6183 (maintenance_print_registers): New function.
6184 (maintenance_print_raw_registers): New function.
6185 (maintenance_print_cooked_registers): New function.
6186 * Makefile.in (regcache.o): Update dependencies.
6188 2002-08-09 Michael Snyder <msnyder@redhat.com>
6190 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6191 (mips_push_arguments): Correct some comments. Use paddr_nz
6192 for printing addresses in debug output. Replace static
6193 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6194 (mips_n32n64_push_arguments): New function, cloned from
6195 mips_push_arguments and tuned for the n32/n64 ABI.
6196 (mips_push_register): Buffer needs dynamic allocation.
6197 (mips_print_register): Ditto.
6198 (do_gp_register_row): Ditto.
6199 (mips_store_return_value): Ditto.
6200 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6202 2002-08-09 Don Howard <dhoward@redhat.com>
6204 * memattr.c (mem_info_command): Print special case of upper bound
6205 as max CORE_ADDR + 1.
6207 2002-08-08 Michael Snyder <msnyder@redhat.com>
6209 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6210 returns structs by ref if they're too big to fit in two registers.
6212 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6214 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6216 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6217 mips_find_saved_regs().
6218 (mips_pop_frame): Likewise.
6220 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6222 * blockframe.c (frame_saved_regs_register_unwind): Revise
6223 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6226 2002-08-09 Grace Sainsbury <graces@redhat.com>
6228 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6229 T-packets; the 'a' is not taken as a register number.
6230 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6231 (remote_stopped_data_address): New functions; add to target
6233 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6234 prototypes to match other implementations of this
6235 function. replace integer argument with pointer -- the length
6236 field in the Z-packet is the length of what is pointed to or 1 if
6237 pointer is null. Add to target vector.
6238 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6242 * remote.c (remote_wait): Add support to extract optional
6243 watchpoint information from T-packet. Ignore unrecognized
6244 optional info in T-packet.
6245 (remote_async_wait): Ditto.
6247 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6249 * cli/cli-dump.c: Change fopen modes to use binary open modes
6250 as defined in include/fopen-bin.h throughout.
6252 2002-08-08 Michael Snyder <msnyder@redhat.com>
6254 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6256 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6258 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6259 assertion failure by returning early after a warning.
6261 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6263 * mips-tdep.c (mips_find_saved_regs): Make static.
6264 (mips_frame_init_saved_regs): New function.
6265 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6266 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6267 (mips_find_saved_regs): Delete declaration.
6269 2002-08-08 Grace Sainsbury <graces@redhat.com>
6271 * remote.c (remote_wait, remote_async_wait): Change
6272 thread_num from int to ULONGEST.
6273 (unpack_varlen_hex): Change result parameter from
6274 int * to ULONGEST *.
6276 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6278 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6279 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6281 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6283 2002-08-08 Andrew Cagney <cagney@redhat.com>
6285 * gcore.c (override_derive_stack_segment): Delete variable.
6286 (preempt_derive_stack_segment): Delete function.
6287 (derive_stack_segment): Delete function.
6288 (default_derive_stack_segment): Renamed to derive_stack_segment.
6289 (override_derive_heap_segment): Delete variable.
6290 (preempt_derive_heap_segment): Delete function.
6291 (derive_heap_segment): Delete function.
6292 (default_derive_heap_segment): Rename to derive_heap_segment.
6294 2002-08-06 Michael Snyder <msnyder@redhat.com>
6296 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6297 * mips-tdep.c (mips_EABI_use_struct_convention,
6298 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6299 New functions. (mips_use_struct_convention): Delete.
6300 (mips_gdbarch_init): set use_gdbarch_convention.
6302 2002-08-06 Michael Snyder <msnyder@redhat.com>
6304 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6305 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6306 mips_o32_reg_struct_has_addr): New functions.
6307 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6309 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6311 * regcache.c (pseudo_register): Delete function.
6312 (fetch_register): Delete function.
6313 (store_register): Delete function.
6314 (regcache_raw_read, legacy_read_register_gen): Use
6315 target_fetch_registers instead of fetch_register.
6316 (legacy_write_register_gen, regcache_raw_write): Use
6317 target_store_register instead of store_register.
6318 (write_register_bytes): Ditto.
6320 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6321 (STORE_PSEUDO_REGISTER): Delete.
6322 * gdbarch.h, gdbarch.c: Regenerate.
6324 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6326 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6327 write dump file binary.
6329 2002-08-05 Michael Snyder <msnyder@redhat.com>
6331 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6332 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6333 (mips_gdbarch_init): Set N32 target to be mips64.
6335 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6337 * frame.c (find_saved_register): Break out of loop once saved
6338 register address is found. Don't mention sparc in loop comment
6341 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6343 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6344 mips_default_saved_regsize to 8.
6346 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6348 * gcore.c: Do not include <sys/procfs.h>.
6349 * Makefile.in (gcore.o): Update dependencies.
6351 2002-08-06 Andrew Cagney <cagney@redhat.com>
6353 * configure.tgt: Make arc-*-* obsolete.
6354 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6355 * MAINTAINERS: Make arc-elf obsolete.
6356 * arc-tdep.c: Make file obsolete.
6357 * config/arc/arc.mt: Ditto.
6358 * config/arc/tm-arc.h: Ditto.
6360 2002-08-05 Theodore A. Roth <troth@verinet.com>
6362 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6364 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6366 * mcore-tdep.c (mcore_gdbarch_init): Use
6367 generic_unwind_get_saved_register instead of
6368 generic_get_saved_register.
6369 * v850-tdep.c (v850_gdbarch_init): Ditto.
6370 * frv-tdep.c (frv_gdbarch_init): Ditto.
6371 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6372 * s390-tdep.c (s390_gdbarch_init): Ditto.
6373 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6374 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6375 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6377 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6379 * objfiles.h: Add missing #include "symfile.h"
6381 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6383 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6385 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6386 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6389 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6391 * NEWS: Cleanup and nitpick.
6393 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6395 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6397 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6399 * Makefile.in (gdbtk-bp.o): Update dependencies.
6400 (gdbtk-register.o): Ditto.
6401 (gdbtk-varobj.o): Ditto.
6403 2002-08-03 Andrew Cagney <cagney@redhat.com>
6405 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6406 m68hc11_fetch_pseudo_register.
6407 (m68hc11_pseudo_register_write): Replace
6408 m68hc11_store_pseudo_register.
6409 (m68hc11_gdbarch_init): Update.
6411 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6413 * gdbarch.sh: Include "gdb_string.h".
6414 * gdbarch.c: Regenerate.
6416 * regcache.c: Include "gdb_string.h".
6417 * ax-general.c: Ditto.
6419 * std-regs.c: Ditto.
6420 * fbsd-proc.c: Ditto.
6423 * Makefile.in (regcache.o): Update dependencies.
6424 (thread.o, gdbarch.o): Ditto.
6425 (ax-general.o, gdbarch.o): Ditto.
6426 (varobj.o, std-regs.o): Ditto.
6427 (fbsd-proc.o): Specify dependencies.
6429 2002-08-02 Andrew Cagney <cagney@redhat.com>
6431 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6433 (regcache_cooked_write): Ditto.
6435 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6437 * regcache.c (regcache_cooked_read): New function.
6438 (regcache_cooked_write): New function.
6439 (read_register_gen): Rewrite using regcache_cooked_read.
6440 (write_register_gen): Rewrite using regcache_cooked_write.
6442 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6445 2002-08-02 Andrew Cagney <cagney@redhat.com>
6447 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6448 Replace the architecture methods register_read and register_write.
6449 * gdbarch.h, gdbarch.c: Regenerate.
6450 * regcache.c (init_regcache_descr): Update.
6451 (read_register_gen): Update.
6452 (write_register_gen): Update.
6453 (supply_register): Update comment.
6455 * sh-tdep.c (sh_gdbarch_init): Update.
6456 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6457 `regcache' and `gdbarch' parameters. Make `buffer' a void
6458 pointer. Update code.
6459 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6460 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6461 void pointer. Update code.
6462 (sh64_register_write): Delete.
6463 (sh4_register_read): Delete.
6464 (sh64_register_read): Delete.
6465 (sh4_register_write): Delete.
6466 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6467 void pointer, `to' parameter a void pointer.
6468 (sh_sh64_register_convert_to_raw): Ditto.
6470 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6472 * mips-tdep.c (mips_register_virtual_type): Use architecture
6473 invariant return values.
6475 2002-08-01 Andrew Cagney <cagney@redhat.com>
6477 * linux-proc.c: Include "gdb_string.h".
6478 * Makefile.in (linux-proc.o): Update dependency list.
6480 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6482 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6485 2002-08-01 Grace Sainsbury <graces@redhat.com>
6487 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6488 to_insert_watchpoint, to_remove_watchpoint,
6489 to_stopped_by_watchpoint, to_stopped_data_address,
6490 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6491 target vecctor. Define their corresponding macros so they call
6494 * target.c: Add default and debug versions of for
6495 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6496 to_insert_watchpoint, to_remove_watchpoint,
6497 to_stopped_by_watchpoint, to_stopped_data_address,
6498 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6500 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6502 * mips-tdep.c (mips_register_virtual_type): New function.
6503 (mips_gdbarch_init): Register mips_register_virtual_type()
6504 with gdbarch machinery.
6505 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6506 this file instead of tm-bigmips.h.
6507 (MIPS_REGSIZE): Delete this macro.
6508 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6509 multiarch version in mips-tdep.c will be found.
6511 2002-08-01 Andrew Cagney <cagney@redhat.com>
6513 * NEWS: Menion that CHILL has been made obsolete.
6515 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6516 * stabsread.c (read_range_type): Ditto.
6517 * gdbtypes.h: Ditto.
6518 * language.c (binop_type_check): Ditto.
6519 (binop_result_type): Ditto.
6520 (integral_type): Ditto.
6521 (character_type): Ditto.
6522 (string_type): Ditto.
6523 (boolean_type): Ditto.
6524 (structured_type): Ditto.
6525 (lang_bool_type): Ditto.
6526 (binop_type_check): Ditto.
6527 * language.h (_LANG_chill): Ditto.
6528 * dwarfread.c (set_cu_language): Ditto.
6529 * dwarfread.c (CHILL_PRODUCER): Ditto.
6530 * dwarfread.c (handle_producer): Ditto.
6531 * expression.h (enum exp_opcode): Ditto.
6532 * eval.c: Ditto for comments.
6533 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6534 * expprint.c (print_subexp): Ditto.
6535 (print_subexp): Ditto.
6536 * valops.c (value_cast): Ditto.
6537 (search_struct_field): Ditto.
6538 * value.h (COERCE_VARYING_ARRAY): Ditto.
6539 * symfile.c (init_filename_language_table): Ditto.
6540 (add_psymbol_with_dem_name_to_list): Ditto.
6541 * valarith.c (value_binop): Ditto.
6543 * valops.c (value_slice): Ditto.
6544 * symtab.h (union language_specific): Ditto.
6545 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6546 (SYMBOL_DEMANGLED_NAME): Ditto.
6547 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6548 * defs.h (enum language): Ditto.
6549 * symtab.c (got_symtab): Ditto.
6550 * utils.c (fprintf_symbol_filtered): Ditto.
6552 * ch-typeprint.c: Make file obsolete.
6553 * ch-valprint.c: Make file obsolete.
6554 * ch-lang.h: Make file obsolete.
6555 * ch-exp.c: Make file obsolete.
6556 * ch-lang.c: Make file obsolete.
6558 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6560 (TARGET_FLAGS_TO_PASS): Ditto.
6561 (CHILLFLAGS): Obsolete.
6563 (CHILL_FOR_TARGET): Obsolete.
6564 (CHILL_LIB): Obsolete.
6565 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6567 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6568 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6570 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6573 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6575 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6576 This does not change anything at the moment, but will be helpful
6577 later when full Ada support is integrated.
6579 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6581 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6584 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6586 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6587 and save it in a local variable. Use variable in later test.
6589 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6591 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6592 test. (Thanks to Daniel Jacobowitz.)
6594 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6596 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6597 (mips_abi_strings): Add "n64".
6598 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6600 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6602 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6603 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6605 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6607 * utils.c (host_pointer_to_address, address_to_host_pointer):
6608 Use gdb_assert() instead of explicit call to internal_error().
6610 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6612 * Makefile.in (rs6000-nat.o): Update dependencies.
6614 From Nicholas Duffek:
6615 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6616 (aix-thread.o): New rule.
6617 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6618 * config/powerpc/aix432.mh: New file.
6620 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6622 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6623 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6624 (fetch_core_registers, ppc_linux_supply_gregset)
6625 (ppc_linux_supply_fpregset): New functions.
6626 (ppc_linux_regset_core_fns): New.
6627 (_initialize_ppc_linux_tdep): Call add_core_fns.
6628 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6629 and ppc_linux_supply_gregset.
6630 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6631 (supply_fpregset): Call ppc_linux_supply_fpregset.
6632 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6634 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6636 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6638 * symtab.c (lookup_symbol): Demangle before lowercasing.
6640 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6642 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6644 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6645 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6646 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6647 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6649 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6650 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6651 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6652 (avr-tdep.o, mon960-rom.o): Ditto.
6653 (aout_stabs_gnu_h): Define.
6654 (symtab_h): Remove $(gdb_obstack_h).
6656 2002-07-30 Jim Blandy <jimb@redhat.com>
6658 Patch from David Carlton <carlton@math.stanford.edu>:
6659 * gdbinit.in: Move the `dir' commands that add GDB's own source
6660 directory to the search path to the end, so that the `gdb' source
6661 directory will be searched first.
6663 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6665 * gdb_obstack.h: New file.
6666 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6667 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6668 * objfiles.h: Include "gdb_obstack.h".
6669 * Makefile.in (gdb_obstack_h): Define.
6670 (symtab_h): Add $(gdb_obstack_h).
6671 (objfiles_h): Add $(gdb_obstack_h).
6673 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6674 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6675 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6676 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6677 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6678 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6679 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6680 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6682 * Makefile.in (bcache.o): Update dependencies.
6683 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6684 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6685 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6686 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6687 (stabsread.o, symfile.o, symmisc.o): Ditto.
6688 (symtab.o, typeprint.o, macroexp.o): Ditto.
6689 (macrotab.o, mdebugread.o): Ditto.
6690 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6691 (coff_ecoff_h, aout_aout64_h): Define.
6692 (aout_stabs_gnu_h, libaout_h): Define.
6694 2002-07-29 Andrew Cagney <cagney@redhat.com>
6696 * regcache.c (struct regcache_descr): Rename nr_registers to
6697 nr_cooked_registers. Revise comments describing the structure
6699 (init_regcache_descr): Update.
6700 (init_legacy_regcache_descr): Update.
6701 (read_register_gen, write_register_gen): When a cooked register in
6702 the raw register range, directly access the value from the raw
6705 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6707 * z8k-tdep.c: Do not include "obstack.h".
6708 * h8300-tdep.c, h8500-tdep.c: Ditto.
6709 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6710 * valprint.c, v850-tdep.c: Ditto.
6711 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6712 * mn10200-tdep.c: Ditto.
6714 * Makefile.in (z8k-tdep.o): Update dependencies.
6715 (m68hc11-tdep.o, valprint.o): Ditto.
6716 (v850-tdep.o, d10v-tdep.o): Ditto.
6717 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6718 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6719 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6720 (sh_opc_h, gdb_sim_sh_h): Define.
6721 (elf_sh_h, elf_bfd_h): Define.
6722 (opcode_m68hc11_h): Define.
6723 (OPCODES_SRC, OPCODES_DIR): define.
6724 (OPCODES): Use $(OPCODES_DIR).
6725 (gdb_sim_d10v_h): Rename sim_d10v_h.
6726 (gdb_sim_arm_h): Rename sim_arm_h.
6728 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6730 * utils.c (host_pointer_to_address, address_to_host_pointer):
6731 Change internal_error() message to indicate function responsible
6734 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6736 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6737 calls to local_hex_string_custom().
6739 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6741 * irix5-nat.c: Move IRIX shared library support from here...
6742 * solib-irix.c: ...to here. Revised substantially to work with
6743 generic solib framework.
6745 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6746 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6747 * mips-irix-tdep.c: New file.
6749 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6750 (mips-irix-tdep.o, solib-irix.o): New rules.
6751 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6753 * config/mips/irix6.mt (TDEPFILES): Likewise.
6754 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6756 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6758 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6759 disabled (via ``#if 0'') includes.
6761 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6763 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6764 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6765 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6766 Add support for the fpscr register.
6767 * rs6000-nat.c (regmap, fetch_inferior_registers)
6768 (store_inferior_registers, fetch_core_registers): Likewise.
6770 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6772 * rs6000-nat.c (language.h): Include.
6773 (special_regs): Delete this array.
6774 (regmap): New function.
6775 (fetch_register, store_register): Use regmap() to map gdb
6776 register numbers to ptrace register numbers. Also, use
6777 outputs from regmap() to make decisions regarding type of
6778 ptrace() call to make. In particular, don't compare against
6779 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6780 (fetch_inferior_registers, store_inferior_registers): Where
6781 possible, obtain register numbers from tdep struct. Don't
6782 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6783 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6784 (LAST_UISA_SP_REGNUM): Delete.
6786 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6788 * rs6000-nat.c (ppc-tdep.h): Include.
6789 (fetch_registers, store_register, fetch_core_registers): Don't
6790 access registers[] directly. Instead, use supply_register() or
6791 regcache_collect() as appropriate.
6792 (find_toc_address): Format hex address with local_hex_string().
6794 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6796 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6799 2002-07-24 Tom Tromey <tromey@redhat.com>
6801 * jv-exp.y: Marked all strings with _().
6802 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6804 (MethodInvocation, CastExpression, parse_number, yyerror,
6805 java_type_from_name, push_expression_name, yylex): Typo fixes.
6807 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6809 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6810 (tee_file_flush, tee_file_write, tee_file_fputs)
6811 (tee_file_isatty): New.
6812 * ui-file.h (tee_file_new): Add prototype.
6814 2002-07-24 Aidan Skinner <aidan@velvet.net>
6816 * ada-lang.c: Change k&r style function definitions to prototyped
6818 * ada-typeprint.c: Change k&r style function definitions to prototyped
6820 * ada-valprint.c: Change k&r style function definitions to prototyped
6823 2002-07-24 Andrew Cagney <cagney@redhat.com>
6825 * README: Remove reference to remote-bug.
6826 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6828 (m88k-nat.o): Delete rule.
6829 (m88k-tdep.o): Delete rule.
6830 (remote-bug.o): Delete rule.
6831 * MAINTAINERS: Mark as obsolete.
6832 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6833 * m88k-tdep.c: Make file obsolete.
6834 * config/m88k/m88k.mh: Ditto.
6835 * config/m88k/delta88v4.mh: Ditto.
6836 * config/m88k/delta88v4.mt: Ditto.
6837 * config/m88k/delta88.mt: Ditto.
6838 * config/m88k/delta88.mh: Ditto.
6839 * remote-bug.c: Ditto.
6840 * config/m88k/tm-delta88.h: Ditto.
6841 * config/m88k/nm-delta88v4.h: Ditto.
6842 * config/m88k/xm-delta88.h: Ditto.
6843 * config/m88k/xm-dgux.h: Ditto.
6844 * config/m88k/tm-m88k.h: Ditto.
6845 * config/m88k/nm-m88k.h: Ditto.
6846 * config/m88k/tm-delta88v4.h: Ditto.
6847 * m88k-nat.c: Ditto.
6848 * cxux-nat.c: Ditto.
6849 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6850 and m88*-*-* obsolete.
6851 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6854 2002-07-24 Andrew Cagney <cagney@redhat.com>
6856 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6857 constant. Same for local pointer variables.
6858 (extract_signed_integer): Ditto.
6859 * defs.h (extract_unsigned_integer): Update.
6860 (extract_signed_integer): Update.
6862 2002-07-24 Andrew Cagney <cagney@redhat.com>
6864 * regcache.c (regcache_raw_write): Change buf parameter to a
6865 constant void pointer.
6866 (regcache_raw_read): Change buf parameter to a void pointer.
6867 (legacy_write_register_gen): Change myaddr parameter a constant
6869 (supply_register): Change val parameter to a const void pointer.
6870 * regcache.h (regcache_raw_write): Update declaration.
6871 (regcache_raw_read): Update declaration.
6872 (supply_register): Update declaration.
6874 2002-07-24 Tom Tromey <tromey@redhat.com>
6876 * defs.h (gdb_readline_wrapper): Declare.
6877 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6878 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6879 * top.c (gdb_readline_wrapper): New function.
6880 (command_line_input): Use it.
6882 2002-07-24 Andrew Cagney <cagney@redhat.com>
6884 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6885 regcache_read and regcache_write.
6886 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6887 * regcache.c: Update.
6888 * sh-tdep.c (sh64_push_arguments): Update comment.
6889 (sh_pseudo_register_read): Update.
6890 (sh_pseudo_register_write): Update.
6891 (sh4_register_read): Update.
6892 (sh4_register_write): Update.
6893 (sh64_pseudo_register_read): Update.
6894 (sh64_pseudo_register_write): Update.
6895 (sh64_register_read): Update.
6896 (sh64_register_write): Update.
6897 * i386-tdep.c (i386_extract_return_value): Update.
6898 (i386_extract_struct_value_address): Update.
6899 (i386_extract_return_value): Update.
6900 * blockframe.c (generic_read_register_dummy): Update.
6901 (generic_call_dummy_register_unwind): Update
6902 * infrun.c (write_inferior_status_register): Update.
6904 2002-07-23 Jim Blandy <jimb@redhat.com>
6906 * parser-defs.h (expression_context_pc): Make this extern.
6907 (Thanks to Michael Snyder.)
6909 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6911 GDB 5.2.1 released from 5.2 branch.
6912 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6913 * README: Update to mention 5.2.1.
6915 2002-07-23 Mark Salter <msalter@redhat.com>
6917 * remote.c (remote_read_bytes): Fix check for error.
6919 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6921 * aix-thread.c (language.h): Include.
6922 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6923 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6924 Print newlines at end of debug messages.
6925 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6926 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6928 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6930 * aix-thread.c (ppc-tdep.h): Include.
6931 (special_register_p): New function.
6932 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6933 (store_regs_user_thread): Use register number information from
6934 gdbarch_tdep struct instead of hardcoded offsets relative to
6935 FIRST_UISA_SP_REGNUM.
6936 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6937 special_register_p() instead of using FPLAST_REGNUM and
6938 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6939 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6940 will be MQ's register number.
6942 2002-07-22 Michael Snyder <msnyder@redhat.com>
6944 * aix-thread.c (ops): Rename to aix_thread_ops.
6945 (base_ops): Rename to base_target.
6946 (ops_attach): Rename to aix_thread_attach.
6947 (ops_detach): Rename to aix_thread_detach.
6948 (ops_resume): Rename to aix_thread_detach.
6949 (ops_wait): Rename to aix_thread_wait.
6950 (ops_kill): Rename to aix_thread_kill.
6951 (init_ops): Rename to init_aix_thread_ops.
6952 (ops_fetch_register): Rename to aix_thread_fetch_register.
6953 (ops_store_register): Rename to aix_thread_store_register.
6954 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6955 (ops_thread_alive): Rename to aix_thread_thread_alive.
6956 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6957 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6958 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6959 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6960 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6961 (store_regs_lib): Rename to store_regs_user_thread.
6962 (store_regs_kern): Rename to store_regs_kernel_thread.
6964 2002-07-22 Michael Snyder <msnyder@redhat.com>
6966 * aix-thread.c (ops_prepare_to_store): Eliminate.
6967 (init_ops): Don't initialize ops.prepare_to_store.
6968 (store_regs_kern): Pre-fetch register buffers from child,
6969 because some registers may not be in the cache. Copy
6970 regs from register cache only if they are cached.
6971 (store_regs_lib): Copy regs from register cache only
6973 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6974 fill_gprs64): Ditto.
6976 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6978 * aix-thread.c (gdb_assert.h): Include.
6979 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6980 register sizes (from register cache) match size of buffer holding
6982 (fill_sprs32): Change parameter types to match those in the ptrace()
6984 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6985 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6987 2002-07-22 Michael Snyder <msnyder@redhat.com>
6989 * aix-thread.c (supply_sprs64): Cosmetic change.
6990 (supply_sprs32): Cosmetic change.
6991 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6992 (fill_sprs64): Use regcache_collect instead of read_register.
6993 (store_regs_lib): Use regcache_collect instead of
6994 read_register. Use fill_sprs32 instead of fill_sprs64,
6995 if debugging a 32-bit architecture.
6996 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6997 out of the register cache, instead of passing a pointer into
6998 the register cache directly to ptrace. Use regcache_collect
6999 insteaad of read_register.
7000 (ops_prepare_to_store): Use target_read_registers instead
7001 of read_register_bytes.
7003 2002-07-20 Aidan Skinner <aidan@velvet.net>
7005 * MAINTAINERS: Add self under write after approval.
7007 2002-07-20 Aidan Skinner <aidan@velvet.net>
7009 * ada-tasks.c: Change k&r style function definitions to prototyped
7012 2002-07-19 Andrew Cagney <ac131313@redhat.com>
7014 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7015 * x86-64-tdep.c: Include "objfiles.h".
7016 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7017 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7019 2002-07-17 Michal Ludvig <michal@suse.cz>
7021 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7022 (update_context): Initialise cfa variable.
7024 2002-07-17 Michael Snyder <msnyder@redhat.com>
7026 * aix-thread.c: Shorten some long lines.
7027 Bring comments into line with code spec.
7029 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7031 * infrun.c: Re-indent using gdb_indent.sh.
7033 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7035 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7036 Leave the indentation temporarily untouched, to minimize the diffs.
7038 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
7040 * stabsread.c: Make os9k sections of the code obsolete,
7042 * stabsread.h: Make os9k sections of the code obsolete.
7044 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7046 * linux-low.c (regsets_store_inferior_registers): Add free()
7047 at the end of a loop to prevent memory leak.
7048 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7049 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7050 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7052 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7054 2002-07-17 Jim Blandy <jimb@redhat.com>
7056 * macrocmd.c (info_macro_command): Remove newline from error
7059 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7061 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7062 (sh_gdbarch_init): Use it for sh-dsp.
7064 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7066 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7067 64-bit DWARF2 format.
7069 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7071 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7072 <sys/proc.h> when not available.
7074 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7076 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7077 * stabsread.c: Make os9k sections of the code obsolete.
7078 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7079 * config/i386/i386os9k.mt: Make file obsolete.
7080 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7081 (COMMON_OBS): Remove os9kread.o
7082 (SFILES): Remove os9kread.c.
7083 (os9kread.o, remote-os9k.o): Make target obsolete.
7084 * remote-os9k.c: Make file obsolete.
7085 * os9kread.c: Make file obsolete.
7088 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7090 * NEWS: Mention that the FR30 has been made obsolete.
7091 * fr30-tdep.c: Make file obsolete.
7092 * config/fr30/tm-fr30.h: Ditto.
7093 * config/fr30/fr30.mt: Ditto.
7094 * configure.tgt: Make fr30-*-elf obsolete.
7095 * MAINTAINERS: Make fr30-elf obsolete.
7097 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7099 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7100 found is not inside a section.
7102 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7104 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7106 (pdc_realloc): Use xrealloc() instead of realloc().
7108 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7110 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7111 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7112 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7115 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7117 * aix-thread.c (ptrace_check): Eliminate goto.
7118 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7121 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7123 * aix-thread.c (gdbcmd.h): Include.
7124 (DEBUG, DBG, DBG2, dbg): Eliminate.
7125 (debug_aix_thread): New static global.
7126 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7127 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7128 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7129 invocations to DBG and DBG2 macros to test against
7130 ``debug_aix_thread'' and call fprintf_unfiltered().
7131 (_initialize_aix_thread): Add new command "set debug aix-thread".
7133 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7135 From Gerhard Tonn <TON@de.ibm.com>:
7136 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7137 instead of supply_register.
7139 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7141 * dwarf2cfi.c: Include "gdb_assert.h".
7142 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7144 (update_context): Do not use __func__. Add missing ``break''.
7145 (update_context): Do not use __func__.
7147 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7149 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7150 and its setting. Set gdbarch instruction printing functions
7151 directly. For non-rs6000 case use new function
7152 gdb_print_insn_powerpc.
7153 (gdb_print_insn_powerpc): New function.
7155 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7157 * NEWS: Mention that the d30v has been marked obsolete.
7158 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7159 * configure.tgt: Mark d30v-*-* as obsolete.
7160 * d30v-tdep.c: Mark file as obsolete.
7161 * config/d30v/d30v.mt: Ditto.
7162 * config/d30v/tm-d30v.h: Ditto.
7164 2002-07-13 Aidan Skinner <aidan@velvet.net>
7166 * ada-tasks.c (add_task_entry): replace calls to
7167 malloc() with xmalloc
7168 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7170 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7171 ada_finish_decode_line_1, all_sals_for_line
7172 ada_breakpoint_rewrite): replace calls to free() with xfree()
7174 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7176 From Nicholas Duffek (with minor changes by Martin Hunt,
7177 Louis Hamilton, and Kevin Buettner):
7178 * aix-thread.c: New file.
7180 2002-07-12 Petr Sorfa <petrs@caldera.com>
7182 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7183 complaint for invalid attribute class or form.
7184 (read_func_scope): DW_AT_frame_base
7185 better handling of DW_AT_block*.
7186 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7187 better handling of DW_AT_block*.
7188 (read_common_block): DW_AT_location
7189 better handling of DW_AT_block*.
7190 (read_partial_die): DW_AT_location better handling
7192 (new_symbol): DW_AT_external better handling of
7193 DW_AT_block*. Proper initialization of variable
7195 (attr_form_is_block): New function that returns true
7196 if the attribute's form is of DW_FORM_block*.
7198 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7200 * valops.c (find_method_list): Remove comment about
7201 removed STATIC_MEMFUNCP argument.
7202 (value_find_oload_method_list): Likewise.
7204 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7206 From Nicholas Duffek:
7207 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7208 target_new_objfile_hook.
7210 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7212 From Nicholas Duffek:
7213 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7216 2002-07-12 Andrew Cagney <cagney@redhat.com>
7218 * MAINTAINERS: Mention --enable-sim-build-warnings.
7219 (m68hc11-elf): Disable sim build warnings.
7220 (m32r-elf): Mark as broken obsolete candidate.
7221 (x86_64-linux-gnu): Mark as buildable with -Werror.
7222 (arm-elf): Change -w to ``,'' which enables warnings but not
7225 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7227 * bcache.h: Update copyright.
7228 (struct bstring, struct bcache): Move definition to "bcache.c".
7229 Replaced by opaque declaration.
7230 (bcache_xfree): Replace free_bcache.
7231 (bcache_xmalloc, bcache_memory_used): Declare.
7233 * bcache.c: Update copyright.
7234 (struct bstring, struct bcache): Moved to here from "bcache.h".
7236 (bcache_xmalloc, bcache_memory_used): New functions.
7237 (bcache_xfree): Replace function free_bcache.
7239 * Makefile.in (objfiles.o): Add $(bcache_h).
7240 (objfiles_h): Remove $(bcache_h).
7241 (symfile.o): Add $(bcache_h).
7243 * symmisc.c: Update copyright.
7244 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7245 (print_objfile_statistics): Use bcache_memory_used.
7247 * symfile.c: Include "bcache.h".
7248 (reread_symbols): Use bcache_xfree.
7249 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7250 (add_psymbol_to_list): Pass psymbol_cache by value.
7251 (add_psymbol_with_dem_name_to_list): Ditto.
7253 * objfiles.h: Update copyright.
7254 (struct bcache): Declare opaque. Do not include "bcache.h".
7255 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7257 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7259 * objfiles.c: Include "bcache.h". Update copyright.
7260 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7262 (free_objfile): Use bcache_xfree.
7264 2002-07-11 Grace Sainsbury <graces@redhat.com>
7266 * monitor.c (monitor_fetch_register): Make name a constant.
7267 (monitor_store_register): Same.
7269 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7271 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7272 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7273 (finish_block) For non-function blocks, hash the symbol table. For
7274 function blocks, mark the symbol table as unhashed.
7275 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7276 (msymbol_hash_iw): Likewise.
7277 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7279 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7280 (lookup_minimal_symbol): Likewise for both.
7281 * symtab.h (struct block): Add `hashtable' flag. Comment the
7283 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7284 (ALL_BLOCK_SYMBOLS): Update.
7285 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7286 (struct symbol): Add `hash_next' pointer.
7287 * symtab.c (lookup_block_symbol): Search using the hash table when
7289 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7290 (search_symbols, find_addr_symbol): Likewise.
7292 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7293 (read_dst_symtab): Likewise.
7294 * jv-lang.c (get_java_class_symtab): Likewise.
7295 * mdebugread.c: Include "gdb_assert.h".
7296 (shrink_block): Assert that the block being modified is not hashed.
7297 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7298 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7300 (dump_symtab): Recognize hashed blocks.
7301 * printcmd.c (print_frame_args): Assert that function blocks do not
7302 have hashed symbol tables.
7303 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7304 (fill_in_ada_prototype, debug_print_block): Likewise.
7305 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7307 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7309 * stack.c (print_frame): Use result of frame_address_in_block()
7310 instead of fi->pc when evaluating symbols.
7311 (backtrace_command_1): Ditto.
7313 2002-07-11 Andrew Cagney <cagney@redhat.com>
7315 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7318 * arm-tdep.c (arm_register_name): Make return type constant.
7320 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7322 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7324 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7325 * s390-tdep.c (s390_fp_regnum): Ditto.
7326 (s390_read_fp): Ditto.
7327 (s390_pop_frame): Ditto.
7328 (_initialize_s390_tdep): Ditto.
7329 * remote.c (get_remote_state): Ditto.
7330 * procfs.c (mappingflags): Ditto.
7331 * memattr.c (_initialize_mem): Ditto.
7332 * mcore-tdep.c (mcore_pop_frame): Ditto.
7333 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7334 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7335 * language.c (set_case_str): Ditto.
7336 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7337 * frv-tdep.c (new_variant): Ditto.
7338 (frv_stopped_data_address): Ditto.
7339 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7340 (context_alloc): Ditto.
7341 (frame_state_alloc): Ditto.
7342 (unwind_tmp_obstack_init): Ditto.
7343 (unwind_tmp_obstack_free): Ditto.
7344 (cfi_read_fp): Ditto.
7345 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7346 (cris_pop_frame): Ditto.
7347 * c-lang.c (scanning_macro_expansion): Ditto.
7348 (finished_macro_expansion): Ditto.
7349 (c_preprocess_and_parse): Ditto.
7350 * gdbarch.sh: Ditto.
7351 * gdbarch.h, gdbarch.c: Regenerate.
7352 * config/mn10200/tm-mn10200.h: Adjust indentation.
7353 * target.c: Adjust indentation.
7354 * symtab.h: Adjust indentation.
7355 * stabsread.h: Adjust indentation.
7356 * remote-es.c: Adjust indentation.
7357 * os9kread.c: Adjust indentation.
7359 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7361 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7362 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7364 2002-07-10 Grace Sainsbury <graces@redhat.com>
7366 * NEWS: Mention m68k, mcore multi-arching.
7367 * MAINTAINERS: Change status of m68k, mcore to reflect
7370 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7372 * valops.c (find_overload_match): Free oload_syms.
7374 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7376 Define HAVE_SYS_PROC_H if sys/proc.h exists
7377 * configure.in: Add check for sys/proc.h
7378 * config.in: Regenerate.
7379 * configure: Regenerate.
7381 2002-07-09 Grace Sainsbury <graces@redhat.com>
7383 * config/m68k/tm-m68k.h: Remove macros wrapped in
7384 #if !GDB_MULTI_ARCH.
7386 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7388 * config.in, configure: Regenerate.
7390 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7392 * dwarf2cfi.c: Include "gcore.h".
7393 (execute_stack_op): Fix implementation of the
7394 DW_OP_deref and DW_OP_deref_size operators by letting do their
7395 lookup in the target.
7397 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7399 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7400 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7403 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7405 Fix PR gdb/595, gdb/602
7406 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7407 Don't call value_cast, just read the vtable pointer; update comments
7410 2002-07-05 Grace Sainsbury <graces@redhat.com>
7412 * config/mcore/tm-mcore.h: Remove file.
7413 * config/mcore/mcore.mt: Remove definition of TM_FILE
7414 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7416 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7418 * i386bsd-tdep.c: Include "gdb_string.h".
7420 2002-07-04 Grace Sainsbury <graces@redhat.com>
7422 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7423 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7425 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7426 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7427 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7428 (RETVAL_REGNUM): Move macros from tm-mcore.h
7429 (mcore_reg_struct_has_addr): New function.
7430 (mcore_gdbarch_init): Added initializations for the macros removed
7433 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7435 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7436 traditonal string branding within the ELF header.
7438 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7440 * symtab.c (remove_params): New function.
7441 (make_symbol_overload_list): Use it instead of cplus_demangle.
7442 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7444 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7446 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7448 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7450 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7451 and tdep->sigtramp_end.
7452 * i386obsd-nat.c: New file.
7453 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7455 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7456 Don't call get_current_frame().
7458 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7460 * i386-nat.c (child_post_startup_inferior): New function
7461 calling i386_cleanup_dregs if
7462 I386_USE_GENERIC_WATCHPOINTS is defined.
7463 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7464 conditional to acknowledge that i386-nat.c has its
7465 own child_post_startup_inferior function.
7467 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7469 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7470 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7471 instead of MAX_REGISTER_RAW_SIZE.
7472 (i386_extract_return_value, i386_extract_struct_value_address):
7473 Convert to use regcache.
7474 (i386_gdbarch_init): Set max_register_raw_size and
7475 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7476 Set extract_return_value and extract_struct_value_address instead
7477 of their deprecated variants.
7479 Convert i386 target to generic dummy frames.
7480 * i386-tdep.c: Include "symfile.h".
7481 (i386_frameless_signal_p): Consider a function to be frameless if
7482 the pc points at the first instruction of the function.
7483 (i386_frame_chain): Handle (generic) call dummies.
7484 (i386_frame_saved_pc): Likewise.
7485 (i386_frame_init_saved_regs): Remove code dealing with call
7486 dummies on the stack.
7487 (i386_push_dummy_frame): Removed.
7488 (i386_call_dummy_words): Removed.
7489 (i386_fix_call_dummy): Removed.
7490 (i386_push_return_address): New function.
7491 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7492 parameter, and don't call get_current_frame.
7493 (i386_pop_frame): New function.
7494 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7495 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7496 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7497 call_dummy_length to 0, set call_dummy_words to NULL, set
7498 sizeof_call_dummy_words to 0, set fix_call_dummy to
7499 generic_fix_call_dummy, set pc_in_call_dummy to
7500 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7501 generic_push_dummy_frame, set push_return_address to
7502 i386_push_return_address and set frame_chain_valid to
7503 generic_file_frame_chain_valid.
7505 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7507 * gdbarch.sh (struct regcache): Add opaque declaration.
7508 (EXTRACT_RETURN_VALUE): New architecture method.
7509 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7510 * gdbarch.h, gdbarch.c: Regenerate.
7511 * arch-utils.c (legacy_extract_return_value): New function.
7512 * arch-utils.h (legacy_extract_return_value): Declare.
7513 * values.c (value_being_returned): Re-enable code handling
7514 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7515 deprecated_grub_regcache_for_registers call to block handling
7516 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7517 (EXTRACT_RETURN_VALUE): Do not define.
7519 2002-07-03 Grace Sainsbury <graces@redhat.com>
7521 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7522 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7523 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7524 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7525 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7526 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7527 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7528 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7529 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7530 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7531 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7532 argument so the function fits the prototype in the architecture
7534 (mcore_pop_frame): Remove argument so the function fits the
7535 prototype. Use get_current_frame instead of the argument.
7536 (mcore_push_arguments): Change type of struct_return so the
7537 function can be used in the architecture vector.
7538 (mcore_store_struct_return): Add.
7539 (mcore_frame_init_saved_regs): Add.
7540 (mcore_gdbarch_init): Add function calls to replace the macros
7541 removed from tm-mcore.h
7543 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7545 * infcmd.c (print_return_value): Remove compatibility code calling
7546 deprecated_grub_regcache_for_registers.
7548 * values.c: Include "regcache.h".
7549 (value_being_returned): Update. Use
7550 deprecated_grub_regcache_for_registers to extract the register
7552 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7553 ``struct regcache''.
7554 * Makefile.in (values.o): Add dependency on $(regcache_h).
7556 * inferior.h (run_stack_dummy): Change type of second parameter to
7557 a ``struct regcache''.
7558 * valops.c (hand_function_call): Change type of retbuf to ``struct
7559 regcache''. Allocate using regcache_xmalloc, clean using
7560 make_cleanup_regcache_xfree.
7561 * infcmd.c (run_stack_dummy): Update. Use
7562 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7564 * regcache.c (do_regcache_xfree): New function.
7565 (make_cleanup_regcache_xfree): New function.
7566 * regcache.h (make_cleanup_regcache_xfree): Declare.
7568 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7570 * event-top.c (command_line_handler): Don't read past
7571 beginning of buffer.
7573 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7575 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7577 (varobj_create): Store frame_id for root.
7578 (varobj_gen_name): Use xasprintf.
7579 (varobj_update): Save and restore frame using get_frame_id() and
7581 (create_child): Use xasprintf.
7582 (new_root_variable): Initialize frame_id.
7583 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7584 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7585 to prevent memory leak.
7587 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7589 * valops.c (hand_function_call): Move declaration of retbuf to
7590 start of function, allocate using malloc, add a cleanup but before
7591 the inf_status cleanup, cleanup the buffer. Rename local variable
7592 old_chain to inf_status_cleanup.
7594 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7596 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7598 * cli/cli-decode.c (cmd_func_p): New function.
7599 (cmd_func): New function.
7601 * command.h: Add cmd_func() and cmd_func_p().
7603 2002-07-03 Grace Sainsbury <graces@redhat.com>
7605 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7606 (REGISTER_SIZE): Remove.
7607 (MAX_REGISTER_RAW_SIZE): Remove.
7608 (REGISTER_VIRTUAL_TYPE): Remove.
7609 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7610 (REGISTER_NAME): Remove.
7611 (USE_GENERIC_DUMMY_FRAMES): Remove.
7612 (CALL_DUMMY): Remove.
7613 (CALL_DUMMY_START_OFFSET): Remove.
7614 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7615 (CALL_DUMMY_LOCATION): Remove.
7616 (FIX_CALL_DUMMY): Remove.
7617 (CALL_DUMMY_ADDRESS): Remove.
7618 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7619 (SAVE_DUMMY_FRAME_TOS): Remove.
7620 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7621 (mcore_register_virtual_type): New function.
7622 (mcore_register_byte): New function.
7623 (mcore_register_size): New function.
7624 (mcore_register_name): New function.
7625 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7626 macros removed from tm-mcore.h.
7627 (mcore_dump_tdep): Add.
7628 (_initialize_mcore_tdep): Add gdbarch_register call.
7630 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7632 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7633 frameless_look_for_prologue, such that we actually call this
7636 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7638 * frame.h (frame_address_in_block): New function.
7640 * blockframe.c (frame_address_in_block): New function extracted
7641 from get_frame_block().
7642 (get_frame_block): Use frame_address_in_block().
7643 (block_innermost_frame): Use frame_address_in_block() to match
7644 the frame pc address against the block boundaries rather than
7645 the frame pc directly. This prevents a failure when a frame pc
7646 is actually a return-address pointing immediately after the end
7649 2002-07-02 Grace Sainsbury <graces@redhat.com>
7651 * MAINTAINERS: Add self under write after approval.
7653 2002-07-02 Grace Sainsbury <graces@redhat.com>
7655 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7656 used in architecture vector. The default is
7657 m68k_local_breakpoint_from_pc.
7658 (m68k_local_breakpoint_from_pc): Add.
7659 (enum): Add register numbers from tm-m68k.h.
7660 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7662 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7663 GDB_MULTI_ARCH_PARTIAL.
7664 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7665 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7667 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7668 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7669 to enum in m68k-tdep.c
7671 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7673 * solib-osf.c (open_map): Compute the list of shared libraries
7674 loaded by the inferior, rather than the list of libraries loaded
7675 by GDB itself. Otherwise, GDB ends up reading the symbols from
7676 the wrong shared libraries...
7678 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7680 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7681 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7683 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7685 (FRAMELESS_SIGNAL): Remove function.
7686 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7687 i386_linux_saved_pc_after_call): Removed.
7688 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7689 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7690 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7692 * i386-tdep.c (i386_frameless_signal_p): New function.
7693 (i386_frame_chain): Deal with frameless signals.
7694 (i386_sigtramp_saved_sp): New function.
7695 (i386_frame_saved_pc): Deal with frameless signals.
7696 (i386_saved_pc_after_call): Make sure the correct value is
7697 returned just after entry into a sigtramp.
7698 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7699 i386fbsd4_sc_sp_offset): New variables.
7700 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7701 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7702 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7703 similiar to what we already did for sc_pc_offset.
7704 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7707 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7709 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7711 * config/i386/tm-x86-64linux.h: New.
7712 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7714 * config/i386/nm-x86-64.h: Rename to ...
7715 * config/i386/nm-x86-64linux.h: ... this one.
7716 * config/i386/x86-64linux.mh: Reflect the above change.
7718 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7720 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7721 with sigcontext_addr. Add sc_sp_offset.
7722 (i386bsd_sigtramp_saved_pc): Remove prototype.
7723 (i386bsd_sicontext_addr): Add prototype.
7724 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7725 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7726 (i386_svr4_sigtramp_saved_pc): Removed.
7727 (i386_svr4_sigcontext_addr): New function.
7728 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7729 Initialize tdep->sigcontext_addr instead. Initialize
7730 tdep->sc_pc_offset and tdep->sc_sp_offset.
7731 (i386_gdbarch_init): Likewise.
7732 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7734 (i386bsd_sigtramp_saved_pc): Remove function.
7735 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7736 Initialize tdep->sigcontext_addr instead. Initialize
7738 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7739 of tdep->sigtramp_saved_pc.
7740 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7741 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7744 * i386-tdep.c (i386_frameless_function_invocation,
7745 i386_frame_num_args, i386_frame_init_saved_regs,
7746 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7747 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7748 i386_extract_return_value, i386_store_return_value,
7749 i386_extract_struct_value_address, i386_register_virtual_type,
7750 i386_register_convertible, i386_register_convert_to_virtual,
7751 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7752 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7755 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7757 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7759 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7760 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7761 this macro. Include "value.h".
7763 2002-06-30 Aidan Skinner <aidan@velvet.net>
7765 * ada-exp.tab.c: remove as it's a generated file
7766 * ada-lex.c: remove as it's a generated file
7768 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7770 * config/i386/tm-i386.h (struct frame_info, struct
7771 frame_saved_regs, struct value, struct type): Remove forward
7774 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7775 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7776 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7777 (FILL_FPXREGSET): Define.
7779 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7781 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7782 i[3456]86-*-netbsd* case.
7783 * config/i386/tm-obsd.h: Removed.
7784 * config/i386/obsd.mt: Removed.
7785 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7787 (MH_CFLAGS): Add -DYYDEBUG=0.
7789 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7790 i386nbsd_sc_pc_offset on OpenBSD too.
7792 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7793 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7794 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7796 * i386bsd-tdep.c: Include "arch-utils.h".
7797 (i386bsd_aout_in_solib_call_trampoline): New function.
7798 (i386bsd_init_abi): Set in_solib_call_trampoline to
7799 i386bsd_aout_in_solib_call_trampoline.
7800 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7801 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7803 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7805 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7806 (struct obstack, struct bcache): Add opaque declarations.
7807 * Makefile.in (macrotab_h): Update
7809 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7811 * blockframe.c (generic_find_dummy_frame): Change return type to
7812 ``struct regcache''.
7813 (struct dummy_frame): Replace field ``registers'' with regcache, a
7814 struct regcache object.
7815 (generic_find_dummy_frame): Update.
7816 (generic_push_dummy_frame): Update. Use regcache_xfree,
7817 regcache_xmalloc and regcache_cpy.
7818 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7820 (deprecated_generic_find_dummy_frame): Update.
7821 (generic_read_register_dummy): Update. Use
7822 regcache_read_as_address.
7823 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7824 (generic_get_saved_register): Update. Use regcache_read.
7826 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7828 * Makefile.in (objfiles_h): Add $(bcache_h).
7829 * objfiles.h: Include "bcache.h".
7831 * Makefile.in (symtab_h): Remove $(bcache_h).
7832 * symtab.h: Do not include "bcache.h".
7834 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7836 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7837 generic_func_frame_chain_valid.
7839 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7841 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7842 * config/i386/tm-fbsd.h: Likewise.
7844 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7846 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7847 generic_unwind_get_saved_register.
7849 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7851 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7852 * regcache.c (supply_register): Add missing argument to
7853 register_buffer call.
7855 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7857 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7858 Solaris /bin/grep does not not like it. From Peter Schauer.
7860 2002-06-26 Tom Tromey <tromey@redhat.com>
7862 * command.h (add_setshow_cmd): Declare.
7863 (add_setshow_cmd_full): Declare.
7864 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7865 returns void. Use add_setshow_cmd_full.
7866 (add_setshow_cmd_full): New function.
7867 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7868 (add_setshow_boolean_cmd): Likewise.
7870 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7872 * config/vax/tm-vax.h: Protect from multiple inclusion.
7873 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7874 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7875 * config/vax/tm-vaxbsd.h: ...here. New file.
7876 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7878 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7880 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7881 (BELIEVE_PCC_PROMOTION): Remove.
7882 (AP_REGNUM): Move to...
7883 * config/vax/nm-vax.h: ...here.
7884 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7885 (vax_breakpoint_from_pc): New function.
7886 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7887 and gdbarch_believe_pcc_promotion.
7889 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7891 * Makefile.in (vax_tdep_h): Define.
7892 (vax-tdep.o): Use $(vax_tdep_h).
7893 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7894 (vax_dump_tdep): New function.
7895 (_initialize_vax_tdep): Register vax_dump_tdep.
7896 * vax-tdep.h: Include osabi.h.
7897 (struct gdbarch_tdep): New.
7899 2002-06-26 Andrew Cagney <cagney@redhat.com>
7901 * frame.h (deprecated_generic_find_dummy_frame): Rename
7902 generic_find_dummy_frame.
7903 * blockframe.c (generic_find_dummy_frame): Make static.
7904 (deprecated_generic_find_dummy_frame): New function.
7905 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7906 generic_find_dummy_frame with deprecated_find_dummy_frame.
7907 (sh64_nofp_frame_init_saved_regs): Ditto.
7908 (sh_fp_frame_init_saved_regs): Ditto.
7909 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7910 (s390_frame_chain): Ditto.
7911 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7913 2002-06-26 Grace Sainsbury <graces@redhat.com>
7915 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7916 gdbarch vector are at the top.
7918 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7919 (FRAME_ARGS_ADDRESS): Remove.
7920 (FRAME_LOCALS_ADDRESS): Remove.
7921 (FRAME_NUM_ARGS): Remove.
7922 (FRAME_ARGS_SKIP): Remove.
7923 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7924 (m68k_gdbarch_init): Add gdbarch initializations for macros
7925 undefined in tm-m68k.h
7927 2002-06-26 Grace Sainsbury <graces@redhat.com>
7929 * monitor.h: Add the function regname to monitor_ops
7930 structure. This way NUM_REGS does not have to be a constant.
7931 * monitor.c (monitor_fetch_register): Added support for regname
7932 function. The function is called if the array regnames is NULL.
7933 (monitor_store_register): Same.
7934 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7936 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7937 cpu32bug_cmds.regname to point to new function.
7938 * abug-rom.c (abug_regname): Same as above.
7939 (init_abug_cmds): Same.
7940 * dbug-rom.c (dbug_regname): Same as above.
7941 (init_dbug_cmds): Same.
7942 * remote-est.c (est_regname): Same.
7943 (init_est_cmds): Same.
7944 * rom68k-rom.c (rom68k_regname): Same.
7945 (init_rom68k_cmds): Same.
7947 2002-06-25 Tom Tromey <tromey@redhat.com>
7949 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7951 2002-06-25 Andrew Cagney <cagney@redhat.com>
7953 * infrun.c (stop_registers): Change variable's type to ``struct
7955 (xmalloc_inferior_status): Delete function.
7956 (free_inferior_status): Delete function.
7957 (normal_stop): Use regcache_cpy.
7958 (struct inferior_status): Change type of fields ``stop_registers''
7959 and ``registers'' to ``struct regcache''.
7960 (write_inferior_status_register): Use regcache_write.
7961 (save_inferior_status): Instead of calling
7962 xmalloc_inferior_status, allocate the inf_status buffer directly.
7963 Use regcache_dup_no_passthrough and regcache_dup to save the
7965 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7966 Replace the stop_registers regcache instead of overriding it. Use
7967 regcache_xfree. Instead of calling free_inferior_status, xfree
7968 the buffer directly.
7969 (discard_inferior_status): Use regcache_xfree. Instead of calling
7970 free_inferior_status, xfree the buffer directly.
7971 (build_infrun): Use regcache_xmalloc.
7972 (_initialize_infrun): Delete redundant call to build_infrun.
7974 * Makefile.in (infcmd.o): Add $(regcache_h).
7976 * infcmd.c: Include "regcache.h".
7977 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7978 obtain the address of `stop_registers' register buffer.
7979 (print_return_value): Ditto.
7981 * inferior.h (struct regcache): Add opaque declaration.
7982 (stop_registers): Change variable's declared type to ``struct
7985 2002-06-24 Tom Tromey <tromey@redhat.com>
7987 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7988 * target.c (initialize_targets): Fixed typo in
7989 trust-readonly-sections `show' documentation.
7991 * main.c: Marked all strings with _().
7993 2002-06-24 Don Howard <dhoward@redhat.com>
7995 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7996 that means max CORE_ADDR+1.
7997 (lookup_mem_region): Ditto.
7998 (mem_info_command): Ditto.
8000 2002-06-24 Grace Sainsbury <graces@redhat.com>
8002 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8003 (REGISTER_BYTES_OK): Remove.
8004 (REGISTER_BYTES): Remove.
8005 (STORE_STRUCT_RETURN): Remove.
8006 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8007 (STORE_RETURN_VALUE): Remove.
8008 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8009 (FRAME_CHAIN): Remove.
8010 (FRAMELESS_FUNCTION_INVOCATION): Remove.
8011 (FRAME_SAVED_PC): Remove.
8012 * m68k-tdep.c (m68k_register_bytes_ok):Add.
8013 (m68k_store_struct_return): Add.
8014 (m68k_deprecated_extract_return_value): Add.
8015 (m68k_deprecated_extract_struct_value_address): Add.
8016 (m68k_store_return_value): Add.
8017 (m68k_frame_chain): Add.
8018 (m68k_frameless_function_invocation): Add.
8019 (m68k_frame_saved_pc): Add.
8020 (m68k_gdbarch_init): added set_gdbarch calls for new
8021 functions and deleted macros.
8023 2002-06-23 Tom Tromey <tromey@redhat.com>
8025 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8026 (ALLDEPFILES): Likewise.
8027 (udiheaders): Removed.
8028 (udip2soc.o): Likewise.
8029 (udi2go32.o): Likewise.
8031 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8033 2002-06-22 Andrew Cagney <ac131313@redhat.com>
8035 * infrun.c (_initialize_infrun): Delete unnecessary call to
8038 * regcache.h: Update comments describing the regcache_cpy family
8040 (regcache_save, regcache_restore): Delete declaration.
8041 (regcache_save_no_passthrough): Delete declaration.
8042 (regcache_restore_no_passthrough): Delete declaration.
8043 * regcache.c (regcache_save): Delete function.
8044 (regcache_save_no_passthrough): Delete function.
8045 (regcache_restore): Delete function.
8046 (regcache_restore_no_passthrough): Delete function.
8048 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8050 * config/m68k/tm-m68k.h: Fix typo.
8051 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8052 (m68k_frame_init_saved_regs): Declare.
8054 2002-06-21 Jim Blandy <jimb@redhat.com>
8056 Remove some vestiges of Harris 88k support.
8057 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8058 register numbering quirk.
8059 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8060 odd symbols occurring in Harris 88k ELF targets.
8062 2002-06-21 Tom Tromey <tromey@redhat.com>
8064 * gdb_locale.h: New file.
8065 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8066 (defs_h): Added gdb_locale.h.
8067 * configure, config.in: Rebuilt.
8068 * configure.in (PACKAGE): Define.
8069 * defs.h: Include gdb_locale.h.
8070 * main.c (captured_main): Call setlocale, bindtextdomain,
8073 2002-06-21 Dave Brolley <brolley@redhat.com>
8075 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8076 * config/frv/frv.mt: New file.
8077 * config/frv/tm-frv.h: New file.
8078 * configure.tgt: Support frv-*-*.
8079 * Makefile.in (frv-tdep.o): New target.
8080 * frv-tdep.c: New file.
8081 * NEWS: Mention frv.
8083 2002-06-21 Dave Brolley <brolley@redhat.com>
8085 * MAINTAINERS: Add self to "Write After Approval" list.
8087 2002-06-21 Grace Sainsbury <graces@redhat.com>
8089 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8090 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8091 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8092 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8093 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8095 * m68k-tdep.c: Include arch-utils.h
8096 (m68k_register_raw_size): Add.
8097 (m68k_register_virtual_size): Add.
8098 (m68k_register_virtual_type): Add.
8099 (m68k_register_name): Add.
8100 (m68k_stack_align): Add.
8101 (m68k_register_byte): Add.
8102 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8105 2002-06-21 Grace Sainsbury <graces@redhat.com>
8107 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8108 m68k_find_saved_regs.
8109 (m68k_pop_frame): Removed saved_regs structure, and replaced
8110 references to it with frame->saved_regs.
8111 (m68k_gdbarch_init): Added function calls to initialize the
8113 (m68k_fix_call_dummy): Add.
8114 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8115 (CALL_DUMMY): Remove.
8116 (CALL_DUMMY_LENGTH): Remove.
8117 (CALL_DUMMY_START_OFFSET): Remove.
8118 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8119 (FIX_CALL_DUMMY): Remove.
8120 (PUSH_DUMMY_FRAME): Remove.
8121 (POP_FRAME): Remove.
8123 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8125 * parse.c (parse_fprintf): New function used to avoid calls to
8126 fprintf in bison parser generated debug code.
8127 * parser-defs.h: Declaration of new parse_fprintf function.
8128 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8129 Set YYDEBUG to 1 by default.
8130 Set YYFPRINTF as parse_fprintf.
8132 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8134 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8136 (pointer_encoding, enum ptr_encoding): New.
8137 (execute_cfa_program): Take care about pointer encoding.
8138 (dwarf2_build_frame_info): Only call parse_frame_info for
8139 .debug_frame and .eh_frame.
8140 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8141 fixed augmentation handling, added relative addressing,
8142 ignore duplicate FDEs. Added comments.
8143 * dwarf2cfi.c: Reindented.
8145 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8147 * event-top.c (command_handler): Don't use space_at_cmd_start
8148 unless there is sbrk() on the host. Assign time and space data
8149 to union fields of the appropriate length.
8151 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8153 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8154 x86_64_register_name. Return type changed to 'const char *'.
8155 (x86_64_register_name2nr): Rename to x86_64_register_number.
8156 (x86_64_gdbarch_init): Update to reflect the change.
8157 * x86-64-tdep.h: Ditto.
8158 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8159 (supply_fpregset): Ditto.
8161 2002-06-19 Andrew Cagney <cagney@redhat.com>
8163 * regcache.h: Update copyright.
8164 (struct regcache, struct gdbarch): Add opaque declarations.
8165 (current_regcache): Declare global variable.
8166 (regcache_read, regcache_write): Add gdbarch parameter.
8167 (regcache_save, regcache_save_no_passthrough)
8168 (regcache_restore, regcache_restore_no_passthrough)
8169 (regcache_dup, regcache_dup_no_passthrough)
8170 (regcache_cpy, regcache_cpy_no_passthrough)
8171 (deprecated_grub_regcache_for_registers)
8172 (deprecated_grub_regcache_for_register_valid)
8173 (regcache_valid_p): Add function declarations.
8175 * regcache.c: Update copyright.
8176 (regcache_descr_handle): New global variable.
8177 (struct regcache_descr): Define.
8178 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8179 (regcache_descr, xfree_regcache_descr): New functions.
8180 (struct regcache): Define.
8181 (regcache_xmalloc, regcache_xfree): New functions.
8182 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8183 (regcache_dup, regcache_dup_no_passthrough): New functions.
8184 (regcache_valid_p, regcache_read_as_address): New functions.
8185 (deprecated_grub_regcache_for_registers): New function.
8186 (deprecated_grub_regcache_for_register_valid): New function.
8187 (current_regcache): New global variable.
8188 (register_buffer): Add regcache parameter. Update calls.
8189 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8190 (read_register_gen, write_register_gen): Update register_buffer
8191 call. Test for legacy_p instead of gdbarch_register_read_p or
8192 gdbarch_register_write_p.
8193 (regcache_collect): Update register_buffer call.
8194 (build_regcache): Rewrite. Use deprecated grub functions.
8195 (regcache_save, regcache_save_no_passthrough): New functions.
8196 (regcache_restore, regcache_restore_no_passthrough): New
8198 (_initialize_regcache): Create the regcache_data_handle. Swap
8199 current_regcache global variable.
8201 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8202 parameter to regcache_read and regcache_write calls.
8203 (sh4_register_read): Ditto.
8204 (sh64_pseudo_register_read): Ditto.
8205 (sh64_register_read): Ditto.
8206 (sh_pseudo_register_write): Ditto.
8207 (sh4_register_write): Ditto.
8208 (sh64_pseudo_register_write): Ditto.
8209 (sh64_register_write): Ditto.
8211 * defs.h (XCALLOC): Define.
8213 2002-06-19 Grace Sainsbury <graces@redhat.com>
8215 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8216 * m68k-tdep.c (m68k_gdbarch_init): Added.
8217 (m68k_dump_tdep): Added.
8219 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8221 * ada-lang.c (fill_in_ada_prototype): Update comment.
8223 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8225 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8227 (mips_abi_string, mips_abi_strings): New.
8228 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8229 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8230 tdep->mips_abi_string. Honor mips_abi_string. Default to
8231 O32 if no ABI is found.
8232 (mips_dump_tdep): Use mips_abi_strings.
8233 (mips_abi_update): New function.
8234 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8235 ``set mips abi'' and ``show mips abi''. Check the size of
8238 2002-06-19 Andrew Cagney <cagney@redhat.com>
8240 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8243 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8245 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8246 current frame using only the first stack size adjustment. All
8247 subsequent size adjustments are not considered to be part of
8248 the "static" part of the current frame.
8249 Compute the address of the saved registers relative to the
8250 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8251 in use in this frame.
8253 2002-06-18 Don Howard <dhoward@redhat.com>
8255 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8256 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8257 suggesting this solution.
8259 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8261 * config/romp/xm-rtbsd.h: Delete file.
8262 * config/romp/rtbsd.mh: Delete file.
8264 2002-06-18 Keith Seitz <keiths@redhat.com>
8266 * breakpoint.c (condition_command): Post breakpoint_modify
8267 when a condition is added to an existing breakpoint.
8268 (commands_command): Likewise for commands.
8269 (set_ignore_count): Likewise for ignore counts.
8270 If no tty, do not simply return, still need to send event
8272 (ignore_command): Only print a newline if the command came
8274 Don't call breakpoints_changed, since this is now properly
8275 handled by set_ignore_count.
8277 2002-06-18 Andrew Cagney <cagney@redhat.com>
8279 * MAINTAINERS: Note that cris-elf target can be compiled with
8281 * cris-tdep.c (cris_register_name): Make return type constant.
8282 (cris_breakpoint_from_pc): Ditto.
8284 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8286 * frame.h (struct frame_info): Change type of context to
8289 2002-06-17 Andrew Cagney <cagney@redhat.com>
8291 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8293 * gdbarch.h, gdbarch.c: Regenerate.
8294 * config/mips/tm-mips.h (mips_register_name): Update.
8295 * i386-tdep.h (i386_register_name): Update.
8296 * mips-tdep.c (mips_register_name): Update
8297 * alpha-tdep.c (alpha_register_name): Update.
8298 * arch-utils.c (legacy_register_name): Update.
8299 * arch-utils.h (legacy_register_name): Update.
8300 * avr-tdep.c (avr_register_name): Update.
8301 * ia64-tdep.c (ia64_register_name): Update.
8302 * i386-tdep.c (i386_register_name): Update.
8303 * sparc-tdep.c (sparc32_register_name): Update.
8304 (sparc64_register_name): Update.
8305 (sparclite_register_name): Update.
8306 (sparclet_register_name): Update.
8307 * sh-tdep.c (sh_generic_register_name): Update.
8308 (sh_sh_register_name): Update.
8309 (sh_sh3_register_name): Update.
8310 (sh_sh3e_register_name): Update.
8311 (sh_sh_dsp_register_name): Update.
8312 (sh_sh3_dsp_register_name): Update.
8313 (sh_sh4_register_name): Update.
8314 (sh_sh64_register_name): Update.
8315 * s390-tdep.c (s390_register_name): Update.
8316 * rs6000-tdep.c (rs6000_register_name): Update.
8317 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8318 (ns32k_register_name_32382): Update.
8319 * d10v-tdep.c (d10v_ts2_register_name): Update.
8320 (d10v_ts3_register_name): Update.
8321 * xstormy16-tdep.c (xstormy16_register_name): Update.
8322 * vax-tdep.c (vax_register_name): Update.
8323 * v850-tdep.c (v850_register_name): Update.
8324 * m68hc11-tdep.c (m68hc11_register_name): Update.
8325 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8326 (am33_register_name): Update.
8328 2002-06-17 Grace Sainsbury <graces@redhat.com>
8330 * m68k-tdep.c: Reindented.
8332 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8334 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8335 list of predefined types.
8337 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8339 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8340 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8341 REGISTER_CONVERT_TO_RAW): Remove defines.
8342 (i386_register_virtual_type, i386_register_convertible,
8343 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8345 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8346 macros mentioned above.
8348 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8349 (i386lynx_saved_pc_after_call): Remove prototype.
8350 * i386ly-tdep.c: Include "i386-tdep.h".
8351 (i386lynx_saved_pc_after_call): Make static. Use
8352 read_memory_nobpt instead of read_memory. Use
8353 read_memory_unsigned_integer instead of read_memory_integer.
8354 (i386lynx_init_abi): New function.
8355 (i386lynx_coff_osabi_sniffer): New function.
8356 (_initialize_i386bsd_tdep): New function.
8358 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8359 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8360 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8361 (i386_fix_call_dummy): Remove prototype.
8362 * i386-tdep.c (i386_call_dummy_words): New variable.
8363 (i386_gdbarch_init): Adjust for removal of the
8364 macros mentioned above.
8366 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8368 * command.h (add_setshow_auto_boolean_cmd): Replace
8369 add_set_auto_boolean_cmd.
8370 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8371 add_set_auto_boolean_cmd.
8372 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8373 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8374 mask-address'' command.
8375 (show_mask_address): Add cmd parameter.
8376 * remote.c (add_packet_config_cmd): Update. Change type of
8377 set_func and show_func to cmd_sfunc_ftype.
8378 (_initialize_remote): Update `set remote Z-packet'
8379 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8380 (show_remote_protocol_e_packet_cmd): Ditto.
8381 (show_remote_protocol_E_packet_cmd): Ditto.
8382 (show_remote_protocol_P_packet_cmd): Ditto.
8383 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8384 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8385 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8386 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8387 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8388 (show_remote_protocol_Z_packet_cmd): Ditto.
8389 (show_remote_protocol_binary_download_cmd): Ditto.
8390 (show_remote_cmd): Pass NULL to all of above.
8392 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8394 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8395 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8396 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8397 POP_FRAME): Remove defines.
8398 (i386_push_arguments, i386_store_struct_return,
8399 i386_extract_return_value, i386_store_return_value,
8400 i386_extract_struct_value_address, i386_push_dummy_frame,
8401 i386_pop_frame): Renove prototypes.
8402 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8403 macros mentioned above.
8405 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8407 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8408 add_set_boolean_cmd.
8409 (add_setshow_cmd): New function.
8410 * command.h (add_setshow_boolean_cmd): Replace
8411 add_set_boolean_cmd.
8412 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8413 and ``set rdiromatzero''.
8414 * maint.c (_initialize_maint_cmds): Update commented out code.
8415 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8416 * target.c (initialize_targets): Update `set
8417 trust-readonly-sections'.
8418 * remote.c (_initialize_remote): Update `set remotebreak'.
8420 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8422 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8423 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8424 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8425 fit into multi-arch framework.
8426 (i386_breakpoint_from_pc): New function.
8427 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8430 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8431 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8432 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8433 (i386_frameless_function_invocation, i386_frame_num_args,
8434 i386_frame_init_saved_regs): Remove prototypes.
8435 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8436 macros mentioned above.
8438 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8440 * cli/cli-decode.c (set_cmd_cfunc): Update.
8441 (set_cmd_sfunc): Update.
8442 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8443 (set_cmd_sfunc, set_cmd_cfunc): Update.
8444 * cli/cli-decode.h: Update.
8446 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8448 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8449 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8451 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8453 * defs.h (auto_boolean): Declare enum.
8454 * command.h (cmd_auto_boolean): Delete enum.
8455 * mips-tdep.c (mask_address_var): Update.
8456 (mips_mask_address_p): Update.
8457 (show_mask_address): Update.
8458 * remote.c (struct packet_config): Update.
8459 (update_packet_config): Update.
8460 (show_packet_config_cmd): Update.
8461 (packet_ok): Update.
8462 (add_packet_config_cmd): Update.
8463 (_initialize_remote):
8464 * command.h: Update.
8465 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8466 (do_setshow_command): Update.
8467 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8468 * cli/cli-decode.h: Update.
8470 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8472 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8473 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8474 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8475 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8476 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8477 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8479 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8480 list of DJGPP COFF targets.
8482 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8483 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8484 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8485 (FP0_REGNUM): Remove define.
8486 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8487 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8488 (i386_register_virtual_size): Remove protoype.
8489 * i386-tdep.c (i386_register_virtual_size): Removed.
8490 (i386_extract_return_value, i386_store_return_value): Use
8491 FP0_REGNUM instead of NUM_FREGS to determine whether the
8492 floating-point registers are available.
8493 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8494 Adjust for removal of macros mentioned above.
8496 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8498 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8500 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8502 (supply_gregset, fill_gregset): Remove use of register keyword and
8503 remove declaration for regmap. Use I386_NUM_GREGS instead of
8504 NUM_REGS and NUM_FREGS.
8505 (FPREGSET_FSAVE_OFFSET): Remove.
8506 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8507 NUM_FREGS to determine whether the floating-point registers are
8510 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8511 gnu_store_registers): Replace usage of NUM_GREGS with
8514 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8515 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8516 usage of NUM_GREGS with I386_NUM_GREGS.
8518 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8520 * i386bsd-nat.c: Include "i386-tdep.h".
8521 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8524 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8525 and associated comment. They no longer make any sense, since we
8526 don't use this file anymore on Linux.
8528 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8529 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8530 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8531 elements in these arrays.
8532 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8535 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8537 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8538 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8540 2002-06-14 Andrew Cagney <cagney@redhat.com>
8542 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8543 EXTRACT_RETURN_VALUE.
8544 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8545 EXTRACT_STRUCT_VALUE_ADDRESS.
8546 * gdbarch.h, gdbarch.c: Regenerate.
8548 * values.c (value_being_returned): Handle
8549 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8550 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8552 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8553 * arm-tdep.c (arm_gdbarch_init): Update.
8554 * avr-tdep.c (avr_gdbarch_init): Update.
8555 * cris-tdep.c (cris_gdbarch_init): Update.
8556 * d10v-tdep.c (d10v_gdbarch_init): Update.
8557 * ia64-tdep.c (ia64_gdbarch_init): Update.
8558 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8559 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8560 * s390-tdep.c (s390_gdbarch_init): Update.
8561 * sh-tdep.c (sh_gdbarch_init): Update.
8562 * s390-tdep.c (s390_gdbarch_init): Update.
8563 * sparc-tdep.c (sparc_gdbarch_init): Update.
8564 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8565 * v850-tdep.c (v850_gdbarch_init): Update.
8566 * vax-tdep.c (vax_gdbarch_init): Update.
8567 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8568 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8570 * config/arc/tm-arc.h: Update.
8571 * config/d30v/tm-d30v.h: Update.
8572 * config/fr30/tm-fr30.h: Update.
8573 * config/h8300/tm-h8300.h: Update.
8574 * config/h8500/tm-h8500.h: Update.
8575 * config/i386/tm-i386.h: Update.
8576 * config/i386/tm-ptx.h: Update.
8577 * config/i386/tm-symmetry.h: Update.
8578 * config/i960/tm-i960.h: Update.
8579 * config/m32r/tm-m32r.h: Update.
8580 * config/m68k/tm-delta68.h: Update.
8581 * config/m68k/tm-linux.h: Update.
8582 * config/m68k/tm-m68k.h: Update.
8583 * config/m88k/tm-m88k.h: Update.
8584 * config/mcore/tm-mcore.h: Update.
8585 * config/mips/tm-mips.h: Update.
8586 * config/mn10200/tm-mn10200.h: Update.
8587 * config/pa/tm-hppa.h: Update.
8588 * config/pa/tm-hppa64.h: Update.
8589 * config/sparc/tm-sp64.h: Update.
8590 * config/sparc/tm-sparc.h: Update.
8591 * config/sparc/tm-sparclet.h: Update.
8592 * config/z8k/tm-z8k.h: Update.
8594 2002-06-14 Andrew Cagney <cagney@redhat.com>
8596 * Makefile.in (i386_linux_tdep_h): Define.
8597 (i386_tdep_h, i387_tdep_h): Define.
8598 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8599 $(i386_tdep_h) and $(i387_tdep_h).
8600 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8602 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8604 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8605 Already covered by the default.
8607 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8608 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8609 (i386_gdbarch_init): Initialize long_double_format and long_double
8612 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8613 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8615 * config/i386/i386sol2.mh: ... here.
8616 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8617 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8618 (SIGCONTEXT_PC_OFFSET): Remove define.
8619 (IN_SIGTRAMP): Remove define.
8620 * i386-sol2-tdep.c: New file.
8622 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8623 * config/i386/tm-i386nw.h: Removed.
8625 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8626 USE_STRUCT_CONVENTION): Remove defines.
8627 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8628 (get_longjmp_target): Remove prototype.
8629 (IN_SIGTRAMP): Remove define.
8630 (i386bsd_in_sigtramp): Remove prototype.
8631 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8632 function. Update comment accordingly
8633 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8634 (FRAME_SAVED_PC): Remove define.
8635 (i386bsd_frame_saved_pc): Remove prototype.
8636 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8637 GET_LONGJMP_TARGET): Remove defines.
8638 (get_longjmp_target): Remove prototype.
8639 (IN_SIGTRAMP): Remove define.
8640 (i386bsd_in_sigtramp): Remove prototype.
8641 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8642 function. Update comment accordingly
8643 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8644 (FRAME_SAVED_PC): Remove define.
8645 (i386bsd_frame_saved_pc): Remove prototype.
8646 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8648 (USE_STRUCT_CONVENTION): Remove prototype.
8649 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8651 (_initialize_i386bsd_nat): Revise logic to determine some
8652 constants at compile time when compiling a native GDB. Warn if
8653 things don't match up with what we expect.
8654 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8656 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8657 to use date stored in `struct gdbarch_tdep'.
8658 (i386bsd_sigcontext_offset): Remove varaible.
8659 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8660 stored in `struct gdbarch_tdep'.
8661 (i386bsd_frame_saved_pc): Make static.
8662 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8663 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8664 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8665 i386fbsd4_sc_pc_offset): New variables.
8666 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8667 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8669 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8671 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8672 Modify the value of i386fbsd_sigtramp_start and
8673 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8674 i386fbsd_sigtramp_end.
8675 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8678 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8679 define to i386-linux-tdep.h.
8680 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8681 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8683 (i386_linux_register_name, i386_linux_register_byte,
8684 i386_linux_register_raw_size): Remove prototypes.
8685 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8686 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8687 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8688 TARGET_WRITE_PC): Remove defines.
8689 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8690 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8691 i386_linux_write_pc): Remove prototypes.
8692 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8693 (get_longjmp_target): Remove prototype.
8694 * i386-linux-tdep.h: New file.
8695 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8696 * i386-linux-tdep.c: Include "i386-tdep.h" and
8697 "i386-linux-tdep.h".
8698 (i386_linux_register_name, i386_linux_register_byte,
8699 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8700 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8702 (i386_linux_init_abi): New function.
8703 (_initialize_i386_linux_tdep): New function.
8705 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8706 (i386_saved_pc_after_call): Remove prototype.
8707 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8708 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8709 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8710 (i386_register_name, i386_stab_reg_to_regnum,
8711 i386_dwarf_reg_to_regnum): Remove prototypes.
8712 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8713 SIZEOF_SSE_REGS): Remove defines.
8714 (REGISTER_BYTES): Remove define.
8715 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8716 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8717 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8718 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8719 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8720 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8721 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8722 (get_longjmp_target): Remove prototype.
8723 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8724 (sigtramp_saved_pc): Remove define.
8725 (i386v4_sigtramp_saved_pc): Remove prototype.
8726 * config/i386/tm-go32.h (FRAME_CHAIN,
8727 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8728 (i386go32_frame_saved_pc): Remove prototype.
8729 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8730 (get_longjmp_target): Remove prototype.
8731 * i386-tdep.h: Include "osabi.h".
8732 (enum i386_abi): Removed.
8733 (enum struct_return): New enum.
8734 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8735 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8736 sc_pc_offset members.
8737 (i386_gdbarch_register_os_abi): Remove prototype.
8738 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8739 I386_SSE_NUM_REGS): New defines.
8740 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8741 I386_SSE_SIZEOF_REGS): New defines.
8742 (i386_register_name, i386_register_byte, i386_register_raw_size):
8744 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8745 (i386bsd_sigtramp_saved_pc): New prototype.
8746 * i386-tdep.c: Don't include "elf-bfd.h".
8747 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8748 i386_frame_chain, i386_saved_pc_after_call): Make static.
8749 (i386_frame_saved_pc): Rewrite to call architecture dependent
8750 function to deal with signal handlers. Make static.
8751 (i386go32_frame_saved_pc): Removed.
8752 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8754 (i386_get_longjmp_target): New function.
8755 (default_struct_convention, pcc_struct_convention,
8756 reg_struct_convention, valid_conventions, struct_convention): New
8758 (i386_use_struct_convention): New function.
8759 (i386v4_sigtramp_saved_pc): Renamed to
8760 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8761 (i386_pc_in_sigtramp): New function.
8762 (i386_abi_names): Removed.
8763 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8764 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8766 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8767 i386_gdbarch_register_os_abi): Removed.
8768 (struct i386_abi_handler): Removed.
8769 (i386_abi_handler_list): Removed.
8770 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8772 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8773 i386_nw_init_abi): New functions.
8774 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8775 Use set_gdbarch_xxx() calls instead of relying on macros for a
8777 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8778 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8779 Register the various architecture variants defined in this file.
8781 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8783 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8784 (struct main_type): Remove arg_types member. Update comments for
8786 (TYPE_ARG_TYPES): Remove.
8787 (TYPE_FN_FIELD_ARGS): Update.
8788 (smash_to_method_type): Update prototype.
8790 * c-typeprint.c (cp_type_print_method_args): Take method type
8791 instead of argument list. Use new argument layout. Simplify.
8792 (c_type_print_args): Use new argument layout. Simplify.
8793 (c_type_print_base): Update call to cp_type_print_method_args.
8794 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8795 argument; use die->type instead. Update call to
8796 smash_to_method_type.
8797 (read_structure_scope): Update call to dwarf2_add_member_fn.
8798 * gdbtypes.c (allocate_stub_method): Update comment.
8799 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8800 Use new argument layout.
8801 (check_stub_method): Use new argument layout. Don't count
8802 void as an argument.
8803 (print_arg_types): Update comments. Use new argument layout.
8804 (recursive_dump_type): Don't print arg_types member.
8805 * hpread.c (hpread_read_struct_type): Use new argument layout.
8806 (fixup_class_method_type): Likewise.
8807 (hpread_type_lookup): Likewise.
8808 * stabsread.c (read_type): Update calls to read_args and
8809 smash_to_method_type.
8810 (read_args): Use new argument layout. Simplify.
8811 * valops.c (typecmp): Use new argument layout. Update parameters
8812 and comments. Simplify.
8813 (hand_function_call): Use new argument layout.
8814 (search_struct_method): Update call to typecmp.
8815 (find_overload_match): Use new argument layout.
8817 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8819 * NEWS: Mention multithreaded debug support for gdbserver.
8821 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8823 * MAINTAINERS: Mention NEWS.
8825 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8827 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8828 (struct mips_objfile_private, compare_pdr_entries): New.
8829 (non_heuristic_proc_desc): Read the ".pdr" section if it
8832 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8834 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8835 (arm_debug): New static variable.
8836 (_initialize_arm_tdep): Add ``set debug arm'' command.
8838 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8840 * Makefile.in (sim_arm_h): Define.
8841 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8842 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8843 (arm_register_sim_regno): New function, map an internal REGNUM
8844 onto a simulator register number.
8845 (arm_gdbarch_init): Set register_sim_regno.
8847 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8849 * MAINTAINERS: Add self.
8851 2002-06-11 Jim Blandy <jimb@redhat.com>
8853 * source.c (source_info): Mention whether the symtab has
8854 information about preprocessor macros.
8856 Call the command `info macro', not `show macro'.
8857 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8859 (_initialize_macrocmd): Register `info_macro_command' in
8860 `infolist', not `showlist'.
8862 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8864 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8865 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8866 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8867 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8868 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8870 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8871 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8872 (_initialize_mips_tdep): Remove dead code.
8873 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8874 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8875 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8876 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8877 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8878 MIPS_LAST_FP_ARG_REGNUM): Remove.
8880 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8882 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8883 (unwind_tmp_obstack_free, parse_frame_info)
8884 (update_context, cfi_read_fp, cfi_write_fp)
8885 (cfi_frame_chain, cfi_init_extra_frame_info)
8886 (cfi_virtual_frame_pointer): Use the above function.
8887 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8889 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8891 * v850-tdep.c (v850_type_is_scalar): New function.
8892 (v850_use_struct_convention): Match current gcc implementation
8893 as close as possible.
8894 (v850_push_arguments): Fix stack_offset handling. Don't write
8895 struct_addr into register. This is done by v850_store_struct_return.
8896 (v850_extract_return_value): Care for structs.
8897 (v850_store_return_value): Ditto.
8898 (v850_store_struct_return): Actually write address.
8900 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8902 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8903 without debug information too.
8905 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8907 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8908 Make multi-arch pure.
8909 * gdbarch.h, gdbarch.c: Re-generate.
8910 * arm-tdep.c (arm_print_float_info): Update.
8911 * arch-utils.h (default_print_float_info): Update.
8912 * arch-utils.c (default_print_float_info): Update.
8913 * infcmd.c (float_info): Update call.
8915 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8917 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8918 the front of the initialize list.
8920 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8922 * infrun.c (struct inferior_status): Replace fields
8923 selected_frame_address and selected_level with field
8925 (save_inferior_status): Update. Use get_frame_id.
8926 (struct restore_selected_frame_args): Delete.
8927 (restore_selected_frame): Update. Use frame_find_by_id.
8928 (restore_inferior_status): Update.
8930 * breakpoint.h (struct breakpoint): Change type of
8931 watchpoint_frame to frame_id.
8932 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8933 call to get_current_frame.
8934 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8936 (watchpoint_check): Use frame_find_by_id.
8938 * frame.h (record_selected_frame): Delete declaration.
8939 * stack.c (record_selected_frame): Delete function.
8941 * frame.h (struct frame_id): Define.
8942 (get_frame_id): Declare.
8943 (frame_find_by_id): Declare.
8944 * frame.c (frame_find_by_id): New function.
8945 (get_frame_id): New function.
8947 2002-06-10 Andrey Volkov <avolkov@transas.com>
8949 * ser-e7kpc.c: Fix duplicated define and call of
8950 _initialize_ser_e7000pc
8952 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8954 * signals/signals.c (target_signal_from_host): Fix #ifdef
8956 (do_target_signal_to_host): Likewise.
8958 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8960 * mips-tdep.c (mips_find_abi_section): New function.
8961 (mips_gdbarch_init): Call it.
8963 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8965 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8966 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8967 after Andrew's 2002-06-08 gdbarch change.
8969 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8971 * i386-linux-nat.c (suppy_gregset): Don't supply
8972 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8974 (fill_gregset): Don't fetch it under the same circumstances.
8976 2002-06-09 Andrew Cagney <cagney@redhat.com>
8978 * Makefile.in (callback_h): Define.
8979 (remote_sim_h): Update path to remote-sim.h.
8980 (remote-rdp.o): Add $(callback_h).
8981 (remote-sim.o): Use $(callback_h).
8982 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8983 * remote-rdp.c: Include "gdb/callback.h".
8985 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8987 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8988 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8990 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8992 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8993 * rdi-share/serpardr.c: Ditto.
8994 * rdi-share/unixcomm.c: Ditto.
8995 * rdi-share/serdrv.c: Ditto.
8996 * rdi-share/hostchan.h: Ditto.
8997 * rdi-share/hostchan.c: Ditto.
8998 * rdi-share/host.h: Ditto.
8999 * rdi-share/devsw.c: Ditto.
9001 * objfiles.h: Change type of obj_private to void pointer.
9002 * pa64solib.c: Update copyright. Don't include "assert.h", use
9003 strcmp instead of STREQ, use LONGEST, do not use PTR
9004 * somsolib.c: Ditto.
9006 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9007 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9008 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9010 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9012 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9013 (default_get_saved_register): Delete function.
9014 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9015 generic_unwind_get_saved_register.
9016 * gdbarch.h, gdbarch.c: Re-generate.
9018 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9020 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9021 generic_func_frame_chain_valid.
9022 * gdbarch.h, gdbarch.c: Re-generate.
9023 * blockframe.c (generic_func_frame_chain_valid): Only check
9024 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
9025 passing FP to PC_IN_CALL_DUMMY.
9028 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9030 * gdbarch.sh (struct gdbarch_data): Add field init_p.
9031 (register_gdbarch_data): Initialize init_p.
9032 (gdbarch_data): Initialize data pointer using the init function.
9033 (init_gdbarch_data): Delete function.
9034 (gdbarch_update_p): Update.
9035 (initialize_non_multiarch): Update.
9036 (struct gdbarch): Add field initialized_p.
9037 * gdbarch.h, gdbarch.c: Re-generate.
9039 2002-06-07 Michal Ludvig <mludvig@suse.cz>
9041 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9042 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9043 better do the things actually here.
9044 * x86-64-tdep.c (x86_64_register_name2nr): New.
9045 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9046 (x86_64_gdbarch_init): Respect the above change.
9047 * x86-64-tdep.h (x86_64_register_name2nr)
9048 (x86_64_register_nr2name): Add prototypes.
9049 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9051 2002-06-06 Michael Snyder <msnyder@redhat.com>
9053 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9054 Delete extra braces and re-indent.
9055 (d10v_store_return_value): Char return values
9056 must be shifted over by one byte in R0.
9057 (d10v_extract_return_value): Delete extra braces, re-indent.
9059 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9061 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9062 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9063 (d10v_integer_to_address): Rewrite.
9064 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9065 the d10v specific functions which take care of converting to the
9068 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9070 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9071 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9073 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9075 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9077 * config/tm-linux.h: Ditto.
9078 * config/alpha/tm-alphalinux.h: Ditto.
9079 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9080 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9081 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9082 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9083 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9084 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9085 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9086 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9087 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9088 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9089 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9090 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9091 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9092 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9093 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9094 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9095 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9096 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9097 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9098 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9099 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9100 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9101 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9102 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9103 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9104 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9105 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9106 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9107 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9108 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9109 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9110 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9111 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9112 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9113 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9114 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9115 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9117 2002-05-04 Aidan Skinner <aidan@velvet.net>
9119 * ada-exp.tab.c: New file
9120 * ada-exp.y: New file
9121 * ada-lang.c: New file
9122 * ada-lang.h: New file
9123 * ada-lex.c: New file
9124 * ada-lex.l: New file
9125 * ada-tasks.c: New file
9126 * ada-typeprint.c: New file
9127 * ada-valprint.c: New file
9129 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9131 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9132 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9134 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9136 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9137 insetead of ppc-linux-tdep.o.
9138 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9139 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9141 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9143 2002-05-07 Christian Groessler <chris@groessler.org>
9144 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9145 bit register contents for little endian hosts.
9147 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9149 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9152 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9154 * gdbarch.h: Regenerate.
9156 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9158 * MAINTAINERS: Add everyone to write-after-approval list.
9160 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9162 * stack.c (frame_info): Use frame_register_unwind instead of
9163 saved_regs. Mention when the SP is on the stack or in a register.
9165 * frame.h (frame_register_unwind_ftype): Define. Document.
9166 (struct frame_info): Add field register_unwind and
9167 register_unwind_cache.
9168 (frame_register_unwind): Declare.
9169 (generic_unwind_get_saved_register): Declare.
9171 * frame.c (frame_register_unwind): New function.
9172 (generic_unwind_get_saved_register): New function.
9174 * blockframe.c (generic_call_dummy_register_unwind): New function.
9175 (frame_saved_regs_register_unwind): New function.
9176 (set_unwind_by_pc): New function.
9177 (create_new_frame): New function.
9178 (get_prev_frame): New function.
9180 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9182 * a29k-share/: Delete directory.
9183 * remote-vx29k.c: Delete file.
9185 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9187 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9188 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9190 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9192 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9193 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9196 (sparcnbsd-tdep.o): New dependency lists.
9197 * NEWS: Note new UltraSPARC NetBSD native configuration.
9198 * configure.host (sparc64-*-netbsd*): New host.
9199 * configure.tgt (sparc-*-netbsdelf*)
9200 (sparc-*-netbsd*): Set gdb_target to nbsd.
9201 (sparc64-*-netbsd*): New target.
9202 * sparc64nbsd-nat.c: New file.
9203 * sparcnbsd-nat.c: New file.
9204 * sparcnbsd-tdep.c: New file.
9205 * sparcnbsd-tdep.h: New file.
9206 * config/sparc/nbsd.mt: New file.
9207 * config/sparc/nbsd64.mh: New file.
9208 * config/sparc/nbsd64.mt: New file.
9209 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9210 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9212 * config/sparc/nbsdaout.mt: Remove.
9213 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9214 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9216 * config/sparc/nbsdelf.mt: Remove.
9217 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9218 sparc-nat.c compatiblity defines.
9219 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9220 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9221 * config/sparc/tm-nbsd64.h: New file.
9222 * config/sparc/tm-nbsdaout.h: Remove.
9223 * config/sparc/xm-nbsd.h: Remove.
9225 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9227 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9228 * sparc-tdep.c: Include osabi.h.
9229 (gdbarch_tdep): Add osabi member.
9230 (_initialize_sparc_tdep): Use gdbarch_register.
9231 (sparc_gdbarch_init): Use generic OS ABI framework.
9232 (sparc_dump_tdep): New function.
9234 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9236 * corefile.c (do_captured_read_memory_integer): Return non-zero
9238 (safe_read_memory_integer): Copy result of memory read when
9239 status is non-zero. Also, add comments.
9241 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9243 * Makefile.in (ppc_tdep_h): Define.
9246 (rs6000-tdep.o): Use $(ppc_tdep_h).
9249 (ppcnbsd-tdep.o): New dependency lists.
9250 * ppc-tdep.h: Use generic OS ABI framework.
9251 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9252 (ppc_linux_init_abi): New functions.
9253 (ppc_sysv_abi_broken_use_struct_convention)
9254 (ppc_sysv_abi_use_struct_convention)
9255 (ppc_sysv_abi_push_arguments): Move to...
9256 * ppc-sysv-tdep.c: ...here.
9257 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9258 * rs6000-tdep.c (process_note_abi_tag_sections)
9259 (get_elfosabi): Remove.
9260 (rs6000_gdbarch_init): Use generic OS ABI framework.
9261 (rs6000_dump_tdep): New function.
9262 (_initialize_rs6000_tdep): Use gdbarch_register.
9263 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9264 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9265 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9266 of ppc-linux-tdep.o.
9267 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9268 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9269 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9270 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9271 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9272 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9274 2002-05-29 Jim Blandy <jimb@redhat.com>
9276 * macroscope.c (default_macro_scope): Put `void' in empty argument
9279 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9281 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9282 * arch-utils.c: Include "sim-regno.h".
9283 * gdbarch.sh: Don't include "sim-regno.h".
9284 * gdbarch.h, gdbarch.c: Regenerate.
9285 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9287 * arch-utils.h (legacy_register_sim_regno): To here.
9288 * remote-sim.c (legacy_register_sim_regno): Move function from
9290 * arch-utils.c (legacy_register_sim_regno): To here.
9292 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9294 * sim-regno.h: New file.
9295 * Makefile.in (sim_regno_h): Define.
9296 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9297 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9298 (legacy_register_sim_regno): New function.
9299 (one2one_register_sim_regno): New function.
9300 (gdbsim_fetch_register): Rewrite.
9301 (gdbsim_store_register): Only store a register when
9302 REGISTER_SIM_REGNO is valid.
9303 * d10v-tdep.c: Include "sim-regno.h".
9304 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9305 (d10v_ts3_register_sim_regno): Ditto.
9306 * gdbarch.sh: Include "sim-regno.h".
9307 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9308 * gdbarch.h, gdbarch.c: Regenerate.
9309 * arch-utils.h (default_register_sim_regno): Delete declaration.
9310 * arch-utils.c (default_register_sim_regno): Delete function.
9312 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9314 * ppcnbsd-nat.c: Rewrite.
9315 * ppcnbsd-tdep.c: New file.
9316 * ppcnbsd-tdep.h: New file.
9317 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9318 solib.o, and solib-svr4.o.
9319 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9320 nbsd-tdep.o, and corelow.o.
9322 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9324 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9325 `tr' and `sed'. Mention that `broken' targets are not expected to
9328 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9330 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9331 Let PC point right after the prologue before looking up symbols.
9333 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9335 * i386-tdep.c (i386_register_virtual_type): Return
9336 builtin_type_vec128i for SSE registers.
9338 * gdbtypes.h (builtin_type_vec128i): Declare.
9340 * gdbtypes.c (build_builtin_type_vec128i): New function.
9341 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9342 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9343 (build_gdbtypes): Initialize new builtin vector types.
9344 (_initialize_gdbtypes): Register new vector types with gdbarch.
9346 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9348 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9349 since it has been multi-arch'd.
9350 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9351 Move Alpha and VAX multi-arch news entries to same section
9352 as other multi-arch news.
9354 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9356 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9357 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9358 static. Rename some register numbers to put them in ns32k-tdep
9360 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9361 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9363 (_initialize_ns32k_tdep): Use gdbarch_register.
9364 * ns32k-tdep.h: New file.
9365 * ns32knbsd-tdep.c: New file.
9366 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9367 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9368 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9369 REGISTER_BYTES, REGISTER_BYTE): Remove.
9370 * config/ns32k/tm-ns32k.h: New file.
9371 * config/ns32k/tm-umax.h: Remove.
9373 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9375 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9376 ns32k_store_struct_return, ns32k_extract_return_value,
9377 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9379 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9380 ns32k_saved_pc_after_call.
9381 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9382 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9383 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9384 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9385 ns32k_extract_struct_value_address.
9387 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9389 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9390 ns32k_fix_call_dummy): New.
9391 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9392 ns32k_call_dummy_words.
9393 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9394 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9395 CALL_DUMMY_NARGS): Remove.
9396 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9398 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9400 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9401 ns32k_frame_saved_pc, ns32k_frame_args_address,
9402 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9403 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9404 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9405 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9406 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9407 (BREAKPOINT): Remove..
9408 (FRAME_CHAIN): Define as ns32k_frame_chain.
9409 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9410 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9411 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9412 (FRAME_FIND_SAVED_REGS): Remove.
9413 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9414 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9415 (POP_FRAME): Define as ns32k_pop_frame.
9417 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9419 * ns32k-tdep.c (ns32k_register_byte_32082,
9420 ns32k_register_byte_32382, ns32k_register_raw_size,
9421 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9423 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9424 ns32k_register_byte_32382.
9425 * config/ns32k/tm-umax.h: Update copyright years.
9426 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9427 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9428 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9429 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9430 (ns32k_get_enter_addr): Fix prototype.
9432 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9434 * ns32k-tdep.c: Update copyright years.
9435 (ns32k_register_name_32082): New function.
9436 (ns32k_register_name_32382): Ditto.
9437 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9438 (REGISTER_NAME): Define as ns32k_register_name_32382.
9439 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9440 (REGISTER_NAME): Define as ns32k_register_name_32082.
9442 2002-05-24 Jim Blandy <jimb@redhat.com>
9444 * dwarf2read.c (free_line_header): Use xfree, not free.
9446 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9448 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9449 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9451 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9453 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9455 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9457 From Ross Alexander at NEC Europe:
9458 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9460 2002-05-23 Michael Snyder <msnyder@redhat.com>
9462 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9463 for input, rather than parse_and_eval_address.
9465 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9467 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9468 * Makefile.in (sim_d10v_h): Update definition.
9470 2002-05-24 Andrew Cagney <cagney@redhat.com>
9472 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9473 change `2002-05-22 Michael Snyder' below.
9474 (d10v_push_arguments): Ditto.
9475 (d10v_extract_return_value): Ditto.
9477 2002-05-23 Jim Blandy <jimb@redhat.com>
9479 * macrotab.c (check_for_redefinition): Don't complain if the new
9480 definition is the same as the previous one. Take more arguments
9481 to allow the comparison.
9482 (macro_define_object, macro_define_function): Pass more arguments
9483 to check_for_redefinition.
9485 2002-05-22 Michael Snyder <msnyder@redhat.com>
9487 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9488 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9489 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9490 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9491 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9492 Add a temp variable to save a call (and a memory read).
9493 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9494 if possible (so that PC_IN_CALL_DUMMY will work).
9496 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9498 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9500 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9502 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9504 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9505 (dwarf2_build_frame_info): Add offset to fde->initial_location
9506 so that frames of shared libraries are mapped correctly.
9507 (execute_stack_op): Change type of 'result' from ULONGEST to
9510 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9512 * config/alpha/tm-nbsd.h: Include solib.h.
9514 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9516 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9517 assumptions about the host's byte order.
9519 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9521 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9523 * alphanbsd-tdep.c: Include solib-svr4.h.
9524 * shnbsd-tdep.c: Ditto.
9526 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9528 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9529 nbsd-tdep.h to dependency list.
9530 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9531 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9532 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9533 nbsdaout.mh and nbsdelf.mh consistently.
9534 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9535 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9536 nbsdaout.mt and nbsdelf.mh consistently.
9537 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9538 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9539 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9540 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9541 a.out shared library stuff from here...
9542 * config/nm-nbsdaout.h: ...to here.
9543 * config/tm-nbsd.h: Remove.
9544 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9545 * config/arm/nbsd.mh: Remove.
9546 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9548 * config/arm/nbsdaout.mh: New file.
9549 * config/arm/nbsdelf.mh: New file.
9550 * config/arm/nm-nbsdaout.h: New file.
9551 * config/i386/nbsd.mh: Remove.
9552 * config/i386/nbsd.mt: Remove.
9553 * config/i386/nbsdaout.mh: New file.
9554 * config/i386/nbsdaout.mt: New file.
9555 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9556 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9557 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9558 i386_register_u_addr): Remove.
9559 * config/i386/nm-nbsdaout.h: New file.
9560 * config/i386/nm-nbsdelf.h: Remove.
9561 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9562 (USE_STRUCT_CONVENTION): Remove.
9563 * config/i386/tm-nbsdaout.h: New file.
9564 * config/i386/tm-nbsdelf.h: Remove.
9565 * config/m68k/nbsd.mh: Remove.
9566 * config/m68k/nbsd.mt: Remove.
9567 * config/m68k/nbsdaout.mh: New file.
9568 * config/m68k/nbsdaout.mt: New file.
9569 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9570 * config/m68k/nm-nbsdaout.h: New file.
9571 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9572 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9573 * config/ns32k/nbsd.mh: Remove.
9574 * config/ns32k/nbsd.mt: Remove.
9575 * config/ns32k/nbsdaout.mh: New file.
9576 * config/ns32k/nbsdaout.mt: New file.
9577 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9578 * config/ns32k/nm-nbsdaout.h: New file.
9579 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9580 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9581 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9582 (SVR4_SHARED_LIBS): Remove.
9583 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9584 * config/sparc/nbsd.mh: Remove.
9585 * config/sparc/nbsd.mt: Remove.
9586 * config/sparc/nbsdaout.mh: New file.
9587 * config/sparc/nbsdaout.mt: New file.
9588 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9589 * config/sparc/nbsdelf.mt: New file.
9590 * config/sparc/nm-nbsdaout.h: New file.
9591 * config/sparc/nm-nbsdelf.h: Remove.
9592 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9593 * config/sparc/tm-nbsdaout.h: New file.
9595 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9597 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9599 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9601 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9603 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9605 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9607 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9609 * NEWS: Note new MIPS NetBSD native configuration.
9610 * configure.host (mips*-*-netbsd*): New host.
9611 * configure.tgt (mips*-*-netbsd*): New target.
9612 * mipsnbsd-nat.c: New file.
9613 * mipsnbsd-tdep.c: New file.
9614 * mipsnbsd-tdep.h: New file.
9615 * config/mips/nbsd.mh: New file.
9616 * config/mips/nbsd.mt: New file.
9617 * config/mips/nm-nbsd.h: New file.
9618 * config/mips/tm-nbsd.h: New file.
9620 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9622 * Makefile.in (SFILES): Add osabi.c.
9623 (COMMON_OBS): Add osabi.o.
9624 (osabi.o): New dependency list.
9625 * osabi.c: New file.
9626 * osabi.h: New file.
9627 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9629 * Makefile.in (alpha_tdep_h): Define and use instead of
9631 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9632 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9634 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9635 * alpha-tdep.h: Include osabi.h.
9636 (alpha_abi): Remove.
9637 (gdbarch_tdep): Use generic OS ABI framework.
9638 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9639 gdbarch_register_osabi.
9640 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9641 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9642 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9644 * Makefile.in (sh_tdep_h): Add osabi.h.
9645 * sh-tdep.h (sh_osabi): Remove.
9646 (gdbarch_tdep): Use generic OS ABI framework.
9647 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9648 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9649 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9650 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9652 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9653 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9654 gdbarch_register_osabi.
9655 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9656 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9657 (get_elfosabi): Rename to...
9658 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9659 ABI framework support routines.
9660 (arm_gdbarch_init): Use generic OS ABI framework.
9661 (arm_dump_tdep): Likewise.
9662 (_initialize_arm_tdep): Likewise.
9663 * arm-tdep.h: Include osabi.h.
9665 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9667 (arm_gdbarch_register_os_abi): Remove prototype.
9668 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9669 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9671 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9672 * mips-tdep.c: Include osabi.h.
9673 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9676 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9678 * h8300-tdep.c: Fix formatting.
9680 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9682 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9683 printing vector registers.
9685 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9687 From Fernando Nasser:
9688 * remote.c (remote_async_open_1): Re-throw the exception when the
9690 (remote_cisco_open): Ditto.
9691 (remote_open_1): Ditto.
9693 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9695 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9696 (remote_start_remote): Add uiout parameter. Pass through to
9697 remote_start_remote_dummy.
9698 (remote_open_1): Use catch_exception instead of catch_errors.
9699 (remote_async_open_1): Ditto.
9700 (remote_cisco_open): Ditto.
9702 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9704 * remote.c (remote_start_remote): Replace PTR with void pointer.
9705 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9708 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9710 * gdb_indent.sh: Allow the script to be run in the sim directory.
9712 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9714 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9715 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9717 * corelow.c (core_open): Only call set_gdbarch_from_file if
9720 2002-05-17 Andrey Volkov <avolkov@transas.com>
9722 * h8300-tdep.c: Add support of EXR register
9723 * config/h8300/tm-h8300.h: Ditto.
9725 2002-05-17 Andrey Volkov <avolkov@transas.com>
9727 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9729 2002-05-17 Andrey Volkov <avolkov@transas.com>
9731 * h8300-tdep.c: Change literal regnums to REGNO.
9733 2002-05-17 Jim Blandy <jimb@redhat.com>
9735 * NEWS: Note addition of macro support.
9737 Expand preprocessor macros in C expressions.
9738 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9739 (scan_macro_expansion, scanning_macro_expansion,
9740 finished_macro_expansion): New function declarations.
9741 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9742 variable declarations.
9743 * parser-defs.h (expression_context_pc): New declaration.
9744 * parse.c (expression_context_pc): New variable.
9745 (parse_exp_1): Set expression_context_pc, as well as
9746 expression_context_block.
9747 * c-exp.y (yylex): If we're not already reading the result of a
9748 macro expansion, try to macro-expand the next token. When we're
9749 done scanning a macro expansion, switch back to the mainline text.
9750 Commas and `if's in a macro's expansion don't terminate the input.
9751 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9752 (macro_original_text, macro_expanded_text,
9753 expression_macro_lookup_func, expression_macro_lookup_baton): New
9755 (scan_macro_expansion, scanning_macro_expansion,
9756 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9757 c_preprocess_and_parse): New functions.
9758 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9759 c_preprocess_and_parse, instead of c_parse.
9760 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9761 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9763 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9765 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9766 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9767 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9769 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9771 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9773 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9775 * Makefile.in (sh_tdep_h): Define and use.
9776 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9777 register enum): Move to...
9778 * * sh-tdep.h: ...here.
9779 * sh-tdep.c: Include sh-tdep.h.
9780 * sh3-rom.c: Likewise.
9781 * shnbsd-tdep.c: Likewise.
9783 2002-05-16 Michael Snyder <msnyder@redhat.com>
9785 * arm-tdep.c: Spelling fix in comment.
9787 2002-05-16 Jim Blandy <jimb@redhat.com>
9789 Add commands for manually expanding macros and showing their
9791 * macrocmd.c, macroscope.c, macroscope.h: New files.
9792 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9793 (macroscope_h): New variable.
9794 (HFILES_NO_SRCDIR): Add macroscope.h.
9795 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9796 (macroscope.o, macrocmd.o): New rules.
9798 Teach the Dwarf 2 reader to read macro information.
9799 * dwarf2read.c: #include "macrotab.h".
9800 (dwarf_macinfo_buffer): New variable.
9801 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9803 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9804 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9805 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9806 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9807 dwarf2_macro_spaces_in_definition): New complaints.
9808 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9809 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9810 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9811 the partial symbol table.
9812 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9813 from what's recorded in the partial symbol table.
9814 (read_file_scope): If the compilation unit has a
9815 `DW_AT_macro_info' attribute, read its macro information.
9816 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9818 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9821 * ser-tcp.c: Don't include <netinet/udp.h>.
9823 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9825 * MAINTAINERS: Update my email address.
9827 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9829 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9830 include file of the same name.
9832 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9834 * configure.tgt: Mark v850 as multi-arched.
9835 * config/v850/tm-v850.h: Remove file.
9836 * config/v850/v850.mt: Eliminate TM_FILE.
9838 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9840 * v850-tdep.c: Full multi-arch.
9841 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9842 Define GDB_MULTI_ARCH to 2.
9844 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9846 * p-exp.y (current_type): New static variable.
9847 Carries the type of the expression at the position that is parsed.
9848 (push_current_type, pop_current_type): Two new functions. Used
9849 to store/restore current_type in expression on specific tokens.
9850 (search_field): New static variable. Set to one after parsing a point
9851 as at that point only a FIELDNAME token should be searched.
9852 (FIELDNAME): New token. After a point only a token belonging to
9853 current_type type definition is allowed.
9854 (all over token rules): reset and change current_type according
9856 (exp '[' rule): insert implicit array index field if
9857 exp is a pascal string type.
9859 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9861 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9862 frame info. Use frame_info's saved_regs instead of matching member
9863 in extra_frame_info throughout.
9864 (v850_frame_init_saved_regs): New function.
9865 (v850_init_extra_frame_info): Move most functionality into
9866 v850_frame_init_saved_regs().
9867 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9868 (v850_frame_find_saved_regs): Remove declaration.
9869 (FRAME_FIND_SAVED_REGS): Remove definition.
9870 (v850_frame_init_saved_regs): Add declaration.
9871 (FRAME_INIT_SAVED_REGS): Add definition.
9873 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9875 * v850-tdep.c: Begin multi-arch'ing v850.
9876 (v850_target_architecture_hook): Remove function.
9877 (v850_gdbarch_init): New function. Add code previously in
9878 v850_target_architecture_hook().
9879 (_initialize_v850_tdep): Don't set target_architecture_hook.
9880 Call register_gdbarch_init() instead.
9882 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9884 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9885 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9886 (fixup_class_method_type): Likewise.
9888 2002-05-15 Jim Blandy <jimb@redhat.com>
9890 Add macro structures to GDB's symbol tables. Nobody puts anything
9892 * symtab.h (struct symtab): New member: `macro_table'.
9893 * buildsym.h (pending_macros): New global variable.
9894 * buildsym.c: #include "macrotab.h".
9895 (buildsym_init): Initialize `pending_macros'.
9896 (end_symtab): If we found macro information while reading a CU's
9897 debugging info, do build a symtab structure for it. Make the
9898 symtab point to the macro information, and clear the
9899 `pending_macros' pointer which held it while we were reading the
9901 (really_free_pendings): Free any pending macro table.
9902 * objfiles.h (struct objfile): New member: `macro_cache'.
9903 * objfiles.c (allocate_objfile): Set allocate and free functions
9904 for the macro cache's objstack.
9905 (free_objfile): Empty the macro cache's obstack.
9906 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9907 set new allocate and free functions for it.
9908 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9909 free functions for the macro cache's objstack. (Why is this
9910 function building its own objfile?)
9911 * symmisc.c (print_objfile_statistics): Print statistics on the
9913 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9915 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9917 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9918 (REGISTER_U_ADDR): Delete definition.
9919 (arm_register_u_addr): Delete declaration.
9921 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9923 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9924 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9926 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9928 * regcache.c (register_valid): Revise comments refering to "Not
9929 available" and "unavailable".
9930 * frame.c (frame_register_read): Ditto.
9931 * findvar.c (value_of_register): Ditto.
9933 2002-05-15 Andrew Cagney <cagney@redhat.com>
9935 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9936 (remote-sim.o): Update dependencies.
9937 (d10v-tdep.o): Specify dependencies.
9938 (sim_d10v_h): Define.
9940 2002-05-14 Jim Blandy <jimb@redhat.com>
9942 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9943 * macrotab.c (macro_lookup_inclusion, find_definition,
9944 new_macro_table): Same.
9946 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9947 not `! strcmp ()'. This is a dubious improvement.
9948 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9950 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9951 although it's not necessary, to avoid a warning.
9953 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9955 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9956 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9957 TYPE_INSTANCE_FLAGS.
9958 (struct main_type): New.
9959 (struct type): Move most members to struct main_type. Change
9960 cv_type and as_type to new type_chain member. Add instance_flags.
9961 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9962 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9963 (finish_cv_type): Remove prototype.
9964 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9966 (alloc_type_instance): New function.
9967 (smash_type): New function.
9968 (make_pointer_type, make_reference_type, make_function_type)
9969 (smash_to_member_type, smash_to_method_type): Call smash_type.
9970 (make_qualified_type): New function.
9971 (make_type_with_address_space): Call make_qualified_type.
9972 (make_cv_type): Likewise.
9973 (finish_cv_type): Remove unnecessary function.
9974 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9975 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9976 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9977 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9978 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9979 * hpread.c (hpread_read_struct_type): Likewise.
9980 * stabsread.c (read_struct_type): Likewise.
9982 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9984 * configure.tgt: Add a catch all sh* target, for cases like
9985 sh[2,3,4]-elf and sh-hms.
9987 2002-05-14 Keith Seitz <keiths@redhat.com>
9989 * event-loop.c (create_file_handler): Don't do anything but
9990 update data when we are given a fd which we are already
9993 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9995 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9996 (update_context): Use __func__ in warnings.
9998 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10000 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
10001 and tcp_close to net_open and net_close.
10002 (net_open): Accept "udp:" and "tcp:" specifications. Connect
10003 using UDP if requested. Don't try to disable Nagle on UDP
10005 * remote.c (remote_serial_open): New function. Warn about UDP.
10006 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10008 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10010 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10012 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10014 * configure.tgt: Remove sh-hms target.
10015 * MAINTAINERS: Don't list sh-hms as a separate target.
10017 2002-05-13 Jim Blandy <jimb@redhat.com>
10019 Add first preprocessor macro-expansion files.
10020 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10021 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10022 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10023 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10024 (COMMON_OBS): Add macrotab.o, macroexp.o.
10025 (macroexp.o, macrotab.o): New rules.
10027 2002-05-13 Andrew Cagney <ac131313@redhat.com>
10029 * config/m88k/tm-m88k.h: Update copyright.
10030 (m88k_target_write_pc): Declare
10031 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10032 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10033 (SHIFT_INST_REGS): Update definition.
10034 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10035 using old definition of TARGET_WRITE_PC.
10036 * regcache.c (generic_target_write_pc): Delete code handling
10038 * gdbarch.sh (NNPC_REGNUM): Delete.
10039 * gdbarch.h, gdbarch.c: Regenerate.
10041 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
10043 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10044 builtin reg number.
10046 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10048 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10049 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10050 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10052 * c-typeprint.c (cp_type_print_method_args): Likewise.
10053 (c_type_print_args): Likewise.
10054 * d10v-tdep.c (d10v_push_arguments): Likewise.
10055 (d10v_extract_return_value): Likewise.
10056 * expprint.c (print_subexp): Likewise.
10057 * gdbtypes.c (lookup_primitive_typename): Likewise.
10058 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10059 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10060 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10061 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10062 (TYPE_VECTOR): Likewise.
10063 * hpread.c (hpread_read_struct_type)
10064 (fix_static_member_physnames, fixup_class_method_type)
10065 (hpread_type_lookup): Likewise.
10066 * mdebugread.c (parse_symbol, parse_type): Likewise.
10067 * p-lang.c (is_pascal_string_type): Likewise.
10068 * valops.c (hand_function_call): Likewise.
10069 * x86-64-tdep.c (classify_argument): Likewise.
10071 * hpread.c (hpread_read_function_type)
10072 (hpread_read_doc_function_type): Call replace_type.
10073 * dstread.c (create_new_type): Delete.
10074 (decode_dst_structure, process_dst_function): Call alloc_type.
10075 Use type access macros.
10077 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10079 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10080 the're not supported by the current architecture.
10081 (i387_fill_fxsave): Likewise.
10083 2002-05-12 Fred Fish <fnf@redhat.com>
10085 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10086 sect_index_xxx members to index the first slot in section_offsets
10087 if all of the section_offsets are zero.
10089 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10091 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10092 checked in with last change.
10094 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10096 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10097 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10100 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10102 * Makefile.in: Update dependencies.
10104 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10106 * language.c (local_hex_string_custom): Simplify. Do not depend
10107 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10109 * memattr.c (mem_info_command): Replace calls to
10110 longest_local_hex_string and longest_local_hex_string_custom.
10111 * buildsym.c (make_blockvector): Ditto.
10112 * solib.c (info_sharedlibrary_command): Ditto.
10113 * tracepoint.c (tracepoints_info): Ditto.
10114 * symtab.c (print_msymbol_info): Ditto.
10116 * language.c (local_hex_string): Delete.
10117 (local_hex_string_custom): Delete.
10118 (longest_local_hex_string): Rename to local_hex_string.
10119 (longest_local_hex_string_custom): Rename to
10120 local_hex_string_custom.
10121 * language.h (local_hex_string): Change parameter type to LONGEST.
10122 (local_hex_string_custom): Ditto.
10123 (longest_local_hex_string): Delete declaration.
10124 (longest_local_hex_string_custom): Ditto.
10126 * solib.c: Update copyright.
10127 * memattr.c: Update copyright.
10129 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10131 * arch-utils.h (legacy_register_to_value): Declare.
10132 (legacy_value_to_register): Declare.
10133 (legacy_convert_register_p): Declare.
10134 * arch-utils.c (legacy_register_to_value): New function.
10135 (legacy_value_to_register): New function.
10136 (legacy_convert_register_p): New function.
10138 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10139 (VALUE_TO_REGISTER): Define.
10140 (CONVERT_REGISTER_P): Define.
10141 * gdbarch.h, gdbarch.c: Regenerate.
10143 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10145 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10146 CONVERT_REGISTER_P.
10148 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10149 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10151 * Makefile.in: Update dependencies for valops.c.
10152 * valops.c: Include "gdb_assert.h".
10153 (typecmp): Skip THIS parameter to methods.
10154 (find_method_list): Remove static_memfuncp argument,
10155 update callers. Check for stub methods.
10156 (find_value_oload_method_list): Don't set *static_memfuncp.
10157 (find_overload_match): Don't check for stub methods. Assert
10158 that methods are not stubbed. Handle static methods.
10159 (value_find_oload_method_list): Remove static_memfuncp argument.
10160 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10161 to the argument list for static stub methods.
10162 * value.h (value_find_oload_method_list): Update prototype.
10164 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10166 * arch-utils.h (generic_register_size): Declare.
10167 (generic_register_raw_size, generic_register_virtual_size): Delete
10169 * arch-utils.c (generic_register_raw_size): Delete.
10170 (generic_register_size): New function.
10171 (generic_register_virtual_size): Delete.
10173 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10174 default generic_register_size.
10175 * gdbarch.h, gdbarch.c: Re-generate.
10177 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10178 register_virtual_size.
10179 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10180 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10182 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10184 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10185 * gdbarch.h, gdbarch.c: Regenerate.
10186 * gnu-v3-abi.c: Update copyright.
10187 (vtable_address_point_offset): Update.
10188 (gnuv3_rtti_type): Update.
10189 (gnuv3_baseclass_offset): Update.
10190 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10191 (init_fetch_link_map_offsets): Update.
10192 * remote.c (get_remote_state): Update.
10194 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10196 * TODO: Remove value_headof/value_from_vtable_info comment.
10197 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10198 * values.c (value_headof, value_from_vtable_info): Delete.
10199 * value.h (value_from_vtable_info): Delete prototype.
10201 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10203 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10204 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10206 (gdb_assert_h): Define.
10207 (gdb_wait_h): Define.
10208 (gdb_regex_h): Define.
10210 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10212 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10213 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10215 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10217 * nbsd-tdep.c: Fix comment.
10219 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10221 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10222 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10223 (nbsd-tdep.o): New dependency list.
10224 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10226 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10227 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10228 * nbsd-tdep.c: New file.
10229 * nbsd-tdep.h: New file.
10230 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10232 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10233 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10234 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10235 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10237 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10239 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10240 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10241 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10242 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10243 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10244 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10246 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10248 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10249 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10250 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10251 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10252 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10253 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10254 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10256 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10258 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10259 fetch_elfcore_registers to...
10260 * i386nbsd-tdep.c: ...here.
10261 (i386nbsd_use_struct_convention): Rename to...
10262 (i386nbsd_aout_use_struct_convention): ...this.
10263 (i386nbsd_supply_reg): New function.
10264 (i386nbsd_fill_reg): New function.
10265 (fetch_core_registers): Use i386nbsd_supply_reg.
10266 (fetch_elfcore_registers): Likewise.
10267 (_initialize_i386nbsd_tdep): New function.
10268 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10269 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10270 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10271 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10272 (i386nbsd_aout_use_struct_convention): ...this.
10274 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10276 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10277 (store_inferior_registers): Use shnbsd_fill_reg.
10278 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10279 sh_nbsd_supply_register): Collapse into...
10280 (shnbsd_supply_reg): ...this.
10281 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10282 (shnbsd_fill_reg): ...this.
10283 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10284 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10285 (fetch_core_registers): Use shnbsd_supply_reg.
10286 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10287 (sh_nbsd_core_fns): Rename to...
10288 (shnbsd_core_fns): ...this.
10289 (sh_nbsd_elfcore_fns): Rename to...
10290 (shnbsd_elfcore_fns): ...this.
10291 (sh_nbsd_init_abi): Rename to...
10292 (shnbsd_init_abi): ...this.
10293 (_initialize_sh_nbsd_tdep): Rename to...
10294 (_initialize_shnbsd_tdep): ...this.
10295 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10296 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10297 sh_nbsd_fill_register): Remove prototypes.
10298 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10300 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10302 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10303 (i387-nat.o): Delete dependency list.
10304 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10305 (x86-64-linux-nat.o): Likewise.
10306 * i387-nat.c: Delete file, moving contents to...
10307 * i387-tdep.c: ...here.
10308 * i387-nat.h: Rename...
10309 * i387-tdep.h: ...to this.
10310 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10311 * i386-linux-nat.c: Likewise.
10312 * i386bsd-nat.c: Likewise.
10313 * i386gnu-nat.c: Likewise.
10314 * i386nbsd-nat.c: Likewise.
10315 * i386v4-nat.c: Likewise.
10316 * x86-64-linux-nat.c: Likewise.
10317 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10318 * config/i386/go32.mh (NATDEPFILES): Likewise.
10319 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10320 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10321 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10322 * config/i386/linux.mh (NATDEPFILES): Likewise.
10323 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10324 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10325 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10326 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10328 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10330 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10331 (alphanbsd-nat.o): Remove dependency list.
10332 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10333 * alphanbsd-nat.c: Delete. Contents moved to...
10334 * alphanbsd-tdep.c: ...here.
10335 (_initialize_alphanbsd_tdep): Register core functions.
10336 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10338 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10340 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10341 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10342 (alphanbsd-nat.o): Likewise.
10343 (alphabsd-tdep.o): New dependency list.
10344 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10345 (fill_gregset): Use alphabsd_fill_reg.
10346 (supply_fpregset): Use alphabsd_supply_fpreg.
10347 (fill_fpregset): Use alphabsd_fill_fpreg.
10348 (fetch_inferior_registers): Use struct reg and struct fpreg
10349 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10350 and alphabsd_supply_fpreg.
10351 (store_inferior_registers): Use struct reg and struct fpreg
10352 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10353 and alphabsd_fill_fpreg.
10354 * alphabsd-tdep.c: New file.
10355 * alphabsd-tdep.h: New file.
10356 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10357 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10358 alphabsd_supply_fpreg.
10359 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10360 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10362 2002-05-11 Eric Christopher <echristo@redhat.com>
10364 * mips-tdep.c (mips_double_register_type): Fix thinko.
10365 (mips_single_register_type): Ditto.
10366 * MAINTAINERS: Add self.
10368 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10370 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10371 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10372 right thing on architectures with different endianness and/or
10375 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10377 From Christian Limpach <chris@Pin.LU>
10378 * configure.in: Change sed expression which comments out
10379 NATDEPFILES to also comment out continuation lines.
10380 * configure: Regenerate.
10382 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10384 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10387 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10389 * sh-tdep.c: Include correct file.
10391 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10393 New support for sh64-elf (sh5) target.
10395 * configure.tgt: For sh64-elf target, default to sh-elf.
10397 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10398 (struct gdbarch_tdep): Add new fields for new registers and ABI
10401 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10402 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10403 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10404 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10405 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10406 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10407 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10408 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10409 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10410 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10411 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10412 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10413 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10414 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10415 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10416 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10417 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10418 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10419 sign_extend, sh64_nofp_frame_init_saved_regs,
10420 sh64_init_extra_frame_info, sh64_get_saved_register,
10421 sh64_extract_struct_value_address, sh64_pop_frame,
10422 sh64_push_arguments, sh64_extract_return_value,
10423 sh64_store_return_value, sh64_show_media_regs,
10424 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10425 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10426 sh_sh64_register_virtual_type,
10427 sh_sh64_register_convert_to_virtual,
10428 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10429 sh64_register_read, sh64_pseudo_register_write,
10430 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10431 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10432 sh64_do_pseudo_register, sh_compact_do_registers_info,
10433 sh64_do_registers_info, sh_gdbarch_init): New functions.
10435 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10437 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10439 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10441 * linespec.c (decode_line_1): Check for a double quote after
10442 a filename correctly.
10444 2002-05-10 Jim Blandy <jimb@redhat.com>
10446 Properly track the size of the current objfile's .debug_line section.
10447 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10448 (DWARF_LINE_SIZE): New macro.
10449 (dwarf2_build_psymtabs_hard): Record the line section's size in
10450 the partial symbol table.
10451 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10454 2002-05-10 Petr Sorfa <petrs@caldera.com>
10456 * ia64-tdep.c: Handle breakpoints on L instruction type
10457 in MLX instruction bundle by moving the breakpoint to
10458 the third slot (X instruction type) as L holds only data.
10460 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10462 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10463 (process_one_symbol): Complain about discarding local symbols
10464 due to a misplaced N_LBRAC entry.
10466 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10468 From Daniel Berlin <dan@cgsoftware.com>
10469 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10470 decrease the depth we are at, in the case of templates.
10472 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10474 * mips-tdep.c (mips_float_register_type): New function.
10475 (mips_double_register_type): New function.
10476 (mips_print_register): Use them.
10477 (do_fp_register_row): Likewise.
10479 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10481 * signals/signals.c (signals): Remove conditional compilation around
10482 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10483 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10485 2002-05-09 Michael Snyder <msnyder@redhat.com>
10487 * remote-rdp.c (remote_rdp_can_run): Remove.
10489 2002-05-09 Tom Tromey <tromey@redhat.com>
10491 * jv-valprint.c (java_val_print): Handle `char' as a special case
10494 2002-05-09 Michael Snyder <msnyder@redhat.com>
10496 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10497 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10498 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10499 str r(0123),[sp,#nn].
10500 (arm_skip_prologue): Ditto. Also make disassembly
10501 order-independent by placing it in a loop.
10503 2002-05-06 Michael Snyder <msnyder@redhat.com>
10505 * stabsread.c (read_type): Add recognition for new attribute:
10506 "@V;" means that an array type is actually a vector.
10507 This is analogous to the vector flag that's been added to dwarf2.
10509 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10511 * i386-tdep.h (i386_abi): New enum.
10512 (struct gdbarch_tdep): Replace os_ident member with abi.
10513 (i386_gdbarch_register_os_abi): New prototype.
10514 * i386-tdep.c (i386_abi_names): New array.
10515 (process_note_abi_tag_sections): Removed.
10516 (process_note_sections): New function.
10517 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10518 (struct i386_abi_handler): New struct.
10519 (i386_abi_handler_list): New variable.
10520 (i386_gdbarch_register_os_abi): New function.
10521 (i386_gdbarch_init): Adapt for the changes given above.
10523 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10525 * gregset.h: Say "GNU/Linux".
10527 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10529 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10530 (build_gdbtypes): Build builtin_type_v2_float.
10531 (_initialize_gdbtypes): Register new builtin type.
10533 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10535 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10536 (clear_gdbarch_swap): New function.
10537 (initialize_non_multiarch): Call.
10538 (gdbarch_update_p): Before calling init(), swap out and clear the
10539 existing architecture.
10540 * gdbarch.c: Regenerate.
10542 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10544 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10547 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10549 * sh-nbsd-nat.c: Rename to...
10550 * shnbsd-nat.c: ...this.
10551 * sh-nbsd-tdep.c: Rename to...
10552 * shnbsd-tdep.c: ...this.
10553 * sh-nbsd-tdep.h: Rename to...
10554 * shnbsd-tdep.h: ...this.
10555 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10556 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10558 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10560 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10561 concatenation for command help messages.
10563 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10565 * NEWS: Note new sh*-*-netbsdelf* configuration.
10566 * configure.host: Set gdb_host_cpu to sh for all sh*.
10567 (sh*-*-netbsdelf*): New host.
10568 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10569 (sh*-*-netbsdelf*): New target.
10570 * sh-nbsd-nat.c: New file.
10571 * sh-nbsd-tdep.c: New file.
10572 * sh-nbsd-tdep.h: New file.
10573 * config/sh/nbsd.mh: New file.
10574 * config/sh/nbsd.mt: New file.
10575 * config/sh/nm-nbsd.h: New file.
10576 * config/sh/tm-nbsd.h: New file.
10578 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10580 * sh-tdep.c (sh_osabi_names): Declare.
10581 (process_note_abi_tag_sections): New function.
10582 (get_elfosabi): Ditto.
10583 (sh_gdbarch_register_os_abi): Ditto.
10584 (sh_dump_tdep): Ditto.
10585 _initialize_sh_tdep): Use gdbarch_register to register
10586 sh_gdbarch_init and sh_dump_tdep.
10587 * config/sh/tm-sh.h (sh_osabi): Declare.
10588 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10590 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10592 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10593 (thumb_scan_prologue): Ditto.
10594 (arm_find_callers_reg): Ditto.
10595 (arm_frame_chain): Ditto.
10596 (arm_init_extra_frame_info): Ditto.
10597 (arm_frame_saved_pc): Ditto.
10598 (arm_pop_frame): Ditto.
10599 (arm_push_return_address): New function.
10600 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10601 call_dummy_location, call_dummy_breakpoint_offset_p,
10602 call_dummy_breakpoint_offset, call_dummy_p,
10603 call_dummy_stack_adjust_p, call_dummy_words,
10604 sizeof_call_dummy_words, call_dummy_start_offset,
10605 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10606 call_dummy_address, push_return_address and push_dummy_frame for
10607 generic dummy frames.
10609 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10611 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10612 size computation for alloca.
10613 (sh_fp_frame_init_saved_regs): Likewise.
10615 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10617 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10618 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10619 * arm-tdep.c (arm_store_return_value): Use them.
10620 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10621 * remote-rdp.c (remote_rdp_fetch_register): Use
10622 ARM_MAX_REGISTER_RAW_SIZE.
10623 (remote_rdp_store_register): Likewise.
10625 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10627 * dwarf2cfi.c: Code cleanup, removed unused variables,
10628 added default labels to switch {} statements.
10629 * x86-64-tdep.c: Ditto.
10630 * x86-64-linux-nat.c: Ditto.
10632 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10634 * solib.h: Protect against multiple inclusion.
10636 2002-05-06 Jim Blandy <jimb@redhat.com>
10638 Add first preprocessor macro-expansion files.
10639 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10640 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10641 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10642 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10643 (COMMON_OBS): Add macrotab.o, macroexp.o.
10644 (macroexp.o, macrotab.o): New rules.
10646 Separate the job of reading the line number info statement program
10647 header (...expialidocious) out into its own function.
10648 * dwarf2read.c (struct line_head, struct filenames, struct
10649 directories): Replace with...
10650 (struct line_header): New structure, containing the full
10651 contents of the statement program header, including the
10652 include directory and file name tables.
10653 (read_file_scope): If we have line number info, instead of just
10654 calling dwarf_decode_lines to do all the work, call
10655 dwarf_decode_line_header first to get a `struct line_header'
10656 containing the data in the statement program header, and then
10657 pass that to dwarf_decode_lines, which will pick up where that
10658 left off. Be sure to clean up the `struct line_header' object.
10659 (dwarf_decode_line_header, free_line_header, add_include_dir,
10660 add_file_name): New functions.
10661 (dwarf_decode_lines): Move all the code to read the statement
10662 program header into dwarf_decode_line_header. Take the line
10663 header it built as the first argument, instead of the offset to
10664 the compilation unit's line number info. Use the new `struct
10665 line_header' type instead of the old structures. No need to do
10666 cleanups here now, since we don't allocate anything.
10667 (dwarf2_statement_list_fits_in_line_number_section,
10668 dwarf2_line_header_too_long): New complaints.
10670 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10672 * gdbtypes.c (init_vector_type): New function.
10673 (build_builtin_type_vec128): Simplify the representation of SIMD
10675 (build_gdbtypes): Initialize new builtin vector types.
10676 (_initialize_gdbtypes): Register new vector types with gdbarch.
10677 (builtin_type_v4_float, builtin_type_v4_int32,
10678 builtin_type_v8_int16, builtin_type_v16_int8,
10679 builtin_type_v2_int32, builtin_type_v4_int16,
10680 builtin_type_v8_int8): New (renamed) SIMD types.
10682 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10684 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10685 (i387_fill_fxsave): Likewise.
10687 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10689 * alpha-tdep.c (alpha_extract_return_value): Don't use
10690 non-constant array size in prototype.
10692 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10694 From Brian Taylor <briant at model dot com>:
10695 * ui-out.c (ui_out_field_core_addr): Use the function
10696 longest_local_hex_string_custom'to format addresses > 32 bits
10699 * ui-out.c (ui_out_field_core_addr): Update comment.
10701 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10703 * stack.c (select_and_print_frame): Make static. Delete the
10705 (func_command): Update call.
10706 (select_frame_command): Delete code computing the frame level.
10707 * frame.h (select_and_print_frame): Delete declaration.
10709 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10711 * sparc-tdep.c (sparc_get_saved_register): Comment why
10712 get_prev_frame call is safe.
10714 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10716 * frame.h (select_frame): Delete level parameter.
10717 * stack.c (select_frame): Update. Use frame_relative_level to
10718 obtain the frame's level.
10719 (select_and_print_frame): Update call.
10720 (select_frame_command): Ditto.
10721 (up_silently_base): Ditto.
10722 (down_silently_base): Ditto.
10723 * ocd.c (ocd_start_remote): Ditto.
10724 * remote-rdp.c (remote_rdp_open): Ditto.
10725 * remote-mips.c (mips_initialize): Ditto.
10726 (common_open): Ditto.
10727 * remote-e7000.c (e7000_start_remote): Ditto.
10728 * m3-nat.c (select_thread): Ditto.
10729 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10730 (child_get_current_exception_event): Ditto.
10731 * varobj.c (varobj_create): Ditto.
10732 (varobj_update): Ditto.
10733 (c_value_of_root): Ditto.
10734 * tracepoint.c (finish_tfind_command): Ditto.
10735 * corelow.c (core_open): Ditto.
10736 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10737 * thread.c (info_threads_command): Ditto.
10738 (switch_to_thread): Ditto.
10739 * infrun.c (normal_stop): Ditto.
10740 (restore_selected_frame): Ditto.
10741 (restore_inferior_status): Ditto.
10742 * breakpoint.c (insert_breakpoints): Ditto.
10743 (watchpoint_check): Ditto.
10744 (bpstat_stop_status): Ditto.
10745 (do_enable_breakpoint): Ditto.
10746 * blockframe.c (flush_cached_frames): Ditto.
10747 (reinit_frame_cache): Ditto.
10749 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10751 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10754 2002-05-04 Jim Blandy <jimb@redhat.com>
10756 * gdbtypes.c (replace_type): Doc fix.
10758 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10760 * valprint.c (strcat_longest): Delete commented out function.
10763 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10765 * MAINTAINERS: Mark a29k as deleted.
10766 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10767 Move new configurations to the top.
10768 * configure.tgt: Remove a29k.
10769 * config/a29k/tm-vx29k.h: Delete.
10770 * config/a29k/vx29k.mt: Delete.
10771 * config/a29k/tm-a29k.h: Delete.
10772 * config/a29k/a29k-udi.mt: Delete.
10773 * config/a29k/a29k.mt: Delete.
10774 * a29k-tdep.c: Delete.
10775 * remote-udi.c: Delete.
10776 * remote-mm.c: Delete.
10777 * remote-eb.c: Delete.
10778 * remote-adapt.c: Delete.
10779 * Makefile.in: Remove obsolete code.
10780 * config/s390/s390x.mt: Ditto.
10781 * config/s390/s390.mt: Ditto.
10782 * config/sparc/sparclynx.mh: Ditto.
10783 * config/sparc/linux.mh: Ditto.
10784 * config/pa/hppaosf.mh: Ditto.
10785 * config/pa/hppabsd.mh: Ditto.
10786 * config/ns32k/nbsd.mt: Ditto.
10787 * config/mips/vr5000.mt: Ditto.
10788 * config/m68k/sun3os4.mh: Ditto.
10789 * config/m68k/nbsd.mt: Ditto.
10790 * config/m68k/m68klynx.mh: Ditto.
10791 * config/m32r/m32r.mt: Ditto.
10792 * config/i386/x86-64linux.mt: Ditto.
10793 * config/i386/nbsdelf.mt: Ditto.
10794 * config/i386/nbsd.mt: Ditto.
10795 * config/i386/i386lynx.mh: Ditto.
10797 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10799 * target.c (debug_print_register): New function. Handle oversize
10801 (debug_to_fetch_registers): Call.
10802 (debug_to_store_registers): Call.
10804 2002-05-03 Jim Blandy <jimb@redhat.com>
10806 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10807 (read_type): Doc fix.
10808 * gdbtypes.c (replace_type): Doc fix.
10810 * stabsread.c (multiply_defined_struct): New complaint.
10811 (read_struct_type): If the type we were passed isn't empty, or
10812 incomplete, don't read the new struct type into it; complain,
10813 and return the original type unchanged. Take a new `type_code'
10814 argument, which is the type code for the new type.
10815 (read_type): Rather than storing the type's type code here, pass
10816 it as an argument to read_struct_type, and let that take care of
10817 storing it. That way, we don't overwrite the original type code,
10818 so read_struct_type can use it to decide whether we're overwriting
10819 something we shouldn't.
10820 (complain_about_struct_wipeout): New function.
10822 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10824 * gdbarch.sh: Assert that gdbarch is non-NULL.
10825 * gdbarch.c: Regenerate.
10827 2002-05-03 Jason Merrill <jason@redhat.com>
10829 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10832 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10834 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10835 (x86_64_dwarf2gdb_regno_map_length),
10836 (x86_64_dwarf2_reg_to_regnum): Added.
10837 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10838 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10839 (_initialize_x86_64_tdep): Synced with the change above.
10840 (x86_64_skip_prologue): Reformulated message.
10842 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10844 * f-exp.y: Also use new prev_lexptr variable
10845 to improve error reporting. Based on Michael Snyder
10846 2002-04-24 dated patch to c-exp.y.
10847 * jv-exp.y: Likewise.
10848 * m2-exp.y: Likewise.
10850 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10852 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10853 we are dealing with vectors.
10855 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10857 * config/m68k/tm-nbsd.h: Obvious fix,
10858 correct machine name.
10860 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10862 * p-typeprint.c (pascal_type_print_base): Add support
10863 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10865 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10867 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10868 for fondamental pascal 'char' type.
10870 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10872 * p-lang.h (is_pascal_string_type): Declaration changed,
10873 new sixth argument of type char ** added.
10874 * p-lang.c (is_pascal_string_type): Implementation
10875 changed. Args length_pos, length_size, string_pos, char_size
10876 can now be NULL. New argument arrayname set to the field
10877 name of the char array. Return value set to char array
10878 field index plus one.
10879 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10880 is_pascal_string_type function.
10882 2002-05-02 Andrew Cagney <cagney@redhat.com>
10884 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10885 <cagney@redhat.com> change.
10886 * gdbarch.c: Regenerate.
10888 2002-05-02 Andrew Cagney <cagney@redhat.com>
10890 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10891 before probing for a new one. Detect errorenous gdbarch_init
10893 * gdbarch.c: Regenerate.
10895 2002-05-01 Andrew Cagney <cagney@redhat.com>
10897 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10898 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10899 * config/v850/tm-v850.h: Ditto. Update copyright.
10901 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10903 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10906 2002-04-30 Michael Snyder <msnyder@redhat.com>
10908 * arm-tdep.c: Whitespace clean-ups.
10909 (arm_skip_prologue): Fix thinko; two lines
10910 should have been removed as part of 4/24 change.
10912 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10914 * rs6000-tdep.c: Added comment describing how fpscr register
10915 numbers were chosen.
10917 2002-04-30 Michael Snyder <msnyder@redhat.com>
10919 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10921 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10923 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10924 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10925 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10927 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10929 From Louis Hamilton <hamilton@redhat.com>:
10930 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10931 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10932 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10933 not bfd-private xcoff data, to determine wordsize.
10934 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10936 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10938 GDB 5.2 released from 5.2 branch.
10940 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10942 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10943 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10944 (x86_64_register_info_table): Added comments with register numbers.
10946 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10948 * rs6000-tdep.c (rs6000_extract_return_value,
10949 rs6000_store_return_value): Handle returning vectors.
10950 (rs6000_gdbarch_init): Use
10951 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10952 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10954 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10956 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10957 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10959 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10961 * hpread.c (hpread_psymtab_to_symtab_1,
10962 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10963 with fprintf_unfiltered (gdb_stderr,...).
10965 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10967 * remote-array.c (printf_monitor, write_monitor,
10968 array_insert_breakpoint, array_remove_breakpoint ):
10969 Replace fprintf (stderr,...
10970 with fprintf_unfiltered (gdb_stderr,....
10971 * remote-es.c: Likewise.
10972 * remote-os9k.c: Likewise.
10973 * remote-st.c: Likewise.
10975 2002-04-28 Andreas Schwab <schwab@suse.de>
10977 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10978 linux-proc.o and gcore.o.
10980 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10982 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10983 code without frame pointers.
10985 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10987 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10988 ON_STACK is needed.
10990 2002-04-26 Ben Elliston <bje@redhat.com>
10992 * target.c (do_xfer_memory): Correct reference to the new option
10993 "trust-readonly-sections".
10995 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10997 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10998 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10999 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11001 (read_array_type): Record the fact that this array type is really a
11002 vector (i.e. are passed in by value).
11004 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
11006 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11007 * alpha-tdep.c (alpha_sigcontext_addr): New function.
11008 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11009 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11010 * alpha-linux-tdep.c: Include frame.h.
11011 (alpha_linux_sigcontext_addr): New function.
11012 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11013 alpha_linux_sigcontext_addr.
11014 * alpha-osf1-tdep.c: Include gdbcore.h.
11015 (alpha_osf1_sigcontext_addr): New function.
11016 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11017 alpha_osf1_sigcontext_addr.
11018 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11019 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11021 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11023 * stack.c (selected_frame_level):
11024 (select_frame): Do not set selected_frame_level.
11025 * frame.h (selected_frame_level): Delete declaration.
11027 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11029 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11030 convert_from_func_ptr-addr when AIX / PowerOpen.
11032 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11034 * valops.c (hand_function_call): Call
11035 generic_save_call_dummy_addr.
11036 * frame.h (generic_save_call_dummy_addr): Declare.
11037 * blockframe.c (struct dummy_frame): Add fields call_lo and
11039 (generic_find_dummy_frame): Check for PC in range call_lo to
11040 call_hi instead of entry_point_address.
11041 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11042 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11043 (generic_save_call_dummy_addr): New function.
11045 2002-04-24 David S. Miller <davem@redhat.com>
11047 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11048 sparc_skip_prologue.
11049 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11050 information to find prologue when possible.
11051 (sparc_prologue_frameless_p): Call examine_prologue directly.
11052 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11053 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11055 (SKIP_PROLOGUE): Likewise.
11057 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11059 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11060 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11061 indicate that the condition it was testing is always true.
11062 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11063 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11064 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11066 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11068 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11069 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11070 tdep->jb_pc and tdep->jb_elt_size.
11071 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11072 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11073 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11074 * alpha-nat.c (get_longjmp_target): Remove.
11075 (JB_ELEMENT_SIZE): Ditto.
11077 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11078 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11079 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11080 to alpha_get_longjmp_target.
11081 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11082 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11083 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11085 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11087 * README: Update to GDB 5.2.
11089 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11091 * gdbarch.sh (LC_ALL): Set to `c'.
11093 2002-04-25 Theodore A. Roth <troth@verinet.com>
11095 * avr-tdep.c: Ran through gdb_indent.sh.
11097 2002-04-25 Theodore A. Roth <troth@verinet.com>
11099 * MAINTAINERS: Add myself as AVR maintainer.
11100 * NEWS: Note new target avr.
11102 2002-04-25 Theodore A. Roth <troth@verinet.com>
11104 * Makefile.in: Add support for AVR target.
11105 * configure.tgt: Add support for AVR target.
11106 * avr-tdep.c: New file
11107 * config/avr/avr.mt: New file.
11109 2002-04-25 Theodore A. Roth <troth@verinet.com>
11111 * MAINTAINERS: Add myself to write-after-approval.
11113 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11115 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11116 with fprintf_unfiltered (gdb_stderr,....
11118 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11121 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11123 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11125 * p-exp.y: Also use new prev_lexptr variable
11126 to improve error reporting. Based on Michael Snyder
11127 2002-04-24 dated patch to c-exp.y.
11129 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11131 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11132 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11133 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11135 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11137 (FUNCTION_START_OFFSET): Remove.
11138 (BREAKPOINT): Ditto.
11140 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11142 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11145 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11147 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11148 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11149 alpha_linux_pc_in_sigtramp.
11150 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11151 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11152 alpha_osf1_pc_in_sigtramp.
11153 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11154 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11155 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11156 alphafbsd_pc_in_sigtramp.
11157 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11158 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11159 alphanbsd_pc_in_sigtramp.
11160 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11161 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11163 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11165 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11167 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11169 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11171 (alphanbsd-nat.o): New dependency list.
11172 (alphanbsd-tdep.o): Ditto.
11173 * NEWS: Note new native NetBSD/alpha configuration.
11174 * alphanbsd-nat.c: New file.
11175 * alphanbsd-tdep.c: Ditto.
11176 * configure.host (alpha*-*-netbsd*): New host.
11177 * configure.tgt (alpha*-*-netbsd*): New target.
11178 * config/alpha/nbsd.mh: New file.
11179 * config/alpha/nbsd.mt: Ditto.
11180 * config/alpha/nm-nbsd.h: Ditto.
11181 * config/alpha/tm-nbsd.h: Ditto.
11183 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11185 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11186 (alpha-osf1-tdep.o): New dependency list.
11187 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11188 and skip_sigtramp_frame members.
11189 * alpha-linux-tdep.c: Include gdbcore.h.
11190 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11191 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11192 * alpha-osf1-tdep.c: New file.
11193 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11195 (alpha_frame_past_sigtramp_frame): New function.
11196 (alpha_dynamic_sigtramp_offset): Ditto.
11197 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11198 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11199 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11200 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11201 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11202 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11203 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11204 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11205 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11206 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11207 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11208 to find_solib_trampoline_target.
11209 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11210 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11211 (SKIP_TRAMPOLINE_CODE): Remove.
11212 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11213 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11214 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11215 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11216 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11217 (PROC_SIGTRAMP_MAGIC): Ditto.
11218 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11219 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11220 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11221 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11222 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11224 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11226 * NEWS: Note that Alpha targets are now multi-arch.
11228 2002-04-24 Michael Snyder <msnyder@redhat.com>
11230 * parser-defs.h (prev_lexptr): New external variable.
11231 * parse.c (parse_exp_1): Set prev_lexptr to null before
11232 calling the language-specific parser.
11233 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11234 (yyerror): Use prev_lexptr in error reporting.
11236 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11238 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11239 * gregset.h: If FILL_FPXREGSET is defined, provide
11240 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11241 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11242 is defined, call fill_fpxregset.
11244 2002-04-24 Roland McGrath <roland@frob.com>
11246 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11247 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11248 (supply_gregset, supply_fpregset): New functions.
11250 * gnu-nat.c (gnu_find_memory_regions): New function.
11251 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11252 (gnu_xfer_memory): Add a cast.
11254 2002-04-24 Michael Snyder <msnyder@redhat.com>
11256 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11257 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11258 of argument regs ("str r(0123), [r11, #-nn"]).
11259 (arm_skip_prologue): Better handling for frameless functions.
11260 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11261 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11263 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11265 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11266 NUM_PSEUDO_REGS can be used.
11268 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11270 * arch-utils.h: Update copyright.
11272 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11273 * gdbarch.h, gdbarch.c: Re-generate.
11275 * inferior.h (IN_SIGTRAMP): Delete definition.
11276 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11277 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11279 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11280 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11281 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11282 (find_proc_framesize): Ditto.
11283 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11284 (alpha_init_extra_frame_info): Ditto.
11285 * infrun.c (handle_inferior_event): Ditto.
11286 (handle_inferior_event): Ditto.
11287 (check_sigtramp2): Ditto.
11288 * blockframe.c (create_new_frame): Ditto.
11289 (get_prev_frame): Ditto.
11290 * ppc-linux-tdep.c: Update comments.
11291 * i386-linux-tdep.c: Update comments.
11292 * breakpoint.c (bpstat_what): Update comment.
11294 2002-04-24 David S. Miller <davem@redhat.com>
11296 * i960-tdep.c (register_in_window_p): New function.
11297 (i960_find_saved_register): Use it instead of
11298 REGISTER_IN_WINDOW_P.
11299 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11301 * symtab.h (find_stab_function_addr): Kill extern.
11302 * minsyms.c (find_stab_function_addr): Remove from here...
11303 * dbxread.c: ... to here, and mark it static.
11305 2002-04-20 David S. Miller <davem@redhat.com>
11307 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11308 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11310 2002-04-21 David S. Miller <davem@redhat.com>
11312 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11313 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11314 (vx_write_register): Likewise.
11316 2002-04-23 J. Brobecker <brobecker@gnat.com>
11318 * source.c (is_regular_file): New function.
11319 (openp): Check wether file to open is a regular file
11320 to avoid opening directories.
11322 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11324 * findvar.c (extract_signed_integer): Cast printf argument
11325 to suppress format warning.
11326 (extract_unsigned_integer): Likewise.
11327 * infcmd.c (registers_info): Likewise.
11328 * top.c (get_prompt_1): Likewise.
11329 * valops.c (value_assign): Likewise.
11330 * valprint.c (print_decimal): Likewise.
11332 2002-04-22 H.J. Lu (hjl@gnu.org)
11334 * c-exp.y (typebase): Support
11336 [long|long long|short] [signed|unsigned] [int|]
11340 signed [long|long long|short] int
11342 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11344 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11346 * vax-tdep.h: New file.
11347 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11348 Make several routines static.
11349 (vax_get_saved_register): New function.
11350 (vax_gdbarch_init): New function.
11351 (_initialize_vax_tdep): Register vax_gdbarch_init.
11352 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11353 Remove macros now under the control of gdbarch.
11355 2002-04-22 Michael Snyder <msnyder@redhat.com>
11357 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11358 Some whitespace and coding standards tweaks.
11360 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11362 * vax-tdep.c: Include regcache.h.
11363 (vax_call_dummy_words): New.
11364 (sizeof_vax_call_dummy_words): New.
11365 (vax_fix_call_dummy): New function.
11366 (vax_saved_pc_after_call): Ditto.
11367 * config/vax/tm-vax.h: Don't include regcache.h.
11368 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11369 (CALL_DUMMY): Remove.
11370 (CALL_DUMMY_WORDS): Define.
11371 (SIZEOF_CALL_DUMMY_WORDS): Define.
11372 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11374 2002-04-18 Michael Snyder <msnyder@redhat.com>
11376 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11378 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11380 * vax-tdep.c (vax_frame_chain): New function.
11381 (vax_push_dummy_frame): Ditto.
11382 (vax_pop_frame): Ditto.
11383 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11384 (FRAMELESS_FUNCTION_INVOCATION): Use
11385 generic_frameless_function_invocation_not.
11386 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11387 (POP_FRAME): Use vax_pop_frame.
11389 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11391 * vax-tdep.c (vax_store_struct_return): New function.
11392 (vax_extract_return_value): Ditto.
11393 (vax_store_return_value): Ditto.
11394 (vax_extract_struct_value_address): Ditto.
11395 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11396 vax_store_struct_return.
11397 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11398 (STORE_RETURN_VALUE): Use vax_store_return_value.
11399 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11401 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11403 * vax-tdep.c (vax_frame_saved_pc): New function.
11404 (vax_frame_args_address_correct): Ditto.
11405 (vax_frame_args_address): Ditto.
11406 (vax_frame_locals_address): Ditto.
11407 (vax_frame_num_args): Move code to be in proximity to
11408 other frame-related functions.
11409 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11410 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11411 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11412 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11413 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11415 2002-04-22 H.J. Lu (hjl@gnu.org)
11417 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11420 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11422 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11423 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11424 (FRAME_INIT_SAVED_REGS): New macro.
11426 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11428 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11430 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11432 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11434 (fetch_osf_core_registers): Likewise.
11435 (supply_gregset): Likewise.
11437 2002-04-22 J. Brobecker <brobecker@gnat.com>
11439 * symfile.h (get_section_index): Define.
11440 * symfile.c (get_section_index): New function.
11441 * mdebugread.c (SC_IS_SBSS): New macro.
11442 (SC_IS_BSS): Return true for the scBss storage class only, as
11443 the scSBss storage class refers to the .sbss section.
11444 (parse_partial_symbols): Discard the symbols which associated
11445 section does not exist.
11446 Make sure to use the .sbss section index for symbols which
11447 storage class is scBss, rather than using the .bss section index.
11449 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11451 * vax-tdep.c: Update copyright years.
11452 (vax_register_name): New function.
11453 (vax_register_byte): Ditto.
11454 (vax_register_raw_size): Ditto.
11455 (vax_register_virtual_size): Ditto.
11456 (vax_register_virtual_type): Ditto.
11457 * config/vax/tm-vax.h: Update copyright years.
11458 (REGISTER_NAMES): Remove.
11459 (REGISTER_NAME): Define.
11460 (REGISTER_BYTE): Use vax_register_byte.
11461 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11462 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11463 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11465 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11467 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11469 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11471 2002-04-21 David S. Miller <davem@redhat.com>
11473 * arch-utils.c (generic_prologue_frameless_p): Kill
11474 SKIP_PROLOGUE_FRAMELESS_P code.
11475 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11477 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11478 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11479 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11481 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11482 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11483 (sparc_gdbarch_init): Pass it to
11484 set_gdbarch_prologue_frameless_p.
11486 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11488 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11489 (alphabsd-nat.o): New dependency list.
11491 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11493 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11495 (alpha-linux-tdep.o): New dependency list.
11496 (alphafbsd-tdep.o): Likewise.
11498 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11500 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11502 * alpha-tdep.c: ...from here.
11503 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11505 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11507 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11508 prototype from here...
11509 * alpha-tdep.h: ...to here.
11511 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11513 * frame.h (selected_frame_level): Document as deprecated.
11514 (frame_relative_level): Declare.
11515 * stack.c (frame_relative_level): New function.
11516 (selected_frame_level): Document as deprecated.
11517 (select_frame): Do not set the selected_frame_level.
11519 * stack.c (frame_info, record_selected_frame): Update.
11520 (frame_command, current_frame_command): Update.
11521 (up_silently_base, up_command, down_silently_base): Update.
11522 (down_command): Update.
11523 * inflow.c (kill_command): Update.
11524 * tracepoint.c (finish_tfind_command): Update.
11525 * corelow.c (core_open): Update.
11526 * thread.c (info_threads_command): Update.
11527 (do_captured_thread_select): Update.
11528 * infcmd.c (finish_command): Update.
11529 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11531 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11533 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11535 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11537 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11540 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11542 * alphafbsd-tdep.c: Update copyright years. Include
11544 (alphafbsd_use_struct_convention): Make static.
11545 (alphafbsd_init_abi): New function.
11546 (_initialize_alphafbsd_tdep): New function.
11547 * config/alpha/tm-fbsd.h: Update copyright years.
11548 (USE_STRUCT_CONVENTION): Remove.
11550 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11552 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11553 an Alpha ABI variant.
11554 (alpha_abi_handler_list): Declare.
11555 (alpha_gdbarch_register_os_abi): New function.
11556 (alpha_gdbarch_init): Give registered ABI variant handlers a
11557 chance to tweak the gdbarch once we have set up defaults.
11558 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11560 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11562 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11563 to standard_coerce_float_to_double.
11564 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11566 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11568 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11569 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11570 from gdbarch_tdep rather than a constant.
11571 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11572 the default text address for all Alpha Unix ABIs.
11573 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11574 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11576 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11578 * alpha-tdep.h: New file. Includes several Alpha target constants
11580 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11581 let gdbarch deal with.
11582 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11583 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11584 to dependency list.
11585 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11586 Alpha target register names.
11587 * alphabsd-nat.c: Likewise.
11588 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11589 Alpha target register names. Make serveral routines static.
11590 (alpha_get_saved_register): New function.
11591 (alpha_abi_names): New.
11592 (process_note_abi_tag_sections): New function.
11593 (get_elfosabi): New function.
11594 (alpha_gdbarch_init): New function.
11595 (alpha_dump_tdep): New function.
11596 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11598 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11600 * frame.c (find_saved_register): Delete #ifdef
11601 HAVE_REGISTER_WINDOWS code.
11602 * config/sparc/tm-sparc.h: Update comments.
11603 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11605 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11607 * i960-tdep.c (i960_find_saved_register): New function.
11608 (i960_get_saved_register): New function.
11609 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11610 (i960_get_saved_register): Declare.
11611 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11613 2002-04-20 David S. Miller <davem@redhat.com>
11615 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11617 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11619 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11620 instead of NUM_PSEUDO_REGS.
11622 2002-04-20 David S. Miller <davem@redhat.com>
11624 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11625 GDB_MULTI_ARCH_PARTIAL
11626 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11627 define, let tm-sp64.h do it.
11629 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11631 * frame.c (find_saved_register): Avoid a NULL pointer
11632 dereference and actually walk the frame list.
11634 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11636 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11637 sorted in most most-recent-used order. Document.
11638 * gdbarch.h, gdbarch.c: Regenerate.
11640 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11642 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11644 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11645 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11646 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11649 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11652 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11653 (build_builtin_type_vec128): Ditto.
11654 (append_composite_type_field): Fix calculation of type length in
11657 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11659 * config/djgpp/README: Update.
11661 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11664 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11666 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11667 (alpha_setup_arbitrary_frame): ...to this.
11668 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11669 for alpha_setup_arbitrary_frame.
11671 2002-04-18 Andrew Cagney <cagney@redhat.com>
11673 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11674 * gdbarch.h, gdbarch.c: Regenerate.
11676 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11677 * target.h (memory_breakpoint_from_pc): Update declaration.
11678 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11680 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11681 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11682 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11683 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11684 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11685 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11686 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11687 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11688 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11689 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11690 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11691 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11693 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11695 * monitor.c (monitor_insert_breakpoint): Ditto.
11696 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11698 * config/mcore/tm-mcore.h: Update copyright.
11699 * mem-break.c: Ditto.
11700 * xstormy16-tdep.c: Ditto.
11702 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11704 * p-exp.y: Add precedence rule for '^' token.
11705 This removes the shift/reduce conflicts.
11706 Remove the comment concerning these shift/reduce conflicts.
11708 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11710 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11711 (registers_powerpc_nofp): New register set for processors
11712 without floating point unit.
11714 2002-04-18 David S. Miller <davem@redhat.com>
11716 * MAINTAINERS: Add myself to write-after-approval.
11718 2002-04-17 Michael Snyder <msnyder@redhat.com>
11720 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11722 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11724 * rs6000-tdep.c (frame_initial_stack_address): Use
11725 frame_register_read to read the alloca_reg.
11727 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11729 * frame.c (find_saved_register): Find saved registers in the next
11733 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11735 * gdbarch.sh (LANG): Set to ``c''.
11737 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11739 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11741 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11743 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11746 * hpread.c (hpread_get_lntt): Add declaration.
11747 Also fix PR gdb/391.
11749 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11751 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11752 * aclocal.m4, configure: Re-generate.
11755 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11757 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11758 instead of tm_print_insn.
11760 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11762 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11764 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11766 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11767 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11768 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11770 2002-04-12 Don Howard <dhoward@redhat.com>
11772 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11773 max_user_call_depth.
11774 (init_cmd_lists): Initialize the new value;
11775 * cli/cli-script.c (execute_user_command): Limit the call depth of
11776 user defined commands. This avoids a core-dump when user commands
11777 are infinitly recursive.
11779 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11781 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11782 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11783 from tdep struct instead of DEFAULT_LR_SAVE.
11784 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11785 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11786 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11788 2002-04-12 Michael Snyder <msnyder@redhat.com>
11790 * Remote.c: Spelling fix.
11791 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11792 If no symbol found for "sbrk", try "_sbrk".
11793 (make_output_phdrs): Use bfd_section_name.
11794 (gcore_copy_callback): Use bfd_section_name.
11795 * eval.c: Indentation fix-ups.
11796 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11797 in case it gets applied to an address that is already
11798 in the instruction space.
11799 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11800 * symfile.c: Fix indentation, long lines.
11801 * source.c: White space fix-up.
11803 2002-04-12 Andrew Cagney <cagney@redhat.com>
11805 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11806 * frame.c (frame_register_read): New function. Return non-zero on
11808 (read_relative_register_raw_bytes_for_frame): Delete.
11809 (read_relative_register_raw_bytes): Delete.
11810 * frame.h (frame_register_read): Declare.
11811 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11812 * sh-tdep.c: Ditto.
11813 * infcmd.c (do_registers_info): Ditto.
11814 * hppa-tdep.c: Ditto.
11815 * rs6000-tdep.c: Ditto.
11816 * h8500-tdep.c: Ditto.
11817 * mips-tdep.c: Ditto.
11818 * h8300-tdep.c: Ditto.
11819 * z8k-tdep.c: Ditto.
11821 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11823 From Jimi X <jimix@watson.ibm.com>:
11824 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11827 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11829 From Jimi X <jimix@watson.ibm.com>:
11830 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11833 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11835 From Jimi X <jimix@watson.ibm.com>:
11836 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11837 register sets for these processor variants.
11839 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11841 * regformats/reg-ppc.dat: Support FPSCR.
11843 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11845 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11846 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11847 Add fpscr as an invalid/unfetchable register.
11848 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11849 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11850 (fill_fpregset): Add support for register fpscr.
11851 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11852 (fill_gregset): Account for the fact that register ``mq'' might
11854 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11855 (registers_power): Add fpscr to register set at slot 71.
11856 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11857 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11859 2002-04-11 Michael Snyder <msnyder@redhat.com>
11861 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11862 * configure: Regenerate.
11863 * config.in: Regenerate.
11864 * acconfig.h: Add define for _SYSCALL32.
11865 * core-sol2.c: Remove #define _SYSCALL32.
11866 * solib-legacy.c: Remove #define _SYSCALL32.
11868 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11870 * stack.c (select_frame): Cleanup internal error message, do not
11873 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11875 * stack.c (select_frame): Check that selected_frame and the
11876 specified level are as expected.
11877 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11879 * frame.h (struct frame_info): Add field `level'. Update
11881 Work-in-progress PR gdb/464.
11883 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11885 * maint.c (maint_print_section_info): Rename print_section_info.
11886 (print_bfd_section_info, print_objfile_section_info): Update.
11887 * inferior.h (struct gdbarch): Add opaque declaration.
11888 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11889 * gdbarch.h: Regenerate.
11891 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11893 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11894 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11895 (kernel_u_size): Added.
11896 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11897 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11899 2002-04-04 Jim Ingham <jingham@apple.com>
11901 * valarith.c (find_size_for_pointer_math): New function, either returns
11902 the size for a pointer's target, returns 1 for void *, or errors for
11904 (value_add, value_sub): use find_size_for_pointer_math.
11906 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11908 * linux-low.c (linux_look_up_symbols): New hook.
11909 (linux_target_ops): Add linux_look_up_symbols.
11910 * remote-utils.c (decode_address): New function.
11911 (look_up_one_symbol): New function.
11912 * server.c (handle_query): Call target look_up_symbols hook.
11913 * server.h (look_up_one_symbol): Add prototype.
11914 * target.h (struct target_ops): Add look_up_symbols hook.
11916 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11918 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11919 override FP_REGNUM with frame->fp. Update copyright.
11920 * parse.c (num_std_regs, std_regs): Delete.
11921 (target_map_name_to_register): Do not search std_regs. Update
11922 function description.
11923 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11924 declarations. Update copyright.
11927 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11929 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11930 after the last symbol in a block.
11932 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11934 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11935 is non zero as a found symbol.
11937 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11939 * findvar.c: Include "builtin-regs.h".
11940 (value_of_register): Call value_of_builtin_reg when applicable.
11941 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11942 (target_map_name_to_register): Call
11943 builtin_reg_map_name_to_regnum.
11944 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11945 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11946 (builtin_regs_h): Define.
11947 (builtin-regs.o): New target.
11948 (findvar.o): Add $(builtin_regs_h).
11949 * builtin-regs.c, builtin-regs.h: New files.
11950 * std-regs.c: New file.
11951 Partial fix for PR gdb/251.
11953 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11955 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11956 it's no longer required.
11958 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11960 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11962 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11964 From Jimi X <jimix@watson.ibm.com>:
11965 * rs6000-tdep.c (rs6000_software_single_step): Use
11966 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11967 and size. Use target_insert_breakpoint() and
11968 target_remove_breakpoint() to insert and remove breakpoints
11969 instead of explicit memory reads and writes.
11971 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11973 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11974 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11975 ELF_OBJECT_FORMAT ifdef.
11977 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11979 From Jimi X <jimix@watson.ibm.com>:
11980 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11982 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11984 From Jimi X <jimix@watson.ibm.com>:
11985 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11986 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11988 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11990 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11991 s/asprintf/xasprintf/.
11992 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11994 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11996 I believe Jeff Law denies responsability for this one:
11997 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11998 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11999 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12000 Work-around for PR gdb/366.
12002 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12004 * remote-e7000.c (write_small, e7000_read_inferior_memory,
12005 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12006 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12008 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12010 * sh-tdep.c (sh_fp_frame_init_saved_regs,
12011 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12014 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12016 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12019 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12021 * README (Reporting Bugs in GDB): Document the bug web page as the
12022 prefered way of submitting bugs.
12025 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12027 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12028 -1. Update comment.
12029 * gdbarch.h, gdbarch.c: Re-generate.
12031 2002-04-07 Andreas Schwab <schwab@suse.de>
12033 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12034 buffer to regcache_collect.
12036 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12038 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12039 * gdbarch.c, gdbarch.h: Re-generate.
12041 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12043 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12044 declaration. Fix -Werror.
12046 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12048 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12049 * gdbarch.c: Regenerate.
12051 2002-04-05 Michael Snyder <msnyder@redhat.com>
12053 * breakpoint.c (clear_command): Rewrite middle section to
12054 combine two loops with identical control conditions.
12055 Add a cleanup to eliminate a memory leak.
12056 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12058 2002-04-05 H.J. Lu (hjl@gnu.org)
12060 * solib-svr4.c (bkpt_names): Add "__start".
12062 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12064 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12065 as test for 64 bit target.
12067 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12069 * h8500-tdep.c (h8500_write_fp): Delete function.
12070 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12071 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12072 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12073 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12074 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12075 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12077 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12078 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12079 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12080 (d10v_write_fp): Delete function.
12081 * inferior.h (write_fp, generic_target_write_fp): Delete
12083 * regcache.c (generic_target_write_fp): Delete function.
12084 (write_fp): Delete function.
12085 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12086 * gdbarch.h, gdbarch.c: Regenerate.
12087 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12088 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12089 (sparc64_write_fp): Delete declaration.
12090 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12091 (h8500_write_fp): Delete declaration.
12093 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12095 * sparc-tdep.c (sparc64_write_fp): Delete.
12096 (sparc_push_dummy_frame): Replace write_fp call with code to store
12098 (sparc_gdbarch_init): Do not initialize write_fp.
12100 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12102 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12105 2002-03-29 Jim Blandy <jimb@redhat.com>
12107 * stack.c (get_selected_block): Add new argument `addr_in_block',
12108 used to return the exact code address we used to select the block,
12109 not just the block.
12110 * blockframe.c (get_frame_block, get_current_block): Same.
12111 * frame.h (get_frame_block, get_current_block,
12112 get_selected_block): Update declarations.
12113 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12114 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12116 2002-04-05 Michael Snyder <msnyder@redhat.com>
12118 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12121 2002-04-05 J. Brobecker <brobecker@gnat.com>
12123 * utils.c (xfullpath): New function.
12124 * defs.h (xfullpath): Add declaration.
12125 * source.c (openp): Use xfullpath in place of gdb_realpath to
12126 avoid resolving the basename part of filenames when the
12127 associated file is a symbolic link. This fixes a potential
12128 inconsistency between the filenames known to GDB and the
12129 filenames it prints in the annotations.
12130 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12131 to be able to match a filename with either the real filename, or
12132 the name of any symbolic link to this file.
12133 (lookup_partial_symtab): Ditto.
12135 2002-04-04 Michael Snyder <msnyder@redhat.com>
12137 * breakpoint.c: Add support for hardware breakpoints in overlays.
12138 (overlay_events_enabled): New state variable.
12139 (insert_breakpoints): Use overlay_events_enabled to decide
12140 whether to attempt to set a breakpoint at the overlay load addr.
12141 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12142 (remove_breakpoint): Use overlay_events_enabled to decide
12143 whether breakpoints need to be removed from overlay load addr.
12144 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12145 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12146 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12147 disable_overlay_breakpoints): Update overlay_events_enabled.
12149 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12151 * dwarf2read.c (struct function_range): New.
12152 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12153 (check_cu_functions): New.
12154 (read_file_scope): Initialize global function lists.
12155 Call dwarf_decode_line after processing children.
12156 (read_func_scope): Add to global function list.
12157 (dwarf_decode_lines): Call check_cu_functions everywhere
12158 record_line is called. Call record_line with a linenumber
12159 of 0 to mark sequence ends.
12161 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12163 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12164 change sync with glibc.
12166 2002-04-03 Jim Blandy <jimb@redhat.com>
12168 * configure.in: Call AC_C_INLINE.
12169 * configure: Regenerated.
12171 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12173 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12174 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12176 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12178 * NEWS: Mention gcore support on FreeBSD/i386.
12180 * fbsd-proc.c: New file.
12181 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12182 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12184 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12187 2002-03-29 Jim Blandy <jimb@redhat.com>
12189 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12190 unescaped newlines in string literals, but newer ones don't. So
12193 2002-03-26 Michael Snyder <msnyder@redhat.com>
12194 Andrew Cagney <cagney@redhat.com>
12196 * cli/cli-dump.c: New file. Dump memory to file,
12197 restore file to memory.
12198 * cli/cli-dump.h: New file.
12199 * Makefile.in: Add rules, dependencies for cli-dump.o.
12200 * NEWS: Mention new commands.
12202 2002-03-28 Michael Snyder <msnyder@redhat.com>
12204 * symfile.c (symbol_file_add): Move test for null symbols to later.
12206 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12208 From veksler at il.ibm.com:
12209 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12210 the xstrduped original path.
12213 2002-03-27 Michael Snyder <msnyder@redhat.com>
12215 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12216 * infcmd.c (_initialize_infcmd): Ditto.
12217 * language.c (_initialize_language): Ditto.
12218 * symfile.c (_initialize_symfile): Ditto.
12219 * top.c (_init_main): Ditto.
12220 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12222 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12224 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12225 vector registers handling.
12226 (skip_prologue): Handle new AltiVec instructions. Fill in new
12227 fields of frame data.
12228 (frame_get_saved_regs): Fill in information for AltiVec registers.
12230 2002-03-27 Jim Blandy <jimb@redhat.com>
12232 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12233 a function; leave this macro here to invoke that function.
12234 (symbol_init_mangled_name): Declaration for that function.
12235 * symtab.c (symbol_init_mangled_name): New function.
12237 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12239 * valarith.c: Replace strerror with safe_strerror.
12240 * tracepoint.c: Ditto.
12241 * lin-lwp.c: Ditto.
12242 * go32-nat.c: Ditto.
12244 * gnu-nat.c: Ditto.
12246 2002-03-27 Andreas Schwab <schwab@suse.de>
12248 * event-top.c (command_line_handler): Remove useless if.
12250 2002-03-27 Andreas Jaeger <aj@suse.de>
12252 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12255 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12257 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12258 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12259 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12260 (x86_64_linux_dr_get_status, supply_gregset),
12261 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12262 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12263 (x86_64_register_info_table): Add.
12264 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12265 (x86_64_register_raw_size, x86_64_register_virtual_type),
12266 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12267 general x86_64_register_info_table.
12268 (i386_gdbarch_init): gdbarch_register_bytes is now set
12269 dynamicaly during initialization.
12270 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12271 * gdbserver/linux-x86-64-low.c: Ditto.
12273 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12275 * gdbserver/server.c (main): Call target_signal_to_host_p
12276 and target_signal_to_host on signals received from the remote.
12277 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12278 target_signal_from_host on signals sent to the remote.
12279 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12280 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12282 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12284 * signals/signals.c: Include "server.h" in gdbserver build.
12285 (target_signal_from_name): Don't use STREQ.
12286 (_initialize_signals): Likewise. Don't include function in
12289 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12291 * signals.c: Moved to...
12292 * signals/signals.c: Here.
12293 * Makefile (signals.o): Update.
12295 2002-03-26 Jeff Law (law@redhat.com)
12297 * somread.c (som_symtab_read): Remove some commented out code and
12298 updated related comments. Do not set the minimal symbol table to
12299 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12300 in a dynamic executable.
12301 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12302 where we are unable to find the minimal symbol for the given
12305 2002-03-25 Jeff Law (law@redhat.com)
12307 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12309 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12311 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12313 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12315 * command.h: Update copyright.
12316 (struct cmd_list_element): Replace definition with opaque
12318 (enum cmd_types): Document that it will eventually be moved to
12320 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12321 (MALLOCED_REPLACEMENT): Delete macro.
12322 * Makefile.in (cli_decode_h): Add $(command_h).
12323 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12324 * top.c: Include "cli/cli-decode.h".
12325 * completer.c: Include "cli/cli-decode.h".
12326 * maint.c: Include "cli/cli-decode.h".
12327 * cli/cli-decode.h: Include "command.h".
12328 (enum command_class): Delete.
12329 (enum cmd_types): Comment out.
12330 (enum cmd_auto_boolean): Delete.
12331 (enum var_types): Delete.
12333 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12335 * cli/cli-decode.c: Include "gdb_assert.h".
12336 (add_set_or_show_cmd): New static function.
12337 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12338 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12339 all fields, such as func, from the set command.
12341 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12343 * MAINTAINERS (sh-elf): Change warning flag to -w.
12345 2002-03-23 Andrew Cagney <cagney@redhat.com>
12347 * defs.h (error): Add printf format attribute.
12348 * thread-db.c (thread_from_lwp): Fix error format string.
12349 * stack.c (parse_frame_specification): Ditto.
12350 * cli/cli-decode.c (undef_cmd_error): Ditto.
12351 * scm-lang.c (scm_lookup_name): Ditto.
12352 * tracepoint.c (trace_error): Ditto.
12353 * remote-utils.c (usage): Ditto.
12354 * remote.c (compare_sections_command): Ditto.
12357 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12359 * gdbtypes.c (append_composite_type_field): New function.
12360 (init_composite_type): New function.
12361 * gdbtypes.h (append_composite_type_field): Declare.
12362 (init_composite_type): Ditto.
12364 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12366 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12368 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12369 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12370 structure returning convention for SYSV ABI case, but not
12371 for GNU/Linux, FreeBSD, or NetBSD.
12373 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12375 * symtab.h (lookup_block_symbol): Add mangled_name argument
12378 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12379 with new mangled_name argument.
12380 * linespec.c (decode_line_1): Likewise.
12381 * valops (value_of_this): Likewise.
12382 * symtab.c (lookup_transparent_type): Likewise.
12383 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12384 (lookup_symbol): If we are given a mangled name, pass it down
12385 to lookup_symbol_aux.
12386 (lookup_block_symbol): If we are given a mangled name to check
12387 against, only return symbols which match it.
12389 2002-03-22 Christopher Faylor <cgf@redhat.com>
12391 * win32-nat.c (child_create_inferior): Check for proper shell to use
12392 here, in case the user changes it on the fly.
12393 (_initialize_inftarg): Remove shell path considerations.
12395 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12397 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12398 for gdbarch_max_register_raw_size and max_register_virtual_size.
12399 Adjust copyright year.
12401 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12403 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12404 in a function to cover the entire beginning of the function
12405 as well if it does not already.
12407 2002-03-21 Tom Rix <trix@redhat.com>
12409 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12410 (rs6000_ptrace64): Renamed from ptrace64.
12412 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12414 * gdbserver/remote-utils.c (remote_open): Don't call
12415 getprotobyname, we're all using TCP here so just use
12417 * gdbserver/gdbreplay.c (remote_open): Ditto.
12419 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12421 * regcache.c (_initialize_regcache): No need to call
12422 build_regcache() at this time; it gets called whenever
12423 the gdbarch changes.
12425 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12427 * sparc-nat.c: Include sys/param.h where possible.
12429 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12432 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12433 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12434 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12436 * stabsread.c (rs6000_builtin_type): Likewise.
12437 (read_sun_floating_type): Likewise.
12439 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12441 * stabsread.c (read_member_functions): Remove skip code for duplicate
12442 constructor/destructor methods. Use standard parsing for these
12443 methods and just do not chain them to the list of methods after
12446 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12448 * coffread.c: Remove redundant static declarations. Replace
12449 occurrences of `PTR' with `void *'.
12450 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12451 * top.h (quit_cover): Likewise.
12452 * defs.h (catch_errors): Likewise.
12454 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12456 * defs.h (XMALLOC): Define.
12457 * gdb-events.sh (XMALLOC): Delete macro.
12458 * gdb-events.c, gdb-events.h: Regenerate.
12459 * gdbarch.sh (XMALLOC): Delete macro.
12460 * gdbarch.c: Regenerate.
12461 * serial.c (XMALLOC): Delete macro.
12462 * ui-file.c (XMALLOC): Ditto.
12463 * ser-unix.h (XMALLOC): Ditto.
12464 * sh-tdep.c (XMALLOC): Ditto.
12465 * ui-out.c (XMALLOC): Ditto.
12466 * utils.c (XMALLOC): Ditto.
12467 * i386-tdep.c (XMALLOC): Ditto.
12468 * gdb-events.c (XMALLOC): Ditto.
12469 * d10v-tdep.c (XMALLOC): Ditto.
12470 * cli-out.c (XMALLOC): Ditto.
12472 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12473 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12474 * ui-file.c, ui-out.c: Ditto.
12476 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12478 * command.h (struct cmd_list_element): Add field context.
12479 (set_cmd_context, get_cmd_context): Declare.
12480 * cli/cli-decode.h: Ditto.
12481 * cli/cli-decode.c (get_cmd_context): New function.
12482 (set_cmd_context): New function.
12483 (add_cmd): Initialize context.
12484 Part of fixing PR gdb/145 and PR gdb/146.
12486 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12488 * cli/cli-decode.c (cmd_type): New function.
12489 * command.h (cmd_type): Declare.
12490 * infrun.c (set_schedlock_func): Call function cmd_type.
12491 * kod.c (kod_set_os): Call cmd_type.
12492 * cris-tdep.c (cris_version_update): Use function cmd_type.
12493 (cris_mode_update, cris_abi_update): Ditto.
12495 * command.h: (execute_cmd_post_hook): Declare.
12496 (execute_cmd_pre_hook): Declare.
12497 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12498 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12499 functions. Execute pre/post hook while ensuring that afterwords
12500 hook_in is cleared.
12501 * top.c (execute_command): Use execute_cmd_post_hook, and
12502 execute_cmd_pre_hook to execute pre/post commands.
12503 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12505 (hook_stop_stub): Call execute_cmd_pre_hook.
12507 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12509 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12510 set'' and this leads to a core dump. Move xstrdup of
12511 operating_system to after check that it is not NULL.
12513 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12515 * kod.c (kod_set_os): Remove unnecessary check that
12516 ``command->type'' is set_cmd.
12518 * valprint.c (set_input_radix): Use input_radix.
12519 (set_output_radix): Use output_radix.
12520 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12523 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12525 * value.h (struct value): Delete field ``substring_addr''. Change
12526 aligner fields to force_doublest_align, force_longest_align,
12527 force_core_addr_align and force_pointer_aligh.
12529 * value.h (struct value): Fix typo in above change.
12531 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12533 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12534 to fix internal_error from ``maintenance print architecture''.
12536 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12538 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12539 for gcc versions after gcc-2.8.1.
12541 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12543 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12544 for method resolution. Restore adjustment of ``this'' pointer after
12545 calling value_struct_elt, which was accidentally removed during the
12548 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12550 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12552 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12553 get_saved_register.
12554 * value.h (value_of_register): Update.
12556 2002-03-14 Richard Henderson <rth@redhat.com>
12558 * configure.in: Detect declaration for canonicalize_file_name.
12559 * utils.c (canonicalize_file_name): Declare, if needed.
12560 (gdb_realpath): Prefer realpath if available and usable.
12561 * config.in, configure: Rebuild.
12563 2002-03-14 Richard Henderson <rth@redhat.com>
12565 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12566 a constant array bound.
12568 * MAINTAINERS: Add myself to write-after-approval.
12570 2002-03-14 Michael Snyder <msnyder@redhat.com>
12572 * symfile.c (syms_from_objfile): Return immediately if no syms.
12573 (symbol_file_add): Return immediately if no syms.
12574 (find_sym_fns): Return immediately if no syms.
12576 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12578 * gdbserver/remote-util.c (remote_open): Print remote-side's
12579 IP address when remote debugging over the network.
12581 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12583 * config/sparc/fbsd.mh: Fix copyright.
12584 * config/sparc/fbsd.mt: Likewise.
12586 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12588 * MAINTAINERS: Fix typo in name of gdb warnings option.
12589 (x86-64): Fix formating so that this can be parsed by awk.
12591 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12593 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12594 * defs.h: Include "gdb/signals.h".
12595 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12597 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12599 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12600 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12603 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12604 Don Howard <dhoward@redhat.com>
12606 * mips-tdep.c (ST0_FR): Define.
12607 (mips2_fp_compat): New function, temporarily disabled.
12608 (mips_read_fp_register_single): New function.
12609 (mips_read_fp_register_double): New function.
12610 (mips_print_register): Use them.
12611 (do_fp_register_row): Likewise.
12613 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12615 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12618 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12620 * stabsread.c (read_member_functions): Fix is_stub test for
12621 static member functions, improve comment.
12623 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12625 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12626 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12627 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12628 commands that set boolean values.
12629 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12630 (arm_rdi_resume): Always initialize PC.
12631 (arm_rdi_open): Don't use rslt as a boolean.
12632 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12633 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12634 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12635 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12637 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12639 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12640 * configure: Rebuilt.
12642 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12644 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12645 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12647 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12649 * cli/cli-decode.c (set_cmd_completer): New function.
12650 * command.h (set_cmd_completer): Declare.
12651 * cli/cli-decode.h (set_cmd_completer): Ditto.
12653 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12654 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12655 * win32-nat.c (_initialize_inftarg): Ditto.
12656 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12657 * proc-api.c (_initialize_proc_api): Ditto.
12658 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12659 * source.c (_initialize_source): Ditto.
12660 * exec.c (_initialize_exec): Ditto.
12661 * solib.c (_initialize_solib): Ditto.
12662 * top.c (init_main): Ditto.
12663 * tracepoint.c (_initialize_tracepoint): Ditto.
12664 * symfile.c (_initialize_symfile): Ditto.
12665 * printcmd.c (_initialize_printcmd): Ditto.
12666 * infcmd.c (_initialize_infcmd): Ditto.
12667 * corefile.c (_initialize_core): Ditto.
12669 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12671 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12673 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12675 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12677 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12679 * NEWS: Update headings, 5.2 has branched.
12681 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12683 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12684 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12685 (register_addr, REGISTER_RAW_SIZE): Likewise.
12686 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12687 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12689 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12691 * MAINTAINERS (x86-64): Add myself.
12692 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12693 changed value_ptr -> struct value *
12695 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12697 * configure.host (sparc64-*-freebsd): Add.
12698 * configure.tgt: Likewise.
12699 * config/sparc/fbsd.mh: New file.
12700 * config/sparc/fbsd.mt: Likewise.
12701 * config/sparc/nm-fbsd.h: Likewise.
12702 * config/sparc/tm-fbsd.h: Likewise.
12704 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12706 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12707 regformats/reg-s390x.dat.
12709 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12711 * utils.c: Add FIXME explaining true/false problem.
12713 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12715 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12717 2002-02-28 Michael Chastain <mec@shout.net>
12719 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12721 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12723 * gdbserver/linux-s390-low.c: New file.
12724 * regformats/reg-s390.dat: New file.
12725 * regformats/reg-s390x.dat: New file.
12726 * gdbserver/configure.srv: Add S/390.
12727 * gdbserver/Makefile.in: Add S/390.
12728 * configure.tgt: Enable gdbserver for S/390.
12730 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12732 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12733 first line of the doc string for "info dos", except at the end of
12734 the sentence, since the short help stops at the first period.
12736 2002-02-28 Jason Merrill <jason@redhat.com>
12738 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12740 2002-02-27 Fred Fish <fnf@redhat.com>
12742 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12743 comment (dumy -> dummy).
12745 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12747 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12749 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12751 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12753 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12755 * gdbserver/acconfig.h: New file.
12756 * gdbserver/i387-fp.c: New file.
12757 * gdbserver/i387-fp.h: New file.
12758 * gdbserver/linux-x86-64.c: New file.
12759 * regformats/reg-x86-64.dat: New file.
12760 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12761 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12762 * gdbserver/configure.in: Add support for regsets.
12763 * gdbserver/config.in: Regenerate.
12764 * gdbserver/configure: Regenerate.
12765 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12766 * gdbserver/linux-low.h: New file.
12767 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12769 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12770 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12771 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12772 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12773 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12774 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12775 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12776 "i387-fp.h". Add PTRACE_GETREGS and friends.
12777 * gdbserver/regcache.c (supply_register): New function.
12778 (supply_register_by_name): New function.
12779 (collect_register): New function.
12780 (collect_register_by_name): New function.
12782 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12784 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12785 (config.status): Add configure.srv dependency.
12786 (server_h): Add config.h dependency.
12788 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12790 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12791 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12792 * gdbserver/configure.srv: Change i386-*-linux* to use
12795 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12797 * x86-64-tdep.c: Re-indent. Update copyright date.
12799 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12801 From Michal Ludvig <mludvig@suse.cz>:
12802 * x86-64-tdep.c (value.h): Delete.
12803 (gdb_assert.h): Include.
12804 (x86_64_register_convert_to_virtual,
12805 x86_64_register_convert_to_raw ): Add check which lets only
12806 floating-point values to be converted.
12807 (value_push): Delete.
12808 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12809 (i386_gdbarch_init): Number of register_bytes fixed.
12811 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12813 * MAINTAINERS: Add x86-64 target.
12815 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12817 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12818 * osfsolib.c (solib_map_sections): Ditto.
12819 * irix5-nat.c (solib_map_sections): Ditto.
12820 * corelow.c (gdb_check_format): Ditto.
12821 * symfile.c (symfile_bfd_open): Ditto.
12822 * solib.c (solib_map_sections): Ditto.
12825 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12827 * remote.c (_initialize_remote): By default, disable ``e'' and
12828 ``E'' step out-of-range packets.
12830 2002-02-26 Andreas Schwab <schwab@suse.de>
12832 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12833 m68k_linux_frame_saved_pc.
12834 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12836 (SIGCONTEXT_PC_OFFSET): Remove.
12837 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12838 m68k_linux_sigtramp_saved_pc): New functions.
12839 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12840 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12841 (UCONTEXT_PC_OFFSET): Define.
12842 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12843 non-RT and RT signal trampolines.
12845 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12847 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12848 (TARGET_NBPG, STACK_END_ADDR): Delete
12849 (VARIABLES_INSIDE_BLOCK): Delete.
12851 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12853 * utils.c (perror_with_name): Make string parameter constant.
12854 (print_sys_errmsg): Ditto.
12856 * defs.h (perror_with_name): Update.
12857 (print_sys_errmsg): Update.
12860 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12862 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12863 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12865 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12867 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12868 if it already matches the current architecture from the exec file.
12869 Include arch-utils.h for gdbarch_info_init prototype.
12870 * Makefile.in (rs6000-nat.o): Update dependencies.
12872 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12874 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12875 list of exported variables.
12877 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12879 * gdbserver/configure.srv: New file.
12880 * gdbserver/configure.in: Use configure.srv instead
12881 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12883 * gdbserver/configure: Regenerated.
12884 * gdbserver/terminal.h: New file.
12885 * gdbserver/Makefile.in: Update for configure changes. Remove
12886 more unneeded include paths.
12888 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12890 From wiz at danbala:
12891 * config/sparc/tm-sp64.h: Fix grammar and typos.
12894 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12896 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12897 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12898 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12899 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12900 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12901 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12902 * s390-tdep.c: Ditto.
12903 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12904 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12905 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12906 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12907 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12908 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12909 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12910 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12911 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12912 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12915 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12917 * lin-thread.c: Delete file.
12918 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12919 to gdb_proc_service.h.
12920 * configure: Re-generate.
12922 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12923 * serial.c (serial_open): Delete check for "ocd".
12926 * Makefile.in (linux-thread.o): Delete target.
12927 * linux-thread.c: Delete file.
12929 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12930 renamed SH files to be consistent.
12932 * symtab.c (sort_search_symbols): Use xfree.
12934 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12936 * arm-linux-tdep.c (arm_linux_init_abi): Register
12937 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12938 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12939 definition with undef, since we don't want the sysvr4 definition.
12940 (SKIP_TRAMPOLINE_CODE): Likewise.
12942 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12944 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12946 * configure.in: (AC_CHECK_FUNCS) Added test for
12947 canonicalize_file_name Regenerated.
12948 * config.in, configure: Regenerated.
12949 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12950 defined use canonicalize_file_name.
12952 2002-02-23 Michael Chastain <mec@shout.net>
12954 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12956 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12958 * README: Remove references to cygnus.com.
12959 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12960 dot com'' form. Remove references to cygnus.com and sourceware.
12962 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12964 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12965 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12966 1003.1-2001 no longer allows "head -1".
12967 * gdb/Makefile.in (version.c): Likewise.
12968 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12969 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12970 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12972 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12974 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12975 * command.h (cmd_cfunc_eq): Declare.
12976 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12978 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12979 ``struct cmd_list_element *''.
12980 * cli/cli-cmds.c (is_complete_command): Update. Use
12982 * top.c (execute_command): Pass the command to
12983 is_complete_command.
12984 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12986 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12988 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12989 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12990 architecture defines.
12991 * s390-tdep.c (s390_gdbarch_init): Likewise.
12993 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12995 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12996 (arm_linux_push_arguments): Likewise.
12997 (arm_linux_init_abi): Register them. Also register linux-specific
12999 (find_minsym_and_objfile): Use strcmp, not STREQ.
13000 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13001 (arm_linux_call_dummy_words): Delete declaration.
13002 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13003 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13005 (LOWEST_PC): Delete.
13007 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13009 * maint.c (print_section_info): Do not prepend `0x' to filepos
13010 output, it will be handled by local_hex_string_custom.
13012 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13014 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13015 (store_newfpe_double, store_newfpe_extended, store_fpregister)
13016 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13018 2002-02-22 Jim Blandy <jimb@redhat.com>
13020 Indicate that the bcache functions don't change the strings
13022 * bcache.h (bcache, hash): Add `const' keywords to declarations.
13023 * bcache.c (bcache, hash): Add `const' keywords to definitions.
13025 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
13027 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13029 2002-02-21 Christopher Faylor <cgf@redhat.com>
13031 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13032 find the complete path to a loaded DLL.
13034 2002-02-21 Fred Fish <fnf@redhat.com>
13036 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13037 that marks the end of the range of a function, enter a line number
13038 entry that has a line number of zero and a PC offset that matches
13039 the end of the function. This starts a range of PC's for which no
13040 line number information is known.
13041 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13042 PC's for which no line number info is found (line number is zero)
13043 then we didn't find any valid line information.
13044 * symtab.h: Document use of zero line number entry.
13046 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13048 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13049 (have_ptrace_getvrregs): Define for run time checks.
13050 (gdb_vrregset_t): New type for Altivec register handling.
13051 (fetch_register, store_register): Fetch/store altivec register
13053 (fetch_altivec_register, store_altivec_register): New functions.
13054 (supply_vrregset, fill_vrregset): New functions.
13055 (fetch_altivec_registers, store_altivec_registers): New functions.
13056 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13059 2002-02-21 Jiri Smid <smid@suse.cz>
13061 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13063 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13065 * Makefile.in (armnbsd-nat.o): Update dependencies.
13066 * armnbsd-nat.c (supply_gregset): New function. Common code to
13067 supply the integer register set.
13068 (supply_fparegset): New function. Similar for FPA registers.
13069 (fetch_regs, fetch_fp_regs): Use them.
13070 (fetch_core_registers): Likewise.
13071 (fetch_elfcore_registers): New function.
13072 (arm_netbsd_elfcore_fns): New core-file type specification.
13073 (_initialize_arm_netbsd_nat): Register it.
13075 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13077 * armnbsd-nat.c: Include gdbcore.h.
13078 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13079 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13080 'void' to declaration, to shut up ARI.
13081 (fetch_core_registers): Make static. Rewrite using supply_register.
13082 (arm_netbsd_core_fns): New core-file type specification.
13083 (_initialize_arm_netbsd_nat): New function.
13085 2002-02-21 Christopher Faylor <cgf@redhat.com>
13087 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13090 2002-02-20 Christopher Faylor <cgf@redhat.com>
13092 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13095 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13097 * jv-exp.y (parse_number): Change type of implicit longs
13098 to builtin_type_uint64.
13100 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13102 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13103 to be an integer instead of a `union wait'.
13105 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13107 * mips-linux-nat.c: Call the operating system GNU/Linux.
13108 * mips-linux-tdep.c: Likewise.
13109 * mips-tdep.c: Likewise.
13111 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13114 * jv-exp.y (parse_number): Handle 64-bit integers.
13116 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13118 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13119 AC_STDC_HEADERS to AC_HEADER_STDC.
13120 * gdbserver/configure: Regenerated.
13122 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13124 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13126 * sparc-tdep.c (get_longjmp_target): Likewise.
13128 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13130 * News: Add news about ARM and Multi-arch. Mention the new target
13133 2002-02-19 Jim Blandy <jimb@redhat.com>
13135 * stabsread.c (error_type_complaint): Improve error message.
13137 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13139 * gdbserver/README: Update documentation.
13140 * gdbserver/configure.in: Update configury to match documentation.
13141 * gdbserver/Makefile.in: Likewise.
13142 * gdbserver/configure: Regenerated.
13143 * gdbserver/aclocal.m4: New file, generated by aclocal.
13144 * gdbserver/config.in: New file, generated by autoheader.
13146 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13148 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13151 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13153 * arm-tdep.h (enum arm_float_model): New enum.
13154 (struct gdbarch_tdep): Add fp_model.
13155 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13156 up floating-point conversions until we know the floating-point model
13157 in use by the inferior. Don't complain about being unable to
13158 determine the ABI of the inferior when we don't have one.
13159 (arm_extract_return_value): Support different floating-point models.
13160 (arm_store_return_value): Likewise.
13161 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13163 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13165 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13167 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13168 of ``current_gdbarch''.
13170 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13172 * armnbsd-nat.c : ANSIfy all function declarations.
13173 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13174 (fetch_inferior_registers): Re-implement in terms of above.
13175 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13176 (store_inferior_registers): Re-implement in terms of above.
13178 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13180 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13182 * arm-linux-tdep.c: Likewise.
13183 * config/arm/tm-linux.h: Likewise.
13185 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13187 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13188 * config/arm/nbsd.mt (TM_FILE): Delete.
13189 * config/arm/tm-nbsd.h: Delete.
13191 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13193 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13194 Initialize CALL_DUMMY_LENGTH.
13196 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13198 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13200 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13201 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13202 defines one thing and that is incorrect for this port.
13203 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13205 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13207 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13209 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13211 * win32-nat.c (display_selector): New function. Displays information
13212 about the information returned by GetThreadSelectorEntry API function.
13213 (display_selectors): New function. Displays the infomation of
13214 the selector given as argument, or of CS, DS ans FS selectors
13215 if no argument is given.
13216 ( _initialize_inftarg): Add "w32" as info prefix command.
13217 Add "info w32 selector" as command calling display_selectors.
13219 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13221 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13222 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13225 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13227 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13229 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13231 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13232 (arm_fix_call_dummy): Call it.
13233 (arm_call_dummy_breakpoint_offset): Delete.
13234 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13235 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13237 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13239 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13240 Default to func_frame_chain_valid.
13241 * gdbarch.h, gdbarch.c: Re-generate.
13242 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13244 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13246 * ppc-linux-nat.c: Update copyright.
13247 (fetch_register, store_register): Add tid parameter, don't compute
13249 (fetch_ppc_registers, store_ppc_registers): Add tid
13250 parameter. Pass it along to callees.
13251 (fetch_inferior_registers, store_inferior_registers): Compute tid
13252 here, and pass it to calleed functions.
13253 (fill_gregset, supply_fpregset): Clean up formatting.
13255 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13257 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13258 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13260 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13262 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13263 * gdbarch.c gdbarch.h: Regenerate.
13264 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13266 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13267 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13268 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13270 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13271 * arm-tdep.c (arm_get_longjmp_target): New function.
13272 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13273 this to a positive value register arm_get_longjmp_target as the
13275 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13276 (arm_linux_init_abi): Set up longjmp description in tdep.
13277 * armnbsd-nat.c (get_longjmp_target): Delete.
13278 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13279 description in tdep.
13280 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13281 (get_longjmp_target): Delete declaration.
13282 (GET_LONGJMP_TARGET): Delete.
13283 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13284 (GET_LONGJMP_TARGET): Delete.
13286 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13288 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13289 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13290 of ``current_gdbarch''.
13292 2002-02-17 Tom Tromey <tromey@redhat.com>
13294 * cli/cli-cmds.c (compare_strings): New function.
13295 (complete_command): Only print each unique item once.
13296 * completer.h (complete_line): Declare.
13297 * completer.c (complete_line): New function.
13298 (line_completion_function): Use it.
13300 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13302 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13303 * gdbarch.h, gdbarch.c: Re-generate.
13305 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13307 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13309 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13311 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13312 * valops.c (value_arg_coerce): Don't take the address of a reference
13313 to convert an argument to a reference.
13315 2002-02-15 Christopher Faylor <cgf@redhat.com>
13317 * win32-nat.c (get_image_name): New function.
13318 (handle_load_dll): Use get_image_name function.
13319 (get_child_debug_event): Avoid registering debug events until possibly
13320 execed process is started.
13321 (child_create_inferior): Allow invocation via shell so that command
13322 line redirection, etc. works ok.
13323 (_initialize_inftarg): Add new command: "set shell" to control whether
13324 a shell is used to start a process.
13326 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13328 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13329 instead of find_register_by_number.
13330 (cannot_store_register): Likewise.
13332 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13334 * dwarf2read.c: Replace fprintf (stderr, ...) by
13335 fprintf_unfiltered (gdb_stderr, ...).
13337 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13339 * gdbserver/gdbserver.1: Document --attach.
13341 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13343 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13345 * arm-tdep.c (arm_default_arm_le_breakpoint)
13346 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13347 (arm_default_thumb_be_breakpoint): New. Initialize them from
13348 traditional breakpoint defines.
13349 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13350 (arm_gdbarch_init): Initialize new breakpoint variables.
13351 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13352 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13353 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13354 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13356 (arm_netbsd_init_abi_common): ... here; new function.
13357 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13358 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13359 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13360 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13362 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13364 * arm-tdep.h (enum arm_abi): New enum.
13365 (struct gdbarch_tdep): New structure.
13366 (LOWEST_PC): Provide a default.
13367 (arm_gdbarch_register_os_abi): Declare new function.
13368 * arm-tdep.c (arm_abi_names): New array.
13369 (process_note_abi_tag_sections): New function.
13370 (get_elfosabi): New function.
13371 (arm_gdbarch_register_os_abi): New function.
13372 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13373 support for that ABI has been built in, then call the appropriate
13374 configuration routine. Use gdbarch_num_regs() to get the number
13376 (arm_dump_tdep): New function.
13377 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13378 place-holder functions.
13379 (_initialize_arm_tdep): Register them.
13380 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13382 * armnbsd-tdep.c: New file.
13383 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13384 * config/arm/nbsd.mt (TDEPFILES): Add it.
13385 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13387 * armnbsd-nat.c: Include regcache.h.
13388 * Makefile.in (armnbsd-nat.o): Update dependency list.
13390 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13392 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13394 * gdbserver/Makefile.in: Fix typos in target rules.
13396 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13398 Fix part of PR gdb/267.
13399 * linespec.c (find_methods): Handle constructors specially for now.
13401 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13403 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13405 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13406 standard_coerce_float_to_double().
13408 2002-02-14 Christopher Faylor <cgf@redhat.com>
13410 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13413 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13415 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13416 find_variant_by_name, because it confuses the multiarch
13417 framework. Return NULL if there isn't an architecture with the
13418 user supplied name, instead of forcing a different one without
13419 recording the change with the multiarch machinery.
13420 (find_variant_by_name): Delete.
13422 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13424 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13425 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13427 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13429 * stack.c (print_frame_info_base): When calling
13430 print_frame_info_listing_hook, set current_source_symtab.
13432 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13434 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13435 and remove unused $(INCLUDE_DIR).
13436 Add regcache.c to OBS.
13437 Add generated register protocol files to clean target.
13438 Update dependencies for new objects, obsolete old target code.
13440 * gdbserver/linux-low.c: Remove all platform-specific code to
13441 new files. Remove various dead code. Update to use regcache
13443 * gdbserver/remote-utils.c (fromhex): Add return statement
13445 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13447 (input_interrupt): Add integer parameter to match prototype
13448 of a signal handler.
13449 (outreg): Use register_data ().
13450 (prepare_resume_reply): Use gdbserver_expedite_regs.
13451 * gdbserver/server.c (main): Dynamically allocate own_buf because
13452 PBUFSIZ is no longer constant. Use registers_to_string () and
13453 registers_from_string ().
13454 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13455 for error (), fatal (), and warning (). Update definition of
13456 PBUFSIZ to use regcache functionality. Add include guard.
13457 * gdbserver/utils.c (fatal): Add missing ``const''.
13458 (warning): New function.
13460 * regformats/regdat.sh: Include "regcache.h" in generated files.
13461 Provide init_registers () function.
13462 * regformats/regdef.h: Add prototype for set_register_cache ().
13465 * gdbserver/linux-arm-low.c: New file.
13466 * gdbserver/linux-i386-low.c: New file.
13467 * gdbserver/linux-ia64-low.c: New file.
13468 * gdbserver/linux-m68k-low.c: New file.
13469 * gdbserver/linux-mips-low.c: New file.
13470 * gdbserver/linux-ppc-low.c: New file.
13471 * gdbserver/linux-sh-low.c: New file.
13473 * gdbserver/regcache.c: New file.
13474 * gdbserver/regcache.h: New file.
13476 * gdbserver/low-linux.c: Removed obsolete file.
13478 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13480 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13481 * config/i386/linux.mt: Likewise.
13482 * config/ia64/linux.mt: Likewise.
13483 * config/m68k/linux.mh: Likewise.
13484 * config/powerpc/linux.mh: Likewise.
13485 * config/mips/linux.mt: Likewise.
13487 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13489 * config/i386/i386lynx.mh: Mark gdbserver variables
13490 as (currently) obsolete for this target.
13491 * config/i386/nbsd.mt: Likewise.
13492 * config/i386/nbsdelf.mt: Likewise.
13493 * config/m32r/m32r.mt: Likewise.
13494 * config/m68k/m68klynx.mh: Likewise.
13495 * config/m68k/nbsd.mt: Likewise.
13496 * config/m68k/sun3os4.mh: Likewise.
13497 * config/mips/vr5000.mt: Likewise.
13498 * config/ns32k/nbsd.mt: Likewise.
13499 * config/pa/hppabsd.mh: Likewise.
13500 * config/pa/hppaosf.mh: Likewise.
13501 * config/powerpc/nbsd.mt: Likewise.
13502 * config/rs6000/rs6000lynx.mh: Likewise.
13503 * config/s390/s390.mt: Likewise.
13504 * config/s390/s390x.mt: Likewise.
13505 * config/sparc/sparclynx.mh: Likewise.
13506 * config/sparc/sun4os4.mh: Likewise.
13507 * config/i386/x86-64linux.mt: Likewise.
13508 * config/sparc/linux.mh: Likewise.
13510 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13512 * configure.tgt: Configure gdbserver only for known working
13513 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13514 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13515 SUBDIRS if it is configured. Update comment for ${nativefile}.
13516 * configure: Regenerated.
13518 2002-02-13 Michael Snyder <msnyder@redhat.com>
13520 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13522 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13523 (default_gcore_mach): Just return 0, work around a problem in bfd.
13524 (default_gcore_target): OK to return NULL if exec_bfd is null.
13525 (make_mem_sec): Use a cast, avoid a warning.
13527 * procfs.c (find_memory_regions_callback): Use a cast instead of
13528 calling host_pointer_to_address (which complains if
13529 sizeof (host pointer) != sizeof (target pointer)).
13530 (procfs_make_note_section): Avoid overflow in psargs string.
13532 * procfs.c (procfs_make_note_section): Make the default
13533 implementation return an error.
13535 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13537 * procfs.c (procfs_make_note_section): Provide a default definition
13538 (for alpha-dec-osf4.0f). Fix typos.
13540 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13542 * linux-proc.c: Add include of regcache.h.
13543 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13545 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13547 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13548 * memattr.c (create_mem_region): Disallow useless empty region.
13549 Regions are half-open intervals, so allow [A..B) [B..C) as
13552 2002-02-13 Michael Chastain <mec@shout.net>
13554 * defs.h: Kill CONST_PTR.
13555 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13556 * c-lang.c (c_builtin_types): Likewise.
13557 * ch-lang.c (ch_builtin_types): Likewise.
13558 * f-lang.c (f_builtin_types): Likewise.
13559 * language.c (unknown_builtin_types): Likewise.
13560 * m2-lang.c (m2_builtin_types): Likewise.
13561 * p-lang.c (pascal_builtin_types): Likewise.
13562 * scm-lang.c (c_builtin_types): Likewise.
13564 2002-02-13 Keith Seitz <keiths@redhat.com>
13566 * arm-tdep.h (arm_get_next_pc): Add declaration.
13568 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13570 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13571 with other related struct-returning functions.
13572 (arm_extract_struct_value_address): New function.
13573 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13574 initialize float_format, double_format and long_double_format as
13575 appropriate to the endianness of the target.
13576 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13577 (arm_use_struct_convention): Delete declaration.
13578 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13580 2002-02-13 Keith Seitz <keiths@redhat.com>
13582 * defs.h (core_addr_to_string_nz): New function.
13584 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13586 Apply missing bits of 2002-01-15 patch.
13587 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13588 (fill_fpregset): Use i387_fill_fsave.
13590 2002-02-12 Keith Seitz <keiths@redhat.com>
13592 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13593 (core_addr_to_string_nz): New function.
13595 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13597 * arm-linux-nat.c: Really include arm-tdep.h.
13598 * config/arm/tm-linux.h (struct type, struct value): Declare.
13600 2002-02-11 Michael Snyder <msnyder@redhat.com>
13602 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13603 (gcore section): Ifdef for Solaris and Unixware only.
13604 (procfs_do_thread_registers): Unixware needs one lwpstatus
13605 per thread (not one prstatus or pstatus).
13606 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13607 not over all gdb threads. For unixware, call elfcore_write_pstatus
13608 once before iterating over threads.
13610 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13612 * arm-tdep.h: New file.
13613 * arm-tdep.c: Include arm-tdep.h.
13614 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13615 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13616 (arm_print_float_info, arm_register_type, convert_to_extended)
13617 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13618 (arm_extract_return_value, arm_register_name): Make static.
13619 (arm_software_single_step): Similarly. Fix types in declaration.
13620 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13621 (arm_store_return_value, arm_store_struct_return): New functions.
13622 (arm_gdbarch_init): Register the above functions. Also register
13623 call_dummy_start_offset, sizeof_call_dummy_words,
13624 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13625 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13626 max_register_virtual_size, register_size. Set up
13627 prologue_cache.saved_regs here, rather than ...
13628 (_initialize_arm_tdep): ... here.
13629 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13631 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13632 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13633 (arm_print_float_info, arm_register_type, convert_to_extended)
13634 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13635 (arm_extract_return_value, arm_register_name): Delete declarations.
13636 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13637 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13638 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13639 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13640 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13641 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13642 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13643 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13644 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13645 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13646 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13647 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13649 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13650 * remote-rdi.c remote-rdp.c: Likewise.
13651 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13652 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13653 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13656 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13657 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13658 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13659 from non-ARM_ prefixed definitions.
13660 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13662 * remote-rdi.c remote-rdp.c: Likewise.
13663 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13665 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13667 * arm-tdep.c (arm_frameless_function_invocation)
13668 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13669 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13670 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13671 (arm_pop_frame, arm_get_next_pc): Make static.
13672 (arm_gdbarch_init): Register above in gdbarch structure.
13673 (arm_read_fp): Renamed from arm_target_read_fp.
13674 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13675 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13676 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13677 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13678 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13679 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13680 (arm_pc_is_thumb_dummy): Delete declarations.
13681 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13682 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13683 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13684 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13686 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13688 * symtab.c (compare_search_syms): New function.
13689 (sort_search_symbols): New function.
13690 (search_symbols): Sort symbols after searching rather than
13693 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13695 * NEWS: Linux -> GNU/Linux.
13697 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13699 * gdbarch.sh: For for level one methods, disallow a definition
13700 when partially multi-arched. Add comments explaining rationale.
13701 * gdbarch.h: Re-generate.
13703 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13705 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13706 multi-arch partial.
13708 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13710 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13711 field. Use diff -u.
13712 * gdbarch.c: Re-generate.
13714 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13716 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13717 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13720 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13722 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13723 multi-arch partial.
13724 (PUSH_ARGUMENTS): Switch to using predefault.
13725 * gdbarch.c: Regenerate.
13727 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13729 * valops.c (PUSH_ARGUMENTS): Delete definition.
13730 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13731 partial. Default to default_push_arguments.
13732 * gdbarch.h, gdbarch.c: Regenerate.
13734 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13736 * defs.h (throw_exception): Rename return_to_top_level. Update
13738 * utils.c (error_stream, internal_verror, quit): Ditto.
13739 * top.c (throw_exception, catcher): Ditto.
13740 * sparclet-rom.c (sparclet_load): Ditto.
13741 * remote.c (interrupt_query, minitelnet): Ditto.
13742 * remote-sds.c (interrupt_query): Ditto.
13743 * remote-mips.c (mips_error, mips_kill): Ditto.
13744 * ocd.c (interrupt_query): Ditto.
13745 * monitor.c (monitor_interrupt_query): Ditto.
13746 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13747 * target.h: Update comment.
13749 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13751 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13753 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13754 default_double_format.
13755 * gdbarch.h, gdbarch.c: Re-generate.
13756 * findvar.c (floatformat_unknown): Delete variable definition.
13757 * doublest.h (floatformat_unknown): Delete variable declaration.
13759 2002-02-09 Jim Blandy <jimb@redhat.com>
13761 * stabsread.c (read_type): Add code to parse Sun's syntax for
13762 prototyped function types.
13764 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13766 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13767 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13769 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13771 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13772 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13773 now _initialize_xcoffsolib gets called again and overrides the
13774 commands from solib.c in a native configuration.
13776 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13778 * doublest.c (store_typed_floating): Don't try to return a value.
13781 2002-02-08 Jim Blandy <jimb@redhat.com>
13783 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13784 is prototyped and has no arguments, print its argument list as
13787 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13789 * MAINTAINERS (write-after-approval): Add myself.
13790 (paper-trail): I've escaped!
13792 2002-02-08 Christopher Faylor <cgf@redhat.com>
13794 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13796 (_initialize_check_for_gdb_ini): Ditto.
13798 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13800 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13801 xaprintf -> xasprintf.
13803 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13805 * win32-nat.c: Remove use of printf and sprintf functions.
13807 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13809 * arm-tdep.c (arm_frame_chain_valid): Make static.
13810 (arm_push_arguments): Likewise.
13811 (arm_gdbarch_init): New function.
13812 (_initialize_arm_tdep): Call it.
13813 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13814 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13815 (FRAME_CHAIN_VALID): Delete.
13816 (arm_frame_chain_valid): Delete declaration.
13817 (PUSH_ARGUMENTS): Delete.
13818 (arm_push_arguments): Delete declaration.
13819 (CALL_DUMMY_P): Delete.
13821 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13822 Corinna Vinschen <vinschen@redhat.com>
13824 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13825 on builtin float types.
13827 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13829 * utils.c: Include <curses.h> before "bfd.h".
13830 * tui/tui-hooks.c: Likewise.
13831 * tui/tui.c: Likewise.
13832 * tui/tuiCommand.c: Likewise.
13833 * tui/tuiData.c: Likewise.
13834 * tui/tuiDataWin.c: Likewise.
13835 * tui/tuiDisassem.c: Likewise.
13836 * tui/tuiGeneralWin.c: Likewise.
13837 * tui/tuiIO.c: Likewise.
13838 * tui/tuiLayout.c: Likewise.
13839 * tui/tuiRegs.c: Likewise.
13840 * tui/tuiSource.c: Likewise.
13841 * tui/tuiSourceWin.c: Likewise.
13842 * tui/tuiStack.c: Likewise.
13843 * tui/tuiWin.c: Likewise.
13845 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13847 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13848 to include space for pseudoregs as well. Update loops accordingly.
13849 (sh_fp_frame_init_saved_regs): Ditto.
13850 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13852 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13854 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13855 Add Richard Earnshaw to Arm maintainers.
13857 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13859 * defs.h (warning_begin): Delete declaration.
13861 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13864 2002-02-07 Michael Snyder <msnyder@redhat.com>
13866 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13867 Logic bug, remove misplaced else.
13869 2002-02-07 Klee Dienes <klee@apple.com>
13871 * fork-inferior.c (fork_inferior): Add '!' to the list of
13872 characters that need to be quoted when building a string for the
13873 shell. Quote '!' specifically with a backslash, since CSH chokes
13874 when trying to evaluate "str!str".
13876 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13878 * rdi-share/host.h: Only provide a typedef for bool if it is not
13881 2002-02-04 Michael Snyder <msnyder@redhat.com>
13883 * breakpoint.h (enum bptype): Add new overlay event bp type.
13884 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13886 * breakpoint.c (create_internal_breakpoint): New function.
13887 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13888 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13889 (create_thread_event_breakpoint): Ditto.
13890 (create_solib_event_breakpoint): Ditto.
13891 (create_overlay_event_breakpoint): New function.
13892 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13893 (update_breakpoints_after_exec): Delete and re-initialize
13894 overlay event breakpoints after an exec. Add FIXME comment
13895 about longjmp breakpoint.
13896 (print_it_typical): Ignore overlay event breakpoints.
13897 (print_one_breakpoint): Ditto.
13899 (bpstat_what): Do not stop for overlay event breakpoints.
13900 (delete_breakpoint): Don't delete overlay event breakpoints.
13901 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13902 (breakpoint_re_set): Re-create overlay event breakpoint.
13904 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13905 (overlay_manual_command): Disable overlay breakpoints.
13906 (overlay_off_command): Disable overlay breakpoints.
13908 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13910 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13911 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13912 to here from config/tm-arm.h.
13913 (coff_sym_is_thumb): Make static.
13914 (arm_elf_make_msymbol_special): New function.
13915 (arm_coff_make_msymbol_special): New function.
13916 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13917 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13918 (coff_sym_is_thumb): Delete declaration.
13919 (arm_elf_make_msymbol_special): Declare.
13920 (arm_coff_make_msymbol_special): Declare.
13921 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13922 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13924 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13926 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13928 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13930 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13931 * gdbarch.c gdbarch.h: Regenerate.
13932 * arch-utils.c (default_print_float_info): New function.
13933 * arch-utils.h (default_print_float_info): Prototype it.
13934 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13935 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13936 (PRINT_FLOAT_INFO): Document it.
13938 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13939 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13940 (PRINT_FLOAT_INFO): Define.
13942 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13944 * win32-nat.c (_initialize_check_for_gdb_ini):
13945 Add typecast to sprintf argument to suppress a warning.
13947 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13949 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13950 to allow easier handling of pass state.
13951 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13952 that gives exception name and address.
13953 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13954 and set last_sig value to ourstatus->value.sig. Some missing
13956 (child_continue): Correctly report continue_status.
13957 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13958 TARGET_SIGNAL_0 (new default value).
13959 (child_resume): consider sig argument passed to decide if
13960 the exception should be passed to debuggee or not.
13962 2002-02-05 Michael Snyder <msnyder@redhat.com>
13964 * regcache.c (fetch_register): Call target_fetch_register
13965 only if we don't call FETCH_PSEUDO_REGISTER.
13966 (store_register): Call target_store_register only if we
13967 don't call STORE_PSEUDO_REGISTER.
13969 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13971 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13972 ELF_MAKE_MSYMBOL_SPECIAL.
13973 * gdbarch.c, gdbarch.h: Regenerate.
13974 * arch-utils.c (default_make_msymbol_special): New function.
13975 * arch-utils.h (default_make_msymbol_special): Export.
13976 * elfread.c (elf_symtab_read): Compile use of
13977 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13979 * coffread.c (coff_symtab_read): Ditto, for
13980 COFF_MAKE_MSYMBOL_SPECIAL.
13982 2002-02-05 Jim Blandy <jimb@redhat.com>
13984 * solib-svr4.c (svr4_truncate_ptr): New function.
13985 (svr4_relocate_section_addresses): Do the address arithmetic with
13986 the appropriate truncation for target addresses, even when
13987 CORE_ADDR is larger than a target address.
13989 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13991 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13994 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13996 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13999 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14001 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14003 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14005 * gdbserver/linux-low.c: Remove unused include files.
14007 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14009 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14010 (read_inferior_memory): Use it.
14011 (write_inferior_memory): Likewise.
14013 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14015 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14016 grubbing through sys_errlist.
14018 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14020 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14022 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14023 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14025 2002-02-04 Andrew Cagney <ac131313@redhat.com>
14027 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14028 (do_sfunc, set_cmd_sfunc): New functions.
14030 * command.h (struct cmd_list_element): Add field func.
14031 * cli/cli-decode.h (struct cmd_list_element): Ditto.
14032 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14033 * cli/cli-decode.h: Ditto.
14035 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14036 (help_all, help_cmd_list): Ditto.
14037 (find_cmd, complete_on_cmdlist): Ditto.
14038 * top.c (execute_command): Ditto.
14040 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14043 * infcmd.c (notice_args_read): Fix function signature.
14045 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14046 * cli/cli-decode.c (add_set_cmd): Ditto.
14047 * utils.c (initialize_utils): Ditto.
14048 * maint.c (_initialize_maint_cmds): Ditto.
14049 * infrun.c (_initialize_infrun): Ditto.
14050 * demangle.c (_initialize_demangler): Ditto.
14051 * remote.c (add_packet_config_cmd): Ditto.
14052 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14053 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14054 * proc-api.c (_initialize_proc_api): Ditto.
14055 * kod.c (_initialize_kod): Ditto.
14056 * valprint.c (_initialize_valprint): Ditto.
14057 * top.c (init_main): Ditto.
14058 * infcmd.c (_initialize_infcmd): Ditto.
14059 * corefile.c (_initialize_core): Ditto.
14060 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14061 * arch-utils.c (initialize_current_architecture): Ditto.
14062 (_initialize_gdbarch_utils): Ditto.
14063 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14065 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14066 * wince.c (_initialize_inftarg): Ditto.
14067 * symfile.c (_initialize_symfile): Ditto.
14068 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14069 * language.c (_initialize_language): Ditto.
14070 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14072 2002-02-04 Michael Snyder <msnyder@redhat.com>
14074 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14076 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14078 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14079 Add rules for building the register data files.
14081 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14083 * regformats/regdat.sh: Add braces to the definition of
14084 expedite_regs_${arch}.
14086 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14088 * regformats/regdef.h (struct reg): Add comment describing the
14089 requirements for offset and size fields.
14091 2002-02-04 Andreas Schwab <schwab@suse.de>
14093 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14094 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14096 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14098 * gdbarch.sh (copyright): Update years in generated header.
14099 (SMASH_TEXT_ADDRESS): Add rule.
14100 * gdbarch.h, gdbarch.c: Re-generate.
14101 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14102 * dbxread.c: Likewise.
14103 * dwarfread.c: Likewise.
14104 * elfread.c: Likewise.
14105 * somread.c: Likewise.
14107 * arm-tdep.c (arm_smash_text_address): New function.
14108 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14110 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14112 Add support for hardware watchpoints on win32 native.
14113 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14114 CONTEXT_DEBUG_REGISTERS.
14115 (dr variable): New variable. Static array containing a local copy
14116 of debug registers.
14117 (debug_registers_changed): New variable. Reflects when debug registers
14118 are changed and need to be written to inferior.
14119 (debug_registers_used): New variable. Reflects when any debug register
14120 was set, used when new threads are created.
14121 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14123 (thread_rec): Set dr array if id is the thread of current_event .
14124 (child_continue, child_resume): Change the debug registers for all
14125 threads if debug_registers_changed.
14126 (child_add_thread): Change the debug registers if debug_registers_used.
14127 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14128 Link nm.h to new nm-cygwin.h file.
14129 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14130 of hardware registers.
14132 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14134 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14135 Restore behavour broken by 2002-01-20 Andrew Cagney
14136 <ac131313@redhat.com> IEEE_FLOAT removal.
14138 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14140 * c-valprint.c (c_val_print): Pass a proper valaddr to
14141 cp_print_class_method.
14142 * valops.c (search_struct_method): If there is only one method
14143 and args is NULL, return that method.
14145 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14147 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14148 accessing tag_name directly.
14150 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14152 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14153 of accessing tag_name directly.
14155 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14158 * gdbtypes.c (replace_type): New function.
14159 * gdbtypes.h (replace_type): Add prototype.
14160 * stabsread.c (read_type): Use replace_type.
14162 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14164 * Makefile.in (memattr.o): Add missing dependencies rule.
14166 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14168 * breakpoint.c (break_at_finish_command): Really export.
14169 (break_at_finish_at_depth_command): Ditto.
14170 (tbreak_at_finish_command): Ditto.
14171 * hppa-tdep.c: Include completer.h.
14172 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14173 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14175 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14177 * utils.c (do_write): New function.
14178 (error_stream): Rewrite combining the code from error_begin and
14180 (verror): Rewrite using error_stream.
14181 (error_begin): Delete function.
14183 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14185 * utils.c (error_begin): Make static.
14186 * defs.h (error_begin): Delete declaration.
14188 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14189 (decode_line_1): Use cplusplus_error instead of error_begin,
14190 cplusplus_hint and return_to_top_level.
14191 * coffread.c (coff_symfile_read): Use error instead of error_begin
14192 and return_to_top_level.
14193 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14195 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14197 * language.h (type_error, range_error): Make string parameter
14199 * language.c (warning_pre_print): Delete extern declaration.
14200 * dwarfread.c (warning_pre_print): Ditto.
14201 * language.c (type_error, range_error): Rewrite to use verror and
14202 vwarning instead of warning_begin.
14204 2002-02-01 Michael Snyder <msnyder@redhat.com>
14206 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14207 (set_ignore_count): Move misplaced comment back where it belongs.
14209 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14211 * command.h (NO_FUNCTION): Delete macro.
14212 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14213 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14214 * tracepoint.c (_initialize_tracepoint): Ditto.
14215 * cli/cli-decode.c (add_set_cmd): Ditto.
14216 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14218 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14220 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14221 Update ``this'' pointer when calling virtual functions.
14223 2002-02-01 Michael Snyder <msnyder@redhat.com>
14225 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14226 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14228 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14230 * regformats/reg-arm.dat: New file.
14231 * regformats/reg-i386.dat: New file.
14232 * regformats/reg-ia64.dat: New file.
14233 * regformats/reg-m68k.dat: New file.
14234 * regformats/reg-mips.dat: New file.
14235 * regformats/reg-ppc.dat: New file.
14236 * regformats/reg-sh.dat: New file.
14237 * regformats/regdef.h: New file.
14238 * regformats/regdat.sh: New file.
14240 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14242 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14243 (arm_frame_args_address, arm_frame_locals_address): New functions.
14244 (arm_frame_num_args): New function.
14245 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14246 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14247 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14249 2002-01-31 Michael Snyder <msnyder@redhat.com>
14251 * breakpoint.c (break_at_finish_command): Export.
14252 (break_at_finish_at_depth_command): Export.
14253 (tbreak_at_finish_command): Export.
14254 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14255 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14256 "txbreak" commands, which are HPPA specific.
14258 * printcmd.c (disassemble_command): Remove an ancient
14259 artifact of an old merge.
14261 * symfile.h (enum overlay_debugging_state):
14262 Define enum constant values for overlay mode.
14263 * symfile.c (overlay_debugging): Use enums instead of literals.
14264 (overlay_is_mapped, overlay_auto_command,
14265 overlay_manual_command): Ditto.
14267 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14268 breakpoint_here_p, breakpoint_inserted_here_p,
14269 breakpoint_thread_match, bpstat_stop_status,
14270 describe_other_breakpoints, check_duplicates, clear_command):
14271 Coding standard fixes.
14273 * target.c (target_xfer_memory): Add spaces, coding standard.
14274 (do_xfer_memory): Add missing line to trust-readonly
14275 code: check bfd SEC_READONLY flag for section.
14277 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14279 * PROBLEMS: Fix typo, 5.1->5.1.1.
14281 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14283 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14284 data symbols, since we search based on textlow and texthigh.
14285 (find_pc_sect_symtab): Likewise.
14287 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14289 * defs.h (vwarning): Declare.
14290 * utils.c (vwarning): New function.
14291 (warning): Call vwarning.
14292 (warning_begin): Delete function.
14294 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14295 the warning message.
14296 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14299 2002-01-30 Michael Snyder <msnyder@redhat.com>
14301 * NEWS: Mention "set trust-readonly-sections" command.
14302 Mention generate-core-file command.
14304 2002-01-15 Michael Snyder <msnyder@redhat.com>
14306 * target.c: New command, "set trust-readonly-sections on".
14307 (do_xfer_memory): Honor the suggestion to trust readonly sections
14308 by reading them from the object file instead of from the target.
14309 (initialize_targets): Register command "set trust-readonly-sections".
14311 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14313 * parse.c (target_map_name_to_register): Simplify, search regs and
14314 pseudo-regs using a single loop.
14316 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14318 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14320 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14322 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14323 * config/i386/i386v42mp.mh: Add i387-nat.o .
14324 * i386v4-nat.c: Include i387-nat.h.
14325 (supply_fpregset): Use i387_supply_fsave.
14326 (fill_fpregset): Use i387_fill_fsave.
14328 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14330 * arm-tdep.c (arm_call_dummy_words): Define.
14331 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14332 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14333 (CALL_DUMMY_WORDS): Define.
14334 (arm_call_dummy_words): Declare.
14335 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14336 (arm_linux_call_dummy_words): Declare.
14338 2002-01-30 Andreas Schwab <schwab@suse.de>
14340 * m68klinux-nat.c: Fix last change to use regcache_collect
14341 instead of referencing registers[] directly.
14343 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14345 * parse.c (target_map_name_to_register): Delete code wrapped in
14346 #ifdef REGISTER_NAME_ALIAS_HOOK.
14348 2002-01-28 Michael Snyder <msnyder@redhat.com>
14350 * regcache.c (legacy_read_register_gen): Need to be able to
14351 read pseudo-register as well as real register.
14352 (legacy_write_register_gen): Ditto.
14354 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14356 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14357 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14358 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14359 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14360 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14361 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14362 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14363 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14364 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14365 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14366 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14367 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14368 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14369 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14370 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14371 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14372 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14373 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14374 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14375 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14377 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14379 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14380 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14381 (initialize_current_architecture): Update target_byte_order using
14382 information from BFD.
14383 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14384 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14386 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14388 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14389 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14391 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14392 #ifdef INVALID_FLOAT.
14393 * infcmd.c (do_registers_info): Ditto.
14394 * values.c (unpack_double): Ditto. Add comment.
14396 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14397 already commented out.
14399 2002-01-26 Andreas Schwab <schwab@suse.de>
14401 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14402 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14403 registers and add support for PTRACE_GETREGS.
14405 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14407 GDB 5.1.1 released from 5.1 branch.
14408 * NEWS: Add 5.1.1 news.
14409 * README: Sync with 5.1 branch.
14411 2002-01-23 Fred Fish <fnf@redhat.com>
14413 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14414 stabstring on initial malloc. Reallocing will copy it for us,
14417 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14419 * Makefile.in (hpread_h): Delete.
14420 (HFILES_NO_SRCDIR): Remove hpread.h.
14421 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14422 (hpread.o): Update dependencies.
14423 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14425 * hp-psymtab-read.c: Remove file.
14426 * hp-symtab-read.c: Remove file.
14427 * hpread.h: Remove file.
14429 * hpread.c: Merge all contents of hp-psymtab-read.c,
14430 hp-symtab-read.c and hpread.h into this file, as it was prior to
14433 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14434 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14435 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14436 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14438 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14440 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14441 fill_gregset): Call gdbarch_tdep() just once, assign result to
14442 variable and use that, instead of calling the function several
14445 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14447 * configure.host: Accept sparcv9 as alias for sparc64.
14448 * configure.tgt: Likewise.
14450 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14452 * solib-aix5.c (build_so_list_from_mapfile)
14453 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14454 arguments is not reversed.
14455 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14456 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14458 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14460 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14461 modified version of obsolete sh_fetch_pseudo_register.
14462 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14463 (sh4_register_read): New function.
14464 (sh_pseudo_register_write): New function. Renamed and modified
14465 version of obsolete sh_store_pseudo_register.
14466 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14467 (sh4_register_write): New function.
14468 (sh_gdbarch_init): Remove setting of gdbarch function
14469 fetch_pseudo_register and store_pseudo_register. Remove setting of
14470 register_convert_to_raw, register_convert_to_virtual,
14471 register_convertible.
14472 (sh_sh4_register_convertible): Delete. No longer needed. All is
14473 taken care by architecture specific functions
14474 register_read/register_write.
14475 (sh_sh4_register_convert_to_virtual): Make static.
14476 (sh_sh4_register_convert_to_raw): Ditto.
14478 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14480 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14481 (floatformat_is_nan, floatformat_mantissa): Ditto.
14483 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14484 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14485 builtin_type_ieee_double_little,
14486 builtin_type_ieee_double_littlebyte_bigword,
14487 builtin_type_m68881_ext, builtin_type_i960_ext,
14488 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14489 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14490 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14491 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14493 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14495 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14496 parameter. Set frameless flag if it exists and depended of
14497 whether the scanned function is frameless or not.
14498 (xstormy16_skip_prologue): If function is frameless, return
14499 result of xstormy16_scan_prologue().
14500 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14503 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14505 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14506 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14507 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14508 sh_sh4_register_byte, sh_sh4_register_raw_size,
14509 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14510 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14511 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14512 sh_store_pseudo_register, sh_do_pseudo_register): Call
14513 gdbarch_tdep() just once, assign result to variable and use that,
14514 instead of calling the function several times.
14516 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14518 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14519 macros instead of LAST_FPU_CTRL_REGNUM.
14520 (store_register): Likewise.
14522 2002-01-21 Jim Blandy <jimb@redhat.com>
14524 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14525 is up-to-date before running the program, not just when a program
14528 2002-01-21 Fred Fish <fnf@redhat.com>
14530 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14531 when we have found all instructions we are looking for.
14533 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14535 * arm-tdep.c (arm_register_name): New function.
14536 (arm_registers_names): Make static.
14537 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14538 (arm_register_name): Declare.
14539 (REGISTER_NAME): Use it.
14541 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14542 Kevin Buettner <kevinb@redhat.com>
14544 Convert arm targets to new FRAME interface.
14545 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14546 (arm_frame_find_save_regs): Delete.
14547 (arm_frame_init_saved_regs): New.
14548 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14549 Allocate extra_info as required. Convert all uses of fsr.regs
14550 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14552 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14553 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14554 (check_prologue_cache, save_prologue_cache): Likewise.
14555 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14556 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14557 (FRAME_FIND_SAVED_REGS): Delete.
14558 (arm_frame_find_saved_regs): Delete prototype.
14559 (arm_frame_init_saved_regs): New prototype.
14560 (FRAME_INIT_SAVED_REGS): Define.
14562 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14564 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14566 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14568 From Jeff Law <law@redhat.com>:
14569 * infttrace.c: Include <sys/pstat.h>.
14570 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14571 exec file if the ttrace equivalent fails.
14573 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14575 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14576 (closeLogFile): Ditto.
14578 2002-01-20 Michael Chastain <mec@shout.net>
14580 * top.c (print_gdb_version): Bump copyright year to 2002.
14582 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14584 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14585 Zannoni and Eli Zaretskii.
14587 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14589 * buildsym.c: Update copyright years.
14590 * c-typeprint.c: Likewise.
14591 * dwarf2read.c: Likewise.
14592 * f-typeprint.c: Likewise.
14593 * gdbtypes.c: Likewise.
14594 * gdbtypes.h: Likewise.
14595 * hp-symtab-read.c: Likewise.
14596 * hpread.c: Likewise.
14597 * mdebugread.c: Likewise.
14598 * p-typeprint.c: Likewise.
14600 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14602 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14603 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14604 byte-order selectable.
14605 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14606 * arch-utils.c: Ditto.
14607 (set_endian): Ditto.
14608 (set_endian_from_file): Ditto.
14609 * gdbserver/low-sim.c (create_inferior): Ditto.
14610 * gdbarch.sh: Ditto.
14611 * gdbarch.h: Re-generate.
14612 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14613 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14614 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14615 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14616 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14617 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14618 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14619 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14621 * config/mips/tm-wince.h: Remove #undef of macro
14622 TARGET_BYTE_ORDER_SELECTABLE.
14623 * config/sh/tm-wince.h: Ditto.
14625 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14627 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14628 member function fields. Add accessor macro
14629 TYPE_FN_FIELD_ARTIFICIAL.
14630 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14631 * c-typeprint.c (c_type_print_base): Skip artificial member
14634 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14636 * f-typeprint.c: Delete unused function f_type_print_args.
14637 * p-typeprint.c: Delete unused function pascal_type_print_args.
14639 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14641 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14642 comment. Add ``artificial'' to ``union field_location''.
14644 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14646 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14647 * mdebugread.c (parse_symbol): Likewise.
14648 * stabsread.c (define_symbol): Likewise.
14649 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14650 initializing TYPE_FIELD_BITPOS to n (obsolete).
14651 (hpread_doc_function_type): Likewise.
14652 * hpread.c (hpread_function_type): Likewise.
14654 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14656 * configure.in (host_makefile_frag): Only require a host makefile
14657 fragment when a native build.
14658 * configure: Re-generate.
14660 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14662 * doublest.h (floatformat_from_type): Declare.
14663 * doublest.c (floatformat_from_type): New function.
14664 (convert_typed_floating): Use.
14666 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14667 call to function floatformat_from_type.
14669 * gdbarch.sh (IEEE_FLOAT): Delete.
14670 * gdbarch.h, gdbarch.c: Re-generate.
14671 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14672 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14673 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14674 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14675 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14676 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14677 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14678 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14679 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14680 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14681 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14682 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14684 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14685 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14686 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14687 * sh-tdep.c (sh_gdbarch_init): Ditto.
14688 * mips-tdep.c (mips_gdbarch_init): Ditto.
14689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14690 * cris-tdep.c (cris_gdbarch_init): Ditto.
14692 2002-01-20 Jiri Smid <smid@suse.cz>
14694 * configure.host, configure.tgt: Support x86-64.
14695 * NEWS: Note new target x86-64.
14697 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14698 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14699 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14700 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14701 x86-64-linux-nat.o): Fix dependencies.
14703 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14705 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14706 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14707 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14708 * config/sparc/xm-sun4os4.h: Delete file.
14709 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14711 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14713 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14714 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14715 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14716 * config/i386/i386lynx.mh (XM_FILE): Delete.
14717 * config/rs6000/xm-rs6000ly.h: Delete file.
14718 * config/sparc/xm-sparclynx.h: Delete file.
14719 * config/m68k/xm-m68klynx.h: Delete file.
14720 * config/i386/xm-i386lynx.h: Delete file.
14721 * config/xm-lynx.h: Delete file.
14722 * config/djgpp/fnchange.lst: Update.
14724 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14726 * alpha-tdep.c (alpha_register_byte): New function.
14727 (alpha_register_raw_size): Ditto.
14728 (alpha_register_virtual_size): Ditto.
14729 (alpha_skip_prologue_internal): Renamed from
14730 alpha_skip_prologue.
14731 (alpha_skip_prologue): New version that calls
14732 alpha_skip_prologue_internal.
14733 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14734 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14735 second argument from alpha_skip_prologue.
14736 (REGISTER_BYTE): Use alpha_register_byte.
14737 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14738 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14739 (FRAMELESS_FUNCTION_INVOCATION): Use
14740 generic_frameless_function_invocation_not.
14741 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14742 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14744 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14746 * config/mips/xm-news-mips.h: Delete file.
14747 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14749 * config/m88k/xm-m88k.h: Delete file.
14750 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14751 * config/m88k/xm-delta88v4.h: Ditto.
14752 * config/m88k/xm-delta88.h: Ditto.
14754 * config/alpha/xm-fbsd.h: Delete file.
14755 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14757 * config/sparc/xm-sparc.h: Delete file.
14758 * Makefile.in (xm-sun4os4.h): Delete dependency.
14759 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14760 * config/sparc/xm-sun4os4.h: Ditto.
14761 * config/sparc/xm-linux.h: Ditto.
14763 * config/i386/xm-windows.h: Delete file.
14765 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14767 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14768 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14770 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14772 * alpha-tdep.c (alpha_call_dummy_words): New.
14773 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14774 (CALL_DUMMY_P): Define.
14775 (CALL_DUMMY_WORDS): Define.
14776 (SIZEOF_CALL_DUMMY_WORDS): Define.
14778 2002-01-19 Per Bothner <per@bothner.com>
14780 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14781 isn't NULL, which can happen with some gcj-3.x-produced code.
14783 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14785 * alpha-tdep.c (alpha_register_virtual_type): New function.
14786 (alpha_init_frame_pc_first): Ditto.
14787 (alpha_fix_call_dummy): Ditto.
14788 (alpha_store_struct_return): Ditto.
14789 (alpha_extract_struct_value_address): Ditto.
14790 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14791 alpha_register_virtual_type.
14792 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14793 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14794 alpha_extract_struct_value_address.
14795 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14796 (INIT_FRAME_PC): Use init_frame_pc_noop.
14797 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14799 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14801 * i386gnu-nat.c: Include "i386-tdep.h".
14802 (fetch_fpregs): Simplify code dealing with uninitialized floating
14803 point states such that it doesn't require FP7_REGNUM.
14805 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14807 * alpha-tdep.c (frame_extra_info): New.
14808 (alpha_find_saved_regs): Make static. Use
14810 (alpha_frame_init_saved_regs): New function.
14811 (alpha_frame_saved_pc): Use frame->extra_info.
14812 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14813 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14814 (init_extra_frame_info): Rename to...
14815 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14816 (alpha_print_extra_frame_info): New function.
14817 (alpha_frame_locals_address): Ditto.
14818 (alpha_frame_args_address): Ditto.
14819 (alpha_pop_frame): Use frame->extra_info.
14820 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14821 alpha_frame_args_address.
14822 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14823 (alpha_find_saved_regs): Remove prototype.
14824 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14825 (EXTRA_FRAME_INFO): Remove.
14826 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14827 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14829 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14831 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14832 (alpha_cannot_fetch_register): Ditto.
14833 (alpha_cannot_store_register): Ditto.
14834 (alpha_register_convertible): Ditto.
14835 (alpha_use_struct_convention): Ditto.
14836 * config/alpha/tm-alpha.h: Update copyright years.
14837 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14838 (INNER_THAN): Use core_addr_lessthan.
14839 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14840 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14841 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14842 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14843 (FRAME_CHAIN): Remove unnecessary cast.
14845 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14847 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14850 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14852 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14853 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14854 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14855 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14856 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14857 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14858 * x86-64-linux-nat.c: Ditto.
14860 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14862 * alpha-tdep.c (alpha_register_name): New function.
14863 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14864 (REGISTER_NAME): Define.
14866 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14868 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14870 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14872 * alpha-tdep.c: Update copyright years.
14873 (alpha_next_pc): New function.
14874 (alpha_software_single_step): Ditto.
14875 * config/alpha/tm-alpha.h: Add prototype for
14876 alpha_software_single_step.
14878 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14880 * alphabsd-nat.c: Update copyright years.
14881 (fill_gregset): Use regcache_collect.
14882 (fill_fpregset): Likewise.
14883 (fetch_inferior_registers): Only fetch integer registers
14884 if requested to do so.
14885 (store_inferior_registers): Only store integer registers
14886 if requested to do so.
14888 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14890 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14891 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14892 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14893 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14894 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14895 * config/arm/linux.mh (XDEPFILES): Delete.
14896 * config/arm/nbsd.mh (XDEPFILES): Delete.
14897 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14898 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14899 * config/i386/i386m3.mh (XDEPFILES): Delete.
14900 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14901 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14902 * config/i386/fbsd.mh (XDEPFILES): Delete.
14903 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14904 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14905 * config/i386/i386v4.mh (XDEPFILES): Delete.
14906 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14907 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14908 * config/i386/i386aix.mh (XDEPFILES): Delete.
14909 * config/i386/go32.mh (XDEPFILES): Delete.
14910 * config/i386/cygwin.mh (XDEPFILES): Delete.
14911 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14912 * config/i386/i386mach.mh (XDEPFILES): Delete.
14913 * config/i386/i386v32.mh (XDEPFILES): Delete.
14914 * config/i386/linux.mh (XDEPFILES): Delete.
14915 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14916 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14917 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14918 * config/i386/i386sco.mh (XDEPFILES): Delete.
14919 * config/i386/i386v.mh (XDEPFILES): Delete.
14920 * config/i386/nbsd.mh (XDEPFILES): Delete.
14921 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14922 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14923 * config/i386/symmetry.mh (XDEPFILES): Delete.
14924 * config/i386/obsd.mh (XDEPFILES): Delete.
14925 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14926 * config/ia64/linux.mh (XDEPFILES): Delete.
14927 * config/ia64/aix.mh (XDEPFILES): Delete.
14928 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14929 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14930 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14931 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14932 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14933 * config/m68k/linux.mh (XDEPFILES): Delete.
14934 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14935 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14936 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14937 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14938 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14939 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14940 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14941 * config/m88k/delta88.mh (XDEPFILES): Delete.
14942 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14943 * config/m88k/m88k.mh (XDEPFILES): Delete.
14944 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14945 * config/mips/linux.mh (XDEPFILES): Delete.
14946 * config/mips/irix6.mh (XDEPFILES): Delete.
14947 * config/mips/irix5.mh (XDEPFILES): Delete.
14948 * config/mips/irix4.mh (XDEPFILES): Delete.
14949 * config/mips/irix3.mh (XDEPFILES): Delete.
14950 * config/mips/decstation.mh (XDEPFILES): Delete.
14951 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14952 (NATDEPFILES): Move core-aout.o to here.
14953 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14954 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14955 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14956 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14957 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14958 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14959 * config/pa/hpux11.mh (XDEPFILES): Delete.
14960 * config/powerpc/aix.mh (XDEPFILES): Delete.
14961 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14962 * config/powerpc/linux.mh (XDEPFILES): Delete.
14963 * config/romp/rtbsd.mh: Rename XDEPFILES.
14964 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14965 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14966 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14967 * config/s390/s390.mh (XDEPFILES): Delete.
14968 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14969 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14970 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14971 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14972 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14973 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14974 * config/sparc/linux.mh (XDEPFILES): Delete.
14975 * config/vax/vaxult.mh (XDEPFILES): Delete.
14976 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14977 * Makefile.in (DEPFILES): Remove XDEPFILES.
14979 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14981 * utils.c (internal_verror): Fix comments, default is yes not no.
14982 Update queries to match. Default to quit and dump core.
14984 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14986 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14988 * defs.h, event-top.c, gdbcmd.h: Ditto.
14989 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14990 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14991 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14992 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14993 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14994 * mi/mi-main.c:Ditto.
14996 * stack.c, symfile.c: Update copyright.
14998 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15000 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15001 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15002 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15003 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15005 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15007 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15008 * gdbserver/low-lynx.c (myattach): Likewise.
15009 * gdbserver/low-nbsd.c (myattach): Likewise.
15010 * gdbserver/low-sim.c (myattach): Likewise.
15011 * gdbserver/low-sparc.c (myattach): Likewise.
15012 * gdbserver/low-sun3.c (myattach): Likewise.
15014 * gdbserver/low-linux.c (myattach): New function.
15016 * gdbserver/server.c (attach_inferior): New function.
15017 (main): Handle "--attach".
15019 2002-01-16 Andrew Cagney <ac131313@redhat.com>
15021 * MAINTAINERS (language support): Daniel Jacobwitz is C++
15024 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
15026 * c-typeprint.c (is_type_conversion_operator): Add additional
15027 check for non-conversion operators.
15029 2002-01-15 Michael Snyder <msnyder@redhat.com>
15031 * linux-proc.c: Add "info proc" command, a la procfs.c.
15032 (read_mapping): New function, abstract and re-use code.
15033 (linux_find_memory_regions): Use new func read_mapping.
15034 (linux_info_proc_cmd): New function, implement "info proc".
15035 (_initialize_linux_proc): Add new command "info proc".
15037 2002-01-15 Michael Snyder <msnyder@redhat.com>
15039 * symfile.c (generic_load): Use bfd_map_over_sections method
15040 instead of manipulating bfd structure members directly.
15041 (add_section_size_callback): New function, bfd sections callback
15042 used by generic_load.
15043 (load_sections_callback): New function, bfd sections callback
15044 used by generic_load.
15046 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15048 [Based on work by Jim Blandy]
15049 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15050 (builtin_type_vec128): Export.
15051 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15053 (builtin_type_vec128): New builtin type for 128 bit vector
15055 (build_gdbtypes): Initialize builtin_type_v16qi and
15056 builtin_type_v8hi. Create the vec128 register builtin type
15058 (build_builtin_type_vec128): New function.
15059 (_initialize_gdbtypes): Register builtin_type_v16qi and
15060 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15061 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15062 AltiVec register to new builtin type.
15064 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15066 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15069 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15071 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15072 CLEAN_UP_REGISTER_VALUE.
15073 * regcache.c (supply_register): Update only call.
15075 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15077 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15078 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15079 a29k-*-vxworks* targets as obsolete.
15081 2002-01-14 Michael Snyder <msnyder@redhat.com>
15083 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15084 until we can resolve portability issues.
15085 * gregset.h: Remove references to fpxregs.
15086 * gcore.c (gcore_command): Initialize note_sec to NULL.
15088 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15090 * signals.c (target_signal_to_name): Rewrite. Only use
15091 signals[].name when in bounds and non-NULL.
15093 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15095 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15096 * signals.c (target_signal_to_name): Verify that SIG is within the
15097 bounds of the signals array.
15099 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15101 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15103 2002-01-13 Keith Seitz <keiths@redhat.com>
15105 * stack.c (print_frame_info_base): Print the frame's pc
15106 only if when print_frame_info_listing_hook is not defined.
15108 2002-01-13 Keith Seitz <keiths@redhat.com>
15110 * varobj.c (varobj_set_value): Make sure that there were no
15111 errors evaluating the object before attempting to set its
15113 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15114 so this offset adjustment is no longer necessary.
15115 (create_child): Don't set the error flag if the child is
15116 a CPLUS_FAKE_CHILD.
15117 (value_of_child): If value_fetch_lazy fails, return NULL
15118 so that callers will be notified that an error occurred.
15119 (c_value_of_variable): Delay check of variable's validity
15120 until later. We actually want all structs and unions to have
15122 Do not return "???" for variables which could not be evaluated.
15123 This error condition must be returned to the caller so that it
15124 can get the error condition from gdb.
15125 (cplus_name_of_child): Adjust index for vptr before figuring
15126 out the name of the child.
15127 (cplus_value_of_child): If a child's (real) parent is not valid,
15128 don't even bother trying to give a value for it. Just return
15129 an error. Change all instances in this function.
15130 (cplus_type_of_child): If our parent is one of the "fake"
15131 parents, we need to get at the type of the real parent, and
15132 derive the child's true type using this information.
15134 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15136 From 2002-01-09 John Marshall <johnm@falch.net>:
15137 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15138 sources.redhat.com, and tweak some related URLs which had
15139 suffered from linkrot.
15141 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15144 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15145 structures passed in registers.
15147 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15149 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15150 white space which prevented compilation. Reported by DSK
15151 <dsk@student.unsw.edu.au>.
15153 2002-01-11 Michael Snyder <msnyder@redhat.com>
15155 * symfile.c (build_section_addr_info_from_section_tab):
15156 Use bfd access method instead of manipulating bfd directly.
15157 (syms_from_objfile): Ditto.
15158 (simple_overlay_update_1): Ditto.
15159 (simple_overlay_update): Ditto.
15160 (generic_load): Ditto.
15161 (overlay_unmapped_address): FIXME comment, bfd access methods.
15162 (sections_overlap): FIXME comment, bfd access methods.
15163 (pc_in_mapped_range): FIXME comment, bfd access methods.
15164 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15165 (section_is_mapped): FIXME comment, bfd access methods.
15166 (section_is_overlay): FIXME comment, bfd access methods.
15168 * symfile.c (generic_load): Whitespace and long line cleanups.
15169 Remove duplicate variable, change several local variables to
15170 more appropriate data types.
15171 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15173 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15175 From Peter Schauer:
15176 * language.c (longest_local_hex_string_custom): Use phex_nz to
15177 convert NUM to a hex string.
15179 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15181 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15183 Update Copyright year.
15185 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15187 * language.c (longest_raw_hex_string): Delete unused function.
15189 2002-01-11 Petr Sorfa <petrs@caldera.com>
15191 * MAINTAINERS (write-after-approval): Add myself.
15192 * dwarf2read.c (read_tag_string_type): Handling of
15194 (read_tag_string_type): FORTRAN fix to prevent propagation of
15196 (set_cu_language): Handling of DW_LANG_Fortran95
15198 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15200 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15201 GETPID(inferior_ptid).
15202 (store_inferior_registers): Likewise.
15204 2002-01-10 Jason Merrill <jason@redhat.com>
15206 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15209 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15211 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15212 and bfd/elf32-sh-nbsd.c.
15214 2002-01-10 Michael Snyder <msnyder@redhat.com>
15216 * NEWS: Mention --pid and corefile/proc-id behavior change.
15218 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15219 * gcore.c: Include cli/cli-decode.h instead of command.h.
15221 * main.c (captured_main): Add new command line option "--pid".
15222 If the second command line argument (following the symbol-file)
15223 begins with a digit, try to attach to it before trying to open
15225 (print_gdb_help): Document the "--pid" argument.
15227 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15229 * completer.c (command_completer): New function.
15231 * completer.h <command_completer>: Add prototype.
15233 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15234 completer for the "help" command.
15236 2002-01-09 Jason Merrill <jason@redhat.com>
15238 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15240 2002-01-09 Michael Snyder <msnyder@redhat.com>
15242 * i386-linux-nat.c (fill_fpxregset): Make global.
15243 (store_fpxregset): Ditto.
15245 * gregset.h (gdb_fpxregset_t): Define.
15246 (supply_fpxregset): Prototype.
15247 (fill_fpxregset): Prototype.
15249 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15251 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15253 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15254 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15255 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15257 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15259 * MAINTAINERS: Update target maintainer rules so that any
15260 Maintainer can approve a tested patch for a maintenance-only
15263 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15265 * MAINTAINERS (write-after-approval): Add myself.
15267 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15270 2002-01-08 Michael Snyder <msnyder@redhat.com>
15272 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15273 real name of the executable, rather than the /proc name.
15275 2002-01-03 Michael Snyder <msnyder@redhat.com>
15277 Implement a "generate-core-file" command in gdb, save target state.
15278 * gcore.c: New file. Implement new command 'generate-core-file'.
15279 Save a corefile image of the current state of the inferior.
15280 * linux-proc.c: Add linux-specific code for saving corefiles.
15281 * target.h (struct target_ops): Add new target vectors for saving
15282 corefiles; to_find_memory_regions and to_make_corefile_notes.
15283 (target_find_memory_regions): New macro.
15284 (target_make_corefile_notes): New macro.
15285 * target.c (update_current_target): Inherit new target methods.
15286 (dummy_find_memory_regions): New place-holder method.
15287 (dummy_make_corefile_notes): New place-holder method.
15288 (init_dummy_target): Initialize new dummy target vectors.
15289 * exec.c (exec_set_find_memory_regions): New function.
15290 Allow the exec_ops vector for memory regions to be taken over.
15291 (exec_make_note_section): New function, target vector method.
15292 * defs.h (exec_set_find_memory_regions): Export prototype.
15293 * procfs.c (proc_find_memory_regions): New function, corefile method.
15294 (procfs_make_note_section): New function, corefile method.
15295 (init_procfs_ops): Set new target vector pointers.
15296 (find_memory_regions_callback): New function.
15297 (procfs_do_thread_registers): New function.
15298 (procfs_corefile_thread_callback): New function.
15299 * sol-thread.c (sol_find_memory_regions): New function.
15300 (sol_make_note_section): New function.
15301 (init_sol_thread_ops): Initialize new target vectors.
15302 * inftarg.c (inftarg_set_find_memory_regions): New function.
15303 Allow to_find_memory_regions vector to be taken over.
15304 (inftarg_set_make_corefile_notes): New function.
15305 Allow to_make_corefile_notes vector to be taken over.
15306 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15307 interface layer if not target_has_execution (may be a corefile).
15308 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15309 * config/sparc/sun4sol2.mh: Ditto.
15310 * config/alpha/alpha-linux.mh: Ditto.
15311 * config/arm/linux.mh: Ditto.
15312 * config/i386/x86-64linux.mh: Ditto.
15313 * config/ia64/linux.mh: Ditto.
15314 * config/m68k/linux.mh: Ditto.
15315 * config/mips/linux.mh: Ditto.
15316 * config/powerpc/linux.mh: Ditto.
15317 * config/sparc/linux.mh: Ditto.
15319 2002-01-07 Michael Snyder <msnyder@redhat.com>
15321 * arm-linux-nat.c: Remove references to regcache.c internal data
15322 (registers[] and register_valid[]).
15324 2002-01-07 Michael Snyder <msnyder@redhat.com>
15326 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15327 so that attaching to a pid will automatically read the process's
15328 symbol file and shlibs.
15329 * Makefile.in: Add rule for linux-proc.o.
15330 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15331 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15332 * config/arm/linux.mh: Ditto.
15333 * config/i386/linux.mh: Ditto.
15334 * config/i386/x86-64linux.mh: Ditto.
15335 * config/ia64/linux.mh: Ditto.
15336 * config/m68k/linux.mh: Ditto.
15337 * config/mips/linux.mh: Ditto.
15338 * config/powerpc/linux.mh: Ditto.
15339 * config/sparc/linux.mh: Ditto.
15341 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15343 * win32-nat.c: Add i386-tdep.h dependency.
15345 2002-01-07 Michael Snyder <msnyder@redhat.com>
15347 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15348 instead of bfd_get_arch_size. Don't bail out just because
15349 there's no exec_bfd.
15351 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15352 * p-valprint.c (pascal_object_print_value): Ditto.
15353 * somread.c (som_symtab_read): Ditto.
15354 * symfile.c (simple_free_overlay_region_table): Ditto.
15355 * valops.c (value_assign): Ditto.
15357 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15358 use tilde_expand and strerror for opening save-tracepoints file.
15360 * thread-db.c (thread_db_new_objfile): Indendation fix.
15362 * infptrace.c (GDB_MAX_ALLOCA): New define.
15363 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15364 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15365 can be overridden with whatever value is appropriate to the host).
15366 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15367 alloca to allocate potentially large buffer.
15368 * rs6000-nat.c (child_xfer_memory): Ditto.
15369 * symm-nat.c (child_xfer_memory): Ditto.
15370 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15372 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15374 From Nick Clifton <nickc@redhat.com>
15375 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15377 2002-01-07 Michael Snyder <msnyder@redhat.com>
15379 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15380 Don't use exec_bfd if it's NULL.
15382 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15384 * valops.c (value_arg_coerce): Fix formatting.
15386 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15388 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15389 * gnu-nat.c: Ditto.
15391 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15393 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15394 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15395 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15396 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15397 z8k-coff have not been multi-arched. Update z8k-coff build
15400 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15402 * MAINTAINERS: Mark a29k target as obsolete.
15403 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15404 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15406 * NEWS: Note that a29k targets are obsolete.
15407 * a29k-tdep.c: Mark as obsolete.
15408 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15409 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15410 a29k-*-vxworks* targets as obsolete.
15411 * remote-adapt.c: Obsolete.
15412 * remote-eb.c: Obsolete.
15413 * remote-mm.c: Obsolete.
15414 * remote-udi.c: Obsolete.
15415 * config/a29k/a29k-udi.mt: Obsolete.
15416 * config/a29k/a29k.mt: Obsolete.
15417 * config/a29k/tm-a29k.h: Obsolete.
15418 * config/a29k/tm-vx29k.h: Obsolete.
15419 * config/a29k/vx29k.mt: Obsolete.
15421 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15423 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15424 with BFD_ENDIAN_BIG.
15426 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15428 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15429 * configure, config.in: Re-generate.
15430 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15431 * defs.h: Do not include <endian.h>.
15433 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15435 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15436 * config.in: Regenerate.
15437 * configure.in: Update copyright years.
15438 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15439 * configure: Regenerate.
15440 * i386bsd-nat.c: Update copyright years.
15441 (fill_gregset): Use regcache_collect.
15442 (fetch_inferior_registers): Only fetch integer registers
15443 if requested to do so. Add support for XMM registers
15444 using PT_GETXMMREGS.
15445 (store_inferior_registers): Only store integer registers
15446 if requested to do so. Add support for XMM registers
15447 using PT_SETXMMREGS.
15448 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15449 (store_inferior_registers): Remove.
15450 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15451 (fetch_elfcore_registers): New function.
15452 (i386nbsd_elfcore_fns): New.
15453 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15454 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15456 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15457 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15458 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15459 * config/i386/tm-nbsd.h: Update copyright years.
15460 (HAVE_SSE_REGS): Define.
15461 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15462 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15463 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15464 (SIGCONTEXT_PC_OFFSET): Remove.
15465 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15467 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15469 * configure.tgt: Remove powerpc-*-macos* target.
15470 * config/m68k/xm-mpw.h: Delete file.
15471 * config/xm-mpw.h: Delete file.
15472 * ser-mac.c: Delete file.
15473 * mpw-make.sed: Delete file.
15474 * mpw-config.in: Delete file.
15475 * mac-xdep.c: Delete file.
15476 * mac-gdb.r: Delete file.
15477 * mac-defs.h: Delete file.
15478 * mac-nat.c: Delete file.
15479 * config/powerpc/macos.mh: Delete file.
15480 * config/powerpc/macos.mt: Delete file.
15481 * config/powerpc/nm-macos.h: Delete file.
15482 * config/powerpc/tm-macos.h: Delete file.
15483 * source.c (openp, open_source_file): Remove obsolete code.
15484 * top.c (gdb_readline): Ditto.
15485 * utils.c (query): Ditto.
15486 * event-top.c (display_gdb_prompt): Ditto.
15487 * Makefile.in (ser-mac.o): Delete obsolete target.
15490 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15492 * defs.h (BIG_ENDIAN): Delete macro definition.
15493 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15494 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15495 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15496 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15497 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15498 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15499 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15500 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15501 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15502 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15503 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15504 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15505 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15506 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15507 * gdbarch.c: Re-generate.
15509 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15511 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15514 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15516 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15518 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15520 * value.h (value_ptr): Delete typedef.
15522 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15524 * i386nbsd-nat.c: Update copyright years.
15525 Include i386-tdep.h.
15527 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15529 * stabsread.c: Update copyright years.
15531 From Debashis Mahata <debashis.mahata@wipro.com>:
15532 (read_struct_fields): Deal with Sun C compiler erroneous stab
15533 output for structs and unions.
15536 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15538 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15541 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15543 * cp-abi.c: Fix whitespace.
15544 (baseclass_offset): New wrapper function.
15545 * cp-abi.h (baseclass_offset): Add prototype.
15546 (struct cp_abi_ops): Add baseclass_offset pointer.
15548 * valops.c (vb_match): Move to...
15549 * gnu-v2-abi.c (vb_match): here.
15550 * valops.c (baseclass_offset): Move to...
15551 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15553 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15555 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15556 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15557 * hpacc-abi.c (init_hpacc_ops): Likewise.
15559 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15561 * valops.c (find_overload_match): Accept obj as a
15562 reference parameter. Update it before returning.
15563 * value.h (find_overload_match): Update prototype.
15564 * eval.c (evaluate_subexp_standard): Pass object to
15565 find_overload_match by reference.
15567 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15569 * valarith.c: Replace value_ptr with struct value pointer. Remove
15570 register attribute from value declarations.
15573 * scm-lang.c (scm_lookup_name): Ditto.
15575 2002-01-03 Michael Snyder <msnyder@redhat.com>
15577 Abstract the functionality of iterating over mapped memory
15578 regions into a general purpose iterator function.
15579 * procfs.c (iterate_over_mappings): New function, general purpose
15580 iterator for memory sections.
15581 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15582 (solib_mappings_callback): New function, callback for above.
15583 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15584 (info_mappings_callback): New function, callback for above.
15586 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15588 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15590 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15591 * i386-tdep.c: Include "elf-bfd.h".
15592 (process_note_abi_tag_sections): New function.
15593 (i386_gdbarch_init): Add code to recognize various OS/ABI
15596 * maint.c (_initialize_maint_cmds): Add missing \ in
15599 For older changes see ChangeLog-2001
15605 version-control: never