1 2003-01-07 Andrew Cagney <cagney@redhat.com>
3 * arm-tdep.c (arm_init_extra_frame_info): Use
4 deprecated_update_frame_base_hack.
5 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
6 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
7 (fix_frame_pointer): Ditto.
8 (mn10300_analyze_prologue): Ditto.
10 2003-01-07 Andrew Cagney <cagney@redhat.com>
12 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13 extra_info using frame_extra_info_zalloc.
14 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
15 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
16 (sh64_init_extra_frame_info): Ditto.
17 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
18 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
19 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
20 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
21 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
22 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
23 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
24 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
25 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
26 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
27 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
28 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
30 * mn10300-tdep.c (analyze_dummy_frame): Use
31 deprecated_set_frame_extra_info_hack.
32 * mcore-tdep.c (analyze_dummy_frame): Ditto.
34 2003-01-07 J. Brobecker <brobecker@gnat.com>
36 * mdebugread.c (parse_symbol): Skip stProc entries which storage
37 class is not scText. These do not define "real" procedures.
38 (parse_partial_symbols): Likewise.
40 2003-01-06 Michael Snyder <msnyder@redhat.com>
42 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
44 2003-01-06 Andrew Cagney <ac131313@redhat.com>
46 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
47 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
48 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
49 deprecated_frame_xmalloc_with_cleanup.
50 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
51 deprecated_frame_xmalloc.
52 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
53 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
55 2003-01-06 Andrew Cagney <cagney@redhat.com>
57 * x86-64-linux-tdep.c: Include "osabi.h".
58 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
60 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
62 2003-01-06 Andrew Cagney <cagney@redhat.com>
64 * MAINTAINERS (Target Instruction Set Architectures): Update
65 arm-elf. Can be built with -Werror, has been multiarched.
67 * value.h (unpack_long): Make buffer parameter constant.
68 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
69 * scm-lang.h (scm_parse): Ditto.
70 * defs.h (extract_typed_address, extract_address): Ditto.
71 (extract_long_unsigned_integer): Ditto.
72 * inferior.h (unsigned_pointer_to_address): Ditto.
73 (signed_pointer_to_address): Ditto.
74 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
75 * gdbarch.h, gdbarch.c: Regenerate.
76 * findvar.c (extract_long_unsigned_integer): Update.
77 (extract_address): Update.
78 (extract_typed_address): Update.
79 (unsigned_pointer_to_address): Update.
80 * values.c (unpack_long): Update.
81 (unpack_double): Update.
82 (unpack_pointer): Update.
83 (unpack_field_as_long): Update.
84 * d10v-tdep.c (d10v_pointer_to_address): Update.
85 * avr-tdep.c (avr_pointer_to_address): Update.
86 * scm-lang.c (scm_unpack): Update.
87 * findvar.c (signed_pointer_to_address): Update.
89 2003-01-06 Michal Ludvig <mludvig@suse.cz>
91 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
92 since it is in i386-tdep.c.
94 2003-01-06 J. Brobecker <brobecker@gnat.com>
96 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
97 failure introduced in the previous change.
99 2003-01-05 Michael Chastain <mec@shout.net>
101 * README: Remove references to deleted remote-*.c files:
102 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
103 remote-nrom.c, remote-os9k.c, remote-udi.c.
105 2003-01-05 Mark Kettenis <kettenis@gnu.org>
107 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
108 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
109 i386_get_longjmp_target.
111 2003-01-05 Andrew Cagney <ac131313@redhat.com>
113 * arm-tdep.c (prologue_cache): Change to a pointer.
114 (_initialize_arm_tdep): Allocate prologue_cache.
115 (check_prologue_cache): Update.
116 (save_prologue_cache): Update.
117 (arm_gdbarch_init): Update.
119 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
121 * stabsread.c (update_method_name_from_physname): Call complaint()
124 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
126 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
127 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
128 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
130 * blockframe.c: Include "gdbcmd.h" and "command.h".
131 (backtrace_below_main): New variable.
132 (file_frame_chain_valid, func_frame_chain_valid)
133 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
134 (generic_func_frame_chain_valid): Remove functions.
135 (frame_chain_valid, do_flush_frames_sfunc): New functions.
136 (_initialize_blockframe): New function.
137 * Makefile.in (blockframe.o): Update dependencies.
138 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
139 comment. Call frame_chain_valid ().
140 * frame.h: Remove old prototypes. Add prototype for
141 frame_chain_valid and update comments to match.
142 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
144 * gdbarch.h: Regenerated.
145 * gdbarch.c: Regenerated.
147 * alpha-tdep.c (alpha_gdbarch_init): Don't call
148 set_gdbarch_frame_chain_valid.
149 * avr-tdep.c (avr_gdbarch_init): Likewise.
150 * cris-tdep.c (cris_gdbarch_init): Likewise.
151 * frv-tdep.c (frv_gdbarch_init): Likewise.
152 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
153 * i386-tdep.c (i386_svr4_init_abi): Likewise.
154 (i386_nw_init_abi): Likewise.
155 (i386_gdbarch_init): Likewise.
156 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
158 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
159 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
160 * mips-tdep.c (mips_gdbarch_init): Likewise.
161 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
162 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
163 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
164 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
165 * s390-tdep.c (s390_gdbarch_init): Likewise.
166 * sh-tdep.c (sh_gdbarch_init): Likewise.
167 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
168 * v850-tdep.c (v850_gdbarch_init): Likewise.
169 * vax-tdep.c (vax_gdbarch_init): Likewise.
170 * x86-64-tdep.c (x86_64_init_abi): Likewise.
172 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
173 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
174 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
175 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
176 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
177 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
178 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
179 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
181 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
183 * Makefile.in (acconfig_h): Remove incorrect macro.
185 (osabi.o): Update dependencies.
186 * configure.tgt: Set gdb_osabi based on target triplet.
187 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
188 * configure: Regenerated.
189 * config.in: Regenerated.
190 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
191 (GDB_OSABI_DEFAULT): Define if not already defined.
192 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
193 (set_osabi_string): New variables.
194 (gdbarch_register_osabi): Add new OS ABI to
195 gdb_osabi_available_names.
196 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
197 (set_osabi, show_osabi): New functions.
198 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
200 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
202 * arch-utils.c (gdbarch_info_init): Set osabi to
203 GDB_OSABI_UNINITIALIZED.
204 * gdbarch.sh: Add osabi to struct gdbarch and to struct
205 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
206 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
207 * gdbarch.c: Regenerated.
208 * gdbarch.h: Regenerated.
209 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
211 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
212 * osabi.h (enum gdb_osabi): Move to defs.h.
213 (gdbarch_init_osabi): Update prototype.
214 * defs.h (enum gdb_osabi): Moved here.
215 * Makefile.in: Update dependencies.
217 * alpha-tdep.h: Don't include "osabi.h".
218 (struct gdbarch_tdep): Remove osabi member.
219 * alpha-tdep.c: Include "osabi.h".
220 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
221 iterate over arches. Update call to gdbarch_init_osabi.
222 (alpha_dump_tdep): Don't dump osabi.
223 * alpha-linux-tdep.c: Include "osabi.h".
224 * alpha-osf1-tdep.c: Include "osabi.h".
225 * alphafbsd-tdep.c: Include "osabi.h".
226 * alphanbsd-tdep.c: Include "osabi.h".
228 * arm-tdep.h: Don't include "osabi.h".
229 (struct gdbarch_tdep): Remove osabi member.
230 * arm-tdep.c: Include "osabi.h".
231 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
232 iterate over arches. Update call to gdbarch_init_osabi.
233 (arm_dump_tdep): Don't dump osabi.
234 * arm-linux-tdep.c: Include "osabi.h".
235 * armnbsd-tdep.c: Include "osabi.h".
237 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
238 Update call to gdbarch_init_osabi.
240 * i386-tdep.h: Don't include "osabi.h".
241 (struct gdbarch_tdep): Remove osabi member.
242 * i386-tdep.c: Include "osabi.h".
243 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
244 iterate over arches. Update call to gdbarch_init_osabi.
245 (i386_dump_tdep): Don't dump osabi.
246 * i386-linux-tdep.c: Include "osabi.h".
247 * i386-sol2-tdep.c: Include "osabi.h".
248 * i386bsd-tdep.c: Include "osabi.h".
249 * i386gnu-tdep.c: Include "osabi.h".
250 * i386ly-tdep.c: Include "osabi.h".
251 * i386nbsd-tdep.c: Include "osabi.h".
252 * i386obsd-tdep.c: Include "osabi.h".
254 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
255 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
256 check osabi when iterating over arches. Update call to
258 (mips_dump_tdep): Don't dump osabi.
260 * ns32k-tdep.h: Don't include "osabi.h".
261 (struct gdbarch_tdep): Remove.
262 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
263 gdbarch_lookup_osabi. Don't iterate over arches. Don't
264 allocate tdep. Update call to gdbarch_init_osabi.
265 (ns32k_dump_tdep): Remove.
266 (_initialize_ns32k_tdep): Update call to gdbarch_register.
267 * ns32knbsd-tdep.c: Include "osabi.h".
269 * ppc-tdep.h: Don't include "osabi.h".
270 (struct gdbarch_tdep): Remove osabi member.
271 * rs6000-tdep.c: Include "osabi.h".
272 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
273 osabi when iterating over arches. Update call to
275 (rs6000_dump_tdep): Don't dump osabi.
276 * ppc-linux-tdep.c: Include "osabi.h".
277 * ppcnbsd-tdep.c: Include "osabi.h".
279 * sh-tdep.h: Don't include "osabi.h".
280 (struct gdbarch_tdep): Remove osabi member.
281 * sh-tdep.c: Include "osabi.h".
282 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
283 iterate over arches. Update call to gdbarch_init_osabi.
284 (sh_dump_tdep): Don't dump osabi.
285 * shnbsd-tdep.c: Include "osabi.h".
287 * sparc-tdep.c: Include "osabi.h".
288 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
289 iterate over arches. Update call to gdbarch_init_osabi.
290 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
293 * vax-tdep.h: Don't include "osabi.h".
294 (struct gdbarch_tdep): Remove.
295 * vax-tdep.c: Include "osabi.h".
296 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
297 iterate over arches. Don't allocate tdep. Update call
298 to gdbarch_init_osabi.
299 (vax_dump_tdep): Remove.
300 (_initialize_vax_tdep): Update call to gdbarch_register.
302 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
304 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
306 (breakpoint_re_set_one): Don't fetch the value for a disabled
309 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
311 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
312 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
313 (COERCE_FLOAT_TO_DOUBLE): Remove.
314 * gdbarch.c: Regenerate.
315 * gdbarch.h: Regenerate.
316 * Makefile.in: Remove value_h from gdbarch_h.
317 * valops.c (coerce_float_to_double): New variable.
318 (default_coerce_float_to_double): Remove.
319 (standard_coerce_float_to_double): Remove.
320 (value_arg_coerce): Use coerce_float_to_double.
321 (_initialize_valops): Add "set coerce-float-to-double".
322 * value.h (default_coerce_float_to_double): Remove prototype.
323 (standard_coerce_float_to_double): Remove prototype.
325 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
327 * mdebugread.c (parse_symbol): Likewise.
328 * stabsread.c (define_symbol): Mark all functions as prototyped.
330 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
331 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
332 set_gdbarch_coerce_float_to_double.
333 * arm-tdep.c (arm_gdbarch_init): Likewise.
334 * frv-tdep.c (frv_gdbarch_init): Likewise.
335 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
336 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
337 * mips-tdep.c (mips_gdbarch_init): Likewise.
338 (mips_coerce_float_to_double): Remove.
339 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
340 (rs6000_coerce_float_to_double): Remove.
341 * s390-tdep.c (s390_gdbarch_init): Likewise.
342 * sh-tdep.c (sh_gdbarch_init): Likewise.
343 (sh_coerce_float_to_double): Remove.
344 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
345 (sparc_coerce_float_to_double): Remove.
346 * v850-tdep.c (v850_gdbarch_init): Likewise.
347 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
348 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
349 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
350 (hppa_coerce_float_to_double): Remove prototype.
351 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
353 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
355 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
357 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
359 Suggested by Stewart Brown <sb24@avaya.com>:
360 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
361 in recursive calls. Handle TYPE_CODE_TYPEDEF.
362 (c_type_print_varspec_suffix): Likewise.
364 2003-01-04 Mark Kettenis <kettenis@gnu.org>
366 * configure.in: Don't set and AC_SUBST SUBDIRS.
367 * configure: Regenerated.
369 * configure.in: Remove code dealing with shared libraries.
370 * Makefile.in: Remove HLDFLAGS and HLDENV.
371 * configure: Regenerated.
373 2003-01-04 Andrew Cagney <ac131313@redhat.com>
375 * frame.c (deprecated_frame_xmalloc): New function.
376 (deprecated_set_frame_saved_regs_hack): New function.
377 (deprecated_set_frame_extra_info_hack): New function.
378 * frame.h (deprecated_frame_xmalloc): Declare.
379 (deprecated_set_frame_saved_regs_hack): Declare.
380 (deprecated_set_frame_extra_info_hack): Declare.
382 2003-01-04 Mark Kettenis <kettenis@gnu.org>
384 * configure.in: Move code that provides the --enable-gdbtk option
385 right after the code that handles the --enable-tui option, and
387 * configure: Regenerated.
389 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
390 AC_CHECK_FUNCS and remove the old check for pread64.
391 * acinclude.m4 (AC_GNU_SOURCE): New macro.
392 * acconfig.h (_GNU_SOURCE): Add.
393 (HAVE_PREAD64): Remove.
394 * configure, aclocal.m4, config.in: Regenerated.
396 2003-01-03 Andrew Cagney <ac131313@redhat.com>
398 * alpha-tdep.c: Use get_frame_saved_regs.
399 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
400 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
401 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
402 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
403 * vax-tdep.c, xstormy16-tdep.c: Ditto.
405 2003-01-03 Mark Kettenis <kettenis@gnu.org>
407 * configure.in: Remove all use of the SUBDIRS variable; add
408 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
409 code providing the --enable-multi-ice option, and move it right in
410 front of the code that checks whether gdbserver is supported.
412 * configure: Regenerated.
413 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
416 2003-01-03 Andrew Cagney <cagney@redhat.com>
418 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
419 * avr-tdep.c, cris-tdep.c: Ditto.
420 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
421 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
423 2003-01-03 Mark Kettenis <kettenis@gnu.org>
425 * configure.in: Remove --enable-netrom option.
426 * configure: Regenerated.
428 2003-01-03 Mark Kettenis <kettenis@gnu.org>
430 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
431 declaration for `struct re_pattern_buffer' instead.
432 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
434 2003-01-03 J. Brobecker <brobecker@gnat.com>
436 * mdebugread.c (parse_symbol): Count until the stEnd matching
439 2003-01-02 Mark Kettenis <kettenis@gnu.org>
441 * configure.in: Remove --with-cpu option.
442 subscripts. Remove evil changequotes here.
443 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
444 * config.in, configure: Regenerated.
446 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
447 * configure.in: Cleanup section that sources GDB and BFD configure
448 subscripts. Remove evil changequotes here.
449 * config.in, configure: Regenerated.
451 2003-01-02 Andrew Cagney <ac131313@redhat.com>
453 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
454 frame accessor methods.
455 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
456 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
457 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
458 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
459 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
460 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
463 2003-01-02 Mark Kettenis <kettenis@gnu.org>
465 * configure.in: Remove UI_OUT configuration code.
466 * ada-lang.c: Update assuming UI_OUT is always true.
467 * Makefile.in (UIOUT_CFLAGS): Remove.
468 * configure: Regenerated.
469 * TODO: Remove blurb about elimination of -DUI_OUT.
471 * configure.in: Move code that provides the --enable-gdbcli,
472 --enable-gdbmi options right before the code that handles the
473 --enable-tui option. Polish a bit.
474 * configure: Regenerated.
476 * configure.in: Rewrite check for GNU regex and the
477 --without-included regex option, and move it into the "Checks for
478 library functions" section. This makes us use the system regex
479 again by default on systems with version 2 of the GNU C library.
480 This was apparently broken.
481 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
482 * acconfig.h (USE_INCLUDED_REGEX): Remove.
483 * config.in, configure: Regenerated.
485 * configure.in: Move code that provides the --enable-tui option
486 before the "Checks for libraries" section. Polish the code
487 somewhat and set need_curses to yes if we build the TUI. Rewrite
488 code that looks for a library providing termcap functionality to
489 match more closely what's done in the Readline library, and move
490 it into to the "Checks for libraries" section.
491 * configure: Regenerated.
492 * Makefile.in (TERMCAP): Remove variable.
493 * config/i386/go32.mh (TERMCAP): Remove variable.
495 2003-01-02 Andrew Cagney <ac131313@redhat.com>
497 * MAINTAINERS: Mention gdb_mbuild.sh.
498 * gdb_mbuild.sh: Rewrite.
500 2003-01-02 Mark Kettenis <kettenis@gnu.org>
502 * configure.in: Fix typo in last change.
503 * config.in, configure: Regenerated.
505 2003-01-02 Andrew Cagney <ac131313@redhat.com>
507 * valarith.c (value_binop): Delete obsolete code and comments.
508 * configure.host: Ditto.
509 * buildsym.h (make_blockvector): Ditto.
510 * buildsym.c (make_blockvector): Ditto.
511 * defs.h (enum language): Ditto.
512 (chill_demangle): Ditto.
513 * elfread.c (elf_symtab_read): Ditto.
514 * dwarfread.c (CHILL_PRODUCER): Ditto.
515 (set_cu_language): Ditto.
516 (handle_producer): Ditto.
517 * expprint.c (print_subexp): Ditto.
518 * gdbtypes.c (chill_varying_type): Ditto.
519 * gdbtypes.h (builtin_type_chill_bool): Ditto.
520 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
521 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
522 (chill_varying_type): Ditto.
523 * language.h (_LANG_chill): Ditto.
524 * language.c (binop_result_type, integral_type): Ditto.
525 (character_type, string_type, structured_type): Ditto.
526 (lang_bool_type, binop_type_check): Ditto.
527 * stabsread.h (os9k_stabs): Ditto.
528 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
529 (define_symbol, read_type, read_struct_fields): Ditto.
530 (read_array_type, read_enum_type, read_huge_number): Ditto.
531 (read_range_type, start_stabs): Ditto.
532 * symfile.c (init_filename_language_table): Ditto.
533 (add_psymbol_with_dem_name_to_list): Ditto.
534 * symtab.c (symbol_init_language_specific): Ditto.
535 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
536 * symtab.h (struct general_symbol_info): Ditto.
537 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
538 * typeprint.c (typedef_print): Ditto.
539 * utils.c (fprintf_symbol_filtered): Ditto.
540 * valops.c (value_cast, search_struct_field, value_slice): Delete
542 (varying_to_slice): Delete function.
543 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
544 (varying_to_slice): Delete declaration.
545 * MAINTAINERS: Update.
547 2003-01-02 Mark Kettenis <kettenis@gnu.org>
549 * configure.in: Reorganize "Checks for library functions section"
550 a bit. Remove check for `btowc' and `isascii' functions.
551 * configure: Regenerated.
553 * acconfig.h (_MSE_INT_H): Remove.
554 * configure.in: Create "Checks for header files" section, and move
555 appropriate tests there. Don't check for objlist.h, wchar.h,
556 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
557 misdetection fix. Also add "Checks for types", "Checks for
558 compiler characteristics" and "Checks for library functions"
560 * config.in, configure: Regenerated.
562 * configure.in: Create "Checks for programs" section, and move
563 appropriate tests there.
565 2003-01-01 Mark Kettenis <kettenis@gnu.org>
567 * configure.in: Create "Checks for libraries" section, and move
568 appropriate tests there. Cleanup check for wctype in libw. Use
569 AC_SEARCH_LIBS to see whether we need libsocket.
570 * configure: Regenerated.
572 2002-12-31 Mark Kettenis <kettenis@gnu.org>
574 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
575 * config.in, configure: Regenerated.
577 2002-12-31 Mark Kettenis <kettenis@gnu.org>
579 * gdb_dirent.h: Cleanup and update code to match the example in
581 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
582 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
583 * configure: Regenerated.
585 2002-12-30 Adam Fedor <fedor@gnu.org>
587 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
588 (yylex): Initialize c to avoid uninitialized warning.
590 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
592 * doc/fdl.texi: Revert the last change.
594 2002-12-29 Mark Kettenis <kettenis@gnu.org>
596 * tracepoint.c (ISATTY): Removed.
598 2002-12-26 J. Brobecker <brobecker@gnat.com>
600 Continuing work to convert the hppa targets to multiarch partil.
602 * hppa-tdep.c: Add some missing forward declarations.
603 (frameless_function_invocation): Prefix the function name
604 by "hppa_" to avoid polluting the namespace. Update all calls
605 to use the new function name.
606 (saved_pc_after_call): Ditto.
607 (init_extra_frame_info): Ditto.
608 (frame_chain): Ditto.
609 (push_dummy_frame): Ditto.
610 (target_read_pc): Ditto.
611 (target_write_pc): Ditto.
612 (in_solib_call_trampoline): Ditto.
613 (in_solib_return_trampoline): Ditto.
614 (skip_trampoline_code): Ditto.
615 (hppa_read_fp): New function, renamed from target_read_fp.
616 (hppa_target_read_fp): New function, using hppa_read_fp.
617 This function conforms to the function profile for the
618 READ_FP gdbarch method.
619 (hppa_extract_struct_value_address): New function, extracted
620 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
622 (hppa_frame_num_args): New function.
623 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
625 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
626 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
627 for the switch to multiarch partial.
628 Update some of the macros definitions to match some changes
629 described above in the name of the function they are calling.
630 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
631 not be straightforward to convert. Do now wrap it inside
632 "#if !... #endif" to remember that this macro has still not
634 (FIX_CALL_DUMMY): Likewise.
636 2002-12-26 J. Brobecker <brobecker@gnat.com>
638 Continuing work to convert the hppa targets to multiarch partial.
640 * hppa-tdep.c (hppa_register_raw_size): New function replacing
641 the body of macro REGISTER_RAW_SIZE.
642 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
643 config/pa/tm-hppah.h. These functions will be used to initialize
644 the gdbarch structure.
645 (hppa_hpux_pc_in_sigtramp): New function.
646 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
647 (hppa_hpux_frame_base_before_sigtramp): New function.
648 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
649 Add gdbcore.h #include.
650 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
651 of this gdbarch-eligible macro to a call to the new associated
653 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
654 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
655 into a call to the new associated function.
656 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
657 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
658 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
660 2002-12-24 David Carlton <carlton@math.stanford.edu>
662 * config/sparc/tm-sparc.h: Delete duplicate definition of
663 DEPRECATED_PC_IN_CALL_DUMMY.
665 2002-12-24 Kevin Buettner <kevinb@redhat.com>
667 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
669 * configure.tgt: Recognize mips64*-*-linux*.
670 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
671 (supply_32_bit_reg): New function.
672 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
673 (fill_gregset): Use regcache_collect() instead of
674 deprecated_registers[].
675 (register_addr): Change name to mips_linux_register_addr().
676 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
677 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
678 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
679 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
680 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
681 (MIPS64_LINUX_JB_PC): New defines.
682 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
683 (mips64_elf_fpregset_t): New typedefs.
684 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
685 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
686 (mips64_linux_register_addr, set_mips_linux_register_addr)
687 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
688 (init_register_addr_data)
690 (fetch_core_registers): Add support for core file formats with 64-bit
692 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
693 (register_addr_data): New static global variable.
694 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
695 gdbarch_register_osabi() for each MIPS machine.
696 * config/mips/linux64.mt: New file.
697 * config/mips/tm-linux64.h: New file.
699 2002-12-23 Adam Fedor <fedor@gnu.org>
701 * maint.c (maintenance_demangle): Add switch to demangle
702 ObjC language symbols as well.
704 2002-12-23 Adam Fedor <fedor@gnu.org>
706 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
707 last argument from complaint function call.
709 2002-12-23 Kevin Buettner <kevinb@redhat.com>
711 * exec.c (print_section_info): Add FIXME comments regarding format
714 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
716 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
717 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
719 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
721 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
723 2002-12-23 David Carlton <carlton@math.stanford.edu>
725 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
726 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
727 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
728 information associated to a minsym, not lookup_symbol.
730 2002-12-21 Mark Kettenis <kettenis@gnu.org>
732 * x86-64-tdep.h (x86_64_init_abi): New prototype.
733 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
734 (x86_64_init_abi): Make non-static. Set number of pseudo
736 (x86_64_gdbarch_init): Remove function.
737 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
738 Remove code dealing with dissambly.
739 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
740 (_initialize_x86_64_linux_tdep): New function.
741 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
744 2002-12-14 Mark Kettenis <kettenis@gnu.org>
746 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
747 (struct gdb_osabi_handler): Remove member `arch'. Add member
749 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
750 construct a `struct bfd_arch_info' and store it in the `struct
751 gdb_osabi_handler' that is created.
752 (gdbarch_init_osabi): Check for compatibility based on machine
753 type and architecture.
754 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
756 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
757 second argument in call to gdbarch_register_osabi.
758 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
759 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
760 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
761 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
762 * arm-tdep.c (_initialize_arm_tdep): Likewise.
763 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
764 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
765 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
766 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
767 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
768 * i386-tdep.c (_initialize_i386_tdep): Likewise.
769 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
770 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
771 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
772 _initialize_i386bsd_tdep and updated likewise.
773 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
774 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
775 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
776 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
777 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
778 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
779 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
780 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
781 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
782 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
784 2002-12-20 Kevin Buettner <kevinb@redhat.com>
786 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
787 DT_MIPS_RLD_MAP case for 64-bit targets.
789 2002-12-20 Kevin Buettner <kevinb@redhat.com>
791 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
792 ``temp_saved_regs'', not the pointer or other storage contiguous
795 2002-12-20 Kevin Buettner <kevinb@redhat.com>
797 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
798 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
799 (mips_linux_get_longjmp_target): Delete declarations.
800 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
801 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
802 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
803 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
804 (mips_linux_get_longjmp_target)
805 (mips_linux_svr4_fetch_link_map_offsets): Make static.
806 (mips_linux_init_abi): New function.
807 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
809 2002-12-19 Keith Seitz <keiths@redhat.com>
811 patch committed by Elena Zannoni <ezannoni@redhat.com>
812 * thread.c (do_captured_list_thread_ids): Call prune_threads and
813 target_find_new_threads. Fix for PR mi/669.
815 2002-12-19 David Carlton <carlton@math.stanford.edu>
817 * linespec.c (decode_line_1): Move code into decode_all_digits.
818 (decode_all_digits): New function.
820 2002-12-19 Kevin Buettner <kevinb@redhat.com>
822 * exec.c (print_section_info): Select a format string to use with
823 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
825 2002-12-18 Andrew Cagney <ac131313@redhat.com>
827 * frame.c (deprecated_update_current_frame_pc_hack): Replace
828 deprecated_update_current_frame_pc_hack.
829 (deprecated_update_frame_base_hack): New function.
830 * frame.h (deprecated_update_frame_pc_hack): Replace
831 (deprecated_update_frame_base_hack): Declare.
832 * infrun.c (normal_stop): Update.
834 2002-12-18 Andrew Cagney <ac131313@redhat.com>
836 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
837 frame_extra_info_zalloc.
838 (rs6000_frame_args_address): Use get_frame_extra_info.
839 (frame_get_saved_regs): Use get_frame_saved_regs.
840 (frame_initial_stack_address): Use get_frame_saved_regs and
841 get_frame_extra_info.
842 (frame_initial_stack_address): Use get_frame_extra_info.
844 2002-12-17 Kevin Buettner <kevinb@redhat.com>
846 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
848 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
849 checks for r3900_regnames[].
851 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
853 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
855 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
857 2002-12-17 David Carlton <carlton@math.stanford.edu>
859 * symtab.c (lookup_partial_symbol): Don't search past the end of
862 2002-12-17 Andrew Cagney <ac131313@redhat.com>
864 * stack.c (frame_info): Use get_frame_saved_regs.
865 * breakpoint.c (until_break_command): Use get_frame_pc.
867 2002-12-16 Kevin Buettner <kevinb@redhat.com>
869 * buildsym.c (block_end_complaint, anon_block_end_complaint)
870 (innerblock_complaint, innerblock_anon_complaint)
871 (blockvector_complaint): Delete deprecated complaint structs.
872 (finish_block, make_blockvector, end_symtab): Replace calls
873 to complain() with calls to complaint().
874 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
875 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
876 (unexpected_type_complaint, bad_sclass_complaint)
877 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
878 Delete deprecated complaint structs.
879 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
880 Replace calls to complain() with calls to complaint().
881 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
882 (unknown_symtype_complaint, unknown_symchar_complaint)
883 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
884 (lbrac_mismatch_complaint, repeated_header_complaint)
885 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
886 Delete deprecated complaint structs.
887 (unknown_symtype_complaint, lbrac_mismatch_complaint)
888 (repeated_header_complaint)
889 (function_outside_compiliation_unit_complaint): New functions.
890 (add_old_header_file, find_corresponding_bincl_psymtab)
891 (set_namestring, find_stab_function_addr, read_dbx_symtab)
892 (process_one_symbol): Replace calls to complain() with, possibly
893 indirect, calls to complaint().
894 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
895 (unknown_attribute_form, unknown_attribute_length)
896 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
897 (const_ignored, botched_modified_type, op_deref2, op_deref4)
898 (basereg_not_handled, dup_user_type_allocation)
899 (dup_user_type_definition, missing_tag, bad_array_element_type)
900 (subscript_data_items, unhandled_array_subscript_format)
901 (unknown_array_subscript_format, not_row_major)
902 (missing_at_name): Delete deprecated complaint structs.
903 (bad_die_ref_complaint, unknown_attribute_form_complaint)
904 (dup_user_type_definition_complaint)
905 (bad_array_element_type_complaint): New functions.
906 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
907 (decode_subscript_data_item, dwarf_read_array_type)
908 (read_tag_string_type, read_subroutine_type, read_func_scope)
909 (locval, scan_partial_symbols, decode_modified_type)
910 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
911 (attribute_size): Replace calls to complain() with, possibly
912 indirect, calls to complaint().
913 * elfread.c (section_info_complaint, section_info_dup_complaint)
914 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
915 Delete deprecated complaint structs.
916 (elf_symtab_read, elfstab_offset_sections): Replace calls to
917 complain() with calls to complaint().
918 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
920 (stub_noname_complaint): New function.
921 (check_typedef, add_mangled_type): Replace calls to complain()
922 with calls to complaint().
923 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
924 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
925 (hpread_unhandled_type_complaint, hpread_struct_complaint)
926 (hpread_array_complaint, hpread_type_lookup_complaint)
927 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
928 (hpread_unhandled_common_complaint)
929 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
930 struct definitions and declarations.
931 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
932 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
933 Replace calls to complain() with, possibly indirect, calls to
935 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
937 * mdebugread.c (bad_file_number_complaint, index_complaint)
938 (aux_index_complaint, block_index_complaint)
939 (unknown_ext_complaint, unknown_sym_complaint)
940 (unknown_st_complaint, block_overflow_complaint)
941 (basic_type_complaint, unknown_type_qual_complaint)
942 (array_index_type_complaint, bad_tag_guess_complaint)
943 (block_member_complaint, stEnd_complaint)
944 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
945 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
946 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
947 (bad_continued_complaint, bad_rfd_entry_complaint)
948 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
949 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
950 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
951 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
953 (index_complaint, unknown_ext_complaint, basic_type_complaint)
954 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
955 (unexpected_type_code_complaint)
956 (function_outside_compilation_unit_complaint): New functions.
957 (parse_symbol, parse_type, upgrade_type, parse_procedure)
958 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
959 Replace calls to complain() with, possibly indirect calls to
961 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
962 Delete deprecated complaint structs.
963 (lookup__objc_class, lookup_child_selector): Replace complain()
965 * remote-vx.c (cant_contact_target): Delete deprecated complaint
967 (vx_lookup_symbol): Replace complain() with complaint().
968 * stabsread.c (invalid_cpp_abbrev_complaint)
969 (invalid_cpp_type_complaint, member_fn_complaint)
970 (const_vol_complaint, error_type_complaint)
971 (invalid_member_complaint, range_type_base_complaint)
972 (reg_value_complaint, vtbl_notfound_complaint)
973 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
974 (unresolved_sym_chain_complaint, stabs_general_complaint)
975 (lrs_general_complaint, multiply_defined_struct): Delete
976 deprecated complaint structs.
977 (invalid_cpp_abbrev_complaint, ref_value_complaint)
978 (stabs_general_complaint, lrs_general_complaint)
979 (msg_unknown_complaint): New functions.
980 (dbx_lookup_type, read_cfront_baseclasses)
981 (read_cfront_member_functions, resolve_symbol_reference)
982 (define_symbol, resolve_live_range, add_live_range, read_type)
983 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
984 (read_one_struct_field, read_baseclasses, read_tilde_fields)
985 (read_cfront_static_fields, attach_fields_to_type)
986 (complain_about_struct_wipeout, read_range_type)
987 (common_block_start, common_block_end, cleanup_undefined_types)
988 (scan_file_globals): Replace complain() with complaint().
989 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
990 Delete deprecated complaint struct declarations.
991 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
992 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
993 (bf_not_found_complaint, ef_complaint, eb_complaint)
994 (function_outside_compilation_unit_complaint): New functions.
995 (record_include_begin, record_include_end, enter_line_range)
996 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
997 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
998 complain() with complaint().
1000 2002-12-16 Andrew Cagney <ac131313@redhat.com>
1002 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1003 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1004 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1005 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1006 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1007 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1008 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1009 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1010 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1011 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1012 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1013 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1014 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1015 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1016 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1017 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1018 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1019 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1020 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1021 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1022 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1023 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1024 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1025 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1026 * config/m88k/xm-dgux.h: Delete.
1027 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1028 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1029 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1030 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1031 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1032 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1033 * ch-valprint.c: Delete.
1035 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1037 * infrun.c (handle_inferior_event): Rearrange code to resume if
1038 no catchpoint triggers for an event.
1040 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1042 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1043 and TARGET_WAITKIND_VFORKED cases.
1045 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1047 * infrun.c (handle_inferior_event): Assume that catchpoints
1048 are not affected by DECR_PC_AFTER_BREAK.
1050 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1052 * target.c (update_current_target): Don't inherit DONT_USE.
1053 * target.h (struct target_ops): Remove DONT_USE.
1054 (target_next): Remove macro.
1056 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1058 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1060 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1062 * arm-tdep.c (convert_from_extended): New argument to hold the
1063 type of floating point result we want to convert to. Make input
1064 argument const. Fix all callers.
1065 (convert_to_extended): Similarly.
1066 (arm_extract_return_value): Now takes a regcache argument. Change
1067 code to use regcache accessor functions. Correctly extract
1068 smaller-than-word results on big-endian machines.
1069 (arm_store_return_value): Now takes a regcache argument. Change
1070 code to use regcache accessor functions. Correctly zero/sign extend
1071 smaller than word results before storing into r0.
1072 (arm_gdbarch_init): Register new-style extract_return_value and
1073 store_return_value functions.
1075 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1077 * thread-db.c (thread_from_lwp): Uniquify error msg.
1078 (lwp_from_thread): Ditto.
1079 (check_event): Ditto.
1080 (find_new_threads_callback): Ditto.
1081 (thread_db_pid_to_str): Ditto.
1083 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1085 * frame.h (get_frame_saved_regs): Declare.
1086 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1088 * frame.c (get_frame_saved_regs): New function.
1089 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1091 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1093 * frame.c (deprecated_update_current_frame_pc_hack): New
1095 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1096 * infrun.c (normal_stop): Use said function instead of directly
1097 modifying the frame's PC.
1099 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1101 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1103 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1105 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1106 config/mips/tm-irix6.h (NUM_REGS): Delete.
1107 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1108 (temp_saved_regs): Declare as a pointer rather than an array.
1109 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1110 that ``temp_saved_regs'' has storage allocated to it and that
1111 it's the correct size.
1113 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1115 * defs.h (init_last_source_visited): New prototype.
1117 * source.c (add_path): New function that adds to a specified path.
1118 (mod_path): Change to call add_path.
1119 (init_last_source_visited): New function to allow interfaces to
1120 initialize static variable: last_source_visited. Part of fix
1122 * Makefile.in: Add support for mi/mi-cmd-env.c.
1124 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1126 * frame.h (frame_id_unwind): Declare.
1127 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1129 (frame_id_unwind_ftype): Declare.
1130 * frame.c (frame_id_unwind): New function.
1131 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1132 (create_new_frame, get_prev_frame): Pass id_unwind to
1134 (frame_saved_regs_id_unwind): New function.
1135 (frame_saved_regs_id_unwind): New function.
1136 * dummy-frame.c (dummy_frame_id_unwind): New function.
1137 (struct dummy_frame): Add field id.
1138 (generic_push_dummy_frame): Initialize `id'.
1139 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1141 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1143 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1144 pass that to set_momentary_breakpoint. Move comments to where they
1146 * frame.h (set_current_frame): Delete declaration.
1147 * frame.c (set_current_frame): Delete function.
1149 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1151 * frame.c (frame_extra_info_zalloc): New function.
1152 * frame.h (frame_extra_info_zalloc): Declare.
1154 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1156 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1157 in the previous prototype change to set_momentary_breakpoint.
1159 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1161 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1163 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1164 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1165 (stop_stepping): Remove outdated check for child vfork events.
1167 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1169 * GDB 5.3 released from gdb_5_3-branch.
1171 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1173 * corelow.c (init_core_ops): Delete references to to_require_attach
1174 and to_require_detach.
1175 * exec.c (init_exec_ops): Likewise.
1176 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1177 hppa_require_detach directly.
1178 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1179 * inftarg.c (child_detach): Remove.
1180 (child_detach_from_process): Rename to child_detach, remove
1181 after_fork argument.
1182 (child_attach): Remove.
1183 (child_attach_to_process): Rename to child_attach, remove after_fork
1185 (init_child_ops): Delete references to to_require_attach
1186 and to_require_detach.
1187 * infttrace.c (hppa_require_attach): Update comment.
1188 * target.c (cleanup_target, update_current_target)
1189 (init_dummy_target, setup_target_debug): Delete references to
1190 to_require_attach and to_require_detach.
1191 (find_default_require_detach, find_default_require_attach)
1192 (debug_to_require_attach, debug_to_require_detach): Remove
1194 * target.h (struct target_ops): Remove to_require_attach
1195 and to_require_detach.
1196 (target_require_attach, target_require_detach): Delete macros.
1197 (find_default_require_detach, find_default_require_attach): Delete
1199 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1201 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1203 * frame.c (get_frame_extra_info): New function.
1204 * frame.h (get_frame_extra_info): Declare.
1206 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1208 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1209 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1210 with `struct frame_id'.
1211 (set_longjmp_resume_breakpoint): Ditto.
1212 * infrun.c (handle_inferior_event): Update.
1213 * breakpoint.c (watch_command_1, until_break_command): Update.
1214 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1215 (handle_inferior_event, step_over_function): Update.
1216 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1217 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1218 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1219 * infcmd.c (finish_command, run_stack_dummy): Update.
1221 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1223 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1224 (dwarf2_non_const_array_bound_ignored)
1225 (dwarf2_missing_line_number_section)
1226 (dwarf2_statement_list_fits_in_line_number_section)
1227 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1228 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1229 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1230 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1231 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1232 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1233 (dwarf2_missing_member_fn_type_complaint)
1234 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1235 (dwarf2_const_value_length_mismatch)
1236 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1237 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1238 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1239 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1240 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1241 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1242 complaints using deprecated struct..
1243 (dwarf2_non_const_array_bound_ignored_complaint)
1244 (dwarf2_complex_location_expr_complaint)
1245 (dwarf2_unsupported_at_frame_base_complaint)
1246 (dwarf2_const_value_length_mismatch_complaint)
1247 (dwarf2_macros_too_long_complaint)
1248 (dwarf2_macro_malformed_definition_complaint)
1249 (dwarf2_invalid_attrib_class_complaint): New functions.
1250 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1251 (read_structure_scope, read_array_type, read_common_block)
1252 (read_tag_pointer_type, read_base_type, read_partial_die)
1253 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1254 (new_symbol, dwarf2_const_value, read_type_die)
1255 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1256 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1257 complain() with, possibly indirect, calls to complaint().
1259 2002-12-11 Andrew Cagney <cagney@redhat.com>
1261 * frame.c (deprecated_get_frame_saved_regs): Rename
1262 get_frame_saved_regs.
1263 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1264 * sparc-tdep.c: Update.
1265 * hppa-tdep.c: Update.
1266 * h8500-tdep.c: Update.
1268 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1270 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1271 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1272 ``char *'' for return and parameter types.
1273 * gdbarch.h, gdbarch.c: Regenerate.
1274 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1275 return type from ``char *'' to ``const char *''.
1276 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1279 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1281 * i386-tdep.c: Include "dummy-frame.h".
1282 (i386_frame_chain, i386_frame_saved_pc): Replace
1283 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1284 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1286 2002-12-10 Andrew Cagney <cagney@redhat.com>
1288 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1289 Change to a function with predicate.
1290 * gdbarch.h, gdbarch.c: Re-generate.
1291 * frame.c (get_prev_frame): Update. Test
1292 DEPRECATED_INIT_FRAME_PC_P.
1293 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1294 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1295 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1296 * alpha-tdep.c (alpha_gdbarch_init): Update.
1297 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1298 * mips-tdep.c (mips_gdbarch_init): Update.
1299 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1300 * arm-tdep.c: Update comments.
1301 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1302 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1303 * frv-tdep.c (frv_gdbarch_init): Ditto.
1304 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1305 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1306 * s390-tdep.c (s390_gdbarch_init): Ditto.
1307 * v850-tdep.c (v850_gdbarch_init): Ditto.
1308 * vax-tdep.c (vax_gdbarch_init): Ditto.
1309 * sh-tdep.c (sh_gdbarch_init): Ditto.
1310 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1312 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1313 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1314 * i386-tdep.c (i386_gdbarch_init): Ditto.
1315 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1316 * cris-tdep.c (cris_gdbarch_init): Ditto.
1317 * avr-tdep.c (avr_gdbarch_init): Ditto.
1318 * arm-tdep.c (arm_gdbarch_init): Ditto.
1319 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1320 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1322 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1324 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1326 * hppah-nat.c (saved_vfork_pid): Add.
1327 (child_post_follow_vfork): Remove.
1328 (child_follow_fork): New function.
1329 (child_wait): Call detach_breakpoints after receiving the child vfork.
1330 Call child_resume directly instead of going through resume ().
1331 Make sure we have the exec before reporting the vfork.
1332 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1333 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1334 (follow_fork): New function. Call target_follow_fork.
1335 (follow_inferior_reset_breakpoints): New function broken out from
1336 old follow_inferior_fork.
1337 (resume): Remove hack to follow exec after vfork.
1338 * inftarg.c (child_post_follow_vfork): Remove.
1339 (child_follow_fork): New function.
1340 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1341 * target.c (cleanup_target): Replace to_post_follow_vfork with
1343 (update_current_target): Likewise.
1344 (setup_target_debug): Likewise.
1345 (debug_to_post_follow_vfork): Remove.
1346 (debug_to_follow_fork): New function.
1347 * target.h (struct target_ops): Replace to_post_folow_vfork with
1349 (child_post_follow_vfork): Remove prototype.
1350 (child_follow_fork): Add prototype.
1351 (target_post_follow_vfork): Remove macro.
1352 (target_follow_fork): Add macro.
1354 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1356 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1357 (child_post_follow_vfork): Cancel pending exec event if we follow
1359 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1360 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1361 event at the following wait call if necessary.
1362 * infrun.c (follow_vfork): Don't follow_exec here.
1363 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1364 case about HP/UX 10.20. Remove code pushed down to
1365 hppah-nat.c:child_wait.
1366 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1367 vfork_in_flight is set.
1369 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1371 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1372 for the parent's fork event.
1373 * infrun.c (handle_inferior_event): Only expect one fork event.
1374 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1375 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1377 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1379 * PROBLEMS: Delete reference to PR gdb/725.
1381 * MAINTAINERS (gdb.c++): Add David Carlton.
1383 2002-12-09 David Carlton <carlton@math.stanford.edu>
1385 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1386 * cli/cli-cmds.c: Ditto.
1388 2002-12-09 Andrew Cagney <cagney@redhat.com>
1390 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1391 function address in <>.
1392 * gdbarch.c: Re-generate.
1394 2002-12-09 David Carlton <carlton@math.stanford.edu>
1396 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1398 2002-12-09 David Carlton <carlton@math.stanford.edu>
1400 * linespec.c (symtab_from_filename): New function.
1401 (decode_line_1): Move code into symtab_from_filename.
1403 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1405 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1407 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1409 * f-valprint.c (info_common_command): Use get_frame_pc.
1410 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1411 * ax-gdb.c (agent_command): Ditto.
1412 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1413 (rs6000_pop_frame): Ditto.
1414 (rs6000_frameless_function_invocation): Ditto.
1415 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1416 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1417 * macroscope.c (default_macro_scope): Ditto.
1418 * stack.c (print_frame_info_base): Ditto.
1419 (print_frame, frame_info, print_frame_label_vars): Ditto.
1420 (return_command, func_command, get_frame_language): Ditto.
1421 * infcmd.c (finish_command): Ditto.
1422 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1423 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1424 (break_at_finish_at_depth_command_1): Ditto.
1425 (break_at_finish_command_1): Ditto.
1426 (until_break_command, get_catch_sals): Ditto.
1427 * blockframe.c (func_frame_chain_valid): Ditto.
1428 (frameless_look_for_prologue): Ditto.
1429 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1431 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1433 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1434 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1436 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1438 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1440 * gdbarch.h, gdbarch.c: Re-generate.
1441 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1442 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1444 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1445 declaration to a function returning a CORE_ADDR.
1446 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1447 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1448 (init_frame_pc_default): Ditto.
1449 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1450 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1451 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1452 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1453 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1454 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1456 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1457 to init_frame_pc_noop.
1458 (i386_interix_init_frame_pc): Delete function.
1459 * z8k-tdep.c (init_frame_pc): Delete function.
1460 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1461 (INIT_FRAME_PC_FIRST): Ditto.
1462 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1463 (INIT_FRAME_PC_FIRST): Ditto.
1464 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1465 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1467 (INIT_FRAME_PC_FIRST): Convert to an expression.
1468 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1470 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1472 * blockframe.c: Use get_frame_base instead of directly accessing
1473 the `struct frame_info' member frame.
1474 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1475 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1477 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1479 * Makefile.in (readline_h): Define.
1480 (completer.o): Depend on readline_h.
1482 (event-top.o): Ditto.
1489 (tracepoint.o): Ditto.
1491 (cli-dump.o): Ditto.
1492 (tui-hooks.o): Ditto.
1495 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1497 More cleanup from import of readline 4.3.
1498 * completer.h (complete_line, readline_line_completion_function):
1500 (line_completion_function): Removed, not used outside of completer.c.
1501 * completer.c (readline_line_completion_function,
1502 complete_function, line_completion_function): Use const for first
1504 (line_completion_function): Make static.
1505 (filename_completer): filename_completion_function is now called
1506 rl_filename_completion_function
1507 * corelow.c: Include <readline/readline.h>.
1513 * top.c (init_main): No need to coerce
1514 readline_line_completion_function anymore.
1515 * cli/cli-dump.c: Include <readline/readline.h>.
1517 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1519 * stack.c (frame_info): Use get_prev_frame.
1520 * blockframe.c (frame_address_in_block): Ditto.
1521 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1522 (rs6000_frameless_function_invocation): Ditto.
1523 (rs6000_frame_saved_pc): Ditto.
1524 (rs6000_frame_chain): Ditto.
1525 * arch-utils.c (init_frame_pc_default): Ditto.
1527 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1529 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1530 Delete redundant definition.
1532 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1534 Import of readline 4.3:
1535 * cli/cli-cmds.c: Include readline/tilde.h.
1536 * cli/cli-setshow.c: Ditto.
1537 * defs.h: Don't declare tilde_expand anymore, since readline
1540 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1542 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1543 -Werror on this file.
1545 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1547 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1549 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1550 * gdbarch.c: Regenerate.
1552 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1554 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1555 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1556 provide a default value.
1557 * gdbarch.h, gdbarch.c: Regenerate.
1558 * frame.c (get_prev_frame): Update. Check
1559 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1560 * s390-tdep.c (s390_gdbarch_init): Update.
1561 * mips-tdep.c (mips_gdbarch_init): Update.
1562 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1563 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1564 * alpha-tdep.c (alpha_gdbarch_init): Update.
1566 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1568 * ia64-linux-nat.c: Include gdb_string.h.
1569 * alpha-nat.c: Ditto.
1570 * ppc-linux-nat.c: Ditto.
1571 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1572 Update dependencies.
1574 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1576 * gdbthread.h: Include "frame.h".
1577 (struct thread_info): Replace step_frame_address with
1579 * inferior.h: Include "frame.h".
1580 (step_frame_id): Replace external variable step_frame_address.
1581 * gdbthread.h (save_infrun_state): Replace step_frame_address
1582 parameter with step_frame_id parameter.
1583 (load_infrun_state): Ditto.
1584 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1585 * infcmd.c (step_frame_id, step_1, step_once): Update.
1586 * thread.c (load_infrun_state, save_infrun_state): Update.
1587 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1588 (handle_inferior_event, step_over_function): Update.
1589 (normal_stop, context_switch, restore_inferior_status): Update.
1590 (struct inferior_status): Replace step_frame_address with
1593 2002-12-05 David Carlton <carlton@math.stanford.edu>
1595 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1596 DW_TAG_member as well as a declaration as being a C++ static data
1598 (read_structure_scope): Combine tests for DW_TAG_member and
1601 2002-12-05 David Carlton <carlton@math.stanford.edu>
1603 * linespec.c (decode_compound): New function.
1604 (decode_line_1): Move code into decode_compound.
1606 2002-12-05 David Carlton <carlton@math.stanford.edu>
1608 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1610 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1611 the static block. See PR gdb/804.
1613 2002-12-05 David Carlton <carlton@math.stanford.edu>
1615 * symtab.c (lookup_symbol_aux_block): New function.
1616 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1618 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1620 * gdbarch.sh: Dump the predicate function and macro values.
1621 (read): Print error on standard error.
1622 * gdbarch.c: Regenerate.
1624 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1626 * Makefile.in (mips_tdep_h): Define.
1627 (mips-tdep.o): Add mips_tdep_h to dependency list.
1628 * mips-tdep.h: New file.
1629 * mips-tdep.c (mips-tdep.h): Include.
1630 (enum mips_abi): Move to mips-tdep.h.
1631 (mips_abi): New function.
1633 2002-12-04 David Carlton <carlton@math.stanford.edu>
1635 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1637 2002-12-04 David Carlton <carlton@math.stanford.edu>
1639 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1641 (lookup_symbol_aux_minsyms): New function.
1643 2002-12-04 J. Brobecker <brobecker@gnat.com>
1645 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1647 2002-12-04 J. Brobecker <brobecker@gnat.com>
1649 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1650 which is an obsolete macro name.
1652 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1654 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1655 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1657 2002-12-03 H.J. Lu (hjl@gnu.org)
1659 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1660 (create_breakpoints): Make sure the addr_string field is not
1663 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1665 * sparc-nat.c (fetch_inferior_registers)
1666 (store_inferior_registers): Add comment on problem of LWP vs
1669 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1670 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1671 (lin_lwp_store_registers): Remove.
1672 (init_lin_lwp_ops): Use fetch_inferior_registers
1673 and store_inferior_registers directly.
1674 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1675 (store_inferior_registers): Likewise.
1678 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1680 * frame.h (get_frame_id): Convert to a function.
1681 (null_frame_id, frame_id_p): Declare.
1682 (frame_id_eq, frame_id_inner): Declare.
1683 (frame_id_build): New function.
1684 * frame.c (get_frame_id): Update. Use null_frame_id.
1685 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1687 (null_frame_id, frame_id_p): Define.
1688 (frame_id_eq, frame_id_inner): Define.
1689 (frame_id_build): New function.
1690 * varobj.c (varobj_create): Update.
1691 (varobj_update): Update.
1692 * valops.c (value_assign): Update.
1693 (new_root_variable): Update.
1694 * infrun.c (save_inferior_status): Update.
1695 * breakpoint.c (watch_command_1): Update.
1697 2002-12-03 J. Brobecker <brobecker@gnat.com>
1699 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1702 2002-12-03 Andrew Cagney <cagney@redhat.com>
1704 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1707 * PROBLEMS: Mention PR gdb/725.
1709 2002-12-03 Andreas Schwab <schwab@suse.de>
1711 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1713 2002-12-02 Adam Fedor <fedor@gnu.org>
1714 Klee Dienes <kdienes@apple.com>
1716 * objc-lang.c (objc_printstr): Add width arg to match
1718 (compare_selectors): Add 'const' to arg types.
1719 (compare_classes): Likewise.
1720 (find_imps): Cast msym pointer to avoid compiler warning.
1721 (print_object_command): Validate the address before
1722 passing it to the print routine.
1723 (find_objc_msgcall_submethod): Change function argument to
1725 * objc-lang.h: Add 'extern' to all function declarations.
1726 (value_nsstring): Add declaration.
1728 2002-12-02 J. Brobecker <brobecker@gnat.com>
1730 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1731 Fixes a build failure on HP/UX.
1733 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1735 (hpread_has_name): Advance declaration to avoid a compilation warning.
1736 (pst_syms_count): Add missing variable type. By change, the compiler
1737 was defaulting to int, which seems a good choice. Fixes a compilation
1739 (pst_syms_size): Likewise.
1741 2002-12-02 J. Brobecker <brobecker@gnat.com>
1743 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1744 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1745 later to set the proper gdbarch methods depending on the osabi.
1746 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1748 2002-12-02 J. Brobecker <brobecker@gnat.com>
1750 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1751 * osabi.c (gdb_osabi_name): Add strings images for the two new
1753 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1755 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1757 * MAINTAINERS (Java): Global maintainers are responible for Java.
1758 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1759 part Java maintainers.
1761 2002-12-02 J. Brobecker <brobecker@gnat.com>
1763 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1764 Fixes a compilation failure on AiX.
1766 2002-12-02 J. Brobecker <brobecker@gnat.com>
1768 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1769 why aix-thread.o is not listed.
1771 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1773 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1774 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1775 * gdbarch.h, gdbarch.c: Re-generate.
1776 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1777 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1778 * config/pa/tm-hppa.h, frame.h: Update.
1779 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1780 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1781 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1782 * cris-tdep.c, alpha-tdep.c: Update.
1783 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1784 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1785 (get_prev_frame): Ditto.
1787 2002-11-30 Andrew Cagney <cagney@redhat.com>
1789 * exec.c (xfer_memory): Replace boolean with int.
1790 * p-exp.y: Use 0 instead of false.
1791 * corelow.c (gdb_check_format): Change return type to int from
1793 * utils.c: Don't include <curses.h> or <term.h> first.
1795 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1797 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1798 (m68hc11_register_byte): Remove.
1799 (m68hc11_gdbarch_init): Don't set the above.
1801 2002-11-29 Andrew Cagney <cagney@redhat.com>
1803 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1804 by calling get_selected_frame.
1805 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1806 set_current_frame, create_new_frame, select_frame and
1808 * remote-e7000.c (e7000_start_remote): Ditto.
1809 * remote-mips.c (common_open): Ditto
1810 * remote-rdp.c (remote_rdp_open): Ditto.
1812 2002-11-29 Andreas Schwab <schwab@suse.de>
1814 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1815 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1816 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1817 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1818 read_memory_unsigned_integer instead of read_memory_integer when
1819 dealing with addresses and instruction opcodes.
1820 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1821 (m68k_linux_frame_saved_pc): Likewise.
1823 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1825 * stack.c (selected_frame, select_frame): Move from here ...
1826 * frame.c (selected_frame, select_frame): ... to here. Include
1828 * Makefile.in (frame.o): Update dependencies.
1829 * frame.c (get_selected_frame): New function.
1830 * frame.h (get_selected_frame): Declare.
1831 (deprecated_selected_frame): Rename selected_frame.
1832 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1833 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1834 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1835 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1836 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1837 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1838 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1839 * z8k-tdep.c, cli/cli-cmds.c: Update.
1841 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1843 * frame.h (get_selected_block): Add comments.
1845 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1847 * frame.c (pc_notcurrent): New function.
1848 (find_frame_sal): New function.
1849 * frame.h (find_frame_sal): Declare.
1850 (struct symtab_and_line): Add opaque declaration.
1851 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1853 (frame_info): Ditto.
1854 * ada-lang.c (find_printable_frame): Ditto.
1856 2002-11-28 J. Brobecker <brobecker@gnat.com>
1858 * configure.in: Check that the pthdebug library is recent enough
1859 before enabling thread support on native AiX.
1860 * configure: Regenerate.
1862 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1863 from the list of object files as it is now appended by configure
1864 if thread support is enabled.
1865 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1866 if thread support is enabled.
1868 2002-11-28 Andrew Cagney <cagney@redhat.com>
1870 * stack.c (get_selected_block): In-line get_current_block.
1871 * frame.h (get_current_block): Delete declaration.
1872 * blockframe.c (get_current_block): Delete function.
1874 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1876 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1877 USE_GENERIC_DUMMY_FRAMES.
1878 * gdbarch.h, gdbarch.c: Regenerate.
1879 * valops.c, frame.c: Update.
1880 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1881 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1882 * config/pa/tm-hppa.h, blockframe.c: Update.
1883 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1884 * m68k-tdep.c, alpha-tdep.c: Ditto.
1886 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1887 * mips-tdep.c: Ditto.
1889 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1891 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1892 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1893 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1894 * gdbarch.c, gdbarch.h: Re-generate.
1895 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1896 (CALL_DUMMY_LOCATION): Delete macro definition.
1897 (PC_IN_CALL_DUMMY): Delete macro definitions.
1899 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1900 default is already generic_pc_in_call_dummy.
1901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1902 * v850-tdep.c (v850_gdbarch_init): Ditto.
1903 * sh-tdep.c (sh_gdbarch_init): Ditto.
1904 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1905 * mips-tdep.c (mips_gdbarch_init): Ditto.
1906 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1908 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1909 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1910 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1911 * avr-tdep.c (avr_gdbarch_init): Ditto.
1913 * arm-tdep.c (arm_gdbarch_init): Do not set
1914 use_generic_dummy_frames, default is already 1.
1915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1916 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1917 * v850-tdep.c (v850_gdbarch_init): Ditto.
1918 * sh-tdep.c (sh_gdbarch_init): Ditto.
1919 * s390-tdep.c (s390_gdbarch_init): Ditto.
1920 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1921 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1922 * mips-tdep.c (mips_gdbarch_init): Ditto.
1923 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1925 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1926 * i386-tdep.c (i386_gdbarch_init): Ditto.
1927 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1928 * frv-tdep.c (frv_gdbarch_init): Ditto.
1929 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1930 * cris-tdep.c (cris_gdbarch_init): Ditto.
1931 * avr-tdep.c (avr_gdbarch_init): Ditto.
1933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1934 call_dummy_location, default is already AT_ENTRY_POINT.
1935 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1936 * v850-tdep.c (v850_gdbarch_init): Ditto.
1937 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1938 * sh-tdep.c (sh_gdbarch_init): Ditto.
1939 * s390-tdep.c (s390_gdbarch_init): Ditto.
1940 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1941 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1942 * mips-tdep.c (mips_gdbarch_init): Ditto.
1943 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1945 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1946 * i386-tdep.c (i386_gdbarch_init): Ditto.
1947 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1948 * frv-tdep.c (frv_gdbarch_init): Ditto.
1949 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1950 * cris-tdep.c (cris_gdbarch_init): Ditto.
1951 * avr-tdep.c (avr_gdbarch_init): Ditto.
1952 * arm-tdep.c (arm_gdbarch_init): Ditto.
1953 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1955 2002-11-28 Andrew Cagney <cagney@redhat.com>
1957 * frame.h: Update comments on set_current_frame, create_new_frame,
1958 flush_cached_frames, reinit_frame_cache, select_frame and
1961 2002-11-27 Andrew Cagney <cagney@redhat.com>
1963 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1964 deprecated pc_in_call_dummy function.
1965 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1966 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1967 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1968 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1969 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1971 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1973 * Makefile.in: Remove Tix dependencies.
1974 * acinclude.m4: Ditto.
1975 * aclocal.m4: Ditto.
1976 * configure.in: Ditto.
1977 * configure: Regenerated.
1979 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1981 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1982 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1983 * gdbarch.c: Re-generate.
1985 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1987 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1988 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1989 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1990 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1991 pc_in_call_dummy_at_entry_point.
1992 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1993 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1994 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1995 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1996 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1997 pc_in_call_dummy_on_stack.
1998 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1999 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2000 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2001 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2002 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2004 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2006 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2007 pc_in_call_dummy_before_text_end
2008 (deprecated_pc_in_call_dummy_after_text_end): Rename
2009 pc_in_call_dummy_after_text_end.
2010 (deprecated_pc_in_call_dummy_on_stack): Rename
2011 pc_in_call_dummy_on_stack.
2012 (deprecated_pc_in_call_dummy_at_entry_point): Rename
2013 pc_in_call_dummy_at_entry_point.
2014 * m68k-tdep.c (m68k_gdbarch_init): Update.
2015 * s390-tdep.c (s390_gdbarch_init): Update.
2016 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2017 * vax-tdep.c (vax_gdbarch_init): Update.
2018 * sparc-tdep.c (sparc_gdbarch_init): Update.
2019 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2020 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2021 * i386-tdep.c (i386_gdbarch_init): Update.
2022 * frv-tdep.c (frv_gdbarch_init): Update.
2023 * cris-tdep.c (cris_gdbarch_init): Update.
2024 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2025 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2026 (deprecated_pc_in_call_dummy_after_text_end)
2027 (deprecated_pc_in_call_dummy_on_stack)
2028 (deprecated_pc_in_call_dummy_at_entry_point): Update.
2029 * alpha-tdep.c (alpha_gdbarch_init): Update.
2031 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
2033 * acconfig.h (HAVE_PREAD64): Add.
2034 * configure.in: Check for pread64.
2035 * config.in: Regenerated.
2036 * configure: Regenerated.
2037 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2038 * linux-proc.c (linux_proc_xfer_memory): New function.
2039 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2041 2002-11-25 David Carlton <carlton@math.stanford.edu>
2043 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2046 2002-11-25 Andrew Cagney <ac131313@redhat.com>
2048 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2049 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2051 2002-11-25 Jim Blandy <jimb@redhat.com>
2053 * symfile.c (init_objfile_sect_indices): New function.
2054 (default_symfile_offsets): Move the section-index-initializing
2055 stuff into init_objfile_sect_indices, and call that.
2057 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2058 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2060 * symfile.c (syms_from_objfile): Adjust indentation.
2062 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2063 || info_verbose isn't true.
2065 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2067 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2068 default to get_frame_base.
2069 * gdbarch.h, gdbarch.c: Regenerate.
2070 * arch-utils.c (default_frame_address): Delete function.
2071 * arch-utils.h (default_frame_address): Delete declaration
2073 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2075 * varobj.c (find_frame_addr_in_frame_chain):
2076 Use get_frame_base instead of FRAME_FP,
2079 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2081 * frame.h (FRAME_FP): Delete macro.
2082 (get_frame_base): New function declaration.
2083 * frame.c (get_frame_base): New function.
2084 (get_frame_id): Use ->frame.
2085 (frame_find_by_id): Rewrite to use get_frame_id.
2086 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2087 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2088 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2089 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2090 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2091 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2092 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2094 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2096 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2098 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2100 * frame.c (set_unwind_by_pc): Revert change below, use
2102 (get_prev_frame): Ditto.
2104 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2106 * dummy-frame.c (pc_in_dummy_frame): New function.
2107 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2108 (find_dummy_frame): Update comment.
2109 (generic_pop_current_frame): Use get_frame_type.
2110 * dummy-frame.h (pc_in_dummy_frame): Declare.
2111 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2112 (create_new_frame): Use pc_in_dummy_frame.
2113 (get_prev_frame): Use pc_in_dummy_frame.
2114 (frame_saved_regs_register_unwind): Use get_prev_frame.
2115 (deprecated_generic_get_saved_register): Use get_prev_frame.
2117 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2119 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2121 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2122 (varobj_create): Note that frame ID should be used.
2123 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2125 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2127 * breakpoint.c: Include "gdb_assert.h".
2128 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2130 * Makefile.in (breakpoint.o): Update dependencies.
2131 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2132 deprecated_frame_in_dummy.
2133 * stack.c (print_frame_info_base): Ditto.
2134 (frame_info): Ditto.
2135 (print_frame_info_base): Ditto. Delete dead code.
2137 2002-11-23 Andreas Schwab <schwab@suse.de>
2139 * Makefile.in (m68k_tdep_h): Define.
2140 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2141 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2142 * m68k-tdep.c: Move register number enum ...
2143 * m68k-tdep.h: ... to this new file and rename the constants from
2144 E_* to M68K_*. All uses changed.
2145 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2146 * abug-rom.c: Include "m68k-tdep.h". Use
2147 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2148 * cpu32bug-rom.c: Likewise.
2149 * dbug-rom.c: Likewise.
2150 * m68k-tdep.c: Likewise.
2151 * m68klinux-nat.c: Likewise.
2152 * remote-est.c: Likewise.
2153 * rom68k-rom.c: Likewise.
2154 * config/m68k/tm-linux.h: Likewise.
2156 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2158 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2159 dummy frame initialization code.
2160 * mips-tdep.c (mips_gdbarch_init): Ditto.
2162 2002-11-22 Christopher Faylor <cgf@redhat.com>
2164 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2167 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2169 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2170 to default_frame_address.
2171 * gdbarch.h, gdbarch.c: Re-generate.
2173 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2174 or frame_locals_address to default_frame_address.
2175 * m68k-tdep.c (m68k_gdbarch_init): Update.
2176 * i386-tdep.c (i386_gdbarch_init): Update.
2177 * frv-tdep.c (frv_gdbarch_init): Update.
2178 * sh-tdep.c (sh_gdbarch_init): Update.
2179 * v850-tdep.c (v850_gdbarch_init): Update.
2180 * sparc-tdep.c (sparc_gdbarch_init): Update.
2181 * mips-tdep.c (mips_gdbarch_init): Update.
2182 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2183 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2184 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2186 * cris-tdep.c (cris_frame_args_address): Delete function.
2187 (cris_frame_locals_address): Delete function.
2188 (cris_gdbarch_init): Do not set frame_args_address or
2189 frame_locals_address.
2191 2002-11-22 Michael Snyder <msnyder@redhat.com>
2193 * thread-db.c (thread_db_load): Tell the user what's going on
2194 if dlopen fails on libthread_db.
2196 2002-11-23 Andreas Schwab <schwab@suse.de>
2198 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2199 invariant return values.
2201 2002-11-22 Andreas Schwab <schwab@suse.de>
2203 * valops.c (value_slice): Move declaration of `offset' to avoid
2206 2002-11-22 Christopher Faylor <cgf@redhat.com>
2208 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2209 (struct so_stuff): Add end_addr field.
2210 (register_loaded_dll): Calculate and store end address of loaded dll.
2211 (solib_address): New function.
2212 (child_solib_loaded_library_pathname): Pass carefully constructed
2213 section info to safe_symbol_file_add rather than ignoring it.
2214 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2216 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2217 (child_create_inferior): Fix a compiler warning.
2218 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2219 (solib_address): Declare new function.
2221 2002-11-22 Andreas Schwab <schwab@suse.de>
2223 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2226 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2228 * maint.c (_initialize_maint_cmds): Fix typo. From
2229 Francesco Potorti` <pot@gnu.org>.
2231 2002-11-21 Andrew Cagney <cagney@redhat.com>
2233 * mips-tdep.c (mips_dump_tdep): Delete references to
2234 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2235 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2236 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2237 * printcmd.c (build_address_symbolic): Delete calls to
2238 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2239 (address_info): Ditto.
2242 2002-11-19 Klee Dienes <kdienes@apple.com>
2243 Adam Fedor <fedor@gnu.org>
2245 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2246 the ability to explicitly specify the quote characters and word
2247 break characters; if NULL is specified for either, use the old
2248 behavior of using the characters used by the completer.
2249 (skip_chars): New function. Convenience wrapper around
2250 skip_quoted_chars to provide the original skip_chars behavior.
2251 * completer.h (skip_quoted_chars): Add prototype.
2253 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2255 Problems reported by Paul Eggert.
2256 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2258 2002-11-19 Andreas Schwab <schwab@suse.de>
2260 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2261 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2262 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2263 (m68k_linux_frame_saved_pc): Move to ...
2264 * m68klinux-tdep.c: ... here. New file.
2265 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2266 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2268 2002-11-19 Adam Fedor <fedor@gnu.org>
2270 * objc-exp.y: Revert to old skip_quoted usage.
2272 2002-11-19 Adam Fedor <fedor@gnu.org>
2274 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2275 (objc_lang_h): Define.
2276 (YYFILES): Add objc-exp.tab.c.
2277 (local-maintainer-clean): Remove objc-exp.tab.c.
2278 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2280 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2282 * p-exp.y (typecast rule): Add automatic dereference of
2283 pascal classes if needed.
2284 (THIS): Set current_type.
2285 Automatically dereference pascal classes.
2286 (typebase rule): Add ^typebase recognition.
2288 2002-11-18 Adam Fedor <fedor@gnu.org>
2290 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2291 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2292 (op_name): Handle OP_OBJC_SELF.
2293 * Makefile.in (expprint.o): Add additional depends.
2295 2002-11-18 Adam Fedor <fedor@gnu.org>
2297 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2298 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2299 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2300 * objc-exp.y: Likewise.
2302 2002-11-18 Adam Fedor <fedor@gnu.org>
2304 * gdb/parser-defs.h: (struct objc_class_str): New structure
2305 for parsing ObjC classes.
2307 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2309 * stack.c (frame_relative_level): Copy function from here ...
2310 * frame.c (frame_relative_level): ...to here.
2312 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2314 * frame.h (enum frame_type): Define.
2315 (get_frame_type): Declare.
2316 (struct frame_info): Add field `type'. Delete field
2317 signal_handler_caller.
2318 (deprecated_set_frame_signal_handler_caller): Declare.
2319 * frame.c (get_frame_type): New function.
2320 (deprecated_set_frame_type): New function.
2321 (create_new_frame): Set the frame's type.
2322 (get_prev_frame): Similar.
2323 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2324 * s390-tdep.c: Ditto.
2325 * m68klinux-nat.c: Ditto.
2326 * ns32k-tdep.c: Ditto.
2327 * x86-64-linux-tdep.c: Ditto.
2328 * vax-tdep.c: Ditto.
2329 * rs6000-tdep.c: Ditto.
2330 * ppc-linux-tdep.c: Ditto.
2331 * i386-interix-tdep.c: Ditto.
2332 * mips-tdep.c: Ditto.
2333 * m68k-tdep.c: Ditto.
2334 * hppa-tdep.c: Ditto.
2335 * ia64-tdep.c: Ditto.
2336 * cris-tdep.c: Ditto.
2337 * arm-tdep.c: Ditto.
2338 * alpha-tdep.c: Ditto.
2339 * i386-tdep.c: Ditto.
2341 * ada-lang.c: Ditto.
2342 * blockframe.c: Update.
2343 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2344 deprecated_set_frame_type instead of signal_handler_caller.
2345 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2346 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2347 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2349 2002-11-18 Klee Dienes <kdienes@apple.com>
2351 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2353 2002-11-18 Klee Dienes <kdienes@apple.com>
2355 * buildsym.c (pop_context): Add comment.
2357 2002-11-18 Klee Dienes <kdienes@apple.com>
2359 * buildsym.h (pop_context): Convert to function, defined in
2361 * buildsym.c: Include gdb_assert.h.
2362 (pop_context): Implement as C function. Add check for stack
2364 * dbxread.c (process_one_symbol): Complain and stop processing
2365 that symbol if we are already at the top of the context stack for
2366 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2367 when processing N_RBRAC.
2369 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2371 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2373 (struct target_waitstatus): Add opaque definition.
2374 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2375 * exec.c (init_exec_ops): Likewise.
2376 * fork-child.c (clone_and_follow_inferior): Remove.
2377 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2378 * inferior.h (clone_and_follow_inferior): Remove prototype.
2379 * infrun.c (follow_fork_mode_both): Remove.
2380 (follow_fork_mode_kind_names): Remove commented out "both".
2381 (follow_inferior_fork): Remove follow_fork_mode_both support.
2382 * inftarg.c (child_clone_and_follow_inferior): Remove.
2383 (child_post_follow_inferior_by_clone): Remove.
2384 (init_child_ops): Don't set to_clone_and_follow_inferior
2385 or to_post_follow_inferior_by_clone.
2386 * target.c (default_clone_and_follow_inferior): Remove.
2387 (cleanup_target): Don't set to_clone_and_follow_inferior
2388 or to_post_follow_inferior_by_clone.
2389 (find_default_clone_and_follow_inferior): Remove.
2390 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2391 (debug_to_clone_and_follow_inferior): Remove.
2392 (debug_to_post_follow_inferior_by_clone): Remove.
2393 (setup_target_debug): Don't set to_clone_and_follow_inferior
2394 or to_post_follow_inferior_by_clone.
2395 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2396 and to_post_follow_inferior_by_clone.
2397 (child_clone_and_follow_inferior): Remove prototype.
2398 (child_post_follow_inferior_by_clone): Remove prototype.
2399 (target_clone_and_follow_inferior): Remove macro.
2400 (target_post_follow_inferior_by_clone): Remove macro.
2401 (find_default_clone_and_follow_inferior): Remove prototype.
2403 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2405 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2406 inferior_has_vforked, and inferior_has_execd instead of
2407 target_has_forked, target_has_vforked, and target_has_execd.
2408 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2409 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2410 (CHILD_WAIT): Define.
2411 (child_wait): Add prototype.
2412 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2414 (hpux_has_vforked): Likewise, from child_has_vforked.
2415 (hpux_has_execd): Likewise, from child_has_execd.
2416 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2417 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2418 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2419 and hpux_has_syscall_event instead of the target hooks.
2420 * infrun.c (inferior_has_forked, inferior_has_vforked)
2421 (inferior_has_execd): New functions.
2422 * inftarg.c (not_same_real_pid): Remove.
2423 (child_wait): Remove references to not_same_real_pid,
2424 target_has_forked, target_has_vforked, target_has_execd,
2425 and target_has_syscall_event.
2426 (child_has_forked, child_has_vforked, child_has_execd)
2427 (child_has_syscall_event): Remove.
2428 (init_child_ops): Remove references to child_has_forked,
2429 child_has_vforked, child_has_execd, and child_has_syscall_event.
2430 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2431 (hpux_has_vforked): Likewise, from child_has_vforked.
2432 (hpux_has_execd): Likewise, from child_has_execd.
2433 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2434 * target.c (cleanup_target): Remove references to
2435 to_has_forked, to_has_vforked, to_has_execd, and
2436 to_has_syscall_event.
2437 (update_current_target): Likewise.
2438 (setup_target_debug): Likewise.
2439 (debug_to_has_forked): Remove.
2440 (debug_to_has_vforked): Remove.
2441 (debug_to_has_execd): Remove.
2442 (debug_to_has_syscall_event): Remove.
2443 * target.h (struct target_ops): Remove to_has_forked.
2444 to_has_vforked, to_has_execd, and to_has_syscall_event.
2445 (child_has_forked, child_has_vforked, child_has_execd)
2446 (child_has_syscall_event): Remove prototypes.
2447 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2449 (target_has_forked, target_has_vforked, target_has_execd)
2450 (target_has_syscall_event): Remove macros.
2452 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2454 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2455 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2456 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2457 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2458 * target.c (cleanup_target): Remove reference to
2459 to_can_follow_vfork_prior_to_exec.
2460 (update_current_target): Likewise.
2461 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2462 (setup_target_debug): Remove reference to
2463 to_can_follow_vfork_prior_to_exec.
2464 * target.h (struct target_ops): Remove
2465 to_can_follow_vfork_prior_to_exec.
2466 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2467 (target_can_follow_vfork_prior_to_exec): Remove definition.
2468 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2470 * infrun.c (follow_vfork_when_exec): Remove.
2471 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2472 (follow_exec): Likewise.
2473 (handle_inferior_event): Likewise.
2474 (keep_going): Likewise.
2476 2002-11-15 Andrew Cagney <cagney@redhat.com>
2478 * frame.c (generic_unwind_get_saved_register): Make static.
2479 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2480 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2481 defaults to generic_unwind_get_saved_register.
2482 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2483 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2484 * frv-tdep.c (frv_gdbarch_init): Ditto.
2485 * i386-tdep.c (i386_gdbarch_init): Ditto.
2486 * s390-tdep.c (s390_gdbarch_init): Ditto.
2487 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2488 * v850-tdep.c (v850_gdbarch_init): Ditto.
2489 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2490 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2491 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2493 2002-11-15 Andrew Cagney <cagney@redhat.com>
2495 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2498 2002-11-15 Andrew Cagney <cagney@redhat.com>
2500 * frame.h (sigtramp_saved_pc): Delete declaration.
2501 * blockframe.c (sigtramp_saved_pc): Delete function.
2502 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2503 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2504 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2505 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2507 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2509 * frame.c (frame_pc_unwind): New function.
2510 (frame_saved_regs_pc_unwind): New function.
2511 (frame_register_unwind): Pass unwind_cache instead of
2512 register_unwind_cache.
2513 (set_unwind_by_pc): Add unwind_pc parameter, set.
2514 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2515 (get_prev_frame): Ditto.
2516 * frame.h (frame_pc_unwind_ftype): Declare.
2517 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2518 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2519 (frame_pc_unwind): Declare.
2520 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2521 (struct dummy_frame): Add comment mentioning that values are for
2523 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2524 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2525 (generic_file_frame_chain_valid): Ditto.
2526 * stack.c (frame_info): Ditto.
2528 2002-11-15 David Carlton <carlton@math.stanford.edu>
2530 * linespec.c (locate_first_half): New function.
2531 (decode_line_1): Move code into locate_first_half.
2533 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2535 * complaints.h: Add comment explaining how to eliminate a
2536 deprecated_complain call.
2537 * complaints.h: Fix spelling errors.
2539 2002-11-15 David Carlton <carlton@math.stanford.edu>
2541 * printcmd.c: Remove #include "disasm.h".
2543 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2545 * frame.h: Move the most relevant interface functions to the start
2548 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2550 * regcache.h (deprecated_registers): Rename registers.
2551 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2552 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2553 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2554 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2555 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2556 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2557 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2558 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2559 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2560 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2561 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2562 * v850ice.c: Update.
2564 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2566 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2569 2002-11-13 Andrew Cagney <cagney@redhat.com>
2571 * regcache.h (deprecated_read_register_bytes): Rename
2572 read_register_bytes.
2573 (deprecated_write_register_bytes): Rename write_register_bytes.
2574 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2575 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2576 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2577 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2578 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2579 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2580 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2581 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2582 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2583 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2584 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2585 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2586 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2587 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2589 2002-11-13 Jim Blandy <jimb@redhat.com>
2591 * findvar.c (read_var_value): Doc fix.
2593 2002-11-13 Andrew Cagney <cagney@redhat.com>
2595 * regcache.c (struct regcache): Replace passthough_p with
2597 (regcache_xmalloc): Initialize readonly_p.
2598 (build_regcache): Initialize readonly_p.
2599 (regcache_save): New function.
2600 (regcache_restore): New function.
2601 (regcache_cpy): Re-implement using regcache_save and
2603 (regcache_raw_read): Update.
2604 (regcache_cooked_read): When a read-only cache, checked for cached
2605 pseudo register values.
2606 (regcache_raw_write): Assert that the cache is not read-only.
2607 Remove code handling a non-passthrough cache.
2608 * regcache.h (regcache_save): Declare.
2609 (regcache_restore): Declare.
2611 2002-11-13 Andrew Cagney <cagney@redhat.com>
2613 * regcache.c (struct regcache_descr): Add fields
2614 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2615 (init_legacy_regcache_descr): Compute the size of a cooked
2616 register cache and then assign that to sizeof_raw_registers. Set
2617 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2618 (init_legacy_regcache_descr): Ditto.
2620 2002-11-13 Andrew Cagney <cagney@redhat.com>
2622 * regcache.c (register_buffer): Move to near start of file, update
2624 (regcache_raw_read): Use.
2625 (regcache_raw_write): Use.
2626 (struct regcache): Rename raw_registers to registers and
2627 raw_register_valid_p to register_valid_p.
2628 (regcache_xmalloc): Update.
2629 (regcache_xfree): Update.
2630 (register_buffer): Update.
2631 (regcache_cpy): Update.
2632 (regcache_cpy_no_passthrough): Update.
2633 (regcache_valid_p): Update.
2634 (deprecated_grub_regcache_for_registers): Update.
2635 (deprecated_grub_regcache_for_register_valid): Update.
2636 (set_register_cached): Update.
2637 (regcache_raw_write): Update.
2639 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2641 * p-exp.y (name_not_typename): Use copy_name to
2642 set current_type variable for fields of THIS.
2644 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2646 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2647 * monitor.c (init_base_monitor_ops): Likewise.
2648 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2649 * remote-array.c (init_array_ops): Likewise.
2650 * remote-e7000.c (init_e7000_ops): Likewise.
2651 * remote-es.c (init_es1800_ops): Likewise.
2652 (init_es1800_child_ops): Likewise.
2653 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2654 * remote-sim.c (init_gdbsim_ops): Likewise.
2655 * remote-st.c (init_st2000_ops): Likewise.
2656 * sol-thread.c (init_sol_core_ops): Likewise.
2657 (init_sol_thread_ops): Likewise.
2658 * v850ice.c (init_850ice_ops): Likewise.
2659 * win32-nat.c (init_child_ops): Likewise.
2660 * wince.c (init_child_ops): Likewise.
2662 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2664 * utils.c (gdb_realpath): Make rp a constant pointer.
2666 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2668 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2669 a constant buffer; cannonicalize_file_name(); realpath() with a
2670 pathconf() defined buffer, xstrdup().
2672 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2674 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2675 to hang2.C; hang3.c to hang3.C.
2677 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2679 * findvar.c (read_var_value): Reenable TLS code.
2681 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2682 Jim Blandy <jimb@redhat.com>
2684 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2685 * target.c (update_current_target): Add
2686 to_get_thread_local_address.
2687 * target.h (to_get_thread_local_address): Export.
2688 (target_get_thread_local_address): Define.
2689 (target_get_thread_local_address_p): Define.
2690 * thread-db.c: Include solib-svr4.h.
2691 (td_thr_tls_get_addr_p): Define.
2692 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2693 (thread_db_get_thread_local_address): New function.
2694 (init_thread_db_ops): Initialize to_get_thread_local_address.
2695 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2696 * configure: Regenerate.
2697 * config.in: Regenerate.
2699 2002-11-11 David Carlton <carlton@math.stanford.edu>
2701 * linespec.c (set_flags): New function.
2702 (decode_line_1): Move code into set_flags.
2704 2002-11-11 David Carlton <carlton@math.stanford.edu>
2706 * linespec.c (decode_line_1): Move chunks of code to separate
2708 (initialize_defaults): New function.
2709 (decode_indirect): New function.
2711 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2713 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2714 instead of void_code_ptr.
2715 (sigtramp_saved_pc): Ditto.
2717 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2720 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2722 * gdbtypes.h (struct main_type): Move artificial flag out of
2723 loc. New member of ``struct field'' named static_kind. Reduce
2724 overloaded meaning of bitsize.
2725 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2726 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2727 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2729 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2731 (template_to_fixed_record_type, template_to_static_fixed_type)
2732 (to_record_with_fixed_variant_part): Likewise.
2733 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2734 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2735 * dwarfread.c (struct_type, enum_type): Likewise.
2736 * hpread.c (hpread_read_enum_type)
2737 (hpread_read_function_type, hpread_read_doc_function_type)
2738 (hpread_read_struct_type): Likewise.
2739 * mdebugread.c (parse_symbol): Likewise.
2741 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2743 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2744 * stack.c (print_frame_info_base): Update.
2745 (print_frame_info_base, frame_info): Update.
2746 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2747 (sparc_frame_saved_pc): Update.
2748 * ada-lang.c (find_printable_frame): Update.
2749 * breakpoint.c (deprecated_frame_in_dummy): Update.
2751 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2753 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2755 (regmap): Extend to cover all registers.
2756 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2757 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2759 (fetch_register, sore_register): Simplify.
2760 (old_fetch_inferior_registers, old_store_inferior_registers):
2762 (cannot_fetch_register, cannot_store_register): Change
2763 implementation to use regmap array to decide which registers
2764 cannot be fetched/stored. This removes $orig_eax from the
2765 registers that cannot be fetched/stored.
2766 (fetch_inferior_registers): Call fetch_register directly instead
2767 of calling old_fetch_inferior_registers.
2768 (store_inferior_registers): Call store_register directly instead
2769 of calling old_store_inferior_registers.
2770 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2771 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2772 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2774 2002-11-09 Klee Dienes <kdienes@apple.com>
2776 * i387-tdep.c (i387_supply_register): When called with NULL as a
2777 buffer, mark the register as not provided (to mirror the behavior
2778 of supply_register).
2779 (i387_supply_fxsave): Ditto.
2780 (i387_supply_fsave): Ditto (inherits the behavior from
2781 i387_supply_register).
2783 2002-11-09 Klee Dienes <kdienes@apple.com>
2785 * blockframe.c (sigtramp_saved_pc): Use
2786 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2787 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2788 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2790 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2792 * frame.c (get_prev_frame): Test prev_p to identify a previously
2793 unwound frame. Initialize prev_p.
2794 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2797 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2799 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2800 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2801 more comments. Zap dead code.
2803 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2805 * infcmd.c (print_vector_info, print_float_info): Move code that
2806 checks whether the target has any registers and whether there is a
2807 selected frame up, such that it is also used if a target provides
2808 multi-arch definitions of these functions.
2810 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2812 * Makefile.in (DESTDIR): Define.
2813 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2816 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2817 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2819 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2821 * i386-linux-tdep.c: Include "reggroups.h".
2822 (i386_linux_register_reggroup_p): New function.
2823 (i386_linux_init_abi): Set register_reggroup_p to
2824 i386_linux_register_reggroup_p.
2825 * i386-tdep.h (i386_register_reggroup_p): Declare.
2826 * i386-tdep.c: Include "reggroups.h".
2827 (i386_init_reggroups): New function.
2828 (i386_add_reggroups): New function.
2829 (i386_register_reggroup_p): New function.
2830 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2831 (_initialize_i386_tdep): Call i386_init_reggroups.
2832 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2835 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2837 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2838 request that's available in *BSD.
2840 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2842 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2845 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2847 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2848 * dummy-frame.c (find_dummy_frame): Rename
2849 generic_find_dummy_frame, make static. Return the dummy frame
2850 instead of the regcache.
2851 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2852 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2853 (dummy_frame_register_unwind): Rename
2854 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2855 * dummy-frame.h (dummy_frame_register_unwind): Rename
2856 generic_call_dummy_register_unwind.
2858 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2860 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2861 except the inclusion of "i386/tm-i386.h", to...
2862 * config/i386/nm-i386v42mp.h: ...here.
2863 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2865 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2867 * Makefile.in (frame.o): Update dependencies.
2868 * blockframe.c (current_frame, frame_obstack_alloc)
2869 (frame_saved_regs_zalloc, get_current_frame)
2870 (set_current_frame, create_new_frame)
2871 (set_unwind_by_pc, get_next_frame)
2872 (flush_cached_frames, reinit_frame_cache)
2873 (frame_saved_regs_register_unwind)
2874 (deprecated_generic_get_saved_register)
2875 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2876 (_initialize_blockframe): Move frame code from here...
2877 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2878 "annotate.h" and "dummy-frame.h".
2879 (_initialize_frame): New function.
2881 2002-11-08 Jim Blandy <jimb@redhat.com>
2883 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2884 when we finish a function a context.
2885 * buildsym.h (outermost_context_p): New macro.
2886 (Bug analyzed by David Edelsohn.)
2888 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2890 * blockframe.c: Include "dummy-frame.h".
2891 (struct dummy_frame, dummy_frame_stack)
2892 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2893 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2894 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2895 (generic_save_call_dummy_addr, generic_pop_current_frame)
2896 (generic_pop_dummy_frame, generic_fix_call_dummy)
2897 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2898 dummy frame code from here...
2899 * dummy-frame.c: ...to here. New file.
2900 * dummy-frame.h: New file.
2901 (generic_call_dummy_register_unwind): Declare.
2902 (generic_find_dummy_frame): Declare.
2903 * Makefile.in (SFILES): Add dummy-frame.c.
2904 (dummy-frame.o): Specify dependencies.
2905 (dummy_frame_h): Define.
2906 (COMMON_OBS): Add dummy-frame.o.
2907 (blockframe.o): Update dependencies.
2909 2002-11-08 Jim Blandy <jimb@redhat.com>
2911 * dwarf2read.c (read_func_scope): Restore local_symbols and
2912 param_symbols after we finish the function context. (Based on a
2913 patch from David Edelsohn.)
2915 2002-11-08 David Carlton <carlton@math.stanford.edu>
2917 * linespec.c (symbol_found): New function.
2918 (minsym_found): New function.
2919 (decode_line_1): Separate out some code into separate functions.
2921 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2923 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2924 the benefit of the interix target.
2925 * i386-tdep.h (i386_frameless_signal_p): Declare.
2927 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2929 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2930 declaration that snuck in from change below.
2932 2002-11-06 Andrew Cagney <cagney@redhat.com>
2934 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2936 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2937 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2938 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2939 (i386_mxcsr_regnum_p): new function. Use instead of
2941 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2942 (i386_sse_regnum_p): Declare.
2943 (i386_mxcsr_regnum_p): Declare.
2944 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2945 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2946 (IS_FP_REGNUM): Update definition.
2947 (IS_FPU_CTRL_REGNUM): Update definition..
2948 (IS_SSE_REGNUM): Update definition..
2949 * i386v-nat.c (register_u_addr): Update.
2950 * go32-nat.c (fetch_register): Update.
2951 (store_register): Update.
2953 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2955 Preparation work to convert the hppa targets to multiarch partial.
2957 * hppa-tdep.c: Add new functions replacing macro bodies from
2958 config/pa/tm-hppa.h. These function will be used to initialize
2959 the gdbarch structure. Import some comments from tm-hppa.h,
2960 and place them where appropriate, to avoid loosing them when
2961 we cleanup this file.
2962 (hppa_reg_struct_has_addr): New function.
2963 (hppa_inner_than): New function.
2964 (hppa_stack_align): New function.
2965 (hppa_pc_requires_run_before_use): New function.
2966 (hppa_instruction_nullified): New function.
2967 (hppa_register_byte): New function.
2968 (hppa_register_virtual_type): New function.
2969 (hppa_store_struct_return): New function.
2970 (hppa_cannot_store_register): New function.
2971 (hppa_frame_args_address): New function.
2972 (hppa_frame_locals_address): New function.
2973 (hppa_smash_text_address): New function.
2974 (hppa_coerce_float_to_double): New function. Requires the inclusion
2977 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2979 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2980 gdbarch-eligible macro to a call to the new associated function
2981 created in hppa-tdep.c.
2982 (INNER_THAN): Likewise.
2983 (STACK_ALIGN): Likewise.
2984 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2985 (INSTRUCTION_NULLIFIED): Likewise.
2986 (REGISTER_BYTE): Likewise.
2987 (REGISTER_VIRTUAL_TYPE): Likewise.
2988 (STORE_STRUCT_RETURN): Likewise.
2989 (CANNOT_STORE_REGISTER): Likewise.
2990 (FRAME_ARGS_ADDRESS): Likewise.
2991 (FRAME_LOCALS_ADDRESS): Likewise.
2992 (SMASH_TEXT_ADDRESS): Likewise.
2993 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2994 (ABOUT_TO_RETURN): Delete, as no longer used.
2996 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2998 * printcmd.c (disassemble_command): Remove obsolete function.
2999 (_initialize_printcmd): Do not create disassemble command here.
3000 * cli/cli-cmds.c (disassemble_command): New function. Implements
3001 disassemble command.
3002 (init_cli_cmds): Create disassemble command here instead.
3004 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3006 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3008 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3010 * regcache.h (regcache_cooked_read_using_offset_hack)
3011 (regcache_cooked_write_using_offset_hack): Delete declarations.
3012 (register_changed): Delete declaration.
3013 * regcache.c (regcache_cooked_read_using_offset_hack)
3014 (regcache_cooked_write_using_offset_hack): Delete functions.
3015 (cooked_xfer_using_offset_hack): Delete function.
3016 (register_changed): Delete function.
3018 2002-11-07 Jim Blandy <jimb@redhat.com>
3020 * macroscope.c: #include "complaints.h".
3021 (sal_macro_scope): Cope with filenames that appear in the symtabs,
3022 but not in the macro table.
3023 * Makefile.in (macroscope.o): Record dependency.
3025 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3027 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3029 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3031 * regcache.c (deprecated_registers_fetched): Update.
3032 * regcache.h (deprecated_registers_fetched): Rename
3034 * remote-vxsparc.c (vx_read_register): Update.
3035 * remote-vxmips.c (vx_read_register): Update.
3036 * remote-vx68.c (vx_read_register): Update.
3037 * irix5-nat.c (fetch_core_registers): Update.
3038 * mipsm3-nat.c (fetch_inferior_registers): Update.
3039 * sun3-nat.c (fetch_inferior_registers): Update.
3040 * symm-nat.c (fetch_inferior_registers): Update.
3041 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3042 (fetch_core_registers): Update.
3043 (fetch_kcore_registers): Update.
3044 * mips-nat.c (fetch_inferior_registers): Update.
3045 * corelow.c (get_core_registers): Update.
3046 * a68v-nat.c (fetch_inferior_registers): Update.
3048 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3050 Put in place the framework necessary for multiarching the hppa targets.
3051 * hppa-tdep.c (hppa_gdbarch_init): New function.
3052 (hppa_dump_tdep): New function.
3053 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3054 tdep structure dumper.
3055 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3056 until the multi-arching conversion has partially been completed.
3058 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3060 * valops.c (value_assign): Merge lval_register case into
3061 lval_reg_frame_relative. Use frame_register and
3062 regcache_cooked_write instead of get_saved_register and
3063 write_register_bytes. After flushing the register cache, try to
3064 re-select the selected frame.
3066 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3068 * regcache.h (deprecated_register_valid): Rename register_valid.
3069 * regcache.c: Update.
3070 * ia64-aix-nat.c: Update.
3071 * i386gnu-nat.c: Update.
3072 * alpha-nat.c: Update.
3073 * sparc-nat.c: Update.
3074 * lynx-nat.c: Update.
3075 * remote-mips.c: Update.
3077 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3079 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3080 to end of file, to be more consistent with the pratice followed
3083 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3085 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3086 (print_float_info): Print registers in float_reggroup.
3087 (print_vector_info): Print registers in vector_reggroup.
3088 (default_print_registers_info): When all, print registers in
3089 all_reggroup. Otherwize, print registers in general_reggroup.
3090 (registers_info): Rewrite. Add support for register groups.
3093 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3095 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3097 (symtab_symbol_info): Remove eons old ifdeffed out code.
3098 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3101 2002-11-06 Theodore A. Roth <troth@openavr.org>
3103 * c-exp.y: Add missing semi-colons.
3104 * f-exp.y: Add missing semi-colons.
3105 * m2-exp.y: Add missing semi-colons.
3106 * p-exp.y: Add missing semi-colons.
3107 Add empty action to start rule to avoid a type clash error when
3108 building with bison >= 1.50.
3110 2002-11-06 Jim Blandy <jimb@redhat.com>
3112 * macrotab.h (struct macro_source_file): Doc fix.
3114 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3116 * varobj.c (child_exists, cplus_number_of_children): Change
3117 STREQ macro references to strcmp.
3118 (cplus_name_of_child): Change code to handle the fact that
3119 fields are not necessarily contiguous with regards to their
3120 access control. This is a fix for PR gdb/792.
3122 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3124 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3125 * gdbarch.h, gdbarch.c: Regnerate.
3126 * frame.h (frame_register): Declare.
3127 * frame.c (frame_register): New function.
3128 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3129 GET_SAVED_REGISTER, otherwize call
3130 generic_unwind_get_saved_register.
3131 (frame_register_read): Use frame_register instead of
3134 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3136 From Jim Ingham <jingham@apple.com>:
3137 * event-top.c (gdb_disable_readline): New function.
3138 (_initialize_event_loop): Move comment.
3140 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3142 * event-loop.c (start_event_loop): Add comment.
3145 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3147 * infcmd.c (default_print_registers_info): Do not call
3148 PRINT_REGISTER_HOOK.
3150 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3152 * sparc-tdep.c (sparc_print_register_hook): Make static.
3153 (sparc_print_registers_info): New function.
3154 (sparc_do_registers_info): New function.
3155 (sparclet_print_registers_info): New function.
3156 (sparclet_do_registers_info): New function.
3157 (do_sparc_print_registers_info): New function.
3158 (sparc_print_registers): New static function, clone of infcmd.c's
3159 default_print_registers_info.
3160 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3161 (sparclet_do_registers_info): Declare.
3162 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3163 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3165 (sparc_do_registers_info): Declare.
3166 (PRINT_REGISTER_HOOK): Delete macro.
3167 (sparc_print_register_hook): Delete declaration.
3169 2002-11-05 David Carlton <carlton@math.stanford.edu>
3171 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3173 (lookup_symbol_aux_local): New function.
3174 (lookup_symbol_aux_symtabs): New function.
3175 (lookup_symbol_aux_psymtabs): New function.
3177 2002-11-05 David Carlton <carlton@math.stanford.edu>
3179 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3180 previous values of 'objfile' and 'block'.
3182 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3184 * values.c (value_change_enclosing_type): Set
3185 enclosing_type field correctly also for the case where
3186 more memory needs to be allocated.
3188 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3190 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3193 * i387-tdep.c (i387_print_float_info): Replace calls to
3194 register_read and deprecated_read_register_gen with calls to
3195 frame_register_read, and make the necessary adjustments to the
3198 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3200 * gdbarch.sh (register_reggroup_p): Allow default value.
3201 * gdbarch.h, gdbarch.c: Regenerate.
3203 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3205 * regcache.h: Add coment indicating replacements for deprecated
3208 2002-11-02 Andrew Cagney <cagney@redhat.com>
3210 * reggroups.h, reggroups.c: New files.
3211 * regcache.c: Include "reggroups.h".
3212 (enum regcache_dump_what): Add `regcache_dump_groups'.
3213 (regcache_dump): Contract size of the "Type" column. When
3214 specified, dump the register's groups.
3215 (maintenance_print_register_groups): New function.
3216 (_initialize_regcache): Add command `maint print register-groups'.
3217 * Makefile.in (COMMON_OBS): Add reggroups.o
3218 (SFILES): Add reggroups.c.
3219 (reggroups_h): Define.
3220 (regcache.o, gdbarch.o): Update dependencies.
3221 (reggroups.o): Specify dependencies.
3222 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3223 Add opaque declaration for `struct reggroup' in generated .h file.
3224 Include "reggroups.h" in generated .c file.
3225 gdbarch.h, gdbarch.c: Re-generate.
3227 2002-11-02 Andrew Cagney <cagney@redhat.com>
3229 * regcache.h (deprecated_read_register_gen): Rename
3231 (deprecated_write_register_gen): Rename write_register_gen.
3232 * i387-tdep.c: Update.
3233 * x86-64-linux-nat.c: Update
3235 * thread-db.c: Update.
3236 * win32-nat.c: Update.
3237 * mips-tdep.c: Update.
3238 * d10v-tdep.c: Update.
3239 * cris-tdep.c: Update.
3240 * remote-sim.c: Update.
3241 * remote-rdi.c: Update.
3242 * remote-rdp.c: Update.
3245 * blockframe.c: Update.
3246 * x86-64-tdep.c: Update.
3247 * xstormy16-tdep.c: Update.
3248 * sh-tdep.c: Update.
3249 * s390-tdep.c: Update.
3250 * rs6000-tdep.c: Update.
3251 * sparc-tdep.c: Update.
3252 * i386-tdep.c: Update.
3253 * dwarf2cfi.c: Update.
3254 * regcache.c: Update.
3256 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3258 New interix-specific files:
3259 * config/i386/nm-interix.h: New file.
3260 * config/i386/interix.mh: New file.
3261 * config/i386/interix.mt: New file.
3262 * i386-interix-nat.c: New file.
3263 * i386-interix-tdep.c: New file.
3265 2002-11-01 Andrew Cagney <cagney@redhat.com>
3267 * frame.h (deprecated_generic_get_saved_register): Rename
3268 generic_get_saved_register.
3269 * blockframe.c (deprecated_generic_get_saved_register): Update.
3270 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3271 (xstormy16_frame_saved_register): Update.
3272 * sh-tdep.c (sh_gdbarch_init): Update.
3273 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3274 * ia64-tdep.c (ia64_get_saved_register): Update.
3275 * cris-tdep.c (cris_gdbarch_init): Update.
3276 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3277 * arm-tdep.c (arm_gdbarch_init): Update.
3279 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3281 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3283 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3285 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3286 trampolines in sigaction.
3288 2002-10-31 Andrew Cagney <cagney@redhat.com>
3290 * h8300-tdep.c: Include "gdb_assert.h".
3291 (h8300_print_register): Add gdbarch, file and frame parameters.
3292 Use frame_read_unsigned_register to read the register's value.
3293 Use fprintf_filtered to display output.
3294 (h8300_print_registers_info): Replace h8300_do_registers_info.
3295 (h8300_gdbarch_init): Set print_registers_info.
3297 2002-10-31 Andrew Cagney <cagney@redhat.com>
3299 * frame.c (frame_read_unsigned_register): New function.
3300 (frame_read_signed_register): New function.
3301 * frame.h (frame_read_unsigned_register): Declare.
3302 (frame_read_signed_register): Declare.
3304 2002-10-31 Andrew Cagney <cagney@redhat.com>
3306 * h8500-tdep.c (h8500_print_registers_info): New static function,
3307 clone of infcmd.c's default_print_registers_info.
3308 (h8500_do_registers_info): New funtion.
3309 (h8500_print_register_hook): Rename print_register_hook, make
3312 * config/h8500/tm-h8500.h: Update copyright.
3313 (DEPRECATED_DO_REGISTERS_INFO): Define.
3314 (h8500_do_registers_info: Declare.
3315 (PRINT_REGISTER_HOOK): Delete macro.
3316 (print_register_hook): Delete function.
3318 2002-10-31 Andrew Cagney <cagney@redhat.com>
3320 * z8k-tdep.c (z8k_print_register_hook): Make static.
3321 (z8k_print_registers_info): New static function, clone of
3322 infcmd.c's default_print_registers_info.
3323 (z8k_do_registers_info): New function. Wrap
3324 z8k_print_registers_info.
3325 * config/z8k/tm-z8k.h: Update copyright.
3326 (PRINT_REGISTER_HOOK): Delete macro.
3327 (z8k_print_register_hook): Delete declaration.
3328 (DEPRECATED_DO_REGISTERS_INFO): Define.
3329 (z8k_do_registers_info): Declare.
3331 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3333 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3334 as this is already provided by value.h, and was actually causing
3335 a compilation error because of a conflict in parameter type
3336 declaration due to a missing const keyword.
3337 (low_text_segment_addres): Fix a compilation warning.
3339 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3341 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3342 registers without a name.
3343 (mips_linux_cannot_store_register): Don't store registers without
3346 2002-10-28 David Carlton <carlton@math.stanford.edu>
3348 * symtab.c (find_addr_symbol): Delete. (It was already commented
3350 * symtab.h: Delete prototype for find_addr_symbol.
3352 2002-10-26 Andrew Cagney <cagney@redhat.com>
3354 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3356 gdbarch.h, gdbarch.c: Re-generate.
3357 * infcmd.c (default_print_registers_info): Update reference.
3358 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3359 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3360 * sh-tdep.c (sh_gdbarch_init): Ditto.
3361 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3362 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3364 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3366 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3367 cfi_init_extra_frame_info.
3368 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3369 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3371 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3372 target where necessary. Add more comments and remove the ones
3373 that don't provide any useful information.
3375 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3376 deprecated_read_register_dummy with
3377 frame_unwind_unsigned_register.
3379 * i386-tdep.c (i386_extract_struct_value_address): Use
3380 regcache_raw_read_unsigned instead of
3381 regcache_cooked_read_unsigned since we know that the register
3382 we're reading isn't a pseudo register. Rename variable 'val' into
3383 the more descriptive 'addr'.
3385 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3386 (x86_64_push_return_address): Add comment.
3387 (x86_64_pop_frame): Make static.
3388 (examine_argument): Clarify comment.
3389 (x86_64_skip_prologue): Make prolog_expact variable static.
3391 * dwarf2cfi.c: Fix some formatting problems.
3392 (context_cpy, read_encoded_pointer): Clarify comments.
3394 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3395 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3396 i386 target back into x86_64_gdbarch_init. Add some comments and
3397 remove meaningless ones.
3399 2002-10-25 Andrew Cagney <cagney@redhat.com>
3401 * complaints.h (struct deprecated_complaint): Rename `struct
3403 * complaints.c (complain): Update.
3404 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3405 incorrect comment indicating that "symfile.h" was being included
3406 for the `struct complaint' definition.
3407 * remote-vx.c: Update.
3408 * objc-lang.c: Update.
3409 * xcoffread.c: Update.
3411 * mdebugread.c: Update.
3412 * stabsread.c: Update.
3413 * dwarf2read.c: Update.
3414 * dwarfread.c: Update.
3415 * elfread.c: Update.
3416 * coffread.c: Update.
3417 * stabsread.h: Update.
3418 * dbxread.c: Update.
3419 * buildsym.c: Update.
3420 * gdbtypes.c: Update.
3421 * macrotab.c: Update.
3423 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3425 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3426 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3427 (x86_64_init_abi): ...new function.
3429 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3430 * i386v-nat.c: Include "i386-tdep.h".
3432 2002-10-25 Andrew Cagney <cagney@redhat.com>
3434 * gdbtypes.c (address_space_name_to_int): Update.
3435 (address_space_int_to_name): Update.
3436 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3437 multi-arch predicate.
3438 (address_class_name_to_type_flags): Ditto.
3439 * gdbarch.h, gdbarch.c: Re-generate.
3441 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3443 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3445 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3447 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3449 * symtab.h (INIT_SAL): Delete macro.
3451 * symtab.c (init_sal): New function.
3453 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3454 to init_sal function call.
3455 (find_sal_from_funcs_and_line): Ditto.
3456 (all_sals_for_line): Ditto.
3457 * breakpoint.c (create_internal_breakpoint): Ditto.
3458 (create_fork_vfork_event_catchpoint): Ditto.
3459 (create_exec_event_catchpoint): Ditto.
3460 (parse_breakpoint_sals): Ditto.
3461 (watch_command_1): Ditto.
3462 (handle_gnu_4_16_catch_command): Ditto.
3463 (clear_command): Ditto.
3464 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3465 * infcmd.c (run_stack_dummy): Ditto.
3466 * infrun.c (process_event_stop_test): Ditto.
3467 (check_sigtramp2): Ditto.
3468 (step_over_function): Ditto.
3469 * linespec.c (decode_line_2): Ditto.
3470 (decode_line_1): Ditto.
3471 * source.c (line_info): Ditto.
3472 * symtab.c (find_pc_sect_line): Ditto.
3474 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3476 * dwarf2cfi.c (struct context)
3477 (struct context_reg): Moved to dwarf2cfi.h
3478 (context_alloc, frame_state_alloc, context_cpy):
3479 Made extern instead of static, removed prototypes.
3480 * dwarf2cfi.h (struct context)
3481 (struct context_reg): New, moved from dwarf2cfi.c
3482 (context_alloc, frame_state_alloc, context_cpy):
3484 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3485 Changed from static to extern.
3486 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3487 (LINUX_SIGCONTEXT_FP_OFFSET)
3488 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3489 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3490 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3491 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3492 set_gdbarch_*() calls now use x86-64 specific functions
3493 instead of DWARF2 CFI ones.
3494 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3495 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3496 (x86_64_init_extra_frame_info): New prototypes.
3498 2002-10-23 David Carlton <carlton@math.stanford.edu>
3500 * linespec.c: #include "parser-defs.h".
3501 Delete prototype for find_template_name_end.
3502 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3504 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3506 * NEWS: add recent mi fixes.
3507 * varobj.c (struct varobj): Add new "updated" flag.
3508 (new_variable): Default "updated" flag to 0.
3509 (varobj_set_value): Set "updated" flag to 1 if value
3511 (varobj_update): Check varobj "updated" flag before
3512 comparing old and refreshed values. Fix for
3515 2002-10-23 David Carlton <carlton@math.stanford.edu>
3517 * parse.c (parse_exp_1): Use BLOCK_START.
3518 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3520 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3522 2002-10-23 David Carlton <carlton@math.stanford.edu>
3524 * symtab.c: Delete cplusplus_hint.
3525 Delete prototype for find_template_name_end.
3527 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3529 * symtab.h: Update comment.
3531 2002-10-23 Michael Snyder <msnyder@redhat.com>
3533 * printcmd.c (address_info): Restore quotes in output.
3534 * valops.c (value_of_local): Restore quotes in error message.
3536 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3538 * symtab.c (symbol_demangled_name): New function.
3539 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3540 turning most of it into a function.
3541 (symbol_demangled_name): Export.
3543 2002-10-23 Michael Snyder <msnyder@redhat.com>
3545 * valops.c (value_of_local): Restore quotes in error message.
3547 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3549 * symtab.c (symbol_init_language_specific): New function.
3550 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3551 turning most of it into a function.
3552 (symbol_init_language_specific): Export.
3554 2002-10-23 David Carlton <carlton@math.stanford.edu>
3556 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3557 (dwarf_attr_name): Ditto.
3558 (dwarf_type_encoding_name): Ditto.
3559 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3560 (process_die): Handle DW_TAG_namespace,
3561 DW_TAG_imported_declaration, DW_TAG_imported_module.
3562 (read_namespace): New function.
3564 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3566 * configure.in: Define NEW_PROC_API on Interix too.
3567 * configure: Regenerate.
3569 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3571 * configure: Regenerate using the proper version of autoconf.
3573 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3575 * findvar.c (read_var_value): Temporarily disable TLS code, until
3576 complete TLS support is added.
3578 2002-10-21 Jim Blandy <jimb@redhat.com>
3579 Elena Zannoni <ezannoni@redhat.com>
3581 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3582 for thread local storage locations.
3583 (struct symbol): Add objfile field.
3584 (SYMBOL_OBJFILE): Define.
3585 * dwarf2read.c (is_thread_local): New static variable.
3586 (new_symbol): If variable is in thread local fill in address class
3587 and objfile appropriately.
3588 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3590 * printcmd.c (address_info): Print the information for thread
3591 local storage variable.
3592 * findvar.c (read_var_value): In case of thread local variable,
3593 defer to the target vector code to compute address.
3595 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3597 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3598 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3600 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3602 * symtab.h (address_class): Rename
3603 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3604 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3605 * printcmd.c (address_info): Ditto.
3606 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3608 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3610 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3611 DBREG_DRX macro to acces debug registers.
3613 * Makefile.in (i386obsd-tdep.o): New target.
3615 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3616 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3618 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3619 * config/i386/obsd.mt: New file.
3620 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3621 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3622 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3623 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3624 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3625 * i386obsd-tdep.c: New file.
3627 2002-10-19 Adam Fedor <fedor@gnu.org>
3629 * objc-exp.y (name_not_typename): Fix invalid comment.
3631 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3633 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3634 to allocate partial syms and macro byte caches.
3636 2002-10-18 David Carlton <carlton@math.stanford.edu>
3638 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3640 2002-10-18 Adam Fedor <fedor@gnu.org>
3642 * stabsread.c (find_name_end): New function.
3643 (define_symbol): Use it.
3645 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3647 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3648 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3649 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3650 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3652 2002-10-17 David Carlton <carlton@math.stanford.edu>
3654 * symfile.h: Add opaque declaration for struct obstack.
3655 Declare obsavestring to take a const char *.
3656 * symfile.c (obsavestring): Make first argument a const char *.
3658 2002-10-16 Adam Fedor <fedor@gnu.org>
3660 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3661 names when matching breakpoints in current file.
3663 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3665 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3666 (read_tag_pointer_type): Add address class support.
3667 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3668 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3670 * gdbarch.h, gdbarch.c: Regenerate.
3671 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3672 (make_type_with_address_space, recursive_type_dump): Add address
3674 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3675 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3676 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3678 2002-10-16 Klee Dienes <kdienes@apple.com>
3680 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3681 to get the last character of a char[] buffer, not
3682 name[sizeof(vptr_name)-1].
3684 2002-10-14 Adam Fedor <fedor@gnu.org>
3686 * symtab.h: New objc_specific struct.
3687 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3688 (SYMBOL_DEMANGLED_NAME): Likewise.
3690 2002-10-14 Adam Fedor <fedor@gnu.org>
3692 * symfile.c (init_filename_language_table): Add ObjC file extension.
3694 2002-10-14 Adam Fedor <fedor@gnu.org>
3696 * utils.c (puts_filtered_tabular): New function.
3697 (fprintf_symbol_filtered): Get ObjC demangled name.
3698 * defs.h (puts_filtered_tabular): Declared.
3700 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3702 * c-lang.h (c_type_print_varspec_prefix): Delete.
3703 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3704 ``need_post_space'' parameter. Adjust all callers.
3706 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3708 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3709 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3710 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3711 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3713 2002-10-13 Adam Fedor <fedor@gnu.org>
3715 * source.c (print_source_lines): Update comments.
3717 2002-10-13 Adam Fedor <fedor@gnu.org>
3719 * valops.c (value_of_local): New function.
3720 (value_of_this): Use it.
3721 * value.h (value_of_local): Declared.
3723 2002-10-13 Adam Fedor <fedor@gnu.org>
3725 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3726 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3728 2002-10-12 Adam Fedor <fedor@gnu.org>
3730 * language.c (binop_result_type): Add language_objc to case.
3731 (integral_type): Likewise.
3732 (character_type): Likewise.
3733 (string_type): Likewise.
3734 (boolean_type): Likewise.
3735 (structured_type): Likewise.
3736 (binop_type_check): Likewise.
3738 2002-10-11 Adam Fedor <fedor@gnu.org>
3740 * printcmd.c (address_info): Print 'self' for ObjC.
3742 2002-10-11 Adam Fedor <fedor@gnu.org>
3744 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3747 2002-10-11 Adam Fedor <fedor@gnu.org>
3749 * language.h (CAST_IS_CONVERSION): Add language_objc.
3751 2002-10-11 Adam Fedor <fedor@gnu.org>
3753 * defs.h (enum language): Add language_objc.
3755 2002-10-11 Klee Dienes <kdienes@apple.com>
3757 * corefile.c (read_memory_typed_address): New function.
3758 * gdbcore.h (read_memory_typed_address): Add prototype.
3759 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3760 to read a value destined for a CORE_ADDR, not read_memory_integer.
3761 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3762 (f77_get_dynamic_lowerbound): Ditto.
3764 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3766 * utils.c (string_to_core_addr): After turning string into
3767 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3768 which will do necessary sign-extension, etc.
3770 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3772 * c-exp.y (THIS): Delete token and grammar rule.
3773 (yylex): Don't return THIS.
3774 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3775 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3776 * demangle.c (cplus_markers): Update comment. Put '$'
3777 first. Remove CPLUS_MARKER.
3778 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3779 * jv-exp.y (THIS): Delete token and grammar rule.
3780 (yylex): Don't return THIS.
3781 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3782 * objc-exp.y (THIS): Delete token and grammar rule.
3783 (yylex): Don't return THIS.
3784 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3785 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3786 (read_member_functions): Likewise for opname.
3787 (read_tilde_fields): Use is_cplus_marker.
3789 * defs.h (CPLUS_MARKER): Don't define.
3790 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3791 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3792 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3793 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3794 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3796 * config/i386/tm-i386v4.h: Delete file.
3797 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3798 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3799 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3800 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3801 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3802 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3803 * config/i386/i386v4.mt (TM_FILE): Likewise.
3804 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3806 2002-10-10 Marko Mlinar <markom@opencores.org>
3808 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3809 accidentially not commited 2002-10-09
3810 * gdbarch.h, gdbarch.c: Re-generate.
3812 2002-10-09 Marko Mlinar <markom@opencores.org>
3814 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3815 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3816 * gdbarch.h, gdbarch.c: Re-generate.
3818 2002-10-08 Petr Sorfa <petrs@caldera.com>
3820 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3822 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3823 so we can work on more than one compilation unit at a time. This
3824 helps prepare GDB to handle inter-CU die references.
3825 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3826 the code to be defined before struct comp_unit_head.
3827 (comp_unit_head): Added new members - offset, cu_head,
3828 begin_die, next and dwarf2_abbrevs.
3829 (dwarf2_abbrevs): Removed single static var; now member of
3830 struct comp_unit_head.
3831 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3833 (psymtab_to_symtab_1): Changed to work with the new
3834 struct comp_unit_head.
3835 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3836 constructs the dwarf2_abbrevs[] inside the cu_header.
3837 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3838 dwarf2_abbrev table to clean up.
3839 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3840 handling of dwarf2_abbrevs inside the cu_header.
3841 (read_partial_die): Now supports the call to the new
3842 dwarf2_lookup_abbrev.
3843 (read_full_die): Now supports the call to the new
3844 dwarf2_lookup_abbrev.
3846 2002-10-06 Christopher Faylor <cgf@redhat.com>
3848 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3849 insure that shell variables, such as "transformed_name" are propagated
3850 to later shell statements in rule.
3852 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3854 * config/i386/nm-i386sco.h: Add protection against
3855 multiple-inclusion. Include "i386/nm-i386v.h".
3856 (REGISTER_U_ADDR): Remove define.
3857 (i386_register_u_addr): Remove prototype.
3859 2002-10-04 Michael Snyder <msnyder@redhat.com>
3861 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3862 before treating it as a single-step event.
3864 2002-10-03 Adam Fedor <fedor@gnu.org>
3866 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3867 (objc_demangle): Remove assignment in if statements, Replace
3869 (add_msglist): Likewise.
3870 (end_msglist): Likewise.
3871 (complare_selectors): Likewise.
3872 (selectors_info): Likewise.
3873 (compare_classes): Likewise.
3874 (classes_info): Likewise.
3875 (print_object_command): Likewise.
3876 (find_objc_msgcall_submethod): Replace PTR with void *.
3877 * objc-lang.h: Remove check for __STDC__.
3879 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3881 * ui-out.h (ui_out_field_fmt_int): New prototype.
3882 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3883 of field width and alignment.
3884 * stack.c (print_frame_info_base): When printing frame level, use
3885 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3888 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3890 * MAINTAINERS: Add self to Write After Approval list.
3892 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3894 * infcmd.c (interrupt_target_command_wrapper): Delete.
3895 (interrupt_target_command): Make non static.
3896 (nofp_registers_info): Make static.
3897 * stack.c (return_command_wrapper): Delete.
3898 (return_command): Make non static.
3900 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3902 * event-top.c (gdb_setup_readline): New function. Code moved from
3903 _initialize_event_loop().
3904 (_initialize_event_loop): Call gdb_setup_readline().
3906 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3908 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3909 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3910 * gdbarch.h, gdbarch.c: Re-generate.
3912 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3915 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3917 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3918 of fill_in_vptr_fieldno.
3920 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3922 * inferior.h (registers_info, stepi_command, nexti_command,
3923 continue_command, interrupt_target_command): Export from infcmd.c.
3924 * frame.h (args_info, selected_frame_level_changed_hook,
3925 return_command): Export from stack.c.
3926 * v850ice.c (stepi_command, nexti_command, continue_command): use
3927 prototypes from inferior.h.
3928 * tracepoint.c (registers_info, args_info, locals_info): Use
3929 prototypes from frame.h and inferior.h.
3930 * Makefile.in (mi-main.o): Add dependency on frame.h.
3932 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3934 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3935 value in register 3 adjusted by ppc_gp0_regnum.
3937 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3939 2002-10-02 Marko Mlinar <markom@opencores.org>
3941 * MAINTAINERS: Add myself to the Write After Approval list.
3943 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3945 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3946 of the section for the N64 ABI, fixed.
3948 * config/mips/tm-irix6.h: Include solib.h.
3950 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3952 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3955 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3957 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3958 and that "mi0" syntax has been removed.
3960 2002-09-30 David Carlton <carlton@math.stanford.edu>
3962 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3963 * ppc-sysv-tdep.c: #include "gdb_string.h".
3964 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3967 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3969 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3970 "vrsave"'s register number.
3972 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3974 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3975 use frame_unwind_signed_register to obtain the PC.
3976 (mips_frame_chain): Handle a generic dummy frame.
3977 (mips_init_extra_frame_info): When a generic dummy frame, don't
3978 re-compute the frame base.
3979 (mips_pop_frame): Handle generic dummy frames.
3980 (mips_gdbarch_init): When generic dummy frames, set
3981 use_generic_dummy_frames, push_dummy_frame to
3982 generic_push_dummy_frame, pc_in_call_dummy to
3983 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3984 generic_save_dummy_frame_tos.
3986 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3988 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3989 against TOP when TOP was explictly set.
3990 (generic_push_dummy_frame): Set TOP to zero.
3992 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3994 * event-loop.c (start_event_loop): Rename variable 'result' to
3995 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3997 2002-09-30 Keith Seitz <keiths@redhat.com>
3999 * gdb-events.sh (selected_thread_changed): New event.
4000 * gdb-events.c: Regenerated.
4001 * gdb-events.h: Regenerated.
4003 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
4005 * MAINTAINERS: Add self to Write After Approval list.
4007 2002-09-30 Fernando Nasser <fnasser@redhat.com>
4009 * disasm.c: New file.
4010 * disasm.h: New file.
4011 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4012 (compare_lines): Ditto.
4013 (dump_insns): Ditto.
4014 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4016 (do_assembly_only): Ditto.
4017 (do_disassembly): Renamed to gdb_disassembly and moved to
4018 disasm.c. Sdded uiout argument.
4019 * Makefile.in: Add new files. Reorder SFILES list. Update
4020 dependencies. Include libgdb.a later in the insight executable.
4022 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4024 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4025 bfd/elf64-alpha-fbsd.c.
4027 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4029 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4032 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4034 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4036 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4038 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4039 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4040 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4041 (S_msg_sig_post_reply): Ditto.
4043 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
4045 * sh-tdep.c (sh_use_struct_convention): Use definition according
4047 (sh_push_arguments): Store in register with correct endianess.
4048 (sh_default_store_return_value): Ditto.
4049 (sh_gdbarch_init): Set sizeof long double to 8.
4051 2002-09-27 Mark Kettenis <kettenis@gnu.org>
4053 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4054 Fix some whitespace problems.
4056 2002-09-27 David Carlton <carlton@math.stanford.edu>
4058 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4059 (mcore-tdep.o): Ditto.
4060 (ns32k-tdep.o): Ditto.
4061 (ns32knbsd-tdep.o): Ditto.
4063 (vax-tdep.o): Ditto.
4064 * cris-tdep.c: #include "gdb_string.h"
4065 * mcore-tdep.c: Ditto.
4066 * ns32k-tdep.c: Ditto.
4067 * ns32knbsd-tdep.c: Ditto.
4069 * vax-tdep.c: Ditto.
4071 2002-09-27 David Carlton <carlton@math.stanford.edu>
4073 * config/djgpp/fnchange.lst: Add entries for
4074 gdb/testsuite/gdb.c++/m-static files.
4076 2002-09-27 Jim Wilson <wilson@redhat.com>
4078 * MAINTAINERS: Add myself to the Write After Approval list.
4080 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4082 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4085 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4087 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4090 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4092 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4093 (rs6000_struct_return_address): Delete variable.
4094 (rs6000_store_struct_return): Update.
4095 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4096 deprecated_extract_struct_value_address.
4097 (rs6000_frame_align): New function.
4098 (rs6000_gdbarch_init): Set frame_align.
4100 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4102 From Grace Sainsbury <graces@redhat.com>:
4103 * Makefile.in (gdbtk-main.o): New target.
4104 (gdb.o): New target.
4106 (main.o): Update dependencies.
4107 (gdb$(EXEEXT)): Add gdb.o.
4108 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4109 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4110 (SUBDIR_GDBTK_CLEAN): Set.
4111 (install-gdbtk): Install the insight binary.
4112 (uninstall-gdbtk): New target.
4113 (all-gdbtk, clean-gdbtk): New rule.
4114 * top.c (use_windows): Default to zero.
4115 * main.c: Include "main.h".
4117 (struct captured_main_args): Delete.
4118 (gdb_main): New function.
4122 2002-09-25 Andrew Cagney <cagney@redhat.com>
4124 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4125 (frame_map_regnum_to_name): New function.
4126 (frame_map_name_to_regnum): New function.
4127 * frame.h (frame_map_name_to_regnum): Declare.
4128 (frame_map_regnum_to_name): Declare.
4129 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4130 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4131 * parse.c: Do not include "builtin-regs.h".
4132 (target_map_name_to_register): Delete function.
4133 (write_dollar_variable): Use frame_map_name_to_regnum.
4134 * parser-defs.h (target_map_name_to_register): Delete declaration.
4135 * expprint.c: Include "frame.h".
4136 (print_subexp): Use frame_map_regnum_to_name.
4137 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4138 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4140 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4142 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4143 wasn't saved, and the next innermost frame is a dummy, return the
4144 dummy frame's link register.
4146 2002-09-24 Jim Blandy <jimb@redhat.com>
4148 Fix from Paul Breed:
4149 * main.c (captured_main): Add a `break' after the case for 'b'.
4151 2002-09-24 Keith Seitz <keiths@redhat.com>
4153 * varobj.c (c_type_of_child): Use get_target_type instead
4154 of TYPE_TARGET_TYPE.
4156 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4158 * source.c (get_current_or_default_source_symtab_and_line): Remove
4160 (set_default_source_symtab_and_line): New function. Attempts to
4161 determine a source file to list lines from if one is not currently
4163 (get_current_source_symtab_and_line): Initialize sal.pc and
4165 (set_current_source_symtab_and_line): Mark argument as const.
4166 * source.h: Update declarations and comments.
4167 * linespec.c (decode_line_1): Replace call to removed routine above.
4168 * stack.c (print_frame_info_base): Ditto.
4169 * cli/cli-cmds.c (edit_command): Ditto.
4170 (list_command): Ditto.
4172 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4174 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4175 sal.pc and sal.end fields.
4176 (get_current_or_default_source_symtab_and_line): Ditto.
4177 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4178 so we do not cause a new source symtab to be searched for (reverting an
4179 unintentional change from the 2002-09-20 patch).
4180 * scm-lang.c (scm_unpac): Ditto.
4182 2002-09-21 Andrew Cagney <cagney@redhat.com>
4184 * complaints.c (symfile_explanations): Remove new-line from
4185 ``isolated_message''.
4186 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4187 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4189 2002-09-20 Nick Clifton <nickc@redhat.com>
4191 * NEWS: Announce that V850EA ISA is no longer supported.
4192 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4194 2002-09-20 David Carlton <carlton@math.stanford.edu>
4196 * Makefile.in (c-lang.o): Correct dependencies.
4197 (utils.o): Gather dependencies.
4199 * c-lang.c: #include "gdb_string.h"
4201 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4203 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4204 * cli/cli-cmds.c (list_command): New function. Implements the new
4206 (_init_cli_cmds): Add new command definition.
4207 * gdb.1: Document edit command.
4208 * doc/gdb.texinfo: Document edit command.
4210 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4212 * source.c: Make global variables current_source_symtab and
4213 current_source_line static.
4214 (list_command): Moved to cli/cli-cmds.c.
4215 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4216 (get_first_line_listed): New accessor function.
4217 (get_lines_to_list): New accessor function.
4218 (get_current_source_symtab_and_line): New function. Retrieves the
4219 position in the source code that we consider current.
4220 (get_current_or_default_source_symtab_and_line): New function.
4221 Like the above but attempts to determine a default position if one
4222 is not currently defined.
4223 (set_current_source_symtab_and_line): New function. Sets the source
4224 code position considered current and returns the previously set one.
4225 (clear_current_source_symtab_and_line): Reset stored information about
4226 a current source line.
4227 (_initialize_source): Remove registration for the "list" command and
4229 * source.h: Add declarations for the new functions above.
4230 * symtab.h: Remove declarations for the global variables mentioned
4232 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4233 obtain current source line.
4234 * linespec.c (decode_line_1): Ditto.
4235 * macroscope.c (default_macro_scope): Ditto.
4236 * scm-lang.c (scm_unpac): Ditto.
4237 * stack.c (print_frame_info_base): Ditto.
4238 * symfile.c (clear_symtab_users): Ditto.
4239 * symtab.c (decode_line_spec): Ditto.
4240 * cli/cli-cmds.c (list_command): Moved here from source.c.
4241 (ambiguous_line_spec): Moved here from source.c.
4242 (_init_cli_cmds): Add definition for "list" and its alias.
4243 * Makefile.in: Update dependencies.
4245 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4247 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4248 with what gcc thinks is correct.
4250 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4252 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4253 multiple register push instruction.
4255 2002-09-19 Jim Blandy <jimb@redhat.com>
4257 Add support for distinct host and target character sets.
4258 * charset.c, charset.h: New files.
4259 * c-exp.y: #include "charset.h".
4260 (yylex): Convert character and string literals to the target
4261 character set, before returning them as the semantic value of the
4263 * c-lang.c: #include "charset.h".
4264 (c_emit_char): Use charset-specific methods to recognize
4265 characters with backslash escape forms, to decide which characters
4266 to print literally and which to print using numeric escape
4267 sequences, and to convert target characters to host characters
4269 * utils.c: #include "charset.h".
4270 (no_control_char_error): New function.
4271 (parse_escape): Use charset-specific methods to recognize
4272 backslash escapes, parse `control character' notation, and convert
4273 characters from the host character set to the target character set.
4274 * configure.in: Set the default host character set.
4275 Check where to find iconv, and what its argument types might be.
4276 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4277 * Makefile.in (SFILES): List charset.c.
4278 (COMMON_OBS): List charset.o.
4279 (charset.o): New rule.
4280 (charset_h): New header dependency variable.
4281 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4282 (LIBICONV): New variable, set by configure.
4283 (CLIBS): Include $(LIBICONV) here.
4284 * aclocal.m4, config.in, configure: Regenerated.
4286 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4288 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4291 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4293 * gdb_mbuild.sh: New file.
4295 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4297 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4299 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4301 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4302 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4303 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4304 valops.c, value.h: Revert previous change.
4306 2002-09-18 Michael Snyder <msnyder@redhat.com>
4308 Preliminary support for Objective-C:
4309 * defs.h (language_objc): New enum value.
4310 (puts_filtered_tabular): Declaration only, exported from utils.c.
4311 (skip_quoted): Delete, declared in completer.h.
4312 * c-exp.y: Include completer.h.
4315 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4316 New operator enum values.
4317 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4318 * language.c (binop_result_type): Handle language_objc case.
4319 (integral_type, character_type, string_type, boolean_type,
4320 structured_type, binop_type_check): Ditto.
4321 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4322 (struct objc_specific): Add to general_symbol_info.
4323 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4324 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4325 * parser-defs.h (struct objc_class_str): New struct type.
4326 (start_msglist, end_msglist, add_msglist): Declaration only,
4327 exported from objc-lang.c.
4328 * value.h (value_of_local, value_nsstring,
4329 call_function_by_hand_expecting_type): Exported from valops.c.
4330 * valops.c (find_function_addr): Export.
4331 (call_function_by_hand_expecting_type): New function.
4332 (value_of_local): New function.
4333 * symfile.c (init_filename_language_table): Add ".m" extension
4335 * utils.c (puts_filtered_tabular): New function.
4336 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4337 (set/show demangle): Extend help-string to refer to ObjC.
4338 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4339 * stabsread.c (symbol_reference_defined): Objective-C symbols
4340 may contain colons: make allowances when scanning stabs strings
4342 (objc_find_colon): New function.
4343 * printcmd.c (address_info): If language == objc then print
4344 "self" instead of "this".
4345 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4346 OP_NSSTRING, and OP_SELF.
4347 (prefixify_subexp): Ditto.
4348 * source.c (print_source_lines): Mention objc in comment.
4349 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4352 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4354 * complaints.h: Update copyright.
4355 (struct complaints): Declare.
4356 (struct complaint): Make `message' constant.
4357 (internal_complaint): Declare.
4358 (complaint): Declare.
4359 (complaint_root): Delete declaration.
4360 (symfile_complaints): Delete declaration.
4361 (struct complaints): Add opaque declaration.
4362 (clear_complaints): Add a complaints parameter.
4363 * complaints.c: Update copyright.
4364 (enum complaint_series): Define.
4365 (complaint_root): Delete.
4366 (struct complaints): Define.
4367 (complaint_sentinel, symfile_complaint_book): New variables.
4368 (symfile_explanations, symfile_complaints): New variables.
4370 (get_complaints): New function.
4371 (vcomplaint): New function.
4372 (complaint): New function.
4373 (internal_complaint): New function.
4374 (complain): Call vcomplain with symfile_complaint.
4375 (clear_complaints): Rewrite.
4376 (_initialize_complaints): Use add_setshow_command.
4377 * Makefile.in (complaints.o): Update dependencies.
4378 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4379 to call to clear_complaints.
4380 (new_symfile_objfile, reread_symbols): Ditto.
4381 (oldsyms_complaint): Delete.
4382 (empty_symtab_complaint, unknown_option_complaint): Delete.
4383 (free_named_symtabs): Use complaint instead of complain.
4385 2002-09-18 Michael Snyder <msnyder@redhat.com>
4387 Contributed by Apple Computer, Inc. Merged with current sources
4388 by Adam Fedor <fedor@doc.com> [cagney].
4390 * objc-lang.c: First clean-up round: comments, indentation.
4391 * objc-lang.h: Ditto.
4392 * objc-lang.y: Ditto.
4394 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4396 * maint.c (maintenance_internal_error): Print the parameter as the
4398 (maintenance_internal_warning): New function.
4399 (_initialize_maint_cmds): Add command `maint internal-warning'.
4401 * defs.h (internal_warning, internal_vwarning): Declare.
4402 * utils.c (struct internal_problem): Define.
4403 (internal_vproblem): New function.
4404 (internal_warning): New function.
4405 (internal_vwarning): New function.
4406 (internal_warning_problem, internal_error_problem): New variables.
4407 (internal_verror): Just call internal_vproblem.
4409 2002-09-18 Michael Snyder <msnyder@redhat.com>
4411 * objc-lang.c: New file, support for Objective-C.
4412 Preliminary check-in, not yet integrated into gdb.
4413 * objc-lang.h: New file.
4414 * objc-exp.y: New file.
4416 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4418 * infrun.c (signal_stop_update): Convert definition to ISO C.
4419 (signal_print_update): Ditto.
4420 (signal_pass_update): Ditto.
4421 * inflow.c (terminal_save_ours): Ditto.
4423 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4426 * config/djgpp/fnchange.lst: Handle name clashes between
4427 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4430 * i386-linux-tdep.h: Fix tipo.
4432 2002-09-18 Adam Fedor <fedor@gnu.org>
4434 * MAINTAINERS: Add myself to the Write After Approval list.
4436 2002-09-18 Jim Blandy <jimb@redhat.com>
4438 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4439 texthigh and textlow to reader-specific structs caused
4440 objfile_relocate to miss them. This is fixable, but the work that
4441 the change was supposed to prepare GDB for never got done anyway.
4443 2002-09-18 David Carlton <carlton@math.stanford.edu>
4445 * MAINTAINERS: Alphabetize Write After Approval list.
4447 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4450 * values.c (value_static_field): Call read_var_value.
4452 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4454 * valops.c (hand_function_call): Align the initial stack pointer
4455 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4456 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4458 * mips-tdep.c (mips_frame_align): New function.
4459 (mips_gdbarch_init): Set frame_align.
4460 * gdbarch.sh (FRAME_ALIGN): New method.
4461 * gdbarch.h, gdbarch.c: Re-generate.
4463 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4465 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4468 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4470 * NEWS: Mention that MIPS $fp behavior changed.
4471 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4472 reference to FP_REGNUM.
4473 (mipsnbsd_cannot_store_register): Ditto.
4474 * mips-linux-nat.c: Update copyright.
4475 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4476 (mips_linux_cannot_store_register): Ditto.
4477 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4478 * config/mips/tm-mips.h: Update copyright.
4479 (FP_REGNUM): Delete macro.
4480 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4481 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4482 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4483 (mips_r3041_reg_names, mips_r3051_reg_names)
4484 (mips_r3081_reg_names): Replace "fp" with "".
4487 2002-09-17 Theodore A. Roth <troth@verinet.com>
4489 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4490 generic_read_register_dummy() (PR gdb/703).
4491 (avr_push_return_address): #if 0 out unused vars.
4492 (avr_gdbarch_init): Enable use of avr_push_return_address().
4494 2002-09-17 Michael Snyder <msnyder@redhat.com>
4496 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4497 RTE will take care of it.
4499 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4501 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4502 invalid, return SP_REGNUM.
4504 2002-09-17 Michael Snyder <msnyder@redhat.com>
4506 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4507 point registers without sign extension.
4509 2002-09-17 Andrew Cagney <cagney@redhat.com>
4511 * blockframe.c (deprecated_read_register_dummy): Rename
4512 generic_read_register_dummy.
4513 * frame.c (frame_unwind_signed_register): New function.
4514 (frame_unwind_unsigned_register): New function.
4515 * frame.h (frame_unwind_signed_register): Declare.
4516 (frame_unwind_unsigned_register): Declare.
4517 (deprecated_read_register_dummy): Rename
4518 generic_read_register_dummy.
4520 * h8300-tdep.c (h8300_frame_chain): Update.
4521 (h8300_frame_saved_pc): Update.
4522 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4523 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4524 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4525 (s390_frame_chain): Update.
4526 * v850-tdep.c (v850_find_callers_reg): Update.
4527 (v850_frame_saved_pc): Update.
4528 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4529 (m32r_find_callers_reg): Update.
4530 (m32r_frame_saved_pc): Update.
4531 * sh-tdep.c (sh_find_callers_reg): Update.
4532 (sh64_get_saved_pr): Update.
4533 (sh_init_extra_frame_info): Update.
4534 (sh_init_extra_frame_info): Update.
4535 (sh64_init_extra_frame_info): Update.
4536 (sh64_init_extra_frame_info): Update.
4537 * mcore-tdep.c (mcore_find_callers_reg): Update.
4538 (mcore_frame_saved_pc): Update.
4539 (mcore_init_extra_frame_info): Update.
4540 * i386-tdep.c (i386_frame_saved_pc): Update.
4541 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4542 (ia64_init_extra_frame_info): Update.
4543 (ia64_init_extra_frame_info): Update.
4544 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4545 * cris-tdep.c (cris_init_extra_frame_info): Update.
4546 * avr-tdep.c (avr_frame_chain): Update.
4547 (avr_init_extra_frame_info): Update.
4548 (avr_frame_saved_pc): Update.
4549 * arm-tdep.c (arm_find_callers_reg): Update.
4550 (arm_init_extra_frame_info): Update.
4551 (arm_frame_saved_pc): Update.
4553 2002-09-17 Tom Tromey <tromey@redhat.com>
4555 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4558 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4560 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4561 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4563 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4566 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4568 * osfsolib.c: Remove file, replaced by solib-osf.c.
4569 * Makefile.in: Remove compilation rules for osfsolib.c.
4571 2002-09-16 David Carlton <carlton@math.stanford.edu>
4573 * cp-valprint.c (cp_print_class_method): Correct args to
4574 check_stub_method_group.
4576 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4578 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4579 `set architecture'. Unify naming convention of functions.
4580 (h8300_skip_prologue): Improve prologue analysis.
4581 (h8300_push_arguments): Rewritten to more closely match GCC's
4582 bizarre argument-passing behavior, along with the comment describing
4584 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4585 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4586 sim, remote-e7000.c, remote-hms.c and remote.c
4588 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4590 * i386-tdep.c (gdb_print_insn_i386): Removed.
4591 (i386_print_insn): New function.
4592 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4593 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4596 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4598 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4601 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4603 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4604 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4605 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4607 2002-09-13 Christopher Faylor <cgf@redhat.com>
4609 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4611 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4613 * gdbtypes.c (check_stub_method): Make static.
4614 (check_stub_method_group): New function.
4615 * gdbtypes.h: Update prototypes.
4616 * cp-support.c: New file.
4617 * cp-support.h: New file.
4619 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4620 (update_method_name_from_physname): New function.
4621 (read_member_functions): Correct method names for operators
4622 and v3 constructors/destructors. Separate v2 constructors and
4624 * Makefile.in (stabsread.o): Update dependencies.
4625 (SFILES): Add cp-support.c.
4626 (COMMON_OBS): Add cp-support.o.
4627 (cp_support_h, cp-support.o): Add.
4629 * cp-valprint.c (cp_print_class_method): Call
4630 check_stub_method_group instead of check_stub_method. Remove
4632 * p-valprint.c (pascal_object_print_class_method): Likewise.
4633 * valops.c (search_struct_method): Likewise.
4634 (find_method_list, value_struct_elt_for_reference): Likewise.
4636 2002-09-13 Andrew Cagney <cagney@redhat.com>
4638 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4639 * gdbarch.h, gdbarch.c: Regenerate.
4641 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4643 * frame.c (find_saved_register): Delete function.
4644 * frame.h (find_saved_register): Delete declaration.
4647 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4649 * mips-tdep.c (read_next_frame_reg): Re-hack using
4650 frame_register_unwind.
4652 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4654 * mips-tdep.c (mips_get_saved_register): Re-hack using
4655 frame_register_unwind.
4657 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4659 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4660 vector. Will be useful for Interix.
4661 * gdbarch.h, gdbarch.c: Regenerate.
4663 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4664 name of the malloc function by NAME_OF_MALLOC.
4666 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4668 * value.h (find_function_in_inferior): Add const keyword to
4669 one of the parameters. Allows us to invoke this function with
4671 * valops.c (find_function_in_inferior): Likewise.
4673 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4675 * exec.c (xfer_memory): Fix compilation warning with old versions
4677 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4679 2002-09-12 David Carlton <carlton@math.stanford.edu>
4681 * symtab.h: Run through gdb_indent.h.
4682 Add 2002 to Copyright year list.
4684 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4686 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4688 * MAINTAINERS: Add myself to write after approval list.
4690 2002-09-11 J. Brobecker <brobecker@gnat.com>
4692 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4694 2002-09-11 J. Brobecker <brobecker@gnat.com>
4696 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4699 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4701 * procfs.c (do_detach): Clear current signal, not just fault.
4702 Corrects problem with breakpoint trap signal leaking to detached
4705 2002-09-10 Michael Snyder <msnyder@redhat.com>
4707 * buildsym.c (finish_block): Protect against null pointer.
4709 2002-09-10 Andrew Cagney <cagney@redhat.com>
4711 * infcmd.c (default_print_registers_info): Send all output to
4712 ``file'' instead of ``gdb_stdout''.
4714 2002-09-10 Michael Snyder <msnyder@redhat.com>
4716 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4717 LONGEST, and use signed register read (addresses are sign-
4720 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4722 * event-loop.c (gdb_do_one_event): Make public.
4723 * event-loop.h (gdb_do_one_event): Declare.
4725 2002-09-10 Jeff Law <law@redhat.com>
4727 * infttrace.c (child_resume): Simplify and rework to avoid
4730 2002-09-09 Fred Fish <fnf@intrinsity.com>
4732 * printcmd.c (print_scalar_formatted): "len" is the number of
4733 target bytes, NOT the number of target bits.
4735 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4737 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4738 * top.c (init_main): Set rl_terminal_name.
4740 2002-09-08 Aidan Skinner <aidan@velvet.net>
4742 * ada-lang.c (ada_array_bound, ada_type_match,
4743 _initialize_ada_language): Fix K&R definitions.
4744 * ada-tasks.c (get_current_task): Fix K&R definitions.
4745 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4747 2002-09-07 Christopher Faylor <cgf@redhat.com>
4749 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4752 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4754 * i386-tdep.c (i386_register_virtual_type,
4755 i386_register_convertible, i386_register_convert_to_virtual,
4756 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4757 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4758 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4759 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4760 Don't set push_arguments twice.
4762 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4763 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4764 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4765 sigtramp_end to NULL.
4766 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4768 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4770 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4773 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4774 * gdbarch.h, gdbarch.c: Re-generate.
4775 * blockframe.c (find_pc_sect_partial_function): Convert to use
4776 SIGTRAMP_START_P predicate.
4778 2002-09-05 Michael Snyder <msnyder@redhat.com>
4780 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4781 generic_dummy_frame method and old method. Also distinguish
4782 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4783 (arm_extract_return_value): Use new regcache method.
4785 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4786 adjustment that doesn't conform to the ABI.
4787 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4788 saved regcache, not from current regcache.
4790 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4792 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4795 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4797 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4798 if arm_apcs_32 is false.
4800 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4802 GDB 5.3 branch created.
4804 2002-09-03 Theodore A. Roth <troth@verinet.com>
4806 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4807 generic_unwind_get_saved_register.
4809 2002-09-03 David Carlton <carlton@math.stanford.edu>
4811 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4812 argument (PR gdb/653). Update call to smash_to_method_type.
4813 (read_structure_scope): Update call to dwarf2_add_member_fn.
4815 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4817 * x86-64-linux-tdep.c: Include gdb_string.h
4818 * x86-64-linux-nat.c: Ditto.
4820 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4822 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4823 when YYDEBUG is set to 1.
4824 * c-exp.y: Likewise.
4825 * f-exp.y: Likewise.
4826 * jv-exp.y: Likewise.
4827 * m2-exp.y: Likewise.
4828 * p-exp.y: Likewise.
4830 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4832 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4834 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4835 solib_svr4_fetch_link_map_offsets to
4836 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4837 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4838 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4839 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4840 solib-svr4.o, and solib-legacy.o.
4841 * config/i386/tm-nbsd.h: Include solib.h.
4843 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4845 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4846 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4847 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4848 comment noting that this needs its own target configuration.
4849 * config/i386/nbsd.mt: New file.
4850 * config/i386/nbsdaout.mt: Remove.
4851 * config/i386/nbsdelf.mt: Ditto.
4852 * config/i386/tm-nbsdaout.h: Ditto.
4854 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4856 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4857 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4858 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4860 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4861 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4862 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4864 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4866 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4867 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4868 * i386-tdep.h (i386bsd_init_abi): New prototype.
4869 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4870 function declaration.
4871 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4872 for NetBSD-a.out or NetBSD-ELF.
4873 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4874 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4875 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4876 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4878 (i386nbsd_pc_in_sigtramp): New function.
4879 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4880 i386nbsd_pc_in_sigtramp.
4881 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4882 and i386nbsdelf_init_abi OS ABI handlers.
4883 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4884 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4886 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4888 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4889 registers if the target really has them.
4891 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4893 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4896 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4898 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4900 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4901 (alphanbsd_skip_sigtramp_frame): New functions.
4902 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4903 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4904 to alphanbsd_sigcontext_addr.
4906 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4908 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4910 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4911 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4912 nbsd_pc_in_sigtramp.
4913 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4914 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4915 * nbsd-tdep.c: Include gdb_string.h.
4916 (nbsd_pc_in_sigtramp): New function.
4917 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4918 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4919 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4920 ppcnbsd_pc_in_sigtramp.
4921 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4922 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4923 shnbsd_pc_in_sigtramp.
4924 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4925 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4926 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4928 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4930 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4931 watchpoints to NULL.
4932 (insert_breakpoints): set val field of watchpoints if NULL.
4935 2002-08-29 Jim Blandy <jimb@redhat.com>
4937 * symtab.c (lookup_symbol_aux): In the cases where we find a
4938 minimal symbol of an appropriate name and use its address to
4939 select a symtab to read and search, use `name' (as passed to us)
4940 as the demangled name when searching the symtab's global and
4941 static blocks, not the minsym's name.
4943 2002-08-29 Keith Seitz <keiths@redhat.com>
4945 * stack.c (print_frame_info_base): Always set current_source_symtab
4946 and current_source_line.
4948 2002-08-29 Donn Terry <donnte@microsoft.com>
4950 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4952 2002-08-28 Keith Seitz <keiths@redhat.com>
4954 * stack.c (select_frame): Add FIXME concerning selected-frame
4956 (select_frame_command): Send selected-frame-level-changed
4957 event notification, but only if the level actually changed.
4958 (up_silently_base): Add selected-frame-level-changed event
4960 (down_silently_base): Likewise.
4962 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4964 * Makefile.in: Update dependencies for all gdb/*.c files.
4966 2002-08-27 Tom Tromey <tromey@redhat.com>
4968 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4969 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4970 Update dependencies.
4971 * i387-tdep.c: Include gdb_string.h.
4972 * osabi.c: Likewise.
4973 * i386-linux-nat.c: Likewise.
4974 * lin-lwp.c: Likewise.
4975 * ax-gdb.c: Likewise.
4976 * signals/signals.c: Likewise.
4977 * jv-valprint.c: Likewise.
4978 * p-lang.c: Likewise.
4979 * c-valprint.c: Likewise.
4980 * cp-abi.c: Likewise.
4982 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4984 * cli/cli-script.h (copy_command_lines): Export.
4985 * breakpoint.c: Include cli/cli-script.h.
4986 * Makefile.in (breakpoint.o): Update dependencies.
4988 2002-08-26 Michael Snyder <msnyder@redhat.com>
4990 * breakpoint.c (insert_breakpoints): Protect all references
4991 to 'process_warning'. Shorten long lines.
4993 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4995 * cli/cli-script.c (copy_command_lines): New function.
4996 * defs.h (copy_command_lines): Export.
4997 * testsuite/gdb.base/commands.exp: New tests for commands
4998 attached to a temporary breakpoint, and for commands that
4999 delete the breakpoint they are attached to.
5001 2002-08-26 Michael Snyder <msnyder@redhat.com>
5003 * breakpoint.c (bpstat_stop_status): Instead of copying the
5004 pointer to the breakpoint commands struct, make a new copy
5005 of the struct and point to that.
5006 (bpstat_clear): Free the commands struct.
5007 (bpstat_clear_actions): Free the commands struct.
5008 (bpstat_do_actions): Free the command actions. Also execute
5009 the local cleanups, instead of deleting them.
5010 (delete_breakpoint): Leave the commands field of the bpstat
5011 chain alone -- it will be freed later.
5013 2002-08-26 Kevin Buettner <kevinb@redhat.com>
5015 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5016 deleted in 2002-08-20 commit. This function is still used by
5019 2002-08-26 Keith Seitz <keiths@redhat.com>
5021 * gdb-events.sh: Add selected-frame-level-changed event.
5022 * gdb-events.c: Regenerated.
5023 * gdb-events.h: Regenerated.
5025 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
5028 * inflow.c (terminal_save_ours): New function to save terminal
5030 * inferior.h (terminal_save_ours): Declare.
5031 * target.c (debug_to_terminal_save_ours): New function.
5032 (cleanup_target): Defaults to_terminal_save_ours.
5033 (update_current_target): Inherit to_terminal_save_ours.
5034 (setup_target_debug): Set to_terminal_save_ours.
5035 * target.h (target_terminal_save_ours): New to save terminal settings.
5036 (target_ops): New member to_terminal_save_ours.
5037 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5038 * hpux-thread.c (init_hpux_thread_ops): Likewise.
5039 * inftarg.c (init_child_ops): Likewise.
5040 * m3-nat.c (init_m3_ops): Likewise.
5041 * procfs.c (init_procfs_ops): Likewise.
5042 * wince.c (init_child_ops): Likewise.
5043 * win32-nat.c (init_child_ops): Likewise.
5044 * sol-thread.c (init_sol_thread_ops): Likewise.
5046 2002-08-26 Mark Kettenis <kettenis@gnu.org>
5048 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5049 use regcache_* functions.
5050 (i386_gdbarch_init): Set store_return_value instead of
5051 deprecated_store_return_value.
5053 * regcache.c (regcache_raw_write_signed,
5054 regcache_raw_write_unsigned): New functions.
5055 * regcache.h (regcache_raw_write_signed,
5056 regcache_raw_write_unsigned): New prototypes.
5058 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5060 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5061 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5062 source file dependencies. Cleanup corresponding generator rules.
5064 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5066 * regcache.h (register_offset_hack): Declare.
5067 (regcache_cooked_read_using_offset_hack): Declare.
5068 (regcache_cooked_write_using_offset_hack): Declare.
5070 * regcache.c (register_offset_hack): New function.
5071 (regcache_cooked_read_using_offset_hack): New function.
5072 (regcache_cooked_write_using_offset_hack): New function.
5073 (regcache_dump): Check that the registers, according to their
5074 offset, are packed hard against each other.
5075 (cooked_xfer_using_offset_hack): New function.
5077 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5079 * regcache.c (struct regcache_descr): Add field register_type.
5080 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5082 (init_regcache_descr): Initialize register_type. Pass the descr
5083 to init_legacy_regcache_descr. Use register_type instead of
5084 REGISTER_VIRTUAL_TYPE.
5085 (register_type): New function.
5086 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5087 * regcache.h (register_type): Declare.
5089 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5091 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5092 instead of deprecated_store_return_value. Fix fallout from
5093 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5095 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5097 * regcache.c (max_register_size): New function.
5098 (init_legacy_regcache_descr): Ensure that max_register_size is
5099 large enough for REGISTER_VIRTUAL_SIZE.
5100 * regcache.h (max_register_size): Declare.
5102 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5104 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5106 (e500_extract_return_value): Change type of valbuf pointer to
5109 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5111 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5114 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5115 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5116 long long) to prevent compiler warning on 64-bit systems.
5118 2002-08-23 Andrew Cagney <cagney@redhat.com>
5120 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5121 (DEPRECATED_STORE_RETURN_VALUE): New method.
5122 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5123 * gdbarch.h, gdbarch.c: Re-generate.
5125 * values.c (set_return_value): Pass current_regcache to
5127 * arch-utils.h (legacy_store_return_value): Declare.
5128 * arch-utils.c (legacy_store_return_value): New function.
5129 (legacy_extract_return_value): Update parameters.
5131 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5133 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5134 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5135 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5136 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5137 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5138 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5139 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5140 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5141 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5142 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5145 * i386-tdep.c (i386_extract_return_value): Update.
5146 * arch-utils.c (legacy_extract_return_value): Update.
5147 * frv-tdep.c (frv_gdbarch_init): Update.
5148 * cris-tdep.c (cris_gdbarch_init): Update.
5149 * d10v-tdep.c (d10v_gdbarch_init): Update.
5150 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5151 * m68k-tdep.c (m68k_gdbarch_init): Update.
5152 * mcore-tdep.c (mcore_gdbarch_init): Update.
5153 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5154 * s390-tdep.c (s390_gdbarch_init): Update.
5155 * sparc-tdep.c (sparc_gdbarch_init): Update.
5156 * sh-tdep.c (sh_gdbarch_init): Update.
5157 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5158 * v850-tdep.c (v850_gdbarch_init): Update.
5159 * avr-tdep.c (avr_gdbarch_init): Update.
5160 * ia64-tdep.c (ia64_gdbarch_init): Update.
5161 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5162 * vax-tdep.c (vax_gdbarch_init): Update.
5163 * alpha-tdep.c (alpha_gdbarch_init): Update.
5164 * arm-tdep.c (arm_gdbarch_init): Update.
5165 * mips-tdep.c (mips_gdbarch_init): Update.
5166 * i386-tdep.c (i386_gdbarch_init): Update.
5168 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5170 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5171 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5173 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5175 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5178 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5180 * infrun.c (handle_inferior_event): Move a comment outside of a
5181 function call, in order to avoid indent reformatting this part
5182 of the code in an unreadable way.
5184 2002-08-23 Grace Sainsbury <graces@redhat.com>
5186 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5187 when breakpoints fail. Move general breakpoint error messages to
5189 * breakpoint.c (insert_breakpoints): Change warnings when
5190 breakpoints are nto inserted to specify the type. Remove call to
5191 memory_error when hardware breakpoints can't be inserted. Remove
5192 multiple calls to warning so all messages are sent to the user at
5194 (delete_breakpoints): Make insert error messsages more explicit.
5196 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5198 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5199 gdbserver/ChangeLog.
5201 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5203 * i386-tdep.c: Include "objfiles.h".
5204 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5205 skip_trampoline_code.
5206 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5207 (CPLUS_MARKER): Define to '.'.
5209 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5211 (linux_corefile_thread_callback): Increase args->num_notes.
5212 (linux_make_note_section): Initialize thread_args.num_notes, and
5213 use it to determine whether notes for any threads were created.
5215 2002-08-23 Donn Terry <donnte@microsoft.com>
5217 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5218 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5220 (write_with_trace): Conditionalize out the switch branch handling
5221 PCSHOLD if the corresponding macro is not defined. Likewise for
5222 PRSABORT and PRSTOP.
5223 This change will be needed by the Interix port.
5225 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5227 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5228 write_register wherever possible instead of manipulating the
5229 register bytes directly.
5230 Assign VALUE_CONTENTS to a variable and use that.
5231 The GPR numbers are now dependent on the architecture.
5233 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5235 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5237 (skip_prologue): Add support for BookE/e500 instructions.
5238 (e500_extract_return_value): New function.
5239 (frame_get_saved_regs): Add support for saving ev registers and
5241 (e500_store_return_value): New function.
5242 (rs6000_gdbarch_init): Move up default intializations of
5243 deprecated_extract_return_value and store_return_value. Overwrite
5244 init of store_return_value with e500 specific version.
5245 Set extract_return_value for e500.
5247 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5249 * blockframe.c (generic_call_dummy_register_unwind): Use
5250 regcache_cooked_read to catch cases in which the variable is
5251 stored in a pseudo register.
5253 2002-08-22 Andrew Cagney <cagney@redhat.com>
5255 * NEWS: Mention that the i960 has been made obsolete.
5256 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5258 (remote-nrom.o): Obsolete target.
5259 (remote-nindy.o, i960-tdep.o): Ditto.
5260 * remote-nrom.c: Make file obsolete.
5261 * remote-nindy.c, remote-vx960.c: Ditto.
5262 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5263 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5264 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5265 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5266 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5267 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5268 i960-*-vxworks* obsolete.
5269 * MAINTAINERS: Note that the i960 is obsolete.
5271 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5273 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5274 detach to allow reinitialization.
5276 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5278 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5281 2002-08-22 Jim Blandy <jimb@redhat.com>
5283 * coffread.c (coff_symfile_read): Don't try to read the line
5284 number table from disk if the image file doesn't have a symbol
5285 table; we'll never actually look at the info anyway, and Windows
5286 ships DLL's with bogus file offsets for the line number data.
5288 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5290 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5293 2002-08-21 Michael Snyder <msnyder@redhat.com>
5295 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5296 (MSYMBOL_SIZE): Replace macro with function.
5297 (DEFAULT_MIPS_TYPE): Delete unused macro.
5298 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5299 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5301 2002-08-21 Jim Blandy <jimb@redhat.com>
5303 * valops.c (value_cast): Simplify and correct logic for doing a
5304 static cast from a pointer to a base class to a pointer to a
5307 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5309 * infcmd.c (default_print_registers_info): Replace
5311 (registers_info): Use gdbarch_print_registers_info instead of
5313 * inferior.h (default_print_registers_info): Replace
5315 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5316 (DO_REGISTERS_INFO): Change to a predicate function.
5317 * gdbarch.h, gdbarch.c: Regenerate.
5319 2002-08-21 Keith Seitz <keiths@redhat.com>
5321 * gdb-events.sh: Add target-changed event.
5322 * gdb-events.c: Regenerated.
5323 * gdb-events.c: Regenerated.
5324 * valops.c (value_assign): Add target-changed event notification
5325 to inlval_register, lval_memory, and lval_reg_frame_relative.
5327 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5329 * NEWS: Add an entry regarding the improvement of the next/step
5330 operation on Alpha Tru64 multi-processor machines.
5332 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5334 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5336 * Makefile.in: Update all _h macro definitions.
5337 * Makefile.in (install-gdbtk): Move to install section.
5338 (rdi-share/libangsd.a): Move to end of file.
5340 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5342 * frame.c (frame_register_unwind): When a register, set addrp to
5343 the register's byte.
5345 2002-08-20 Michael Snyder <msnyder@redhat.com>
5347 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5348 used locally, so move them from the target machine header to here.
5349 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5350 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5352 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5354 2002-08-20 Andrew Cagney <cagney@redhat.com>
5356 * NEWS: Mention that the Apollo line was made obsolete.
5357 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5358 m68*-hp-hpux* obsolete.
5359 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5360 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5361 * buildsym.c (make_blockvector): Make static.
5362 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5363 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5364 (ALLDEPFILES): Remove dstread.c.
5365 (dstread.o): Obsolete make rule.
5366 * dstread.c: Makefile obsolete.
5368 * config/m68k/hp300hpux.mt: Ditto.
5369 * config/m68k/hp300hpux.mh: Ditto.
5370 * config/m68k/hp300bsd.mt: Ditto.
5371 * config/m68k/hp300bsd.mh: Ditto.
5372 * config/m68k/apollo68b.mt: Ditto.
5373 * config/m68k/apollo68v.mh: Ditto.
5374 * config/m68k/apollo68b.mh: Ditto.
5376 2002-08-20 Michael Snyder <msnyder@redhat.com>
5378 * mips-tdep.c (mips_in_return_stub): Make static.
5379 (mips_gdbarch_init): Set in_solib_return_trampoline.
5380 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5382 2002-08-20 Michael Snyder <msnyder@redhat.com>
5384 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5385 * gdbarch.c, gdbarch.h: Regenerate.
5386 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5388 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5390 2002-08-20 Michael Snyder <msnyder@redhat.com>
5392 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5393 (mips_gdbarch_init): Set skip_trampoline_code,
5394 in_solib_call_trampoline.
5395 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5396 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5398 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5400 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5402 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5403 vector type for ev registers.
5404 (e500_pseudo_register_read): New function.
5405 (e500_pseudo_register_write): New function.
5406 (e500_dwarf2_reg_to_regnum): New function.
5407 (PPC_UISA_NOFP_SPRS): New macro.
5408 (PPC_EV_REGS): New macro.
5409 (PPC_GPRS_PSEUDO_REGS): New macro.
5410 (registers_e500): New register set for e500.
5411 (variants): Add e500 variant.
5412 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5413 before setting architectural dependent variations. Initialize ev
5414 registers numbers. Add case for e500 architecture. Set the
5415 number of pseudo registers.
5417 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5419 * rs6000-tdep.c: Clean up comments.
5421 2002-08-20 Andrew Cagney <cagney@redhat.com>
5423 * h8300-tdep.c: Re-indent file.
5425 2002-08-20 Jim Blandy <jimb@redhat.com>
5427 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5430 2002-08-20 Keith Seitz <keiths@redhat.com>
5432 * breakpoints.c (watch_command_1): Use internal breakpoint
5433 when setting a watchpoint_scope breakpoint.
5435 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5437 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5438 (build_builtin_type_vec64i): Ditto.
5439 (build_builtin_type_vec128): Ditto.
5440 (build_builtin_type_vec128i): Ditto.
5442 2002-08-19 Michael Snyder <msnyder@redhat.com>
5444 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5445 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5446 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5447 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5448 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5449 CALL_DUMMY_ADDRESS): Delete.
5450 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5451 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5452 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5453 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5454 push_return_address.
5455 (mips_register_raw_size, mips_eabi_use_struct_convention,
5456 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5457 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5458 mips_init_extra_frame_info, mips_eabi_push_arguments,
5459 mips_n32n64_push_arguments, mips_push_return_address,
5460 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5461 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5463 2002-08-19 Michael Snyder <msnyder@redhat.com>
5465 * mips-tdep.c (mips_frame_num_args): New function.
5466 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5467 frame_saved_pc, frame_args_address, frame_locals_address,
5468 frame_num_args, and frame_args_skip.
5469 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5470 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5471 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5472 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5474 2002-08-20 Michael Snyder <msnyder@redhat.com>
5476 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5477 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5478 * mips-tdep.c (mips_store_struct_return): New function.
5479 (mips_extract_struct_value_address): New function.
5480 (mips_gdbarch_init): Set store_struct_return and
5481 extract_struct_value_address.
5483 2002-08-20 David Carlton <carlton@math.stanford.edu>
5485 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5486 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5487 (read_file_scope): Check that line_header is nonzero before
5488 decoding macro information.
5490 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5492 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5493 flag the general-purpose registers as floating-point on targets
5494 that don't support the floating-point registers.
5496 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5498 * rs6000-tdep.c (altivec_register_p): Delete.
5499 (rs6000_do_altivec_registers): Delete.
5500 (rs6000_altivec_registers_info): Delete.
5501 (rs6000_do_registers_info): Delete.
5502 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5503 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5505 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5507 * infcmd.c (do_registers_info): Print vector registers in hex
5509 (print_vector_info): Check that printing registers
5511 (print_float_info): Ditto.
5513 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5515 * mips-tdep.c (mips_gdbarch_init): Update.
5516 (mips_o32_extract_return_value): Rewrite.
5517 (mips_o32_store_return_value): Rewrite.
5518 (mips_o32_xfer_return_value): New function.
5519 (mips_xfer_register): Tweak debug print message. Allow for
5520 buf_offset when dumping the value transfered.
5522 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5524 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5525 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5526 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5527 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5528 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5530 2002-08-14 Michael Snyder <msnyder@redhat.com>
5532 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5534 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5536 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5538 (P): New macro to define a register as a pseudo register.
5539 (R, R4, R8, R16, FR32, R64, R0): Updated.
5540 (struct variant): Add new fields for number of pseudo registers
5541 and number of total registers.
5542 (tot_num_registers): New macro replacing....
5543 (num_registers): ...deleted macro.
5544 (num_registers): New function.
5545 (num_pseudo_registers): New function.
5546 (variants): Update all variants to intialize new fields correctly.
5547 Postpone initialization of number of pseudo regs and real regs.
5548 (init_variants): New function.
5549 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5552 2002-08-19 David Carlton <carlton@math.stanford.edu>
5554 * valops.c (search_struct_field): Change error message to treat
5555 return value of 0 from value_static_field as meaning that field is
5557 (value_struct_elt_for_reference): Ditto.
5558 * values.c (value_static_field): Treat an unresolved location the
5559 same as a nonexistent symbol. Fix PR gdb/635.
5560 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5561 enclosed. Fix PR gdb/574.
5562 * MAINTAINERS: Add self to Write After Approval list.
5564 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5566 * mips-tdep.c (mips_xfer_register): New function.
5567 (mips_n32n64_extract_return_value): Rewrite.
5568 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5569 instead of deprecated_extract_return_value.
5571 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5573 * rs6000-tdep.c (TDEP): Delete macro.
5574 (branch_dest): Replace use of TDEP macro with its body.
5575 (rs6000_pop_frame): Ditto.
5576 (rs6000_push_arguments): Ditto.
5577 (rs6000_skip_trampoline_code): Ditto.
5578 (rs6000_frame_saved_pc): Ditto.
5579 (rs6000_frame_chain): Ditto.
5580 (rs6000_register_name): Ditto.
5581 (rs6000_register_byte): Ditto.
5582 (rs6000_register_raw_size): Ditto.
5583 (rs6000_register_virtual_type): Ditto.
5584 (rs6000_register_convertible): Ditto.
5585 (rs6000_convert_from_func_ptr_addr): Ditto.
5587 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5589 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5591 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5592 MIPS_LINUX_JB_ELEMENT_SIZE.
5593 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5594 for MAX_REGISTER_RAW_SIZE arrays.
5595 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5596 MIPS_LINUX_JB_ELEMENT_SIZE.
5598 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5600 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5602 2002-08-19 Aidan Skinner <aidan@velvet.net>
5604 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5605 ada-valprint.c ada-tasks.c.
5606 (YYFILES): Add ada-exp.y.
5607 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5608 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5609 (ada-exp.tab.o): New target.
5611 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5613 * regcache.c (regcache_xfer_part): New function.
5614 (regcache_raw_read_part): New function.
5615 (regcache_raw_write_part): New function.
5616 (regcache_cooked_read_part): New function.
5617 (regcache_cooked_write_part): New function.
5618 * regcache.h (regcache_raw_read_part): Declare.
5619 (regcache_raw_write_part): Declare.
5620 (regcache_cooked_read_part): Declare.
5621 (regcache_cooked_write_part): Declare.
5623 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5625 * remote.c (remote_open_1): Add async_p.
5626 (remote_async_open_1): Delete.
5627 (open_remote_target): Delete.
5628 (remote_open, extended_remote_open): Update calls to remote_open_1.
5629 (remote_async_open, extended_remote_async_open): Call
5630 remote_open_1 instead of remote_async_open_1.
5632 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5634 * blockframe.c: Fix a few coding standard violations.
5636 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5638 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5640 * config/i386/tm-i386sco5.h: ... here. File removed.
5641 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5643 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5644 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5645 (TM_FILE): Set to tm-i386.h.
5646 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5647 * config/i386/tm-i386v.h: Remove file.
5648 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5649 instead of "i386/tm-i386v.h".
5650 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5651 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5653 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5654 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5657 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5659 * config/i386/nm-i386v.h: Add protection against
5661 (i386_register_u_addr): Remove prototype.
5662 (register_u_addr): New prototype.
5663 (REGISTER_U_ADDR): Redefine accordingly.
5664 * i386v-nat.c: Improve several comments.
5665 (i386_register_u_addr): Change signature and rename to
5666 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5669 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5671 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5672 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5673 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5674 deprecated_extract_return_value.
5675 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5676 rename mips_o32o64_push_arguments.
5677 (mips_gdbarch_init): Update.
5678 (mips_extract_return_value): Delete.
5679 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5680 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5681 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5682 (mips_n32n64_extract_return_value): Clone
5683 mips_extract_return_value.
5684 (mips_store_return_value): Delete.
5685 (mips_o32_store_return_value): Clone mips_store_return_value.
5686 (mips_o64_store_return_value): Clone mips_store_return_value.
5687 (mips_eabi_store_return_value): Clone mips_store_return_value.
5688 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5690 2002-08-18 Aidan Skinner <aidan@velvet.net>
5692 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5693 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5695 2002-08-18 Aidan Skinner <aidan@velvet.net>
5697 * ada-lang.c: Run through gdb_indent.sh.
5698 * ada-lang.h: Run through gdb_indent.sh.
5699 * ada-tasks.c: Run through gdb_indent.sh.
5700 * ada-typeprint.c: Run through gdb_indent.sh.
5701 * ada-valprint.c: Run through gdb_indent.sh.
5703 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5705 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5708 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5710 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5712 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5713 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5715 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5716 write_register_gen instead of write_register_bytes.
5718 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5719 i[3456]-*-osf1mk* configurations have been made obsolete.
5720 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5721 i[3456]86-*-osf1mk* hosts obsolete.
5722 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5724 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5725 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5726 config/i386/i386m3.mt, config/i386/nm-m3.h,
5727 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5728 config/i386/i386mk.mh, config/i386/i386mk.mt,
5729 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5731 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5732 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5733 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5735 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5737 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5738 (hppa_value_returned_from_stack): Declare.
5739 (hppa_extract_return_value): Declare.
5740 * config/pa/hppa.mt: New file.
5741 * configure.tgt: Recognize hppa*-*-*.
5742 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5744 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5746 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5749 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5751 * top.c (gdb_rl_operate_and_get_next): Make sure
5752 operate-and-get-next functions correctly even when the history
5753 list is completely filled.
5755 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5757 * MAINTAINERS (Target Instruction Set Architectures): Rename
5758 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5759 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5760 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5761 already listed under Host/Native.
5763 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5764 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5767 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5769 * config/ia64/ia64.mt: New file.
5770 * config/alpha/alpha.mt: New file.
5771 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5772 ia64-linux-gnu. Mention that ia64-elf is broken.
5773 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5775 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5777 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5778 generic_func_frame_valid instead of func_frame_valid.
5780 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5782 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5783 procfs appears to be broken when debugging on multi-processor
5784 machines. So enable software single stepping in order to avoid
5785 using the procfs interface to do next/step operations, using
5786 internal breakpoints instead.
5788 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5789 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5790 make this pc address equal to the value it would have if the
5791 system stepping capability was used. Also set a new flag used
5792 to ensure that we don't readjust the PC one more time later.
5794 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5795 address by DECR_PC_AFTER_BREAK when software single step is
5796 in use for this architecture, as this has already been taken
5797 care of in handle_inferior_event().
5799 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5801 * infrun.c (handle_inferior_event): Minor reformatting, to make
5802 a rather long condition expression easier to read.
5804 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5806 * Makefile.in (gdbtk.o): Move to end of file.
5807 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5808 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5809 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5810 (gdbtk-wrapper.o, gdbres.o): Ditto.
5812 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5814 * Makefile.in (copying.o): Separate out compile rule.
5815 (hpux-thread.o, procfs.o, signals.o): Ditto.
5816 (v850ice.o, z8k-tdep.o): Ditto.
5817 (tui-file.o): Move to TUI section.
5818 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5819 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5821 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5823 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5824 skip_trampoline_code, for better namespace-proofing.
5826 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5828 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5830 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5832 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5834 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5835 signal, check whether we hit a breakpoint before checking for a
5836 single step breakpoint. Otherwise, GDB fails to notice that a
5837 breakpoint has been hit when stepping onto a breakpoint.
5839 2002-08-16 Keith Seitz <keiths@redhat.com>
5841 * gdb-events.sh (clear_gdb_event_hooks): New function.
5842 * gdb-events.c: Regenerate.
5843 * gdb-events.h: Regenerate.
5845 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5847 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5848 not_a_sw_breakpoint.
5849 * breakpoint.h (bpstat_stop_status): Add parameter names.
5851 2002-08-16 Grace Sainsbury <graces@redhat.com>
5853 * remote.c (remote_insert_hw_breakpoint)
5854 (remote_remove_hw_breakpoint): Fix calculation of length field
5857 2002-08-15 Michael Snyder <msnyder@redhat.com>
5859 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5860 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5861 (supply_fpregset): Ditto.
5863 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5864 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5865 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5866 (TARGET_READ_SP): Delete.
5867 (DO_REGISTERS_INFO): Delete.
5868 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5870 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5871 from macros to functions.
5873 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5874 (mips_register_convertible, mips_register_convert_to_virtual,
5875 mips_register_convert_to_raw): Make static.
5876 (mips_read_sp): New function.
5877 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5878 (mips_do_registers_info): Make static.
5879 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5880 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5881 (mips_register_convert_from_type, mips_register_convert_to_type):
5883 (mips_gdbarch_init): Set up function_start_offset,
5884 register_virtual_size, pc_in_sigtramp.
5886 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5888 * infcmd.c (vector_info): New function.
5889 (_initialize_infcmd): Add command "info vector".
5890 (print_vector_info): New function.
5892 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5893 * gdbarch.h, gdbarch.c: Regenerate.
5895 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5897 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5898 ``print_all''. Only print vector registers when ``print_all''.
5900 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5902 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5903 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5905 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5906 Add `args' parameter.
5907 * gdbarch.h, gdbarch.c: Regenerate.
5909 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5911 * infcmd.c (float_info): Call print_float_info.
5912 (print_float_info): New function. By default, print the
5913 floating-point registers.
5915 * arch-utils.h (default_print_float_info): Delete declaration.
5916 * arch-utils.c (default_print_float_info): Delete function.
5918 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5920 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5923 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5926 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5927 * configure.host: Make i[3456]86-*-aix host obsolete.
5928 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5929 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5930 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5931 config/i386/xm-i386aix.h: Make files obsolete.
5932 * i386aix-nat.c: Make file obsolete.
5933 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5934 (i386aix-nat.o): Make target obsolete.
5936 * config/i386/nm-gnu.h: Removed.
5937 * config/i386/nm-i386gnu.h: New file.
5938 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5939 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5941 * config/i386/tm-i386gnu.h: ... here. Removed.
5942 * config/i386/xm-i386gnu.h: Removed.
5943 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5944 (NAT_FILE): Set to nm-i386gnu.h.
5945 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5946 * i386-tdep.c: New file.
5947 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5948 (i386gnu-tdep.o): Specify dependencies.
5950 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5952 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5953 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5954 Adjust a few comments to reflect reality a bit closer.
5955 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5956 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5957 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5958 target_insert_watchpoint, target_remove_watchpoint):
5960 * config/i386/nm-i386sco5.h: ... here.
5961 (kernel_u_size): Add prototype. Improve a few comments and add
5962 protection against multiple inclusion.
5964 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5967 * uw-thread.c (SP_ARG0): Define if not already defined.
5968 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5970 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5972 * config/i386/tm-i386.h: Don't include "regcache.h".
5974 * i387-tdep.h (i387_print_float_info): New prototype.
5975 * i387-tdep.c (print_i387_value, print_i387_ext,
5976 print_i387_status_word, print_i387_control_word): Add `struct
5977 ui_file *' argument and use it for output.
5978 (i387_print_float_info): Renamed from i387_float_info. Add
5979 `struct gdbarch *' and `struct ui_file *' arguments and use the
5981 * i386-tdep.c: Include "i387-tdep.h".
5982 (i386_gdbarch_init): Set print_float_info.
5983 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5984 (FLOAT_INFO): Remove define.
5986 2002-08-13 Michael Snyder <msnyder@redhat.com>
5988 * mips-tdep.c (mips_push_arguments): Rename to
5989 mips_eabi_push_arguments, and tune for EABI.
5990 (MIPS_REGS_HAVE_HOME_P): Delete.
5991 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5992 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5993 Delete references to mips_regs_have_home_p.
5995 2002-08-14 Keith Seitz <keiths@redhat.com>
5997 * Makefile.in (install-gdbtk): Create insight plugin directory.
5998 Install plugins.tcl file.
6000 2002-08-14 Keith Seitz <keiths@redhat.com>
6002 * configure.in: Move SUBDIRS to near top of the file so that
6003 --enable options may add things to it.
6004 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6005 * configure: Regenerate.
6007 2002-08-13 Michael Snyder <msnyder@redhat.com>
6009 * mips-tdep.c (mips_o32o64_push_arguments): New function,
6010 cloned from mips_push_arguments, tuned for o32/o64 ABI.
6011 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6013 2002-08-13 Andrew Cagney <ac131313@redhat.com>
6015 * vax-tdep.c (vax_get_saved_register): Delete function.
6016 (vax_gdbarch_init): Update.
6017 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6018 (ns32k_gdbarch_init): Update.
6019 * alpha-tdep.c (alpha_get_saved_register): Delete function.
6020 (alpha_gdbarch_init): Update.
6022 2002-08-13 Andrew Cagney <cagney@redhat.com>
6024 * regcache.c (init_regcache_descr): Overallocate the
6025 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6026 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6028 (set_register_cached): Add range checking assertions. Use
6031 2002-08-13 Mark Kettenis <kettenis@gnu.org>
6033 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6034 numbers for MMX registers.
6036 2002-08-13 Andrew Cagney <cagney@redhat.com>
6038 * i386-tdep.c (i386_gdbarch_init): Use
6039 generic_unwind_get_saved_register.
6041 2002-08-13 Kevin Buettner <kevinb@redhat.com>
6043 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6044 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6046 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6047 Delete. Add comment regarding this now-deleted target method.
6049 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6051 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6052 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6053 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6054 real PC and the page number (if it's within the memory bank window).
6055 (m68hc11_pseudo_register_write): Likewise when saving.
6056 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6057 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6058 (m68hc11_register_raw_size): And use 32-bit for it.
6059 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6060 16K memory bank is used by the prog; also use the virtual pc.
6062 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6064 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6065 (m68hc11_gdbarch_init): Install it in gdbarch.
6066 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6067 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6068 (MSYMBOL_SIZE): New for documentation.
6069 (insn_return_kind): Enum to specify how a function returns.
6070 (frame_extra_info): Cleanup and record the return mode.
6071 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6072 register in address computation.
6073 (m68hc11_get_return_insn): New to obtain the return instruction used
6075 (m68hc11_frame_init_saved_regs): Take into account the return
6076 instruction used by the function for far and interrupt functions.
6077 (m68hc11_init_extra_frame_info): Take into account page register.
6078 (m68hc11_frame_args_address): Adjust according to the return mode.
6079 (show_regs): Print page register only when it's used.
6081 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6083 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6084 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6085 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6087 (m68hc11_register_raw_size): Likewise.
6089 2002-08-13 Andrew Cagney <cagney@redhat.com>
6091 * i386-tdep.c (i386_register_name): Handle mmx registers.
6092 (mmx_regnum_p): New function.
6093 (i386_mmx_names): New array.
6094 (mmx_num_regs): New variable.
6095 (i386_pseudo_register_read): New function.
6096 (i386_pseudo_register_write): New function.
6097 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6099 * regcache.c (regcache_raw_read_unsigned): New function.
6100 (regcache_raw_read_signed): New function.
6101 * regcache.h (regcache_raw_read_unsigned): Declare.
6102 (regcache_raw_read_signed): Declare.
6104 2002-08-13 Andrew Cagney <cagney@redhat.com>
6106 * regcache.c (regcache_raw_read_as_address): Delete function.
6107 (regcache_cooked_read_signed): New function.
6108 (regcache_cooked_read_unsigned): New function.
6109 * regcache.h (regcache_cooked_read_signed): Declare.
6110 (regcache_cooked_read_unsigned): Declare.
6111 (regcache_raw_read_as_address): Delete declaration.
6113 * blockframe.c (generic_read_register_dummy): Use
6114 regcache_cooked_read_unsigned.
6115 * i386-tdep.c (i386_extract_struct_value_address): Use
6116 regcache_cooked_read_unsigned.
6118 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6120 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6121 double sizes according to ELF ABI flags.
6122 (gdbarch_tdep): Record elf_flags.
6124 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6126 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6127 (m6812_prolog): They can appear in 68HC12 function prologue.
6128 (m68hc11_frame_chain): Cleanup.
6130 2002-08-12 Andrew Cagney <cagney@redhat.com>
6132 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6134 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6135 (i386_linux_register_raw_size): Delete function.
6136 (i386_linux_init_abi): Update.
6137 * i386-tdep.c (i386_register_raw_size): Delete function.
6138 (i386_register_byte): Delete function.
6139 (i386_gdbarch_init): Update.
6140 (i386_register_size): Delete array.
6141 (i386_register_offset): Delete array.
6143 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6144 (REGISTER_RAW_SIZE): Delete macro.
6145 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6146 (REGISTER_BYTE): Delete macro.
6148 2002-08-11 Aidan Skinner <aidan@velvet.net>
6150 * ada-lang.c (ada_lookup_partial_symbol)
6151 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6152 prototype names so that grep ^func works properly.
6154 * ada-lang.c (ada_array_element_type)
6155 (ada_lookup_partial_symbol): Fix typos in parameter list.
6157 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6158 Fix prototype names so that grep ^func works properly.
6160 2002-08-10 Andrew Cagney <cagney@redhat.com>
6161 Elena Zannoni <ezannoni@redhat.com>
6162 Martin M. Hunt <hunt@redhat.com>
6164 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6165 (build_builtin_type_vec128i): Set the vector bit.
6166 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6167 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6168 (build_builtin_type_vec64): New function.
6169 (build_builtin_type_vec64i): New function.
6170 (build_gdbtypes): Initialize builtin_type_vec64 and
6171 builtin_type_vec64i.
6173 2002-08-09 Andrew Cagney <cagney@redhat.com>
6175 * regcache.c (regcache_dump): Compare the register offset
6177 * arch-utils.c (generic_register_byte): New function.
6178 * arch-utils.h (generic_register_byte): Declare.
6179 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6180 * gdbarch.h, gdbarch.c: Regenerate.
6182 2002-08-09 Andrew Cagney <cagney@redhat.com>
6184 * regcache.c: Include "gdbcmd.h"
6185 (_initialize_regcache): Add commands "maintenance print
6186 registers", "maintenance print raw-registers" and "maintenance
6187 print cooked-registers".
6188 (enum regcache_dump_what): Define.
6189 (dump_endian_bytes): New function.
6190 (regcache_dump): New function.
6191 (regcache_print): New function.
6192 (maintenance_print_registers): New function.
6193 (maintenance_print_raw_registers): New function.
6194 (maintenance_print_cooked_registers): New function.
6195 * Makefile.in (regcache.o): Update dependencies.
6197 2002-08-09 Michael Snyder <msnyder@redhat.com>
6199 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6200 (mips_push_arguments): Correct some comments. Use paddr_nz
6201 for printing addresses in debug output. Replace static
6202 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6203 (mips_n32n64_push_arguments): New function, cloned from
6204 mips_push_arguments and tuned for the n32/n64 ABI.
6205 (mips_push_register): Buffer needs dynamic allocation.
6206 (mips_print_register): Ditto.
6207 (do_gp_register_row): Ditto.
6208 (mips_store_return_value): Ditto.
6209 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6211 2002-08-09 Don Howard <dhoward@redhat.com>
6213 * memattr.c (mem_info_command): Print special case of upper bound
6214 as max CORE_ADDR + 1.
6216 2002-08-08 Michael Snyder <msnyder@redhat.com>
6218 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6219 returns structs by ref if they're too big to fit in two registers.
6221 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6223 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6225 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6226 mips_find_saved_regs().
6227 (mips_pop_frame): Likewise.
6229 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6231 * blockframe.c (frame_saved_regs_register_unwind): Revise
6232 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6235 2002-08-09 Grace Sainsbury <graces@redhat.com>
6237 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6238 T-packets; the 'a' is not taken as a register number.
6239 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6240 (remote_stopped_data_address): New functions; add to target
6242 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6243 prototypes to match other implementations of this
6244 function. replace integer argument with pointer -- the length
6245 field in the Z-packet is the length of what is pointed to or 1 if
6246 pointer is null. Add to target vector.
6247 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6251 * remote.c (remote_wait): Add support to extract optional
6252 watchpoint information from T-packet. Ignore unrecognized
6253 optional info in T-packet.
6254 (remote_async_wait): Ditto.
6256 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6258 * cli/cli-dump.c: Change fopen modes to use binary open modes
6259 as defined in include/fopen-bin.h throughout.
6261 2002-08-08 Michael Snyder <msnyder@redhat.com>
6263 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6265 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6267 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6268 assertion failure by returning early after a warning.
6270 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6272 * mips-tdep.c (mips_find_saved_regs): Make static.
6273 (mips_frame_init_saved_regs): New function.
6274 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6275 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6276 (mips_find_saved_regs): Delete declaration.
6278 2002-08-08 Grace Sainsbury <graces@redhat.com>
6280 * remote.c (remote_wait, remote_async_wait): Change
6281 thread_num from int to ULONGEST.
6282 (unpack_varlen_hex): Change result parameter from
6283 int * to ULONGEST *.
6285 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6287 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6288 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6290 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6292 2002-08-08 Andrew Cagney <cagney@redhat.com>
6294 * gcore.c (override_derive_stack_segment): Delete variable.
6295 (preempt_derive_stack_segment): Delete function.
6296 (derive_stack_segment): Delete function.
6297 (default_derive_stack_segment): Renamed to derive_stack_segment.
6298 (override_derive_heap_segment): Delete variable.
6299 (preempt_derive_heap_segment): Delete function.
6300 (derive_heap_segment): Delete function.
6301 (default_derive_heap_segment): Rename to derive_heap_segment.
6303 2002-08-06 Michael Snyder <msnyder@redhat.com>
6305 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6306 * mips-tdep.c (mips_EABI_use_struct_convention,
6307 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6308 New functions. (mips_use_struct_convention): Delete.
6309 (mips_gdbarch_init): set use_gdbarch_convention.
6311 2002-08-06 Michael Snyder <msnyder@redhat.com>
6313 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6314 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6315 mips_o32_reg_struct_has_addr): New functions.
6316 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6318 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6320 * regcache.c (pseudo_register): Delete function.
6321 (fetch_register): Delete function.
6322 (store_register): Delete function.
6323 (regcache_raw_read, legacy_read_register_gen): Use
6324 target_fetch_registers instead of fetch_register.
6325 (legacy_write_register_gen, regcache_raw_write): Use
6326 target_store_register instead of store_register.
6327 (write_register_bytes): Ditto.
6329 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6330 (STORE_PSEUDO_REGISTER): Delete.
6331 * gdbarch.h, gdbarch.c: Regenerate.
6333 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6335 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6336 write dump file binary.
6338 2002-08-05 Michael Snyder <msnyder@redhat.com>
6340 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6341 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6342 (mips_gdbarch_init): Set N32 target to be mips64.
6344 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6346 * frame.c (find_saved_register): Break out of loop once saved
6347 register address is found. Don't mention sparc in loop comment
6350 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6352 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6353 mips_default_saved_regsize to 8.
6355 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6357 * gcore.c: Do not include <sys/procfs.h>.
6358 * Makefile.in (gcore.o): Update dependencies.
6360 2002-08-06 Andrew Cagney <cagney@redhat.com>
6362 * configure.tgt: Make arc-*-* obsolete.
6363 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6364 * MAINTAINERS: Make arc-elf obsolete.
6365 * arc-tdep.c: Make file obsolete.
6366 * config/arc/arc.mt: Ditto.
6367 * config/arc/tm-arc.h: Ditto.
6369 2002-08-05 Theodore A. Roth <troth@verinet.com>
6371 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6373 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6375 * mcore-tdep.c (mcore_gdbarch_init): Use
6376 generic_unwind_get_saved_register instead of
6377 generic_get_saved_register.
6378 * v850-tdep.c (v850_gdbarch_init): Ditto.
6379 * frv-tdep.c (frv_gdbarch_init): Ditto.
6380 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6381 * s390-tdep.c (s390_gdbarch_init): Ditto.
6382 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6383 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6384 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6386 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6388 * objfiles.h: Add missing #include "symfile.h"
6390 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6392 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6394 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6395 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6398 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6400 * NEWS: Cleanup and nitpick.
6402 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6404 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6406 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6408 * Makefile.in (gdbtk-bp.o): Update dependencies.
6409 (gdbtk-register.o): Ditto.
6410 (gdbtk-varobj.o): Ditto.
6412 2002-08-03 Andrew Cagney <cagney@redhat.com>
6414 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6415 m68hc11_fetch_pseudo_register.
6416 (m68hc11_pseudo_register_write): Replace
6417 m68hc11_store_pseudo_register.
6418 (m68hc11_gdbarch_init): Update.
6420 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6422 * gdbarch.sh: Include "gdb_string.h".
6423 * gdbarch.c: Regenerate.
6425 * regcache.c: Include "gdb_string.h".
6426 * ax-general.c: Ditto.
6428 * std-regs.c: Ditto.
6429 * fbsd-proc.c: Ditto.
6432 * Makefile.in (regcache.o): Update dependencies.
6433 (thread.o, gdbarch.o): Ditto.
6434 (ax-general.o, gdbarch.o): Ditto.
6435 (varobj.o, std-regs.o): Ditto.
6436 (fbsd-proc.o): Specify dependencies.
6438 2002-08-02 Andrew Cagney <cagney@redhat.com>
6440 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6442 (regcache_cooked_write): Ditto.
6444 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6446 * regcache.c (regcache_cooked_read): New function.
6447 (regcache_cooked_write): New function.
6448 (read_register_gen): Rewrite using regcache_cooked_read.
6449 (write_register_gen): Rewrite using regcache_cooked_write.
6451 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6454 2002-08-02 Andrew Cagney <cagney@redhat.com>
6456 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6457 Replace the architecture methods register_read and register_write.
6458 * gdbarch.h, gdbarch.c: Regenerate.
6459 * regcache.c (init_regcache_descr): Update.
6460 (read_register_gen): Update.
6461 (write_register_gen): Update.
6462 (supply_register): Update comment.
6464 * sh-tdep.c (sh_gdbarch_init): Update.
6465 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6466 `regcache' and `gdbarch' parameters. Make `buffer' a void
6467 pointer. Update code.
6468 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6469 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6470 void pointer. Update code.
6471 (sh64_register_write): Delete.
6472 (sh4_register_read): Delete.
6473 (sh64_register_read): Delete.
6474 (sh4_register_write): Delete.
6475 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6476 void pointer, `to' parameter a void pointer.
6477 (sh_sh64_register_convert_to_raw): Ditto.
6479 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6481 * mips-tdep.c (mips_register_virtual_type): Use architecture
6482 invariant return values.
6484 2002-08-01 Andrew Cagney <cagney@redhat.com>
6486 * linux-proc.c: Include "gdb_string.h".
6487 * Makefile.in (linux-proc.o): Update dependency list.
6489 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6491 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6494 2002-08-01 Grace Sainsbury <graces@redhat.com>
6496 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6497 to_insert_watchpoint, to_remove_watchpoint,
6498 to_stopped_by_watchpoint, to_stopped_data_address,
6499 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6500 target vecctor. Define their corresponding macros so they call
6503 * target.c: Add default and debug versions of for
6504 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6505 to_insert_watchpoint, to_remove_watchpoint,
6506 to_stopped_by_watchpoint, to_stopped_data_address,
6507 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6509 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6511 * mips-tdep.c (mips_register_virtual_type): New function.
6512 (mips_gdbarch_init): Register mips_register_virtual_type()
6513 with gdbarch machinery.
6514 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6515 this file instead of tm-bigmips.h.
6516 (MIPS_REGSIZE): Delete this macro.
6517 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6518 multiarch version in mips-tdep.c will be found.
6520 2002-08-01 Andrew Cagney <cagney@redhat.com>
6522 * NEWS: Menion that CHILL has been made obsolete.
6524 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6525 * stabsread.c (read_range_type): Ditto.
6526 * gdbtypes.h: Ditto.
6527 * language.c (binop_type_check): Ditto.
6528 (binop_result_type): Ditto.
6529 (integral_type): Ditto.
6530 (character_type): Ditto.
6531 (string_type): Ditto.
6532 (boolean_type): Ditto.
6533 (structured_type): Ditto.
6534 (lang_bool_type): Ditto.
6535 (binop_type_check): Ditto.
6536 * language.h (_LANG_chill): Ditto.
6537 * dwarfread.c (set_cu_language): Ditto.
6538 * dwarfread.c (CHILL_PRODUCER): Ditto.
6539 * dwarfread.c (handle_producer): Ditto.
6540 * expression.h (enum exp_opcode): Ditto.
6541 * eval.c: Ditto for comments.
6542 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6543 * expprint.c (print_subexp): Ditto.
6544 (print_subexp): Ditto.
6545 * valops.c (value_cast): Ditto.
6546 (search_struct_field): Ditto.
6547 * value.h (COERCE_VARYING_ARRAY): Ditto.
6548 * symfile.c (init_filename_language_table): Ditto.
6549 (add_psymbol_with_dem_name_to_list): Ditto.
6550 * valarith.c (value_binop): Ditto.
6552 * valops.c (value_slice): Ditto.
6553 * symtab.h (union language_specific): Ditto.
6554 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6555 (SYMBOL_DEMANGLED_NAME): Ditto.
6556 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6557 * defs.h (enum language): Ditto.
6558 * symtab.c (got_symtab): Ditto.
6559 * utils.c (fprintf_symbol_filtered): Ditto.
6561 * ch-typeprint.c: Make file obsolete.
6562 * ch-valprint.c: Make file obsolete.
6563 * ch-lang.h: Make file obsolete.
6564 * ch-exp.c: Make file obsolete.
6565 * ch-lang.c: Make file obsolete.
6567 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6569 (TARGET_FLAGS_TO_PASS): Ditto.
6570 (CHILLFLAGS): Obsolete.
6572 (CHILL_FOR_TARGET): Obsolete.
6573 (CHILL_LIB): Obsolete.
6574 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6576 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6577 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6579 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6582 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6584 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6585 This does not change anything at the moment, but will be helpful
6586 later when full Ada support is integrated.
6588 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6590 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6593 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6595 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6596 and save it in a local variable. Use variable in later test.
6598 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6600 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6601 test. (Thanks to Daniel Jacobowitz.)
6603 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6605 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6606 (mips_abi_strings): Add "n64".
6607 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6609 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6611 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6612 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6614 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6616 * utils.c (host_pointer_to_address, address_to_host_pointer):
6617 Use gdb_assert() instead of explicit call to internal_error().
6619 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6621 * Makefile.in (rs6000-nat.o): Update dependencies.
6623 From Nicholas Duffek:
6624 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6625 (aix-thread.o): New rule.
6626 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6627 * config/powerpc/aix432.mh: New file.
6629 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6631 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6632 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6633 (fetch_core_registers, ppc_linux_supply_gregset)
6634 (ppc_linux_supply_fpregset): New functions.
6635 (ppc_linux_regset_core_fns): New.
6636 (_initialize_ppc_linux_tdep): Call add_core_fns.
6637 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6638 and ppc_linux_supply_gregset.
6639 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6640 (supply_fpregset): Call ppc_linux_supply_fpregset.
6641 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6643 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6645 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6647 * symtab.c (lookup_symbol): Demangle before lowercasing.
6649 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6651 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6653 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6654 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6655 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6656 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6658 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6659 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6660 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6661 (avr-tdep.o, mon960-rom.o): Ditto.
6662 (aout_stabs_gnu_h): Define.
6663 (symtab_h): Remove $(gdb_obstack_h).
6665 2002-07-30 Jim Blandy <jimb@redhat.com>
6667 Patch from David Carlton <carlton@math.stanford.edu>:
6668 * gdbinit.in: Move the `dir' commands that add GDB's own source
6669 directory to the search path to the end, so that the `gdb' source
6670 directory will be searched first.
6672 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6674 * gdb_obstack.h: New file.
6675 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6676 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6677 * objfiles.h: Include "gdb_obstack.h".
6678 * Makefile.in (gdb_obstack_h): Define.
6679 (symtab_h): Add $(gdb_obstack_h).
6680 (objfiles_h): Add $(gdb_obstack_h).
6682 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6683 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6684 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6685 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6686 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6687 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6688 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6689 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6691 * Makefile.in (bcache.o): Update dependencies.
6692 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6693 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6694 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6695 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6696 (stabsread.o, symfile.o, symmisc.o): Ditto.
6697 (symtab.o, typeprint.o, macroexp.o): Ditto.
6698 (macrotab.o, mdebugread.o): Ditto.
6699 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6700 (coff_ecoff_h, aout_aout64_h): Define.
6701 (aout_stabs_gnu_h, libaout_h): Define.
6703 2002-07-29 Andrew Cagney <cagney@redhat.com>
6705 * regcache.c (struct regcache_descr): Rename nr_registers to
6706 nr_cooked_registers. Revise comments describing the structure
6708 (init_regcache_descr): Update.
6709 (init_legacy_regcache_descr): Update.
6710 (read_register_gen, write_register_gen): When a cooked register in
6711 the raw register range, directly access the value from the raw
6714 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6716 * z8k-tdep.c: Do not include "obstack.h".
6717 * h8300-tdep.c, h8500-tdep.c: Ditto.
6718 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6719 * valprint.c, v850-tdep.c: Ditto.
6720 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6721 * mn10200-tdep.c: Ditto.
6723 * Makefile.in (z8k-tdep.o): Update dependencies.
6724 (m68hc11-tdep.o, valprint.o): Ditto.
6725 (v850-tdep.o, d10v-tdep.o): Ditto.
6726 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6727 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6728 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6729 (sh_opc_h, gdb_sim_sh_h): Define.
6730 (elf_sh_h, elf_bfd_h): Define.
6731 (opcode_m68hc11_h): Define.
6732 (OPCODES_SRC, OPCODES_DIR): define.
6733 (OPCODES): Use $(OPCODES_DIR).
6734 (gdb_sim_d10v_h): Rename sim_d10v_h.
6735 (gdb_sim_arm_h): Rename sim_arm_h.
6737 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6739 * utils.c (host_pointer_to_address, address_to_host_pointer):
6740 Change internal_error() message to indicate function responsible
6743 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6745 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6746 calls to local_hex_string_custom().
6748 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6750 * irix5-nat.c: Move IRIX shared library support from here...
6751 * solib-irix.c: ...to here. Revised substantially to work with
6752 generic solib framework.
6754 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6755 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6756 * mips-irix-tdep.c: New file.
6758 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6759 (mips-irix-tdep.o, solib-irix.o): New rules.
6760 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6762 * config/mips/irix6.mt (TDEPFILES): Likewise.
6763 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6765 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6767 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6768 disabled (via ``#if 0'') includes.
6770 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6772 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6773 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6774 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6775 Add support for the fpscr register.
6776 * rs6000-nat.c (regmap, fetch_inferior_registers)
6777 (store_inferior_registers, fetch_core_registers): Likewise.
6779 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6781 * rs6000-nat.c (language.h): Include.
6782 (special_regs): Delete this array.
6783 (regmap): New function.
6784 (fetch_register, store_register): Use regmap() to map gdb
6785 register numbers to ptrace register numbers. Also, use
6786 outputs from regmap() to make decisions regarding type of
6787 ptrace() call to make. In particular, don't compare against
6788 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6789 (fetch_inferior_registers, store_inferior_registers): Where
6790 possible, obtain register numbers from tdep struct. Don't
6791 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6792 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6793 (LAST_UISA_SP_REGNUM): Delete.
6795 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6797 * rs6000-nat.c (ppc-tdep.h): Include.
6798 (fetch_registers, store_register, fetch_core_registers): Don't
6799 access registers[] directly. Instead, use supply_register() or
6800 regcache_collect() as appropriate.
6801 (find_toc_address): Format hex address with local_hex_string().
6803 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6805 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6808 2002-07-24 Tom Tromey <tromey@redhat.com>
6810 * jv-exp.y: Marked all strings with _().
6811 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6813 (MethodInvocation, CastExpression, parse_number, yyerror,
6814 java_type_from_name, push_expression_name, yylex): Typo fixes.
6816 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6818 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6819 (tee_file_flush, tee_file_write, tee_file_fputs)
6820 (tee_file_isatty): New.
6821 * ui-file.h (tee_file_new): Add prototype.
6823 2002-07-24 Aidan Skinner <aidan@velvet.net>
6825 * ada-lang.c: Change k&r style function definitions to prototyped
6827 * ada-typeprint.c: Change k&r style function definitions to prototyped
6829 * ada-valprint.c: Change k&r style function definitions to prototyped
6832 2002-07-24 Andrew Cagney <cagney@redhat.com>
6834 * README: Remove reference to remote-bug.
6835 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6837 (m88k-nat.o): Delete rule.
6838 (m88k-tdep.o): Delete rule.
6839 (remote-bug.o): Delete rule.
6840 * MAINTAINERS: Mark as obsolete.
6841 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6842 * m88k-tdep.c: Make file obsolete.
6843 * config/m88k/m88k.mh: Ditto.
6844 * config/m88k/delta88v4.mh: Ditto.
6845 * config/m88k/delta88v4.mt: Ditto.
6846 * config/m88k/delta88.mt: Ditto.
6847 * config/m88k/delta88.mh: Ditto.
6848 * remote-bug.c: Ditto.
6849 * config/m88k/tm-delta88.h: Ditto.
6850 * config/m88k/nm-delta88v4.h: Ditto.
6851 * config/m88k/xm-delta88.h: Ditto.
6852 * config/m88k/xm-dgux.h: Ditto.
6853 * config/m88k/tm-m88k.h: Ditto.
6854 * config/m88k/nm-m88k.h: Ditto.
6855 * config/m88k/tm-delta88v4.h: Ditto.
6856 * m88k-nat.c: Ditto.
6857 * cxux-nat.c: Ditto.
6858 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6859 and m88*-*-* obsolete.
6860 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6863 2002-07-24 Andrew Cagney <cagney@redhat.com>
6865 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6866 constant. Same for local pointer variables.
6867 (extract_signed_integer): Ditto.
6868 * defs.h (extract_unsigned_integer): Update.
6869 (extract_signed_integer): Update.
6871 2002-07-24 Andrew Cagney <cagney@redhat.com>
6873 * regcache.c (regcache_raw_write): Change buf parameter to a
6874 constant void pointer.
6875 (regcache_raw_read): Change buf parameter to a void pointer.
6876 (legacy_write_register_gen): Change myaddr parameter a constant
6878 (supply_register): Change val parameter to a const void pointer.
6879 * regcache.h (regcache_raw_write): Update declaration.
6880 (regcache_raw_read): Update declaration.
6881 (supply_register): Update declaration.
6883 2002-07-24 Tom Tromey <tromey@redhat.com>
6885 * defs.h (gdb_readline_wrapper): Declare.
6886 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6887 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6888 * top.c (gdb_readline_wrapper): New function.
6889 (command_line_input): Use it.
6891 2002-07-24 Andrew Cagney <cagney@redhat.com>
6893 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6894 regcache_read and regcache_write.
6895 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6896 * regcache.c: Update.
6897 * sh-tdep.c (sh64_push_arguments): Update comment.
6898 (sh_pseudo_register_read): Update.
6899 (sh_pseudo_register_write): Update.
6900 (sh4_register_read): Update.
6901 (sh4_register_write): Update.
6902 (sh64_pseudo_register_read): Update.
6903 (sh64_pseudo_register_write): Update.
6904 (sh64_register_read): Update.
6905 (sh64_register_write): Update.
6906 * i386-tdep.c (i386_extract_return_value): Update.
6907 (i386_extract_struct_value_address): Update.
6908 (i386_extract_return_value): Update.
6909 * blockframe.c (generic_read_register_dummy): Update.
6910 (generic_call_dummy_register_unwind): Update
6911 * infrun.c (write_inferior_status_register): Update.
6913 2002-07-23 Jim Blandy <jimb@redhat.com>
6915 * parser-defs.h (expression_context_pc): Make this extern.
6916 (Thanks to Michael Snyder.)
6918 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6920 GDB 5.2.1 released from 5.2 branch.
6921 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6922 * README: Update to mention 5.2.1.
6924 2002-07-23 Mark Salter <msalter@redhat.com>
6926 * remote.c (remote_read_bytes): Fix check for error.
6928 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6930 * aix-thread.c (language.h): Include.
6931 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6932 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6933 Print newlines at end of debug messages.
6934 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6935 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6937 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6939 * aix-thread.c (ppc-tdep.h): Include.
6940 (special_register_p): New function.
6941 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6942 (store_regs_user_thread): Use register number information from
6943 gdbarch_tdep struct instead of hardcoded offsets relative to
6944 FIRST_UISA_SP_REGNUM.
6945 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6946 special_register_p() instead of using FPLAST_REGNUM and
6947 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6948 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6949 will be MQ's register number.
6951 2002-07-22 Michael Snyder <msnyder@redhat.com>
6953 * aix-thread.c (ops): Rename to aix_thread_ops.
6954 (base_ops): Rename to base_target.
6955 (ops_attach): Rename to aix_thread_attach.
6956 (ops_detach): Rename to aix_thread_detach.
6957 (ops_resume): Rename to aix_thread_detach.
6958 (ops_wait): Rename to aix_thread_wait.
6959 (ops_kill): Rename to aix_thread_kill.
6960 (init_ops): Rename to init_aix_thread_ops.
6961 (ops_fetch_register): Rename to aix_thread_fetch_register.
6962 (ops_store_register): Rename to aix_thread_store_register.
6963 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6964 (ops_thread_alive): Rename to aix_thread_thread_alive.
6965 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6966 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6967 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6968 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6969 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6970 (store_regs_lib): Rename to store_regs_user_thread.
6971 (store_regs_kern): Rename to store_regs_kernel_thread.
6973 2002-07-22 Michael Snyder <msnyder@redhat.com>
6975 * aix-thread.c (ops_prepare_to_store): Eliminate.
6976 (init_ops): Don't initialize ops.prepare_to_store.
6977 (store_regs_kern): Pre-fetch register buffers from child,
6978 because some registers may not be in the cache. Copy
6979 regs from register cache only if they are cached.
6980 (store_regs_lib): Copy regs from register cache only
6982 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6983 fill_gprs64): Ditto.
6985 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6987 * aix-thread.c (gdb_assert.h): Include.
6988 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6989 register sizes (from register cache) match size of buffer holding
6991 (fill_sprs32): Change parameter types to match those in the ptrace()
6993 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6994 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6996 2002-07-22 Michael Snyder <msnyder@redhat.com>
6998 * aix-thread.c (supply_sprs64): Cosmetic change.
6999 (supply_sprs32): Cosmetic change.
7000 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7001 (fill_sprs64): Use regcache_collect instead of read_register.
7002 (store_regs_lib): Use regcache_collect instead of
7003 read_register. Use fill_sprs32 instead of fill_sprs64,
7004 if debugging a 32-bit architecture.
7005 (store_regs_kern): Use fill_gprs64 etc. to pull the values
7006 out of the register cache, instead of passing a pointer into
7007 the register cache directly to ptrace. Use regcache_collect
7008 insteaad of read_register.
7009 (ops_prepare_to_store): Use target_read_registers instead
7010 of read_register_bytes.
7012 2002-07-20 Aidan Skinner <aidan@velvet.net>
7014 * MAINTAINERS: Add self under write after approval.
7016 2002-07-20 Aidan Skinner <aidan@velvet.net>
7018 * ada-tasks.c: Change k&r style function definitions to prototyped
7021 2002-07-19 Andrew Cagney <ac131313@redhat.com>
7023 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7024 * x86-64-tdep.c: Include "objfiles.h".
7025 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7026 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7028 2002-07-17 Michal Ludvig <michal@suse.cz>
7030 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7031 (update_context): Initialise cfa variable.
7033 2002-07-17 Michael Snyder <msnyder@redhat.com>
7035 * aix-thread.c: Shorten some long lines.
7036 Bring comments into line with code spec.
7038 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7040 * infrun.c: Re-indent using gdb_indent.sh.
7042 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7044 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7045 Leave the indentation temporarily untouched, to minimize the diffs.
7047 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
7049 * stabsread.c: Make os9k sections of the code obsolete,
7051 * stabsread.h: Make os9k sections of the code obsolete.
7053 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7055 * linux-low.c (regsets_store_inferior_registers): Add free()
7056 at the end of a loop to prevent memory leak.
7057 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7058 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7059 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7061 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7063 2002-07-17 Jim Blandy <jimb@redhat.com>
7065 * macrocmd.c (info_macro_command): Remove newline from error
7068 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7070 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7071 (sh_gdbarch_init): Use it for sh-dsp.
7073 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7075 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7076 64-bit DWARF2 format.
7078 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7080 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7081 <sys/proc.h> when not available.
7083 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7085 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7086 * stabsread.c: Make os9k sections of the code obsolete.
7087 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7088 * config/i386/i386os9k.mt: Make file obsolete.
7089 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7090 (COMMON_OBS): Remove os9kread.o
7091 (SFILES): Remove os9kread.c.
7092 (os9kread.o, remote-os9k.o): Make target obsolete.
7093 * remote-os9k.c: Make file obsolete.
7094 * os9kread.c: Make file obsolete.
7097 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7099 * NEWS: Mention that the FR30 has been made obsolete.
7100 * fr30-tdep.c: Make file obsolete.
7101 * config/fr30/tm-fr30.h: Ditto.
7102 * config/fr30/fr30.mt: Ditto.
7103 * configure.tgt: Make fr30-*-elf obsolete.
7104 * MAINTAINERS: Make fr30-elf obsolete.
7106 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7108 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7109 found is not inside a section.
7111 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7113 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7115 (pdc_realloc): Use xrealloc() instead of realloc().
7117 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7119 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7120 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7121 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7124 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7126 * aix-thread.c (ptrace_check): Eliminate goto.
7127 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7130 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7132 * aix-thread.c (gdbcmd.h): Include.
7133 (DEBUG, DBG, DBG2, dbg): Eliminate.
7134 (debug_aix_thread): New static global.
7135 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7136 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7137 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7138 invocations to DBG and DBG2 macros to test against
7139 ``debug_aix_thread'' and call fprintf_unfiltered().
7140 (_initialize_aix_thread): Add new command "set debug aix-thread".
7142 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7144 From Gerhard Tonn <TON@de.ibm.com>:
7145 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7146 instead of supply_register.
7148 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7150 * dwarf2cfi.c: Include "gdb_assert.h".
7151 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7153 (update_context): Do not use __func__. Add missing ``break''.
7154 (update_context): Do not use __func__.
7156 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7158 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7159 and its setting. Set gdbarch instruction printing functions
7160 directly. For non-rs6000 case use new function
7161 gdb_print_insn_powerpc.
7162 (gdb_print_insn_powerpc): New function.
7164 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7166 * NEWS: Mention that the d30v has been marked obsolete.
7167 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7168 * configure.tgt: Mark d30v-*-* as obsolete.
7169 * d30v-tdep.c: Mark file as obsolete.
7170 * config/d30v/d30v.mt: Ditto.
7171 * config/d30v/tm-d30v.h: Ditto.
7173 2002-07-13 Aidan Skinner <aidan@velvet.net>
7175 * ada-tasks.c (add_task_entry): replace calls to
7176 malloc() with xmalloc
7177 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7179 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7180 ada_finish_decode_line_1, all_sals_for_line
7181 ada_breakpoint_rewrite): replace calls to free() with xfree()
7183 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7185 From Nicholas Duffek (with minor changes by Martin Hunt,
7186 Louis Hamilton, and Kevin Buettner):
7187 * aix-thread.c: New file.
7189 2002-07-12 Petr Sorfa <petrs@caldera.com>
7191 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7192 complaint for invalid attribute class or form.
7193 (read_func_scope): DW_AT_frame_base
7194 better handling of DW_AT_block*.
7195 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7196 better handling of DW_AT_block*.
7197 (read_common_block): DW_AT_location
7198 better handling of DW_AT_block*.
7199 (read_partial_die): DW_AT_location better handling
7201 (new_symbol): DW_AT_external better handling of
7202 DW_AT_block*. Proper initialization of variable
7204 (attr_form_is_block): New function that returns true
7205 if the attribute's form is of DW_FORM_block*.
7207 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7209 * valops.c (find_method_list): Remove comment about
7210 removed STATIC_MEMFUNCP argument.
7211 (value_find_oload_method_list): Likewise.
7213 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7215 From Nicholas Duffek:
7216 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7217 target_new_objfile_hook.
7219 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7221 From Nicholas Duffek:
7222 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7225 2002-07-12 Andrew Cagney <cagney@redhat.com>
7227 * MAINTAINERS: Mention --enable-sim-build-warnings.
7228 (m68hc11-elf): Disable sim build warnings.
7229 (m32r-elf): Mark as broken obsolete candidate.
7230 (x86_64-linux-gnu): Mark as buildable with -Werror.
7231 (arm-elf): Change -w to ``,'' which enables warnings but not
7234 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7236 * bcache.h: Update copyright.
7237 (struct bstring, struct bcache): Move definition to "bcache.c".
7238 Replaced by opaque declaration.
7239 (bcache_xfree): Replace free_bcache.
7240 (bcache_xmalloc, bcache_memory_used): Declare.
7242 * bcache.c: Update copyright.
7243 (struct bstring, struct bcache): Moved to here from "bcache.h".
7245 (bcache_xmalloc, bcache_memory_used): New functions.
7246 (bcache_xfree): Replace function free_bcache.
7248 * Makefile.in (objfiles.o): Add $(bcache_h).
7249 (objfiles_h): Remove $(bcache_h).
7250 (symfile.o): Add $(bcache_h).
7252 * symmisc.c: Update copyright.
7253 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7254 (print_objfile_statistics): Use bcache_memory_used.
7256 * symfile.c: Include "bcache.h".
7257 (reread_symbols): Use bcache_xfree.
7258 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7259 (add_psymbol_to_list): Pass psymbol_cache by value.
7260 (add_psymbol_with_dem_name_to_list): Ditto.
7262 * objfiles.h: Update copyright.
7263 (struct bcache): Declare opaque. Do not include "bcache.h".
7264 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7266 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7268 * objfiles.c: Include "bcache.h". Update copyright.
7269 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7271 (free_objfile): Use bcache_xfree.
7273 2002-07-11 Grace Sainsbury <graces@redhat.com>
7275 * monitor.c (monitor_fetch_register): Make name a constant.
7276 (monitor_store_register): Same.
7278 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7280 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7281 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7282 (finish_block) For non-function blocks, hash the symbol table. For
7283 function blocks, mark the symbol table as unhashed.
7284 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7285 (msymbol_hash_iw): Likewise.
7286 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7288 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7289 (lookup_minimal_symbol): Likewise for both.
7290 * symtab.h (struct block): Add `hashtable' flag. Comment the
7292 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7293 (ALL_BLOCK_SYMBOLS): Update.
7294 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7295 (struct symbol): Add `hash_next' pointer.
7296 * symtab.c (lookup_block_symbol): Search using the hash table when
7298 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7299 (search_symbols, find_addr_symbol): Likewise.
7301 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7302 (read_dst_symtab): Likewise.
7303 * jv-lang.c (get_java_class_symtab): Likewise.
7304 * mdebugread.c: Include "gdb_assert.h".
7305 (shrink_block): Assert that the block being modified is not hashed.
7306 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7307 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7309 (dump_symtab): Recognize hashed blocks.
7310 * printcmd.c (print_frame_args): Assert that function blocks do not
7311 have hashed symbol tables.
7312 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7313 (fill_in_ada_prototype, debug_print_block): Likewise.
7314 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7316 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7318 * stack.c (print_frame): Use result of frame_address_in_block()
7319 instead of fi->pc when evaluating symbols.
7320 (backtrace_command_1): Ditto.
7322 2002-07-11 Andrew Cagney <cagney@redhat.com>
7324 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7327 * arm-tdep.c (arm_register_name): Make return type constant.
7329 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7331 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7333 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7334 * s390-tdep.c (s390_fp_regnum): Ditto.
7335 (s390_read_fp): Ditto.
7336 (s390_pop_frame): Ditto.
7337 (_initialize_s390_tdep): Ditto.
7338 * remote.c (get_remote_state): Ditto.
7339 * procfs.c (mappingflags): Ditto.
7340 * memattr.c (_initialize_mem): Ditto.
7341 * mcore-tdep.c (mcore_pop_frame): Ditto.
7342 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7343 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7344 * language.c (set_case_str): Ditto.
7345 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7346 * frv-tdep.c (new_variant): Ditto.
7347 (frv_stopped_data_address): Ditto.
7348 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7349 (context_alloc): Ditto.
7350 (frame_state_alloc): Ditto.
7351 (unwind_tmp_obstack_init): Ditto.
7352 (unwind_tmp_obstack_free): Ditto.
7353 (cfi_read_fp): Ditto.
7354 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7355 (cris_pop_frame): Ditto.
7356 * c-lang.c (scanning_macro_expansion): Ditto.
7357 (finished_macro_expansion): Ditto.
7358 (c_preprocess_and_parse): Ditto.
7359 * gdbarch.sh: Ditto.
7360 * gdbarch.h, gdbarch.c: Regenerate.
7361 * config/mn10200/tm-mn10200.h: Adjust indentation.
7362 * target.c: Adjust indentation.
7363 * symtab.h: Adjust indentation.
7364 * stabsread.h: Adjust indentation.
7365 * remote-es.c: Adjust indentation.
7366 * os9kread.c: Adjust indentation.
7368 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7370 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7371 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7373 2002-07-10 Grace Sainsbury <graces@redhat.com>
7375 * NEWS: Mention m68k, mcore multi-arching.
7376 * MAINTAINERS: Change status of m68k, mcore to reflect
7379 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7381 * valops.c (find_overload_match): Free oload_syms.
7383 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7385 Define HAVE_SYS_PROC_H if sys/proc.h exists
7386 * configure.in: Add check for sys/proc.h
7387 * config.in: Regenerate.
7388 * configure: Regenerate.
7390 2002-07-09 Grace Sainsbury <graces@redhat.com>
7392 * config/m68k/tm-m68k.h: Remove macros wrapped in
7393 #if !GDB_MULTI_ARCH.
7395 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7397 * config.in, configure: Regenerate.
7399 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7401 * dwarf2cfi.c: Include "gcore.h".
7402 (execute_stack_op): Fix implementation of the
7403 DW_OP_deref and DW_OP_deref_size operators by letting do their
7404 lookup in the target.
7406 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7408 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7409 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7412 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7414 Fix PR gdb/595, gdb/602
7415 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7416 Don't call value_cast, just read the vtable pointer; update comments
7419 2002-07-05 Grace Sainsbury <graces@redhat.com>
7421 * config/mcore/tm-mcore.h: Remove file.
7422 * config/mcore/mcore.mt: Remove definition of TM_FILE
7423 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7425 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7427 * i386bsd-tdep.c: Include "gdb_string.h".
7429 2002-07-04 Grace Sainsbury <graces@redhat.com>
7431 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7432 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7434 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7435 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7436 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7437 (RETVAL_REGNUM): Move macros from tm-mcore.h
7438 (mcore_reg_struct_has_addr): New function.
7439 (mcore_gdbarch_init): Added initializations for the macros removed
7442 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7444 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7445 traditonal string branding within the ELF header.
7447 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7449 * symtab.c (remove_params): New function.
7450 (make_symbol_overload_list): Use it instead of cplus_demangle.
7451 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7453 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7455 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7457 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7459 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7460 and tdep->sigtramp_end.
7461 * i386obsd-nat.c: New file.
7462 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7464 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7465 Don't call get_current_frame().
7467 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7469 * i386-nat.c (child_post_startup_inferior): New function
7470 calling i386_cleanup_dregs if
7471 I386_USE_GENERIC_WATCHPOINTS is defined.
7472 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7473 conditional to acknowledge that i386-nat.c has its
7474 own child_post_startup_inferior function.
7476 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7478 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7479 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7480 instead of MAX_REGISTER_RAW_SIZE.
7481 (i386_extract_return_value, i386_extract_struct_value_address):
7482 Convert to use regcache.
7483 (i386_gdbarch_init): Set max_register_raw_size and
7484 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7485 Set extract_return_value and extract_struct_value_address instead
7486 of their deprecated variants.
7488 Convert i386 target to generic dummy frames.
7489 * i386-tdep.c: Include "symfile.h".
7490 (i386_frameless_signal_p): Consider a function to be frameless if
7491 the pc points at the first instruction of the function.
7492 (i386_frame_chain): Handle (generic) call dummies.
7493 (i386_frame_saved_pc): Likewise.
7494 (i386_frame_init_saved_regs): Remove code dealing with call
7495 dummies on the stack.
7496 (i386_push_dummy_frame): Removed.
7497 (i386_call_dummy_words): Removed.
7498 (i386_fix_call_dummy): Removed.
7499 (i386_push_return_address): New function.
7500 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7501 parameter, and don't call get_current_frame.
7502 (i386_pop_frame): New function.
7503 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7504 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7505 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7506 call_dummy_length to 0, set call_dummy_words to NULL, set
7507 sizeof_call_dummy_words to 0, set fix_call_dummy to
7508 generic_fix_call_dummy, set pc_in_call_dummy to
7509 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7510 generic_push_dummy_frame, set push_return_address to
7511 i386_push_return_address and set frame_chain_valid to
7512 generic_file_frame_chain_valid.
7514 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7516 * gdbarch.sh (struct regcache): Add opaque declaration.
7517 (EXTRACT_RETURN_VALUE): New architecture method.
7518 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7519 * gdbarch.h, gdbarch.c: Regenerate.
7520 * arch-utils.c (legacy_extract_return_value): New function.
7521 * arch-utils.h (legacy_extract_return_value): Declare.
7522 * values.c (value_being_returned): Re-enable code handling
7523 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7524 deprecated_grub_regcache_for_registers call to block handling
7525 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7526 (EXTRACT_RETURN_VALUE): Do not define.
7528 2002-07-03 Grace Sainsbury <graces@redhat.com>
7530 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7531 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7532 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7533 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7534 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7535 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7536 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7537 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7538 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7539 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7540 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7541 argument so the function fits the prototype in the architecture
7543 (mcore_pop_frame): Remove argument so the function fits the
7544 prototype. Use get_current_frame instead of the argument.
7545 (mcore_push_arguments): Change type of struct_return so the
7546 function can be used in the architecture vector.
7547 (mcore_store_struct_return): Add.
7548 (mcore_frame_init_saved_regs): Add.
7549 (mcore_gdbarch_init): Add function calls to replace the macros
7550 removed from tm-mcore.h
7552 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7554 * infcmd.c (print_return_value): Remove compatibility code calling
7555 deprecated_grub_regcache_for_registers.
7557 * values.c: Include "regcache.h".
7558 (value_being_returned): Update. Use
7559 deprecated_grub_regcache_for_registers to extract the register
7561 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7562 ``struct regcache''.
7563 * Makefile.in (values.o): Add dependency on $(regcache_h).
7565 * inferior.h (run_stack_dummy): Change type of second parameter to
7566 a ``struct regcache''.
7567 * valops.c (hand_function_call): Change type of retbuf to ``struct
7568 regcache''. Allocate using regcache_xmalloc, clean using
7569 make_cleanup_regcache_xfree.
7570 * infcmd.c (run_stack_dummy): Update. Use
7571 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7573 * regcache.c (do_regcache_xfree): New function.
7574 (make_cleanup_regcache_xfree): New function.
7575 * regcache.h (make_cleanup_regcache_xfree): Declare.
7577 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7579 * event-top.c (command_line_handler): Don't read past
7580 beginning of buffer.
7582 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7584 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7586 (varobj_create): Store frame_id for root.
7587 (varobj_gen_name): Use xasprintf.
7588 (varobj_update): Save and restore frame using get_frame_id() and
7590 (create_child): Use xasprintf.
7591 (new_root_variable): Initialize frame_id.
7592 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7593 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7594 to prevent memory leak.
7596 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7598 * valops.c (hand_function_call): Move declaration of retbuf to
7599 start of function, allocate using malloc, add a cleanup but before
7600 the inf_status cleanup, cleanup the buffer. Rename local variable
7601 old_chain to inf_status_cleanup.
7603 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7605 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7607 * cli/cli-decode.c (cmd_func_p): New function.
7608 (cmd_func): New function.
7610 * command.h: Add cmd_func() and cmd_func_p().
7612 2002-07-03 Grace Sainsbury <graces@redhat.com>
7614 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7615 (REGISTER_SIZE): Remove.
7616 (MAX_REGISTER_RAW_SIZE): Remove.
7617 (REGISTER_VIRTUAL_TYPE): Remove.
7618 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7619 (REGISTER_NAME): Remove.
7620 (USE_GENERIC_DUMMY_FRAMES): Remove.
7621 (CALL_DUMMY): Remove.
7622 (CALL_DUMMY_START_OFFSET): Remove.
7623 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7624 (CALL_DUMMY_LOCATION): Remove.
7625 (FIX_CALL_DUMMY): Remove.
7626 (CALL_DUMMY_ADDRESS): Remove.
7627 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7628 (SAVE_DUMMY_FRAME_TOS): Remove.
7629 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7630 (mcore_register_virtual_type): New function.
7631 (mcore_register_byte): New function.
7632 (mcore_register_size): New function.
7633 (mcore_register_name): New function.
7634 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7635 macros removed from tm-mcore.h.
7636 (mcore_dump_tdep): Add.
7637 (_initialize_mcore_tdep): Add gdbarch_register call.
7639 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7641 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7642 frameless_look_for_prologue, such that we actually call this
7645 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7647 * frame.h (frame_address_in_block): New function.
7649 * blockframe.c (frame_address_in_block): New function extracted
7650 from get_frame_block().
7651 (get_frame_block): Use frame_address_in_block().
7652 (block_innermost_frame): Use frame_address_in_block() to match
7653 the frame pc address against the block boundaries rather than
7654 the frame pc directly. This prevents a failure when a frame pc
7655 is actually a return-address pointing immediately after the end
7658 2002-07-02 Grace Sainsbury <graces@redhat.com>
7660 * MAINTAINERS: Add self under write after approval.
7662 2002-07-02 Grace Sainsbury <graces@redhat.com>
7664 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7665 used in architecture vector. The default is
7666 m68k_local_breakpoint_from_pc.
7667 (m68k_local_breakpoint_from_pc): Add.
7668 (enum): Add register numbers from tm-m68k.h.
7669 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7671 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7672 GDB_MULTI_ARCH_PARTIAL.
7673 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7674 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7676 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7677 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7678 to enum in m68k-tdep.c
7680 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7682 * solib-osf.c (open_map): Compute the list of shared libraries
7683 loaded by the inferior, rather than the list of libraries loaded
7684 by GDB itself. Otherwise, GDB ends up reading the symbols from
7685 the wrong shared libraries...
7687 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7689 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7690 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7692 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7694 (FRAMELESS_SIGNAL): Remove function.
7695 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7696 i386_linux_saved_pc_after_call): Removed.
7697 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7698 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7699 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7701 * i386-tdep.c (i386_frameless_signal_p): New function.
7702 (i386_frame_chain): Deal with frameless signals.
7703 (i386_sigtramp_saved_sp): New function.
7704 (i386_frame_saved_pc): Deal with frameless signals.
7705 (i386_saved_pc_after_call): Make sure the correct value is
7706 returned just after entry into a sigtramp.
7707 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7708 i386fbsd4_sc_sp_offset): New variables.
7709 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7710 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7711 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7712 similiar to what we already did for sc_pc_offset.
7713 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7716 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7718 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7720 * config/i386/tm-x86-64linux.h: New.
7721 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7723 * config/i386/nm-x86-64.h: Rename to ...
7724 * config/i386/nm-x86-64linux.h: ... this one.
7725 * config/i386/x86-64linux.mh: Reflect the above change.
7727 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7729 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7730 with sigcontext_addr. Add sc_sp_offset.
7731 (i386bsd_sigtramp_saved_pc): Remove prototype.
7732 (i386bsd_sicontext_addr): Add prototype.
7733 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7734 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7735 (i386_svr4_sigtramp_saved_pc): Removed.
7736 (i386_svr4_sigcontext_addr): New function.
7737 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7738 Initialize tdep->sigcontext_addr instead. Initialize
7739 tdep->sc_pc_offset and tdep->sc_sp_offset.
7740 (i386_gdbarch_init): Likewise.
7741 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7743 (i386bsd_sigtramp_saved_pc): Remove function.
7744 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7745 Initialize tdep->sigcontext_addr instead. Initialize
7747 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7748 of tdep->sigtramp_saved_pc.
7749 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7750 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7753 * i386-tdep.c (i386_frameless_function_invocation,
7754 i386_frame_num_args, i386_frame_init_saved_regs,
7755 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7756 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7757 i386_extract_return_value, i386_store_return_value,
7758 i386_extract_struct_value_address, i386_register_virtual_type,
7759 i386_register_convertible, i386_register_convert_to_virtual,
7760 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7761 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7764 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7766 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7768 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7769 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7770 this macro. Include "value.h".
7772 2002-06-30 Aidan Skinner <aidan@velvet.net>
7774 * ada-exp.tab.c: remove as it's a generated file
7775 * ada-lex.c: remove as it's a generated file
7777 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7779 * config/i386/tm-i386.h (struct frame_info, struct
7780 frame_saved_regs, struct value, struct type): Remove forward
7783 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7784 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7785 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7786 (FILL_FPXREGSET): Define.
7788 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7790 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7791 i[3456]86-*-netbsd* case.
7792 * config/i386/tm-obsd.h: Removed.
7793 * config/i386/obsd.mt: Removed.
7794 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7796 (MH_CFLAGS): Add -DYYDEBUG=0.
7798 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7799 i386nbsd_sc_pc_offset on OpenBSD too.
7801 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7802 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7803 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7805 * i386bsd-tdep.c: Include "arch-utils.h".
7806 (i386bsd_aout_in_solib_call_trampoline): New function.
7807 (i386bsd_init_abi): Set in_solib_call_trampoline to
7808 i386bsd_aout_in_solib_call_trampoline.
7809 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7810 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7812 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7814 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7815 (struct obstack, struct bcache): Add opaque declarations.
7816 * Makefile.in (macrotab_h): Update
7818 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7820 * blockframe.c (generic_find_dummy_frame): Change return type to
7821 ``struct regcache''.
7822 (struct dummy_frame): Replace field ``registers'' with regcache, a
7823 struct regcache object.
7824 (generic_find_dummy_frame): Update.
7825 (generic_push_dummy_frame): Update. Use regcache_xfree,
7826 regcache_xmalloc and regcache_cpy.
7827 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7829 (deprecated_generic_find_dummy_frame): Update.
7830 (generic_read_register_dummy): Update. Use
7831 regcache_read_as_address.
7832 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7833 (generic_get_saved_register): Update. Use regcache_read.
7835 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7837 * Makefile.in (objfiles_h): Add $(bcache_h).
7838 * objfiles.h: Include "bcache.h".
7840 * Makefile.in (symtab_h): Remove $(bcache_h).
7841 * symtab.h: Do not include "bcache.h".
7843 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7845 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7846 generic_func_frame_chain_valid.
7848 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7850 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7851 * config/i386/tm-fbsd.h: Likewise.
7853 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7855 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7856 generic_unwind_get_saved_register.
7858 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7860 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7861 * regcache.c (supply_register): Add missing argument to
7862 register_buffer call.
7864 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7866 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7867 Solaris /bin/grep does not not like it. From Peter Schauer.
7869 2002-06-26 Tom Tromey <tromey@redhat.com>
7871 * command.h (add_setshow_cmd): Declare.
7872 (add_setshow_cmd_full): Declare.
7873 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7874 returns void. Use add_setshow_cmd_full.
7875 (add_setshow_cmd_full): New function.
7876 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7877 (add_setshow_boolean_cmd): Likewise.
7879 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7881 * config/vax/tm-vax.h: Protect from multiple inclusion.
7882 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7883 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7884 * config/vax/tm-vaxbsd.h: ...here. New file.
7885 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7887 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7889 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7890 (BELIEVE_PCC_PROMOTION): Remove.
7891 (AP_REGNUM): Move to...
7892 * config/vax/nm-vax.h: ...here.
7893 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7894 (vax_breakpoint_from_pc): New function.
7895 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7896 and gdbarch_believe_pcc_promotion.
7898 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7900 * Makefile.in (vax_tdep_h): Define.
7901 (vax-tdep.o): Use $(vax_tdep_h).
7902 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7903 (vax_dump_tdep): New function.
7904 (_initialize_vax_tdep): Register vax_dump_tdep.
7905 * vax-tdep.h: Include osabi.h.
7906 (struct gdbarch_tdep): New.
7908 2002-06-26 Andrew Cagney <cagney@redhat.com>
7910 * frame.h (deprecated_generic_find_dummy_frame): Rename
7911 generic_find_dummy_frame.
7912 * blockframe.c (generic_find_dummy_frame): Make static.
7913 (deprecated_generic_find_dummy_frame): New function.
7914 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7915 generic_find_dummy_frame with deprecated_find_dummy_frame.
7916 (sh64_nofp_frame_init_saved_regs): Ditto.
7917 (sh_fp_frame_init_saved_regs): Ditto.
7918 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7919 (s390_frame_chain): Ditto.
7920 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7922 2002-06-26 Grace Sainsbury <graces@redhat.com>
7924 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7925 gdbarch vector are at the top.
7927 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7928 (FRAME_ARGS_ADDRESS): Remove.
7929 (FRAME_LOCALS_ADDRESS): Remove.
7930 (FRAME_NUM_ARGS): Remove.
7931 (FRAME_ARGS_SKIP): Remove.
7932 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7933 (m68k_gdbarch_init): Add gdbarch initializations for macros
7934 undefined in tm-m68k.h
7936 2002-06-26 Grace Sainsbury <graces@redhat.com>
7938 * monitor.h: Add the function regname to monitor_ops
7939 structure. This way NUM_REGS does not have to be a constant.
7940 * monitor.c (monitor_fetch_register): Added support for regname
7941 function. The function is called if the array regnames is NULL.
7942 (monitor_store_register): Same.
7943 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7945 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7946 cpu32bug_cmds.regname to point to new function.
7947 * abug-rom.c (abug_regname): Same as above.
7948 (init_abug_cmds): Same.
7949 * dbug-rom.c (dbug_regname): Same as above.
7950 (init_dbug_cmds): Same.
7951 * remote-est.c (est_regname): Same.
7952 (init_est_cmds): Same.
7953 * rom68k-rom.c (rom68k_regname): Same.
7954 (init_rom68k_cmds): Same.
7956 2002-06-25 Tom Tromey <tromey@redhat.com>
7958 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7960 2002-06-25 Andrew Cagney <cagney@redhat.com>
7962 * infrun.c (stop_registers): Change variable's type to ``struct
7964 (xmalloc_inferior_status): Delete function.
7965 (free_inferior_status): Delete function.
7966 (normal_stop): Use regcache_cpy.
7967 (struct inferior_status): Change type of fields ``stop_registers''
7968 and ``registers'' to ``struct regcache''.
7969 (write_inferior_status_register): Use regcache_write.
7970 (save_inferior_status): Instead of calling
7971 xmalloc_inferior_status, allocate the inf_status buffer directly.
7972 Use regcache_dup_no_passthrough and regcache_dup to save the
7974 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7975 Replace the stop_registers regcache instead of overriding it. Use
7976 regcache_xfree. Instead of calling free_inferior_status, xfree
7977 the buffer directly.
7978 (discard_inferior_status): Use regcache_xfree. Instead of calling
7979 free_inferior_status, xfree the buffer directly.
7980 (build_infrun): Use regcache_xmalloc.
7981 (_initialize_infrun): Delete redundant call to build_infrun.
7983 * Makefile.in (infcmd.o): Add $(regcache_h).
7985 * infcmd.c: Include "regcache.h".
7986 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7987 obtain the address of `stop_registers' register buffer.
7988 (print_return_value): Ditto.
7990 * inferior.h (struct regcache): Add opaque declaration.
7991 (stop_registers): Change variable's declared type to ``struct
7994 2002-06-24 Tom Tromey <tromey@redhat.com>
7996 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7997 * target.c (initialize_targets): Fixed typo in
7998 trust-readonly-sections `show' documentation.
8000 * main.c: Marked all strings with _().
8002 2002-06-24 Don Howard <dhoward@redhat.com>
8004 * memattr.c (create_mem_region): Treat hi == 0 as a special case
8005 that means max CORE_ADDR+1.
8006 (lookup_mem_region): Ditto.
8007 (mem_info_command): Ditto.
8009 2002-06-24 Grace Sainsbury <graces@redhat.com>
8011 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8012 (REGISTER_BYTES_OK): Remove.
8013 (REGISTER_BYTES): Remove.
8014 (STORE_STRUCT_RETURN): Remove.
8015 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8016 (STORE_RETURN_VALUE): Remove.
8017 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8018 (FRAME_CHAIN): Remove.
8019 (FRAMELESS_FUNCTION_INVOCATION): Remove.
8020 (FRAME_SAVED_PC): Remove.
8021 * m68k-tdep.c (m68k_register_bytes_ok):Add.
8022 (m68k_store_struct_return): Add.
8023 (m68k_deprecated_extract_return_value): Add.
8024 (m68k_deprecated_extract_struct_value_address): Add.
8025 (m68k_store_return_value): Add.
8026 (m68k_frame_chain): Add.
8027 (m68k_frameless_function_invocation): Add.
8028 (m68k_frame_saved_pc): Add.
8029 (m68k_gdbarch_init): added set_gdbarch calls for new
8030 functions and deleted macros.
8032 2002-06-23 Tom Tromey <tromey@redhat.com>
8034 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8035 (ALLDEPFILES): Likewise.
8036 (udiheaders): Removed.
8037 (udip2soc.o): Likewise.
8038 (udi2go32.o): Likewise.
8040 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8042 2002-06-22 Andrew Cagney <ac131313@redhat.com>
8044 * infrun.c (_initialize_infrun): Delete unnecessary call to
8047 * regcache.h: Update comments describing the regcache_cpy family
8049 (regcache_save, regcache_restore): Delete declaration.
8050 (regcache_save_no_passthrough): Delete declaration.
8051 (regcache_restore_no_passthrough): Delete declaration.
8052 * regcache.c (regcache_save): Delete function.
8053 (regcache_save_no_passthrough): Delete function.
8054 (regcache_restore): Delete function.
8055 (regcache_restore_no_passthrough): Delete function.
8057 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8059 * config/m68k/tm-m68k.h: Fix typo.
8060 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8061 (m68k_frame_init_saved_regs): Declare.
8063 2002-06-21 Jim Blandy <jimb@redhat.com>
8065 Remove some vestiges of Harris 88k support.
8066 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8067 register numbering quirk.
8068 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8069 odd symbols occurring in Harris 88k ELF targets.
8071 2002-06-21 Tom Tromey <tromey@redhat.com>
8073 * gdb_locale.h: New file.
8074 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8075 (defs_h): Added gdb_locale.h.
8076 * configure, config.in: Rebuilt.
8077 * configure.in (PACKAGE): Define.
8078 * defs.h: Include gdb_locale.h.
8079 * main.c (captured_main): Call setlocale, bindtextdomain,
8082 2002-06-21 Dave Brolley <brolley@redhat.com>
8084 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8085 * config/frv/frv.mt: New file.
8086 * config/frv/tm-frv.h: New file.
8087 * configure.tgt: Support frv-*-*.
8088 * Makefile.in (frv-tdep.o): New target.
8089 * frv-tdep.c: New file.
8090 * NEWS: Mention frv.
8092 2002-06-21 Dave Brolley <brolley@redhat.com>
8094 * MAINTAINERS: Add self to "Write After Approval" list.
8096 2002-06-21 Grace Sainsbury <graces@redhat.com>
8098 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8099 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8100 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8101 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8102 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8104 * m68k-tdep.c: Include arch-utils.h
8105 (m68k_register_raw_size): Add.
8106 (m68k_register_virtual_size): Add.
8107 (m68k_register_virtual_type): Add.
8108 (m68k_register_name): Add.
8109 (m68k_stack_align): Add.
8110 (m68k_register_byte): Add.
8111 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8114 2002-06-21 Grace Sainsbury <graces@redhat.com>
8116 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8117 m68k_find_saved_regs.
8118 (m68k_pop_frame): Removed saved_regs structure, and replaced
8119 references to it with frame->saved_regs.
8120 (m68k_gdbarch_init): Added function calls to initialize the
8122 (m68k_fix_call_dummy): Add.
8123 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8124 (CALL_DUMMY): Remove.
8125 (CALL_DUMMY_LENGTH): Remove.
8126 (CALL_DUMMY_START_OFFSET): Remove.
8127 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8128 (FIX_CALL_DUMMY): Remove.
8129 (PUSH_DUMMY_FRAME): Remove.
8130 (POP_FRAME): Remove.
8132 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8134 * parse.c (parse_fprintf): New function used to avoid calls to
8135 fprintf in bison parser generated debug code.
8136 * parser-defs.h: Declaration of new parse_fprintf function.
8137 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8138 Set YYDEBUG to 1 by default.
8139 Set YYFPRINTF as parse_fprintf.
8141 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8143 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8145 (pointer_encoding, enum ptr_encoding): New.
8146 (execute_cfa_program): Take care about pointer encoding.
8147 (dwarf2_build_frame_info): Only call parse_frame_info for
8148 .debug_frame and .eh_frame.
8149 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8150 fixed augmentation handling, added relative addressing,
8151 ignore duplicate FDEs. Added comments.
8152 * dwarf2cfi.c: Reindented.
8154 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8156 * event-top.c (command_handler): Don't use space_at_cmd_start
8157 unless there is sbrk() on the host. Assign time and space data
8158 to union fields of the appropriate length.
8160 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8162 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8163 x86_64_register_name. Return type changed to 'const char *'.
8164 (x86_64_register_name2nr): Rename to x86_64_register_number.
8165 (x86_64_gdbarch_init): Update to reflect the change.
8166 * x86-64-tdep.h: Ditto.
8167 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8168 (supply_fpregset): Ditto.
8170 2002-06-19 Andrew Cagney <cagney@redhat.com>
8172 * regcache.h: Update copyright.
8173 (struct regcache, struct gdbarch): Add opaque declarations.
8174 (current_regcache): Declare global variable.
8175 (regcache_read, regcache_write): Add gdbarch parameter.
8176 (regcache_save, regcache_save_no_passthrough)
8177 (regcache_restore, regcache_restore_no_passthrough)
8178 (regcache_dup, regcache_dup_no_passthrough)
8179 (regcache_cpy, regcache_cpy_no_passthrough)
8180 (deprecated_grub_regcache_for_registers)
8181 (deprecated_grub_regcache_for_register_valid)
8182 (regcache_valid_p): Add function declarations.
8184 * regcache.c: Update copyright.
8185 (regcache_descr_handle): New global variable.
8186 (struct regcache_descr): Define.
8187 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8188 (regcache_descr, xfree_regcache_descr): New functions.
8189 (struct regcache): Define.
8190 (regcache_xmalloc, regcache_xfree): New functions.
8191 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8192 (regcache_dup, regcache_dup_no_passthrough): New functions.
8193 (regcache_valid_p, regcache_read_as_address): New functions.
8194 (deprecated_grub_regcache_for_registers): New function.
8195 (deprecated_grub_regcache_for_register_valid): New function.
8196 (current_regcache): New global variable.
8197 (register_buffer): Add regcache parameter. Update calls.
8198 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8199 (read_register_gen, write_register_gen): Update register_buffer
8200 call. Test for legacy_p instead of gdbarch_register_read_p or
8201 gdbarch_register_write_p.
8202 (regcache_collect): Update register_buffer call.
8203 (build_regcache): Rewrite. Use deprecated grub functions.
8204 (regcache_save, regcache_save_no_passthrough): New functions.
8205 (regcache_restore, regcache_restore_no_passthrough): New
8207 (_initialize_regcache): Create the regcache_data_handle. Swap
8208 current_regcache global variable.
8210 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8211 parameter to regcache_read and regcache_write calls.
8212 (sh4_register_read): Ditto.
8213 (sh64_pseudo_register_read): Ditto.
8214 (sh64_register_read): Ditto.
8215 (sh_pseudo_register_write): Ditto.
8216 (sh4_register_write): Ditto.
8217 (sh64_pseudo_register_write): Ditto.
8218 (sh64_register_write): Ditto.
8220 * defs.h (XCALLOC): Define.
8222 2002-06-19 Grace Sainsbury <graces@redhat.com>
8224 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8225 * m68k-tdep.c (m68k_gdbarch_init): Added.
8226 (m68k_dump_tdep): Added.
8228 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8230 * ada-lang.c (fill_in_ada_prototype): Update comment.
8232 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8234 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8236 (mips_abi_string, mips_abi_strings): New.
8237 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8238 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8239 tdep->mips_abi_string. Honor mips_abi_string. Default to
8240 O32 if no ABI is found.
8241 (mips_dump_tdep): Use mips_abi_strings.
8242 (mips_abi_update): New function.
8243 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8244 ``set mips abi'' and ``show mips abi''. Check the size of
8247 2002-06-19 Andrew Cagney <cagney@redhat.com>
8249 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8252 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8254 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8255 current frame using only the first stack size adjustment. All
8256 subsequent size adjustments are not considered to be part of
8257 the "static" part of the current frame.
8258 Compute the address of the saved registers relative to the
8259 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8260 in use in this frame.
8262 2002-06-18 Don Howard <dhoward@redhat.com>
8264 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8265 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8266 suggesting this solution.
8268 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8270 * config/romp/xm-rtbsd.h: Delete file.
8271 * config/romp/rtbsd.mh: Delete file.
8273 2002-06-18 Keith Seitz <keiths@redhat.com>
8275 * breakpoint.c (condition_command): Post breakpoint_modify
8276 when a condition is added to an existing breakpoint.
8277 (commands_command): Likewise for commands.
8278 (set_ignore_count): Likewise for ignore counts.
8279 If no tty, do not simply return, still need to send event
8281 (ignore_command): Only print a newline if the command came
8283 Don't call breakpoints_changed, since this is now properly
8284 handled by set_ignore_count.
8286 2002-06-18 Andrew Cagney <cagney@redhat.com>
8288 * MAINTAINERS: Note that cris-elf target can be compiled with
8290 * cris-tdep.c (cris_register_name): Make return type constant.
8291 (cris_breakpoint_from_pc): Ditto.
8293 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8295 * frame.h (struct frame_info): Change type of context to
8298 2002-06-17 Andrew Cagney <cagney@redhat.com>
8300 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8302 * gdbarch.h, gdbarch.c: Regenerate.
8303 * config/mips/tm-mips.h (mips_register_name): Update.
8304 * i386-tdep.h (i386_register_name): Update.
8305 * mips-tdep.c (mips_register_name): Update
8306 * alpha-tdep.c (alpha_register_name): Update.
8307 * arch-utils.c (legacy_register_name): Update.
8308 * arch-utils.h (legacy_register_name): Update.
8309 * avr-tdep.c (avr_register_name): Update.
8310 * ia64-tdep.c (ia64_register_name): Update.
8311 * i386-tdep.c (i386_register_name): Update.
8312 * sparc-tdep.c (sparc32_register_name): Update.
8313 (sparc64_register_name): Update.
8314 (sparclite_register_name): Update.
8315 (sparclet_register_name): Update.
8316 * sh-tdep.c (sh_generic_register_name): Update.
8317 (sh_sh_register_name): Update.
8318 (sh_sh3_register_name): Update.
8319 (sh_sh3e_register_name): Update.
8320 (sh_sh_dsp_register_name): Update.
8321 (sh_sh3_dsp_register_name): Update.
8322 (sh_sh4_register_name): Update.
8323 (sh_sh64_register_name): Update.
8324 * s390-tdep.c (s390_register_name): Update.
8325 * rs6000-tdep.c (rs6000_register_name): Update.
8326 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8327 (ns32k_register_name_32382): Update.
8328 * d10v-tdep.c (d10v_ts2_register_name): Update.
8329 (d10v_ts3_register_name): Update.
8330 * xstormy16-tdep.c (xstormy16_register_name): Update.
8331 * vax-tdep.c (vax_register_name): Update.
8332 * v850-tdep.c (v850_register_name): Update.
8333 * m68hc11-tdep.c (m68hc11_register_name): Update.
8334 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8335 (am33_register_name): Update.
8337 2002-06-17 Grace Sainsbury <graces@redhat.com>
8339 * m68k-tdep.c: Reindented.
8341 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8343 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8344 list of predefined types.
8346 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8348 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8349 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8350 REGISTER_CONVERT_TO_RAW): Remove defines.
8351 (i386_register_virtual_type, i386_register_convertible,
8352 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8354 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8355 macros mentioned above.
8357 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8358 (i386lynx_saved_pc_after_call): Remove prototype.
8359 * i386ly-tdep.c: Include "i386-tdep.h".
8360 (i386lynx_saved_pc_after_call): Make static. Use
8361 read_memory_nobpt instead of read_memory. Use
8362 read_memory_unsigned_integer instead of read_memory_integer.
8363 (i386lynx_init_abi): New function.
8364 (i386lynx_coff_osabi_sniffer): New function.
8365 (_initialize_i386bsd_tdep): New function.
8367 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8368 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8369 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8370 (i386_fix_call_dummy): Remove prototype.
8371 * i386-tdep.c (i386_call_dummy_words): New variable.
8372 (i386_gdbarch_init): Adjust for removal of the
8373 macros mentioned above.
8375 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8377 * command.h (add_setshow_auto_boolean_cmd): Replace
8378 add_set_auto_boolean_cmd.
8379 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8380 add_set_auto_boolean_cmd.
8381 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8382 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8383 mask-address'' command.
8384 (show_mask_address): Add cmd parameter.
8385 * remote.c (add_packet_config_cmd): Update. Change type of
8386 set_func and show_func to cmd_sfunc_ftype.
8387 (_initialize_remote): Update `set remote Z-packet'
8388 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8389 (show_remote_protocol_e_packet_cmd): Ditto.
8390 (show_remote_protocol_E_packet_cmd): Ditto.
8391 (show_remote_protocol_P_packet_cmd): Ditto.
8392 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8393 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8394 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8395 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8396 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8397 (show_remote_protocol_Z_packet_cmd): Ditto.
8398 (show_remote_protocol_binary_download_cmd): Ditto.
8399 (show_remote_cmd): Pass NULL to all of above.
8401 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8403 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8404 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8405 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8406 POP_FRAME): Remove defines.
8407 (i386_push_arguments, i386_store_struct_return,
8408 i386_extract_return_value, i386_store_return_value,
8409 i386_extract_struct_value_address, i386_push_dummy_frame,
8410 i386_pop_frame): Renove prototypes.
8411 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8412 macros mentioned above.
8414 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8416 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8417 add_set_boolean_cmd.
8418 (add_setshow_cmd): New function.
8419 * command.h (add_setshow_boolean_cmd): Replace
8420 add_set_boolean_cmd.
8421 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8422 and ``set rdiromatzero''.
8423 * maint.c (_initialize_maint_cmds): Update commented out code.
8424 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8425 * target.c (initialize_targets): Update `set
8426 trust-readonly-sections'.
8427 * remote.c (_initialize_remote): Update `set remotebreak'.
8429 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8431 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8432 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8433 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8434 fit into multi-arch framework.
8435 (i386_breakpoint_from_pc): New function.
8436 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8439 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8440 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8441 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8442 (i386_frameless_function_invocation, i386_frame_num_args,
8443 i386_frame_init_saved_regs): Remove prototypes.
8444 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8445 macros mentioned above.
8447 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8449 * cli/cli-decode.c (set_cmd_cfunc): Update.
8450 (set_cmd_sfunc): Update.
8451 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8452 (set_cmd_sfunc, set_cmd_cfunc): Update.
8453 * cli/cli-decode.h: Update.
8455 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8457 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8458 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8460 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8462 * defs.h (auto_boolean): Declare enum.
8463 * command.h (cmd_auto_boolean): Delete enum.
8464 * mips-tdep.c (mask_address_var): Update.
8465 (mips_mask_address_p): Update.
8466 (show_mask_address): Update.
8467 * remote.c (struct packet_config): Update.
8468 (update_packet_config): Update.
8469 (show_packet_config_cmd): Update.
8470 (packet_ok): Update.
8471 (add_packet_config_cmd): Update.
8472 (_initialize_remote):
8473 * command.h: Update.
8474 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8475 (do_setshow_command): Update.
8476 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8477 * cli/cli-decode.h: Update.
8479 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8481 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8482 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8483 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8484 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8485 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8486 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8488 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8489 list of DJGPP COFF targets.
8491 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8492 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8493 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8494 (FP0_REGNUM): Remove define.
8495 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8496 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8497 (i386_register_virtual_size): Remove protoype.
8498 * i386-tdep.c (i386_register_virtual_size): Removed.
8499 (i386_extract_return_value, i386_store_return_value): Use
8500 FP0_REGNUM instead of NUM_FREGS to determine whether the
8501 floating-point registers are available.
8502 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8503 Adjust for removal of macros mentioned above.
8505 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8507 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8509 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8511 (supply_gregset, fill_gregset): Remove use of register keyword and
8512 remove declaration for regmap. Use I386_NUM_GREGS instead of
8513 NUM_REGS and NUM_FREGS.
8514 (FPREGSET_FSAVE_OFFSET): Remove.
8515 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8516 NUM_FREGS to determine whether the floating-point registers are
8519 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8520 gnu_store_registers): Replace usage of NUM_GREGS with
8523 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8524 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8525 usage of NUM_GREGS with I386_NUM_GREGS.
8527 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8529 * i386bsd-nat.c: Include "i386-tdep.h".
8530 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8533 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8534 and associated comment. They no longer make any sense, since we
8535 don't use this file anymore on Linux.
8537 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8538 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8539 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8540 elements in these arrays.
8541 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8544 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8546 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8547 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8549 2002-06-14 Andrew Cagney <cagney@redhat.com>
8551 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8552 EXTRACT_RETURN_VALUE.
8553 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8554 EXTRACT_STRUCT_VALUE_ADDRESS.
8555 * gdbarch.h, gdbarch.c: Regenerate.
8557 * values.c (value_being_returned): Handle
8558 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8559 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8561 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8562 * arm-tdep.c (arm_gdbarch_init): Update.
8563 * avr-tdep.c (avr_gdbarch_init): Update.
8564 * cris-tdep.c (cris_gdbarch_init): Update.
8565 * d10v-tdep.c (d10v_gdbarch_init): Update.
8566 * ia64-tdep.c (ia64_gdbarch_init): Update.
8567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8568 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8569 * s390-tdep.c (s390_gdbarch_init): Update.
8570 * sh-tdep.c (sh_gdbarch_init): Update.
8571 * s390-tdep.c (s390_gdbarch_init): Update.
8572 * sparc-tdep.c (sparc_gdbarch_init): Update.
8573 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8574 * v850-tdep.c (v850_gdbarch_init): Update.
8575 * vax-tdep.c (vax_gdbarch_init): Update.
8576 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8577 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8579 * config/arc/tm-arc.h: Update.
8580 * config/d30v/tm-d30v.h: Update.
8581 * config/fr30/tm-fr30.h: Update.
8582 * config/h8300/tm-h8300.h: Update.
8583 * config/h8500/tm-h8500.h: Update.
8584 * config/i386/tm-i386.h: Update.
8585 * config/i386/tm-ptx.h: Update.
8586 * config/i386/tm-symmetry.h: Update.
8587 * config/i960/tm-i960.h: Update.
8588 * config/m32r/tm-m32r.h: Update.
8589 * config/m68k/tm-delta68.h: Update.
8590 * config/m68k/tm-linux.h: Update.
8591 * config/m68k/tm-m68k.h: Update.
8592 * config/m88k/tm-m88k.h: Update.
8593 * config/mcore/tm-mcore.h: Update.
8594 * config/mips/tm-mips.h: Update.
8595 * config/mn10200/tm-mn10200.h: Update.
8596 * config/pa/tm-hppa.h: Update.
8597 * config/pa/tm-hppa64.h: Update.
8598 * config/sparc/tm-sp64.h: Update.
8599 * config/sparc/tm-sparc.h: Update.
8600 * config/sparc/tm-sparclet.h: Update.
8601 * config/z8k/tm-z8k.h: Update.
8603 2002-06-14 Andrew Cagney <cagney@redhat.com>
8605 * Makefile.in (i386_linux_tdep_h): Define.
8606 (i386_tdep_h, i387_tdep_h): Define.
8607 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8608 $(i386_tdep_h) and $(i387_tdep_h).
8609 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8611 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8613 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8614 Already covered by the default.
8616 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8617 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8618 (i386_gdbarch_init): Initialize long_double_format and long_double
8621 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8622 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8624 * config/i386/i386sol2.mh: ... here.
8625 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8626 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8627 (SIGCONTEXT_PC_OFFSET): Remove define.
8628 (IN_SIGTRAMP): Remove define.
8629 * i386-sol2-tdep.c: New file.
8631 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8632 * config/i386/tm-i386nw.h: Removed.
8634 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8635 USE_STRUCT_CONVENTION): Remove defines.
8636 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8637 (get_longjmp_target): Remove prototype.
8638 (IN_SIGTRAMP): Remove define.
8639 (i386bsd_in_sigtramp): Remove prototype.
8640 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8641 function. Update comment accordingly
8642 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8643 (FRAME_SAVED_PC): Remove define.
8644 (i386bsd_frame_saved_pc): Remove prototype.
8645 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8646 GET_LONGJMP_TARGET): Remove defines.
8647 (get_longjmp_target): Remove prototype.
8648 (IN_SIGTRAMP): Remove define.
8649 (i386bsd_in_sigtramp): Remove prototype.
8650 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8651 function. Update comment accordingly
8652 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8653 (FRAME_SAVED_PC): Remove define.
8654 (i386bsd_frame_saved_pc): Remove prototype.
8655 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8657 (USE_STRUCT_CONVENTION): Remove prototype.
8658 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8660 (_initialize_i386bsd_nat): Revise logic to determine some
8661 constants at compile time when compiling a native GDB. Warn if
8662 things don't match up with what we expect.
8663 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8665 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8666 to use date stored in `struct gdbarch_tdep'.
8667 (i386bsd_sigcontext_offset): Remove varaible.
8668 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8669 stored in `struct gdbarch_tdep'.
8670 (i386bsd_frame_saved_pc): Make static.
8671 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8672 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8673 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8674 i386fbsd4_sc_pc_offset): New variables.
8675 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8676 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8678 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8680 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8681 Modify the value of i386fbsd_sigtramp_start and
8682 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8683 i386fbsd_sigtramp_end.
8684 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8687 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8688 define to i386-linux-tdep.h.
8689 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8690 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8692 (i386_linux_register_name, i386_linux_register_byte,
8693 i386_linux_register_raw_size): Remove prototypes.
8694 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8695 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8696 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8697 TARGET_WRITE_PC): Remove defines.
8698 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8699 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8700 i386_linux_write_pc): Remove prototypes.
8701 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8702 (get_longjmp_target): Remove prototype.
8703 * i386-linux-tdep.h: New file.
8704 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8705 * i386-linux-tdep.c: Include "i386-tdep.h" and
8706 "i386-linux-tdep.h".
8707 (i386_linux_register_name, i386_linux_register_byte,
8708 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8709 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8711 (i386_linux_init_abi): New function.
8712 (_initialize_i386_linux_tdep): New function.
8714 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8715 (i386_saved_pc_after_call): Remove prototype.
8716 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8717 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8718 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8719 (i386_register_name, i386_stab_reg_to_regnum,
8720 i386_dwarf_reg_to_regnum): Remove prototypes.
8721 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8722 SIZEOF_SSE_REGS): Remove defines.
8723 (REGISTER_BYTES): Remove define.
8724 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8725 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8726 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8727 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8728 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8729 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8730 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8731 (get_longjmp_target): Remove prototype.
8732 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8733 (sigtramp_saved_pc): Remove define.
8734 (i386v4_sigtramp_saved_pc): Remove prototype.
8735 * config/i386/tm-go32.h (FRAME_CHAIN,
8736 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8737 (i386go32_frame_saved_pc): Remove prototype.
8738 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8739 (get_longjmp_target): Remove prototype.
8740 * i386-tdep.h: Include "osabi.h".
8741 (enum i386_abi): Removed.
8742 (enum struct_return): New enum.
8743 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8744 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8745 sc_pc_offset members.
8746 (i386_gdbarch_register_os_abi): Remove prototype.
8747 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8748 I386_SSE_NUM_REGS): New defines.
8749 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8750 I386_SSE_SIZEOF_REGS): New defines.
8751 (i386_register_name, i386_register_byte, i386_register_raw_size):
8753 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8754 (i386bsd_sigtramp_saved_pc): New prototype.
8755 * i386-tdep.c: Don't include "elf-bfd.h".
8756 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8757 i386_frame_chain, i386_saved_pc_after_call): Make static.
8758 (i386_frame_saved_pc): Rewrite to call architecture dependent
8759 function to deal with signal handlers. Make static.
8760 (i386go32_frame_saved_pc): Removed.
8761 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8763 (i386_get_longjmp_target): New function.
8764 (default_struct_convention, pcc_struct_convention,
8765 reg_struct_convention, valid_conventions, struct_convention): New
8767 (i386_use_struct_convention): New function.
8768 (i386v4_sigtramp_saved_pc): Renamed to
8769 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8770 (i386_pc_in_sigtramp): New function.
8771 (i386_abi_names): Removed.
8772 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8773 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8775 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8776 i386_gdbarch_register_os_abi): Removed.
8777 (struct i386_abi_handler): Removed.
8778 (i386_abi_handler_list): Removed.
8779 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8781 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8782 i386_nw_init_abi): New functions.
8783 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8784 Use set_gdbarch_xxx() calls instead of relying on macros for a
8786 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8787 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8788 Register the various architecture variants defined in this file.
8790 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8792 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8793 (struct main_type): Remove arg_types member. Update comments for
8795 (TYPE_ARG_TYPES): Remove.
8796 (TYPE_FN_FIELD_ARGS): Update.
8797 (smash_to_method_type): Update prototype.
8799 * c-typeprint.c (cp_type_print_method_args): Take method type
8800 instead of argument list. Use new argument layout. Simplify.
8801 (c_type_print_args): Use new argument layout. Simplify.
8802 (c_type_print_base): Update call to cp_type_print_method_args.
8803 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8804 argument; use die->type instead. Update call to
8805 smash_to_method_type.
8806 (read_structure_scope): Update call to dwarf2_add_member_fn.
8807 * gdbtypes.c (allocate_stub_method): Update comment.
8808 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8809 Use new argument layout.
8810 (check_stub_method): Use new argument layout. Don't count
8811 void as an argument.
8812 (print_arg_types): Update comments. Use new argument layout.
8813 (recursive_dump_type): Don't print arg_types member.
8814 * hpread.c (hpread_read_struct_type): Use new argument layout.
8815 (fixup_class_method_type): Likewise.
8816 (hpread_type_lookup): Likewise.
8817 * stabsread.c (read_type): Update calls to read_args and
8818 smash_to_method_type.
8819 (read_args): Use new argument layout. Simplify.
8820 * valops.c (typecmp): Use new argument layout. Update parameters
8821 and comments. Simplify.
8822 (hand_function_call): Use new argument layout.
8823 (search_struct_method): Update call to typecmp.
8824 (find_overload_match): Use new argument layout.
8826 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8828 * NEWS: Mention multithreaded debug support for gdbserver.
8830 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8832 * MAINTAINERS: Mention NEWS.
8834 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8836 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8837 (struct mips_objfile_private, compare_pdr_entries): New.
8838 (non_heuristic_proc_desc): Read the ".pdr" section if it
8841 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8843 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8844 (arm_debug): New static variable.
8845 (_initialize_arm_tdep): Add ``set debug arm'' command.
8847 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8849 * Makefile.in (sim_arm_h): Define.
8850 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8851 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8852 (arm_register_sim_regno): New function, map an internal REGNUM
8853 onto a simulator register number.
8854 (arm_gdbarch_init): Set register_sim_regno.
8856 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8858 * MAINTAINERS: Add self.
8860 2002-06-11 Jim Blandy <jimb@redhat.com>
8862 * source.c (source_info): Mention whether the symtab has
8863 information about preprocessor macros.
8865 Call the command `info macro', not `show macro'.
8866 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8868 (_initialize_macrocmd): Register `info_macro_command' in
8869 `infolist', not `showlist'.
8871 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8873 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8874 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8875 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8876 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8877 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8879 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8880 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8881 (_initialize_mips_tdep): Remove dead code.
8882 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8883 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8884 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8885 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8886 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8887 MIPS_LAST_FP_ARG_REGNUM): Remove.
8889 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8891 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8892 (unwind_tmp_obstack_free, parse_frame_info)
8893 (update_context, cfi_read_fp, cfi_write_fp)
8894 (cfi_frame_chain, cfi_init_extra_frame_info)
8895 (cfi_virtual_frame_pointer): Use the above function.
8896 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8898 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8900 * v850-tdep.c (v850_type_is_scalar): New function.
8901 (v850_use_struct_convention): Match current gcc implementation
8902 as close as possible.
8903 (v850_push_arguments): Fix stack_offset handling. Don't write
8904 struct_addr into register. This is done by v850_store_struct_return.
8905 (v850_extract_return_value): Care for structs.
8906 (v850_store_return_value): Ditto.
8907 (v850_store_struct_return): Actually write address.
8909 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8911 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8912 without debug information too.
8914 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8916 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8917 Make multi-arch pure.
8918 * gdbarch.h, gdbarch.c: Re-generate.
8919 * arm-tdep.c (arm_print_float_info): Update.
8920 * arch-utils.h (default_print_float_info): Update.
8921 * arch-utils.c (default_print_float_info): Update.
8922 * infcmd.c (float_info): Update call.
8924 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8926 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8927 the front of the initialize list.
8929 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8931 * infrun.c (struct inferior_status): Replace fields
8932 selected_frame_address and selected_level with field
8934 (save_inferior_status): Update. Use get_frame_id.
8935 (struct restore_selected_frame_args): Delete.
8936 (restore_selected_frame): Update. Use frame_find_by_id.
8937 (restore_inferior_status): Update.
8939 * breakpoint.h (struct breakpoint): Change type of
8940 watchpoint_frame to frame_id.
8941 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8942 call to get_current_frame.
8943 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8945 (watchpoint_check): Use frame_find_by_id.
8947 * frame.h (record_selected_frame): Delete declaration.
8948 * stack.c (record_selected_frame): Delete function.
8950 * frame.h (struct frame_id): Define.
8951 (get_frame_id): Declare.
8952 (frame_find_by_id): Declare.
8953 * frame.c (frame_find_by_id): New function.
8954 (get_frame_id): New function.
8956 2002-06-10 Andrey Volkov <avolkov@transas.com>
8958 * ser-e7kpc.c: Fix duplicated define and call of
8959 _initialize_ser_e7000pc
8961 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8963 * signals/signals.c (target_signal_from_host): Fix #ifdef
8965 (do_target_signal_to_host): Likewise.
8967 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8969 * mips-tdep.c (mips_find_abi_section): New function.
8970 (mips_gdbarch_init): Call it.
8972 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8974 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8975 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8976 after Andrew's 2002-06-08 gdbarch change.
8978 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8980 * i386-linux-nat.c (suppy_gregset): Don't supply
8981 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8983 (fill_gregset): Don't fetch it under the same circumstances.
8985 2002-06-09 Andrew Cagney <cagney@redhat.com>
8987 * Makefile.in (callback_h): Define.
8988 (remote_sim_h): Update path to remote-sim.h.
8989 (remote-rdp.o): Add $(callback_h).
8990 (remote-sim.o): Use $(callback_h).
8991 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8992 * remote-rdp.c: Include "gdb/callback.h".
8994 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8996 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8997 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8999 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9001 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9002 * rdi-share/serpardr.c: Ditto.
9003 * rdi-share/unixcomm.c: Ditto.
9004 * rdi-share/serdrv.c: Ditto.
9005 * rdi-share/hostchan.h: Ditto.
9006 * rdi-share/hostchan.c: Ditto.
9007 * rdi-share/host.h: Ditto.
9008 * rdi-share/devsw.c: Ditto.
9010 * objfiles.h: Change type of obj_private to void pointer.
9011 * pa64solib.c: Update copyright. Don't include "assert.h", use
9012 strcmp instead of STREQ, use LONGEST, do not use PTR
9013 * somsolib.c: Ditto.
9015 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9016 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9017 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9019 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9021 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9022 (default_get_saved_register): Delete function.
9023 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9024 generic_unwind_get_saved_register.
9025 * gdbarch.h, gdbarch.c: Re-generate.
9027 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9029 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9030 generic_func_frame_chain_valid.
9031 * gdbarch.h, gdbarch.c: Re-generate.
9032 * blockframe.c (generic_func_frame_chain_valid): Only check
9033 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
9034 passing FP to PC_IN_CALL_DUMMY.
9037 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9039 * gdbarch.sh (struct gdbarch_data): Add field init_p.
9040 (register_gdbarch_data): Initialize init_p.
9041 (gdbarch_data): Initialize data pointer using the init function.
9042 (init_gdbarch_data): Delete function.
9043 (gdbarch_update_p): Update.
9044 (initialize_non_multiarch): Update.
9045 (struct gdbarch): Add field initialized_p.
9046 * gdbarch.h, gdbarch.c: Re-generate.
9048 2002-06-07 Michal Ludvig <mludvig@suse.cz>
9050 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9051 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9052 better do the things actually here.
9053 * x86-64-tdep.c (x86_64_register_name2nr): New.
9054 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9055 (x86_64_gdbarch_init): Respect the above change.
9056 * x86-64-tdep.h (x86_64_register_name2nr)
9057 (x86_64_register_nr2name): Add prototypes.
9058 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9060 2002-06-06 Michael Snyder <msnyder@redhat.com>
9062 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9063 Delete extra braces and re-indent.
9064 (d10v_store_return_value): Char return values
9065 must be shifted over by one byte in R0.
9066 (d10v_extract_return_value): Delete extra braces, re-indent.
9068 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9070 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9071 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9072 (d10v_integer_to_address): Rewrite.
9073 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9074 the d10v specific functions which take care of converting to the
9077 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9079 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9080 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9082 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9084 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9086 * config/tm-linux.h: Ditto.
9087 * config/alpha/tm-alphalinux.h: Ditto.
9088 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9089 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9090 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9091 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9092 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9093 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9094 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9095 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9096 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9097 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9098 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9099 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9100 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9101 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9102 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9103 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9104 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9105 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9106 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9107 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9108 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9109 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9110 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9111 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9112 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9113 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9114 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9115 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9116 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9117 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9118 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9119 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9120 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9121 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9122 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9123 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9124 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9126 2002-05-04 Aidan Skinner <aidan@velvet.net>
9128 * ada-exp.tab.c: New file
9129 * ada-exp.y: New file
9130 * ada-lang.c: New file
9131 * ada-lang.h: New file
9132 * ada-lex.c: New file
9133 * ada-lex.l: New file
9134 * ada-tasks.c: New file
9135 * ada-typeprint.c: New file
9136 * ada-valprint.c: New file
9138 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9140 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9141 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9143 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9145 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9146 insetead of ppc-linux-tdep.o.
9147 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9148 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9150 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9152 2002-05-07 Christian Groessler <chris@groessler.org>
9153 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9154 bit register contents for little endian hosts.
9156 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9158 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9161 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9163 * gdbarch.h: Regenerate.
9165 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9167 * MAINTAINERS: Add everyone to write-after-approval list.
9169 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9171 * stack.c (frame_info): Use frame_register_unwind instead of
9172 saved_regs. Mention when the SP is on the stack or in a register.
9174 * frame.h (frame_register_unwind_ftype): Define. Document.
9175 (struct frame_info): Add field register_unwind and
9176 register_unwind_cache.
9177 (frame_register_unwind): Declare.
9178 (generic_unwind_get_saved_register): Declare.
9180 * frame.c (frame_register_unwind): New function.
9181 (generic_unwind_get_saved_register): New function.
9183 * blockframe.c (generic_call_dummy_register_unwind): New function.
9184 (frame_saved_regs_register_unwind): New function.
9185 (set_unwind_by_pc): New function.
9186 (create_new_frame): New function.
9187 (get_prev_frame): New function.
9189 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9191 * a29k-share/: Delete directory.
9192 * remote-vx29k.c: Delete file.
9194 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9196 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9197 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9199 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9201 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9202 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9205 (sparcnbsd-tdep.o): New dependency lists.
9206 * NEWS: Note new UltraSPARC NetBSD native configuration.
9207 * configure.host (sparc64-*-netbsd*): New host.
9208 * configure.tgt (sparc-*-netbsdelf*)
9209 (sparc-*-netbsd*): Set gdb_target to nbsd.
9210 (sparc64-*-netbsd*): New target.
9211 * sparc64nbsd-nat.c: New file.
9212 * sparcnbsd-nat.c: New file.
9213 * sparcnbsd-tdep.c: New file.
9214 * sparcnbsd-tdep.h: New file.
9215 * config/sparc/nbsd.mt: New file.
9216 * config/sparc/nbsd64.mh: New file.
9217 * config/sparc/nbsd64.mt: New file.
9218 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9219 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9221 * config/sparc/nbsdaout.mt: Remove.
9222 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9223 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9225 * config/sparc/nbsdelf.mt: Remove.
9226 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9227 sparc-nat.c compatiblity defines.
9228 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9229 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9230 * config/sparc/tm-nbsd64.h: New file.
9231 * config/sparc/tm-nbsdaout.h: Remove.
9232 * config/sparc/xm-nbsd.h: Remove.
9234 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9236 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9237 * sparc-tdep.c: Include osabi.h.
9238 (gdbarch_tdep): Add osabi member.
9239 (_initialize_sparc_tdep): Use gdbarch_register.
9240 (sparc_gdbarch_init): Use generic OS ABI framework.
9241 (sparc_dump_tdep): New function.
9243 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9245 * corefile.c (do_captured_read_memory_integer): Return non-zero
9247 (safe_read_memory_integer): Copy result of memory read when
9248 status is non-zero. Also, add comments.
9250 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9252 * Makefile.in (ppc_tdep_h): Define.
9255 (rs6000-tdep.o): Use $(ppc_tdep_h).
9258 (ppcnbsd-tdep.o): New dependency lists.
9259 * ppc-tdep.h: Use generic OS ABI framework.
9260 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9261 (ppc_linux_init_abi): New functions.
9262 (ppc_sysv_abi_broken_use_struct_convention)
9263 (ppc_sysv_abi_use_struct_convention)
9264 (ppc_sysv_abi_push_arguments): Move to...
9265 * ppc-sysv-tdep.c: ...here.
9266 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9267 * rs6000-tdep.c (process_note_abi_tag_sections)
9268 (get_elfosabi): Remove.
9269 (rs6000_gdbarch_init): Use generic OS ABI framework.
9270 (rs6000_dump_tdep): New function.
9271 (_initialize_rs6000_tdep): Use gdbarch_register.
9272 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9273 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9274 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9275 of ppc-linux-tdep.o.
9276 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9277 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9278 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9279 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9280 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9281 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9283 2002-05-29 Jim Blandy <jimb@redhat.com>
9285 * macroscope.c (default_macro_scope): Put `void' in empty argument
9288 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9290 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9291 * arch-utils.c: Include "sim-regno.h".
9292 * gdbarch.sh: Don't include "sim-regno.h".
9293 * gdbarch.h, gdbarch.c: Regenerate.
9294 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9296 * arch-utils.h (legacy_register_sim_regno): To here.
9297 * remote-sim.c (legacy_register_sim_regno): Move function from
9299 * arch-utils.c (legacy_register_sim_regno): To here.
9301 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9303 * sim-regno.h: New file.
9304 * Makefile.in (sim_regno_h): Define.
9305 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9306 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9307 (legacy_register_sim_regno): New function.
9308 (one2one_register_sim_regno): New function.
9309 (gdbsim_fetch_register): Rewrite.
9310 (gdbsim_store_register): Only store a register when
9311 REGISTER_SIM_REGNO is valid.
9312 * d10v-tdep.c: Include "sim-regno.h".
9313 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9314 (d10v_ts3_register_sim_regno): Ditto.
9315 * gdbarch.sh: Include "sim-regno.h".
9316 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9317 * gdbarch.h, gdbarch.c: Regenerate.
9318 * arch-utils.h (default_register_sim_regno): Delete declaration.
9319 * arch-utils.c (default_register_sim_regno): Delete function.
9321 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9323 * ppcnbsd-nat.c: Rewrite.
9324 * ppcnbsd-tdep.c: New file.
9325 * ppcnbsd-tdep.h: New file.
9326 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9327 solib.o, and solib-svr4.o.
9328 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9329 nbsd-tdep.o, and corelow.o.
9331 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9333 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9334 `tr' and `sed'. Mention that `broken' targets are not expected to
9337 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9339 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9340 Let PC point right after the prologue before looking up symbols.
9342 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9344 * i386-tdep.c (i386_register_virtual_type): Return
9345 builtin_type_vec128i for SSE registers.
9347 * gdbtypes.h (builtin_type_vec128i): Declare.
9349 * gdbtypes.c (build_builtin_type_vec128i): New function.
9350 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9351 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9352 (build_gdbtypes): Initialize new builtin vector types.
9353 (_initialize_gdbtypes): Register new vector types with gdbarch.
9355 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9357 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9358 since it has been multi-arch'd.
9359 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9360 Move Alpha and VAX multi-arch news entries to same section
9361 as other multi-arch news.
9363 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9365 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9366 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9367 static. Rename some register numbers to put them in ns32k-tdep
9369 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9370 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9372 (_initialize_ns32k_tdep): Use gdbarch_register.
9373 * ns32k-tdep.h: New file.
9374 * ns32knbsd-tdep.c: New file.
9375 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9376 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9377 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9378 REGISTER_BYTES, REGISTER_BYTE): Remove.
9379 * config/ns32k/tm-ns32k.h: New file.
9380 * config/ns32k/tm-umax.h: Remove.
9382 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9384 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9385 ns32k_store_struct_return, ns32k_extract_return_value,
9386 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9388 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9389 ns32k_saved_pc_after_call.
9390 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9391 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9392 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9393 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9394 ns32k_extract_struct_value_address.
9396 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9398 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9399 ns32k_fix_call_dummy): New.
9400 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9401 ns32k_call_dummy_words.
9402 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9403 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9404 CALL_DUMMY_NARGS): Remove.
9405 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9407 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9409 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9410 ns32k_frame_saved_pc, ns32k_frame_args_address,
9411 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9412 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9413 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9414 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9415 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9416 (BREAKPOINT): Remove..
9417 (FRAME_CHAIN): Define as ns32k_frame_chain.
9418 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9419 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9420 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9421 (FRAME_FIND_SAVED_REGS): Remove.
9422 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9423 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9424 (POP_FRAME): Define as ns32k_pop_frame.
9426 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9428 * ns32k-tdep.c (ns32k_register_byte_32082,
9429 ns32k_register_byte_32382, ns32k_register_raw_size,
9430 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9432 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9433 ns32k_register_byte_32382.
9434 * config/ns32k/tm-umax.h: Update copyright years.
9435 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9436 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9437 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9438 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9439 (ns32k_get_enter_addr): Fix prototype.
9441 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9443 * ns32k-tdep.c: Update copyright years.
9444 (ns32k_register_name_32082): New function.
9445 (ns32k_register_name_32382): Ditto.
9446 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9447 (REGISTER_NAME): Define as ns32k_register_name_32382.
9448 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9449 (REGISTER_NAME): Define as ns32k_register_name_32082.
9451 2002-05-24 Jim Blandy <jimb@redhat.com>
9453 * dwarf2read.c (free_line_header): Use xfree, not free.
9455 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9457 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9458 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9460 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9462 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9464 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9466 From Ross Alexander at NEC Europe:
9467 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9469 2002-05-23 Michael Snyder <msnyder@redhat.com>
9471 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9472 for input, rather than parse_and_eval_address.
9474 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9476 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9477 * Makefile.in (sim_d10v_h): Update definition.
9479 2002-05-24 Andrew Cagney <cagney@redhat.com>
9481 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9482 change `2002-05-22 Michael Snyder' below.
9483 (d10v_push_arguments): Ditto.
9484 (d10v_extract_return_value): Ditto.
9486 2002-05-23 Jim Blandy <jimb@redhat.com>
9488 * macrotab.c (check_for_redefinition): Don't complain if the new
9489 definition is the same as the previous one. Take more arguments
9490 to allow the comparison.
9491 (macro_define_object, macro_define_function): Pass more arguments
9492 to check_for_redefinition.
9494 2002-05-22 Michael Snyder <msnyder@redhat.com>
9496 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9497 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9498 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9499 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9500 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9501 Add a temp variable to save a call (and a memory read).
9502 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9503 if possible (so that PC_IN_CALL_DUMMY will work).
9505 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9507 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9509 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9511 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9513 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9514 (dwarf2_build_frame_info): Add offset to fde->initial_location
9515 so that frames of shared libraries are mapped correctly.
9516 (execute_stack_op): Change type of 'result' from ULONGEST to
9519 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9521 * config/alpha/tm-nbsd.h: Include solib.h.
9523 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9525 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9526 assumptions about the host's byte order.
9528 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9530 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9532 * alphanbsd-tdep.c: Include solib-svr4.h.
9533 * shnbsd-tdep.c: Ditto.
9535 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9537 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9538 nbsd-tdep.h to dependency list.
9539 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9540 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9541 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9542 nbsdaout.mh and nbsdelf.mh consistently.
9543 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9544 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9545 nbsdaout.mt and nbsdelf.mh consistently.
9546 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9547 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9548 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9549 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9550 a.out shared library stuff from here...
9551 * config/nm-nbsdaout.h: ...to here.
9552 * config/tm-nbsd.h: Remove.
9553 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9554 * config/arm/nbsd.mh: Remove.
9555 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9557 * config/arm/nbsdaout.mh: New file.
9558 * config/arm/nbsdelf.mh: New file.
9559 * config/arm/nm-nbsdaout.h: New file.
9560 * config/i386/nbsd.mh: Remove.
9561 * config/i386/nbsd.mt: Remove.
9562 * config/i386/nbsdaout.mh: New file.
9563 * config/i386/nbsdaout.mt: New file.
9564 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9565 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9566 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9567 i386_register_u_addr): Remove.
9568 * config/i386/nm-nbsdaout.h: New file.
9569 * config/i386/nm-nbsdelf.h: Remove.
9570 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9571 (USE_STRUCT_CONVENTION): Remove.
9572 * config/i386/tm-nbsdaout.h: New file.
9573 * config/i386/tm-nbsdelf.h: Remove.
9574 * config/m68k/nbsd.mh: Remove.
9575 * config/m68k/nbsd.mt: Remove.
9576 * config/m68k/nbsdaout.mh: New file.
9577 * config/m68k/nbsdaout.mt: New file.
9578 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9579 * config/m68k/nm-nbsdaout.h: New file.
9580 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9581 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9582 * config/ns32k/nbsd.mh: Remove.
9583 * config/ns32k/nbsd.mt: Remove.
9584 * config/ns32k/nbsdaout.mh: New file.
9585 * config/ns32k/nbsdaout.mt: New file.
9586 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9587 * config/ns32k/nm-nbsdaout.h: New file.
9588 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9589 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9590 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9591 (SVR4_SHARED_LIBS): Remove.
9592 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9593 * config/sparc/nbsd.mh: Remove.
9594 * config/sparc/nbsd.mt: Remove.
9595 * config/sparc/nbsdaout.mh: New file.
9596 * config/sparc/nbsdaout.mt: New file.
9597 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9598 * config/sparc/nbsdelf.mt: New file.
9599 * config/sparc/nm-nbsdaout.h: New file.
9600 * config/sparc/nm-nbsdelf.h: Remove.
9601 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9602 * config/sparc/tm-nbsdaout.h: New file.
9604 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9606 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9608 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9610 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9612 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9614 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9616 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9618 * NEWS: Note new MIPS NetBSD native configuration.
9619 * configure.host (mips*-*-netbsd*): New host.
9620 * configure.tgt (mips*-*-netbsd*): New target.
9621 * mipsnbsd-nat.c: New file.
9622 * mipsnbsd-tdep.c: New file.
9623 * mipsnbsd-tdep.h: New file.
9624 * config/mips/nbsd.mh: New file.
9625 * config/mips/nbsd.mt: New file.
9626 * config/mips/nm-nbsd.h: New file.
9627 * config/mips/tm-nbsd.h: New file.
9629 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9631 * Makefile.in (SFILES): Add osabi.c.
9632 (COMMON_OBS): Add osabi.o.
9633 (osabi.o): New dependency list.
9634 * osabi.c: New file.
9635 * osabi.h: New file.
9636 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9638 * Makefile.in (alpha_tdep_h): Define and use instead of
9640 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9641 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9643 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9644 * alpha-tdep.h: Include osabi.h.
9645 (alpha_abi): Remove.
9646 (gdbarch_tdep): Use generic OS ABI framework.
9647 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9648 gdbarch_register_osabi.
9649 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9650 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9651 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9653 * Makefile.in (sh_tdep_h): Add osabi.h.
9654 * sh-tdep.h (sh_osabi): Remove.
9655 (gdbarch_tdep): Use generic OS ABI framework.
9656 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9657 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9658 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9659 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9661 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9662 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9663 gdbarch_register_osabi.
9664 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9665 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9666 (get_elfosabi): Rename to...
9667 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9668 ABI framework support routines.
9669 (arm_gdbarch_init): Use generic OS ABI framework.
9670 (arm_dump_tdep): Likewise.
9671 (_initialize_arm_tdep): Likewise.
9672 * arm-tdep.h: Include osabi.h.
9674 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9676 (arm_gdbarch_register_os_abi): Remove prototype.
9677 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9678 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9680 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9681 * mips-tdep.c: Include osabi.h.
9682 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9685 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9687 * h8300-tdep.c: Fix formatting.
9689 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9691 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9692 printing vector registers.
9694 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9696 From Fernando Nasser:
9697 * remote.c (remote_async_open_1): Re-throw the exception when the
9699 (remote_cisco_open): Ditto.
9700 (remote_open_1): Ditto.
9702 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9704 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9705 (remote_start_remote): Add uiout parameter. Pass through to
9706 remote_start_remote_dummy.
9707 (remote_open_1): Use catch_exception instead of catch_errors.
9708 (remote_async_open_1): Ditto.
9709 (remote_cisco_open): Ditto.
9711 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9713 * remote.c (remote_start_remote): Replace PTR with void pointer.
9714 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9717 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9719 * gdb_indent.sh: Allow the script to be run in the sim directory.
9721 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9723 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9724 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9726 * corelow.c (core_open): Only call set_gdbarch_from_file if
9729 2002-05-17 Andrey Volkov <avolkov@transas.com>
9731 * h8300-tdep.c: Add support of EXR register
9732 * config/h8300/tm-h8300.h: Ditto.
9734 2002-05-17 Andrey Volkov <avolkov@transas.com>
9736 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9738 2002-05-17 Andrey Volkov <avolkov@transas.com>
9740 * h8300-tdep.c: Change literal regnums to REGNO.
9742 2002-05-17 Jim Blandy <jimb@redhat.com>
9744 * NEWS: Note addition of macro support.
9746 Expand preprocessor macros in C expressions.
9747 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9748 (scan_macro_expansion, scanning_macro_expansion,
9749 finished_macro_expansion): New function declarations.
9750 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9751 variable declarations.
9752 * parser-defs.h (expression_context_pc): New declaration.
9753 * parse.c (expression_context_pc): New variable.
9754 (parse_exp_1): Set expression_context_pc, as well as
9755 expression_context_block.
9756 * c-exp.y (yylex): If we're not already reading the result of a
9757 macro expansion, try to macro-expand the next token. When we're
9758 done scanning a macro expansion, switch back to the mainline text.
9759 Commas and `if's in a macro's expansion don't terminate the input.
9760 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9761 (macro_original_text, macro_expanded_text,
9762 expression_macro_lookup_func, expression_macro_lookup_baton): New
9764 (scan_macro_expansion, scanning_macro_expansion,
9765 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9766 c_preprocess_and_parse): New functions.
9767 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9768 c_preprocess_and_parse, instead of c_parse.
9769 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9770 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9772 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9774 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9775 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9776 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9778 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9780 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9782 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9784 * Makefile.in (sh_tdep_h): Define and use.
9785 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9786 register enum): Move to...
9787 * * sh-tdep.h: ...here.
9788 * sh-tdep.c: Include sh-tdep.h.
9789 * sh3-rom.c: Likewise.
9790 * shnbsd-tdep.c: Likewise.
9792 2002-05-16 Michael Snyder <msnyder@redhat.com>
9794 * arm-tdep.c: Spelling fix in comment.
9796 2002-05-16 Jim Blandy <jimb@redhat.com>
9798 Add commands for manually expanding macros and showing their
9800 * macrocmd.c, macroscope.c, macroscope.h: New files.
9801 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9802 (macroscope_h): New variable.
9803 (HFILES_NO_SRCDIR): Add macroscope.h.
9804 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9805 (macroscope.o, macrocmd.o): New rules.
9807 Teach the Dwarf 2 reader to read macro information.
9808 * dwarf2read.c: #include "macrotab.h".
9809 (dwarf_macinfo_buffer): New variable.
9810 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9812 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9813 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9814 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9815 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9816 dwarf2_macro_spaces_in_definition): New complaints.
9817 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9818 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9819 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9820 the partial symbol table.
9821 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9822 from what's recorded in the partial symbol table.
9823 (read_file_scope): If the compilation unit has a
9824 `DW_AT_macro_info' attribute, read its macro information.
9825 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9827 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9830 * ser-tcp.c: Don't include <netinet/udp.h>.
9832 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9834 * MAINTAINERS: Update my email address.
9836 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9838 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9839 include file of the same name.
9841 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9843 * configure.tgt: Mark v850 as multi-arched.
9844 * config/v850/tm-v850.h: Remove file.
9845 * config/v850/v850.mt: Eliminate TM_FILE.
9847 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9849 * v850-tdep.c: Full multi-arch.
9850 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9851 Define GDB_MULTI_ARCH to 2.
9853 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9855 * p-exp.y (current_type): New static variable.
9856 Carries the type of the expression at the position that is parsed.
9857 (push_current_type, pop_current_type): Two new functions. Used
9858 to store/restore current_type in expression on specific tokens.
9859 (search_field): New static variable. Set to one after parsing a point
9860 as at that point only a FIELDNAME token should be searched.
9861 (FIELDNAME): New token. After a point only a token belonging to
9862 current_type type definition is allowed.
9863 (all over token rules): reset and change current_type according
9865 (exp '[' rule): insert implicit array index field if
9866 exp is a pascal string type.
9868 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9870 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9871 frame info. Use frame_info's saved_regs instead of matching member
9872 in extra_frame_info throughout.
9873 (v850_frame_init_saved_regs): New function.
9874 (v850_init_extra_frame_info): Move most functionality into
9875 v850_frame_init_saved_regs().
9876 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9877 (v850_frame_find_saved_regs): Remove declaration.
9878 (FRAME_FIND_SAVED_REGS): Remove definition.
9879 (v850_frame_init_saved_regs): Add declaration.
9880 (FRAME_INIT_SAVED_REGS): Add definition.
9882 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9884 * v850-tdep.c: Begin multi-arch'ing v850.
9885 (v850_target_architecture_hook): Remove function.
9886 (v850_gdbarch_init): New function. Add code previously in
9887 v850_target_architecture_hook().
9888 (_initialize_v850_tdep): Don't set target_architecture_hook.
9889 Call register_gdbarch_init() instead.
9891 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9893 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9894 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9895 (fixup_class_method_type): Likewise.
9897 2002-05-15 Jim Blandy <jimb@redhat.com>
9899 Add macro structures to GDB's symbol tables. Nobody puts anything
9901 * symtab.h (struct symtab): New member: `macro_table'.
9902 * buildsym.h (pending_macros): New global variable.
9903 * buildsym.c: #include "macrotab.h".
9904 (buildsym_init): Initialize `pending_macros'.
9905 (end_symtab): If we found macro information while reading a CU's
9906 debugging info, do build a symtab structure for it. Make the
9907 symtab point to the macro information, and clear the
9908 `pending_macros' pointer which held it while we were reading the
9910 (really_free_pendings): Free any pending macro table.
9911 * objfiles.h (struct objfile): New member: `macro_cache'.
9912 * objfiles.c (allocate_objfile): Set allocate and free functions
9913 for the macro cache's objstack.
9914 (free_objfile): Empty the macro cache's obstack.
9915 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9916 set new allocate and free functions for it.
9917 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9918 free functions for the macro cache's objstack. (Why is this
9919 function building its own objfile?)
9920 * symmisc.c (print_objfile_statistics): Print statistics on the
9922 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9924 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9926 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9927 (REGISTER_U_ADDR): Delete definition.
9928 (arm_register_u_addr): Delete declaration.
9930 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9932 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9933 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9935 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9937 * regcache.c (register_valid): Revise comments refering to "Not
9938 available" and "unavailable".
9939 * frame.c (frame_register_read): Ditto.
9940 * findvar.c (value_of_register): Ditto.
9942 2002-05-15 Andrew Cagney <cagney@redhat.com>
9944 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9945 (remote-sim.o): Update dependencies.
9946 (d10v-tdep.o): Specify dependencies.
9947 (sim_d10v_h): Define.
9949 2002-05-14 Jim Blandy <jimb@redhat.com>
9951 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9952 * macrotab.c (macro_lookup_inclusion, find_definition,
9953 new_macro_table): Same.
9955 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9956 not `! strcmp ()'. This is a dubious improvement.
9957 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9959 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9960 although it's not necessary, to avoid a warning.
9962 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9964 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9965 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9966 TYPE_INSTANCE_FLAGS.
9967 (struct main_type): New.
9968 (struct type): Move most members to struct main_type. Change
9969 cv_type and as_type to new type_chain member. Add instance_flags.
9970 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9971 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9972 (finish_cv_type): Remove prototype.
9973 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9975 (alloc_type_instance): New function.
9976 (smash_type): New function.
9977 (make_pointer_type, make_reference_type, make_function_type)
9978 (smash_to_member_type, smash_to_method_type): Call smash_type.
9979 (make_qualified_type): New function.
9980 (make_type_with_address_space): Call make_qualified_type.
9981 (make_cv_type): Likewise.
9982 (finish_cv_type): Remove unnecessary function.
9983 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9984 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9985 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9986 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9987 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9988 * hpread.c (hpread_read_struct_type): Likewise.
9989 * stabsread.c (read_struct_type): Likewise.
9991 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9993 * configure.tgt: Add a catch all sh* target, for cases like
9994 sh[2,3,4]-elf and sh-hms.
9996 2002-05-14 Keith Seitz <keiths@redhat.com>
9998 * event-loop.c (create_file_handler): Don't do anything but
9999 update data when we are given a fd which we are already
10002 2002-05-14 Michal Ludvig <mludvig@suse.cz>
10004 * dwarf2cfi.c (context_cpy): Copy registers correctly.
10005 (update_context): Use __func__ in warnings.
10007 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10009 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
10010 and tcp_close to net_open and net_close.
10011 (net_open): Accept "udp:" and "tcp:" specifications. Connect
10012 using UDP if requested. Don't try to disable Nagle on UDP
10014 * remote.c (remote_serial_open): New function. Warn about UDP.
10015 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10017 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10019 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10021 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10023 * configure.tgt: Remove sh-hms target.
10024 * MAINTAINERS: Don't list sh-hms as a separate target.
10026 2002-05-13 Jim Blandy <jimb@redhat.com>
10028 Add first preprocessor macro-expansion files.
10029 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10030 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10031 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10032 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10033 (COMMON_OBS): Add macrotab.o, macroexp.o.
10034 (macroexp.o, macrotab.o): New rules.
10036 2002-05-13 Andrew Cagney <ac131313@redhat.com>
10038 * config/m88k/tm-m88k.h: Update copyright.
10039 (m88k_target_write_pc): Declare
10040 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10041 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10042 (SHIFT_INST_REGS): Update definition.
10043 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10044 using old definition of TARGET_WRITE_PC.
10045 * regcache.c (generic_target_write_pc): Delete code handling
10047 * gdbarch.sh (NNPC_REGNUM): Delete.
10048 * gdbarch.h, gdbarch.c: Regenerate.
10050 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
10052 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10053 builtin reg number.
10055 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10057 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10058 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10059 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10061 * c-typeprint.c (cp_type_print_method_args): Likewise.
10062 (c_type_print_args): Likewise.
10063 * d10v-tdep.c (d10v_push_arguments): Likewise.
10064 (d10v_extract_return_value): Likewise.
10065 * expprint.c (print_subexp): Likewise.
10066 * gdbtypes.c (lookup_primitive_typename): Likewise.
10067 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10068 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10069 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10070 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10071 (TYPE_VECTOR): Likewise.
10072 * hpread.c (hpread_read_struct_type)
10073 (fix_static_member_physnames, fixup_class_method_type)
10074 (hpread_type_lookup): Likewise.
10075 * mdebugread.c (parse_symbol, parse_type): Likewise.
10076 * p-lang.c (is_pascal_string_type): Likewise.
10077 * valops.c (hand_function_call): Likewise.
10078 * x86-64-tdep.c (classify_argument): Likewise.
10080 * hpread.c (hpread_read_function_type)
10081 (hpread_read_doc_function_type): Call replace_type.
10082 * dstread.c (create_new_type): Delete.
10083 (decode_dst_structure, process_dst_function): Call alloc_type.
10084 Use type access macros.
10086 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10088 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10089 the're not supported by the current architecture.
10090 (i387_fill_fxsave): Likewise.
10092 2002-05-12 Fred Fish <fnf@redhat.com>
10094 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10095 sect_index_xxx members to index the first slot in section_offsets
10096 if all of the section_offsets are zero.
10098 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10100 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10101 checked in with last change.
10103 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10105 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10106 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10109 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10111 * Makefile.in: Update dependencies.
10113 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10115 * language.c (local_hex_string_custom): Simplify. Do not depend
10116 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10118 * memattr.c (mem_info_command): Replace calls to
10119 longest_local_hex_string and longest_local_hex_string_custom.
10120 * buildsym.c (make_blockvector): Ditto.
10121 * solib.c (info_sharedlibrary_command): Ditto.
10122 * tracepoint.c (tracepoints_info): Ditto.
10123 * symtab.c (print_msymbol_info): Ditto.
10125 * language.c (local_hex_string): Delete.
10126 (local_hex_string_custom): Delete.
10127 (longest_local_hex_string): Rename to local_hex_string.
10128 (longest_local_hex_string_custom): Rename to
10129 local_hex_string_custom.
10130 * language.h (local_hex_string): Change parameter type to LONGEST.
10131 (local_hex_string_custom): Ditto.
10132 (longest_local_hex_string): Delete declaration.
10133 (longest_local_hex_string_custom): Ditto.
10135 * solib.c: Update copyright.
10136 * memattr.c: Update copyright.
10138 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10140 * arch-utils.h (legacy_register_to_value): Declare.
10141 (legacy_value_to_register): Declare.
10142 (legacy_convert_register_p): Declare.
10143 * arch-utils.c (legacy_register_to_value): New function.
10144 (legacy_value_to_register): New function.
10145 (legacy_convert_register_p): New function.
10147 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10148 (VALUE_TO_REGISTER): Define.
10149 (CONVERT_REGISTER_P): Define.
10150 * gdbarch.h, gdbarch.c: Regenerate.
10152 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10154 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10155 CONVERT_REGISTER_P.
10157 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10158 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10160 * Makefile.in: Update dependencies for valops.c.
10161 * valops.c: Include "gdb_assert.h".
10162 (typecmp): Skip THIS parameter to methods.
10163 (find_method_list): Remove static_memfuncp argument,
10164 update callers. Check for stub methods.
10165 (find_value_oload_method_list): Don't set *static_memfuncp.
10166 (find_overload_match): Don't check for stub methods. Assert
10167 that methods are not stubbed. Handle static methods.
10168 (value_find_oload_method_list): Remove static_memfuncp argument.
10169 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10170 to the argument list for static stub methods.
10171 * value.h (value_find_oload_method_list): Update prototype.
10173 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10175 * arch-utils.h (generic_register_size): Declare.
10176 (generic_register_raw_size, generic_register_virtual_size): Delete
10178 * arch-utils.c (generic_register_raw_size): Delete.
10179 (generic_register_size): New function.
10180 (generic_register_virtual_size): Delete.
10182 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10183 default generic_register_size.
10184 * gdbarch.h, gdbarch.c: Re-generate.
10186 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10187 register_virtual_size.
10188 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10189 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10191 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10193 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10194 * gdbarch.h, gdbarch.c: Regenerate.
10195 * gnu-v3-abi.c: Update copyright.
10196 (vtable_address_point_offset): Update.
10197 (gnuv3_rtti_type): Update.
10198 (gnuv3_baseclass_offset): Update.
10199 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10200 (init_fetch_link_map_offsets): Update.
10201 * remote.c (get_remote_state): Update.
10203 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10205 * TODO: Remove value_headof/value_from_vtable_info comment.
10206 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10207 * values.c (value_headof, value_from_vtable_info): Delete.
10208 * value.h (value_from_vtable_info): Delete prototype.
10210 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10212 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10213 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10215 (gdb_assert_h): Define.
10216 (gdb_wait_h): Define.
10217 (gdb_regex_h): Define.
10219 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10221 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10222 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10224 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10226 * nbsd-tdep.c: Fix comment.
10228 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10230 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10231 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10232 (nbsd-tdep.o): New dependency list.
10233 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10235 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10236 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10237 * nbsd-tdep.c: New file.
10238 * nbsd-tdep.h: New file.
10239 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10241 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10242 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10243 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10244 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10246 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10248 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10249 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10250 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10251 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10252 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10253 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10255 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10257 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10258 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10259 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10260 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10261 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10262 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10263 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10265 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10267 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10268 fetch_elfcore_registers to...
10269 * i386nbsd-tdep.c: ...here.
10270 (i386nbsd_use_struct_convention): Rename to...
10271 (i386nbsd_aout_use_struct_convention): ...this.
10272 (i386nbsd_supply_reg): New function.
10273 (i386nbsd_fill_reg): New function.
10274 (fetch_core_registers): Use i386nbsd_supply_reg.
10275 (fetch_elfcore_registers): Likewise.
10276 (_initialize_i386nbsd_tdep): New function.
10277 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10278 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10279 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10280 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10281 (i386nbsd_aout_use_struct_convention): ...this.
10283 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10285 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10286 (store_inferior_registers): Use shnbsd_fill_reg.
10287 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10288 sh_nbsd_supply_register): Collapse into...
10289 (shnbsd_supply_reg): ...this.
10290 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10291 (shnbsd_fill_reg): ...this.
10292 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10293 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10294 (fetch_core_registers): Use shnbsd_supply_reg.
10295 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10296 (sh_nbsd_core_fns): Rename to...
10297 (shnbsd_core_fns): ...this.
10298 (sh_nbsd_elfcore_fns): Rename to...
10299 (shnbsd_elfcore_fns): ...this.
10300 (sh_nbsd_init_abi): Rename to...
10301 (shnbsd_init_abi): ...this.
10302 (_initialize_sh_nbsd_tdep): Rename to...
10303 (_initialize_shnbsd_tdep): ...this.
10304 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10305 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10306 sh_nbsd_fill_register): Remove prototypes.
10307 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10309 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10311 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10312 (i387-nat.o): Delete dependency list.
10313 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10314 (x86-64-linux-nat.o): Likewise.
10315 * i387-nat.c: Delete file, moving contents to...
10316 * i387-tdep.c: ...here.
10317 * i387-nat.h: Rename...
10318 * i387-tdep.h: ...to this.
10319 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10320 * i386-linux-nat.c: Likewise.
10321 * i386bsd-nat.c: Likewise.
10322 * i386gnu-nat.c: Likewise.
10323 * i386nbsd-nat.c: Likewise.
10324 * i386v4-nat.c: Likewise.
10325 * x86-64-linux-nat.c: Likewise.
10326 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10327 * config/i386/go32.mh (NATDEPFILES): Likewise.
10328 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10329 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10330 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10331 * config/i386/linux.mh (NATDEPFILES): Likewise.
10332 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10333 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10334 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10335 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10337 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10339 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10340 (alphanbsd-nat.o): Remove dependency list.
10341 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10342 * alphanbsd-nat.c: Delete. Contents moved to...
10343 * alphanbsd-tdep.c: ...here.
10344 (_initialize_alphanbsd_tdep): Register core functions.
10345 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10347 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10349 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10350 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10351 (alphanbsd-nat.o): Likewise.
10352 (alphabsd-tdep.o): New dependency list.
10353 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10354 (fill_gregset): Use alphabsd_fill_reg.
10355 (supply_fpregset): Use alphabsd_supply_fpreg.
10356 (fill_fpregset): Use alphabsd_fill_fpreg.
10357 (fetch_inferior_registers): Use struct reg and struct fpreg
10358 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10359 and alphabsd_supply_fpreg.
10360 (store_inferior_registers): Use struct reg and struct fpreg
10361 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10362 and alphabsd_fill_fpreg.
10363 * alphabsd-tdep.c: New file.
10364 * alphabsd-tdep.h: New file.
10365 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10366 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10367 alphabsd_supply_fpreg.
10368 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10369 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10371 2002-05-11 Eric Christopher <echristo@redhat.com>
10373 * mips-tdep.c (mips_double_register_type): Fix thinko.
10374 (mips_single_register_type): Ditto.
10375 * MAINTAINERS: Add self.
10377 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10379 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10380 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10381 right thing on architectures with different endianness and/or
10384 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10386 From Christian Limpach <chris@Pin.LU>
10387 * configure.in: Change sed expression which comments out
10388 NATDEPFILES to also comment out continuation lines.
10389 * configure: Regenerate.
10391 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10393 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10396 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10398 * sh-tdep.c: Include correct file.
10400 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10402 New support for sh64-elf (sh5) target.
10404 * configure.tgt: For sh64-elf target, default to sh-elf.
10406 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10407 (struct gdbarch_tdep): Add new fields for new registers and ABI
10410 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10411 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10412 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10413 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10414 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10415 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10416 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10417 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10418 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10419 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10420 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10421 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10422 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10423 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10424 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10425 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10426 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10427 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10428 sign_extend, sh64_nofp_frame_init_saved_regs,
10429 sh64_init_extra_frame_info, sh64_get_saved_register,
10430 sh64_extract_struct_value_address, sh64_pop_frame,
10431 sh64_push_arguments, sh64_extract_return_value,
10432 sh64_store_return_value, sh64_show_media_regs,
10433 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10434 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10435 sh_sh64_register_virtual_type,
10436 sh_sh64_register_convert_to_virtual,
10437 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10438 sh64_register_read, sh64_pseudo_register_write,
10439 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10440 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10441 sh64_do_pseudo_register, sh_compact_do_registers_info,
10442 sh64_do_registers_info, sh_gdbarch_init): New functions.
10444 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10446 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10448 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10450 * linespec.c (decode_line_1): Check for a double quote after
10451 a filename correctly.
10453 2002-05-10 Jim Blandy <jimb@redhat.com>
10455 Properly track the size of the current objfile's .debug_line section.
10456 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10457 (DWARF_LINE_SIZE): New macro.
10458 (dwarf2_build_psymtabs_hard): Record the line section's size in
10459 the partial symbol table.
10460 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10463 2002-05-10 Petr Sorfa <petrs@caldera.com>
10465 * ia64-tdep.c: Handle breakpoints on L instruction type
10466 in MLX instruction bundle by moving the breakpoint to
10467 the third slot (X instruction type) as L holds only data.
10469 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10471 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10472 (process_one_symbol): Complain about discarding local symbols
10473 due to a misplaced N_LBRAC entry.
10475 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10477 From Daniel Berlin <dan@cgsoftware.com>
10478 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10479 decrease the depth we are at, in the case of templates.
10481 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10483 * mips-tdep.c (mips_float_register_type): New function.
10484 (mips_double_register_type): New function.
10485 (mips_print_register): Use them.
10486 (do_fp_register_row): Likewise.
10488 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10490 * signals/signals.c (signals): Remove conditional compilation around
10491 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10492 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10494 2002-05-09 Michael Snyder <msnyder@redhat.com>
10496 * remote-rdp.c (remote_rdp_can_run): Remove.
10498 2002-05-09 Tom Tromey <tromey@redhat.com>
10500 * jv-valprint.c (java_val_print): Handle `char' as a special case
10503 2002-05-09 Michael Snyder <msnyder@redhat.com>
10505 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10506 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10507 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10508 str r(0123),[sp,#nn].
10509 (arm_skip_prologue): Ditto. Also make disassembly
10510 order-independent by placing it in a loop.
10512 2002-05-06 Michael Snyder <msnyder@redhat.com>
10514 * stabsread.c (read_type): Add recognition for new attribute:
10515 "@V;" means that an array type is actually a vector.
10516 This is analogous to the vector flag that's been added to dwarf2.
10518 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10520 * i386-tdep.h (i386_abi): New enum.
10521 (struct gdbarch_tdep): Replace os_ident member with abi.
10522 (i386_gdbarch_register_os_abi): New prototype.
10523 * i386-tdep.c (i386_abi_names): New array.
10524 (process_note_abi_tag_sections): Removed.
10525 (process_note_sections): New function.
10526 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10527 (struct i386_abi_handler): New struct.
10528 (i386_abi_handler_list): New variable.
10529 (i386_gdbarch_register_os_abi): New function.
10530 (i386_gdbarch_init): Adapt for the changes given above.
10532 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10534 * gregset.h: Say "GNU/Linux".
10536 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10538 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10539 (build_gdbtypes): Build builtin_type_v2_float.
10540 (_initialize_gdbtypes): Register new builtin type.
10542 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10544 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10545 (clear_gdbarch_swap): New function.
10546 (initialize_non_multiarch): Call.
10547 (gdbarch_update_p): Before calling init(), swap out and clear the
10548 existing architecture.
10549 * gdbarch.c: Regenerate.
10551 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10553 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10556 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10558 * sh-nbsd-nat.c: Rename to...
10559 * shnbsd-nat.c: ...this.
10560 * sh-nbsd-tdep.c: Rename to...
10561 * shnbsd-tdep.c: ...this.
10562 * sh-nbsd-tdep.h: Rename to...
10563 * shnbsd-tdep.h: ...this.
10564 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10565 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10567 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10569 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10570 concatenation for command help messages.
10572 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10574 * NEWS: Note new sh*-*-netbsdelf* configuration.
10575 * configure.host: Set gdb_host_cpu to sh for all sh*.
10576 (sh*-*-netbsdelf*): New host.
10577 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10578 (sh*-*-netbsdelf*): New target.
10579 * sh-nbsd-nat.c: New file.
10580 * sh-nbsd-tdep.c: New file.
10581 * sh-nbsd-tdep.h: New file.
10582 * config/sh/nbsd.mh: New file.
10583 * config/sh/nbsd.mt: New file.
10584 * config/sh/nm-nbsd.h: New file.
10585 * config/sh/tm-nbsd.h: New file.
10587 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10589 * sh-tdep.c (sh_osabi_names): Declare.
10590 (process_note_abi_tag_sections): New function.
10591 (get_elfosabi): Ditto.
10592 (sh_gdbarch_register_os_abi): Ditto.
10593 (sh_dump_tdep): Ditto.
10594 _initialize_sh_tdep): Use gdbarch_register to register
10595 sh_gdbarch_init and sh_dump_tdep.
10596 * config/sh/tm-sh.h (sh_osabi): Declare.
10597 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10599 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10601 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10602 (thumb_scan_prologue): Ditto.
10603 (arm_find_callers_reg): Ditto.
10604 (arm_frame_chain): Ditto.
10605 (arm_init_extra_frame_info): Ditto.
10606 (arm_frame_saved_pc): Ditto.
10607 (arm_pop_frame): Ditto.
10608 (arm_push_return_address): New function.
10609 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10610 call_dummy_location, call_dummy_breakpoint_offset_p,
10611 call_dummy_breakpoint_offset, call_dummy_p,
10612 call_dummy_stack_adjust_p, call_dummy_words,
10613 sizeof_call_dummy_words, call_dummy_start_offset,
10614 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10615 call_dummy_address, push_return_address and push_dummy_frame for
10616 generic dummy frames.
10618 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10620 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10621 size computation for alloca.
10622 (sh_fp_frame_init_saved_regs): Likewise.
10624 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10626 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10627 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10628 * arm-tdep.c (arm_store_return_value): Use them.
10629 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10630 * remote-rdp.c (remote_rdp_fetch_register): Use
10631 ARM_MAX_REGISTER_RAW_SIZE.
10632 (remote_rdp_store_register): Likewise.
10634 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10636 * dwarf2cfi.c: Code cleanup, removed unused variables,
10637 added default labels to switch {} statements.
10638 * x86-64-tdep.c: Ditto.
10639 * x86-64-linux-nat.c: Ditto.
10641 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10643 * solib.h: Protect against multiple inclusion.
10645 2002-05-06 Jim Blandy <jimb@redhat.com>
10647 Add first preprocessor macro-expansion files.
10648 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10649 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10650 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10651 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10652 (COMMON_OBS): Add macrotab.o, macroexp.o.
10653 (macroexp.o, macrotab.o): New rules.
10655 Separate the job of reading the line number info statement program
10656 header (...expialidocious) out into its own function.
10657 * dwarf2read.c (struct line_head, struct filenames, struct
10658 directories): Replace with...
10659 (struct line_header): New structure, containing the full
10660 contents of the statement program header, including the
10661 include directory and file name tables.
10662 (read_file_scope): If we have line number info, instead of just
10663 calling dwarf_decode_lines to do all the work, call
10664 dwarf_decode_line_header first to get a `struct line_header'
10665 containing the data in the statement program header, and then
10666 pass that to dwarf_decode_lines, which will pick up where that
10667 left off. Be sure to clean up the `struct line_header' object.
10668 (dwarf_decode_line_header, free_line_header, add_include_dir,
10669 add_file_name): New functions.
10670 (dwarf_decode_lines): Move all the code to read the statement
10671 program header into dwarf_decode_line_header. Take the line
10672 header it built as the first argument, instead of the offset to
10673 the compilation unit's line number info. Use the new `struct
10674 line_header' type instead of the old structures. No need to do
10675 cleanups here now, since we don't allocate anything.
10676 (dwarf2_statement_list_fits_in_line_number_section,
10677 dwarf2_line_header_too_long): New complaints.
10679 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10681 * gdbtypes.c (init_vector_type): New function.
10682 (build_builtin_type_vec128): Simplify the representation of SIMD
10684 (build_gdbtypes): Initialize new builtin vector types.
10685 (_initialize_gdbtypes): Register new vector types with gdbarch.
10686 (builtin_type_v4_float, builtin_type_v4_int32,
10687 builtin_type_v8_int16, builtin_type_v16_int8,
10688 builtin_type_v2_int32, builtin_type_v4_int16,
10689 builtin_type_v8_int8): New (renamed) SIMD types.
10691 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10693 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10694 (i387_fill_fxsave): Likewise.
10696 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10698 * alpha-tdep.c (alpha_extract_return_value): Don't use
10699 non-constant array size in prototype.
10701 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10703 From Brian Taylor <briant at model dot com>:
10704 * ui-out.c (ui_out_field_core_addr): Use the function
10705 longest_local_hex_string_custom'to format addresses > 32 bits
10708 * ui-out.c (ui_out_field_core_addr): Update comment.
10710 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10712 * stack.c (select_and_print_frame): Make static. Delete the
10714 (func_command): Update call.
10715 (select_frame_command): Delete code computing the frame level.
10716 * frame.h (select_and_print_frame): Delete declaration.
10718 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10720 * sparc-tdep.c (sparc_get_saved_register): Comment why
10721 get_prev_frame call is safe.
10723 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10725 * frame.h (select_frame): Delete level parameter.
10726 * stack.c (select_frame): Update. Use frame_relative_level to
10727 obtain the frame's level.
10728 (select_and_print_frame): Update call.
10729 (select_frame_command): Ditto.
10730 (up_silently_base): Ditto.
10731 (down_silently_base): Ditto.
10732 * ocd.c (ocd_start_remote): Ditto.
10733 * remote-rdp.c (remote_rdp_open): Ditto.
10734 * remote-mips.c (mips_initialize): Ditto.
10735 (common_open): Ditto.
10736 * remote-e7000.c (e7000_start_remote): Ditto.
10737 * m3-nat.c (select_thread): Ditto.
10738 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10739 (child_get_current_exception_event): Ditto.
10740 * varobj.c (varobj_create): Ditto.
10741 (varobj_update): Ditto.
10742 (c_value_of_root): Ditto.
10743 * tracepoint.c (finish_tfind_command): Ditto.
10744 * corelow.c (core_open): Ditto.
10745 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10746 * thread.c (info_threads_command): Ditto.
10747 (switch_to_thread): Ditto.
10748 * infrun.c (normal_stop): Ditto.
10749 (restore_selected_frame): Ditto.
10750 (restore_inferior_status): Ditto.
10751 * breakpoint.c (insert_breakpoints): Ditto.
10752 (watchpoint_check): Ditto.
10753 (bpstat_stop_status): Ditto.
10754 (do_enable_breakpoint): Ditto.
10755 * blockframe.c (flush_cached_frames): Ditto.
10756 (reinit_frame_cache): Ditto.
10758 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10760 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10763 2002-05-04 Jim Blandy <jimb@redhat.com>
10765 * gdbtypes.c (replace_type): Doc fix.
10767 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10769 * valprint.c (strcat_longest): Delete commented out function.
10772 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10774 * MAINTAINERS: Mark a29k as deleted.
10775 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10776 Move new configurations to the top.
10777 * configure.tgt: Remove a29k.
10778 * config/a29k/tm-vx29k.h: Delete.
10779 * config/a29k/vx29k.mt: Delete.
10780 * config/a29k/tm-a29k.h: Delete.
10781 * config/a29k/a29k-udi.mt: Delete.
10782 * config/a29k/a29k.mt: Delete.
10783 * a29k-tdep.c: Delete.
10784 * remote-udi.c: Delete.
10785 * remote-mm.c: Delete.
10786 * remote-eb.c: Delete.
10787 * remote-adapt.c: Delete.
10788 * Makefile.in: Remove obsolete code.
10789 * config/s390/s390x.mt: Ditto.
10790 * config/s390/s390.mt: Ditto.
10791 * config/sparc/sparclynx.mh: Ditto.
10792 * config/sparc/linux.mh: Ditto.
10793 * config/pa/hppaosf.mh: Ditto.
10794 * config/pa/hppabsd.mh: Ditto.
10795 * config/ns32k/nbsd.mt: Ditto.
10796 * config/mips/vr5000.mt: Ditto.
10797 * config/m68k/sun3os4.mh: Ditto.
10798 * config/m68k/nbsd.mt: Ditto.
10799 * config/m68k/m68klynx.mh: Ditto.
10800 * config/m32r/m32r.mt: Ditto.
10801 * config/i386/x86-64linux.mt: Ditto.
10802 * config/i386/nbsdelf.mt: Ditto.
10803 * config/i386/nbsd.mt: Ditto.
10804 * config/i386/i386lynx.mh: Ditto.
10806 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10808 * target.c (debug_print_register): New function. Handle oversize
10810 (debug_to_fetch_registers): Call.
10811 (debug_to_store_registers): Call.
10813 2002-05-03 Jim Blandy <jimb@redhat.com>
10815 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10816 (read_type): Doc fix.
10817 * gdbtypes.c (replace_type): Doc fix.
10819 * stabsread.c (multiply_defined_struct): New complaint.
10820 (read_struct_type): If the type we were passed isn't empty, or
10821 incomplete, don't read the new struct type into it; complain,
10822 and return the original type unchanged. Take a new `type_code'
10823 argument, which is the type code for the new type.
10824 (read_type): Rather than storing the type's type code here, pass
10825 it as an argument to read_struct_type, and let that take care of
10826 storing it. That way, we don't overwrite the original type code,
10827 so read_struct_type can use it to decide whether we're overwriting
10828 something we shouldn't.
10829 (complain_about_struct_wipeout): New function.
10831 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10833 * gdbarch.sh: Assert that gdbarch is non-NULL.
10834 * gdbarch.c: Regenerate.
10836 2002-05-03 Jason Merrill <jason@redhat.com>
10838 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10841 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10843 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10844 (x86_64_dwarf2gdb_regno_map_length),
10845 (x86_64_dwarf2_reg_to_regnum): Added.
10846 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10847 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10848 (_initialize_x86_64_tdep): Synced with the change above.
10849 (x86_64_skip_prologue): Reformulated message.
10851 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10853 * f-exp.y: Also use new prev_lexptr variable
10854 to improve error reporting. Based on Michael Snyder
10855 2002-04-24 dated patch to c-exp.y.
10856 * jv-exp.y: Likewise.
10857 * m2-exp.y: Likewise.
10859 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10861 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10862 we are dealing with vectors.
10864 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10866 * config/m68k/tm-nbsd.h: Obvious fix,
10867 correct machine name.
10869 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10871 * p-typeprint.c (pascal_type_print_base): Add support
10872 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10874 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10876 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10877 for fondamental pascal 'char' type.
10879 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10881 * p-lang.h (is_pascal_string_type): Declaration changed,
10882 new sixth argument of type char ** added.
10883 * p-lang.c (is_pascal_string_type): Implementation
10884 changed. Args length_pos, length_size, string_pos, char_size
10885 can now be NULL. New argument arrayname set to the field
10886 name of the char array. Return value set to char array
10887 field index plus one.
10888 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10889 is_pascal_string_type function.
10891 2002-05-02 Andrew Cagney <cagney@redhat.com>
10893 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10894 <cagney@redhat.com> change.
10895 * gdbarch.c: Regenerate.
10897 2002-05-02 Andrew Cagney <cagney@redhat.com>
10899 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10900 before probing for a new one. Detect errorenous gdbarch_init
10902 * gdbarch.c: Regenerate.
10904 2002-05-01 Andrew Cagney <cagney@redhat.com>
10906 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10907 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10908 * config/v850/tm-v850.h: Ditto. Update copyright.
10910 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10912 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10915 2002-04-30 Michael Snyder <msnyder@redhat.com>
10917 * arm-tdep.c: Whitespace clean-ups.
10918 (arm_skip_prologue): Fix thinko; two lines
10919 should have been removed as part of 4/24 change.
10921 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10923 * rs6000-tdep.c: Added comment describing how fpscr register
10924 numbers were chosen.
10926 2002-04-30 Michael Snyder <msnyder@redhat.com>
10928 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10930 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10932 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10933 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10934 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10936 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10938 From Louis Hamilton <hamilton@redhat.com>:
10939 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10940 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10941 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10942 not bfd-private xcoff data, to determine wordsize.
10943 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10945 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10947 GDB 5.2 released from 5.2 branch.
10949 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10951 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10952 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10953 (x86_64_register_info_table): Added comments with register numbers.
10955 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10957 * rs6000-tdep.c (rs6000_extract_return_value,
10958 rs6000_store_return_value): Handle returning vectors.
10959 (rs6000_gdbarch_init): Use
10960 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10961 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10963 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10965 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10966 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10968 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10970 * hpread.c (hpread_psymtab_to_symtab_1,
10971 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10972 with fprintf_unfiltered (gdb_stderr,...).
10974 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10976 * remote-array.c (printf_monitor, write_monitor,
10977 array_insert_breakpoint, array_remove_breakpoint ):
10978 Replace fprintf (stderr,...
10979 with fprintf_unfiltered (gdb_stderr,....
10980 * remote-es.c: Likewise.
10981 * remote-os9k.c: Likewise.
10982 * remote-st.c: Likewise.
10984 2002-04-28 Andreas Schwab <schwab@suse.de>
10986 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10987 linux-proc.o and gcore.o.
10989 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10991 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10992 code without frame pointers.
10994 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10996 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10997 ON_STACK is needed.
10999 2002-04-26 Ben Elliston <bje@redhat.com>
11001 * target.c (do_xfer_memory): Correct reference to the new option
11002 "trust-readonly-sections".
11004 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
11006 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11007 * gdbtypes.c (recursive_dump_type): Output the vector flag.
11008 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11010 (read_array_type): Record the fact that this array type is really a
11011 vector (i.e. are passed in by value).
11013 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
11015 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11016 * alpha-tdep.c (alpha_sigcontext_addr): New function.
11017 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11018 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11019 * alpha-linux-tdep.c: Include frame.h.
11020 (alpha_linux_sigcontext_addr): New function.
11021 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11022 alpha_linux_sigcontext_addr.
11023 * alpha-osf1-tdep.c: Include gdbcore.h.
11024 (alpha_osf1_sigcontext_addr): New function.
11025 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11026 alpha_osf1_sigcontext_addr.
11027 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11028 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11030 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11032 * stack.c (selected_frame_level):
11033 (select_frame): Do not set selected_frame_level.
11034 * frame.h (selected_frame_level): Delete declaration.
11036 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11038 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11039 convert_from_func_ptr-addr when AIX / PowerOpen.
11041 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11043 * valops.c (hand_function_call): Call
11044 generic_save_call_dummy_addr.
11045 * frame.h (generic_save_call_dummy_addr): Declare.
11046 * blockframe.c (struct dummy_frame): Add fields call_lo and
11048 (generic_find_dummy_frame): Check for PC in range call_lo to
11049 call_hi instead of entry_point_address.
11050 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11051 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11052 (generic_save_call_dummy_addr): New function.
11054 2002-04-24 David S. Miller <davem@redhat.com>
11056 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11057 sparc_skip_prologue.
11058 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11059 information to find prologue when possible.
11060 (sparc_prologue_frameless_p): Call examine_prologue directly.
11061 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11062 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11064 (SKIP_PROLOGUE): Likewise.
11066 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11068 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11069 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11070 indicate that the condition it was testing is always true.
11071 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11072 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11073 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11075 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11077 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11078 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11079 tdep->jb_pc and tdep->jb_elt_size.
11080 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11081 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11082 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11083 * alpha-nat.c (get_longjmp_target): Remove.
11084 (JB_ELEMENT_SIZE): Ditto.
11086 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11087 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11088 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11089 to alpha_get_longjmp_target.
11090 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11091 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11092 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11094 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11096 * README: Update to GDB 5.2.
11098 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11100 * gdbarch.sh (LC_ALL): Set to `c'.
11102 2002-04-25 Theodore A. Roth <troth@verinet.com>
11104 * avr-tdep.c: Ran through gdb_indent.sh.
11106 2002-04-25 Theodore A. Roth <troth@verinet.com>
11108 * MAINTAINERS: Add myself as AVR maintainer.
11109 * NEWS: Note new target avr.
11111 2002-04-25 Theodore A. Roth <troth@verinet.com>
11113 * Makefile.in: Add support for AVR target.
11114 * configure.tgt: Add support for AVR target.
11115 * avr-tdep.c: New file
11116 * config/avr/avr.mt: New file.
11118 2002-04-25 Theodore A. Roth <troth@verinet.com>
11120 * MAINTAINERS: Add myself to write-after-approval.
11122 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11124 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11125 with fprintf_unfiltered (gdb_stderr,....
11127 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11130 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11132 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11134 * p-exp.y: Also use new prev_lexptr variable
11135 to improve error reporting. Based on Michael Snyder
11136 2002-04-24 dated patch to c-exp.y.
11138 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11140 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11141 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11142 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11144 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11146 (FUNCTION_START_OFFSET): Remove.
11147 (BREAKPOINT): Ditto.
11149 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11151 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11154 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11156 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11157 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11158 alpha_linux_pc_in_sigtramp.
11159 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11160 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11161 alpha_osf1_pc_in_sigtramp.
11162 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11163 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11164 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11165 alphafbsd_pc_in_sigtramp.
11166 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11167 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11168 alphanbsd_pc_in_sigtramp.
11169 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11170 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11172 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11174 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11176 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11178 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11180 (alphanbsd-nat.o): New dependency list.
11181 (alphanbsd-tdep.o): Ditto.
11182 * NEWS: Note new native NetBSD/alpha configuration.
11183 * alphanbsd-nat.c: New file.
11184 * alphanbsd-tdep.c: Ditto.
11185 * configure.host (alpha*-*-netbsd*): New host.
11186 * configure.tgt (alpha*-*-netbsd*): New target.
11187 * config/alpha/nbsd.mh: New file.
11188 * config/alpha/nbsd.mt: Ditto.
11189 * config/alpha/nm-nbsd.h: Ditto.
11190 * config/alpha/tm-nbsd.h: Ditto.
11192 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11194 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11195 (alpha-osf1-tdep.o): New dependency list.
11196 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11197 and skip_sigtramp_frame members.
11198 * alpha-linux-tdep.c: Include gdbcore.h.
11199 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11200 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11201 * alpha-osf1-tdep.c: New file.
11202 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11204 (alpha_frame_past_sigtramp_frame): New function.
11205 (alpha_dynamic_sigtramp_offset): Ditto.
11206 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11207 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11208 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11209 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11210 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11211 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11212 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11213 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11214 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11215 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11216 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11217 to find_solib_trampoline_target.
11218 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11219 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11220 (SKIP_TRAMPOLINE_CODE): Remove.
11221 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11222 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11223 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11224 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11225 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11226 (PROC_SIGTRAMP_MAGIC): Ditto.
11227 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11228 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11229 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11230 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11231 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11233 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11235 * NEWS: Note that Alpha targets are now multi-arch.
11237 2002-04-24 Michael Snyder <msnyder@redhat.com>
11239 * parser-defs.h (prev_lexptr): New external variable.
11240 * parse.c (parse_exp_1): Set prev_lexptr to null before
11241 calling the language-specific parser.
11242 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11243 (yyerror): Use prev_lexptr in error reporting.
11245 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11247 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11248 * gregset.h: If FILL_FPXREGSET is defined, provide
11249 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11250 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11251 is defined, call fill_fpxregset.
11253 2002-04-24 Roland McGrath <roland@frob.com>
11255 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11256 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11257 (supply_gregset, supply_fpregset): New functions.
11259 * gnu-nat.c (gnu_find_memory_regions): New function.
11260 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11261 (gnu_xfer_memory): Add a cast.
11263 2002-04-24 Michael Snyder <msnyder@redhat.com>
11265 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11266 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11267 of argument regs ("str r(0123), [r11, #-nn"]).
11268 (arm_skip_prologue): Better handling for frameless functions.
11269 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11270 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11272 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11274 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11275 NUM_PSEUDO_REGS can be used.
11277 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11279 * arch-utils.h: Update copyright.
11281 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11282 * gdbarch.h, gdbarch.c: Re-generate.
11284 * inferior.h (IN_SIGTRAMP): Delete definition.
11285 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11286 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11288 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11289 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11290 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11291 (find_proc_framesize): Ditto.
11292 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11293 (alpha_init_extra_frame_info): Ditto.
11294 * infrun.c (handle_inferior_event): Ditto.
11295 (handle_inferior_event): Ditto.
11296 (check_sigtramp2): Ditto.
11297 * blockframe.c (create_new_frame): Ditto.
11298 (get_prev_frame): Ditto.
11299 * ppc-linux-tdep.c: Update comments.
11300 * i386-linux-tdep.c: Update comments.
11301 * breakpoint.c (bpstat_what): Update comment.
11303 2002-04-24 David S. Miller <davem@redhat.com>
11305 * i960-tdep.c (register_in_window_p): New function.
11306 (i960_find_saved_register): Use it instead of
11307 REGISTER_IN_WINDOW_P.
11308 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11310 * symtab.h (find_stab_function_addr): Kill extern.
11311 * minsyms.c (find_stab_function_addr): Remove from here...
11312 * dbxread.c: ... to here, and mark it static.
11314 2002-04-20 David S. Miller <davem@redhat.com>
11316 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11317 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11319 2002-04-21 David S. Miller <davem@redhat.com>
11321 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11322 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11323 (vx_write_register): Likewise.
11325 2002-04-23 J. Brobecker <brobecker@gnat.com>
11327 * source.c (is_regular_file): New function.
11328 (openp): Check wether file to open is a regular file
11329 to avoid opening directories.
11331 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11333 * findvar.c (extract_signed_integer): Cast printf argument
11334 to suppress format warning.
11335 (extract_unsigned_integer): Likewise.
11336 * infcmd.c (registers_info): Likewise.
11337 * top.c (get_prompt_1): Likewise.
11338 * valops.c (value_assign): Likewise.
11339 * valprint.c (print_decimal): Likewise.
11341 2002-04-22 H.J. Lu (hjl@gnu.org)
11343 * c-exp.y (typebase): Support
11345 [long|long long|short] [signed|unsigned] [int|]
11349 signed [long|long long|short] int
11351 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11353 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11355 * vax-tdep.h: New file.
11356 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11357 Make several routines static.
11358 (vax_get_saved_register): New function.
11359 (vax_gdbarch_init): New function.
11360 (_initialize_vax_tdep): Register vax_gdbarch_init.
11361 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11362 Remove macros now under the control of gdbarch.
11364 2002-04-22 Michael Snyder <msnyder@redhat.com>
11366 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11367 Some whitespace and coding standards tweaks.
11369 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11371 * vax-tdep.c: Include regcache.h.
11372 (vax_call_dummy_words): New.
11373 (sizeof_vax_call_dummy_words): New.
11374 (vax_fix_call_dummy): New function.
11375 (vax_saved_pc_after_call): Ditto.
11376 * config/vax/tm-vax.h: Don't include regcache.h.
11377 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11378 (CALL_DUMMY): Remove.
11379 (CALL_DUMMY_WORDS): Define.
11380 (SIZEOF_CALL_DUMMY_WORDS): Define.
11381 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11383 2002-04-18 Michael Snyder <msnyder@redhat.com>
11385 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11387 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11389 * vax-tdep.c (vax_frame_chain): New function.
11390 (vax_push_dummy_frame): Ditto.
11391 (vax_pop_frame): Ditto.
11392 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11393 (FRAMELESS_FUNCTION_INVOCATION): Use
11394 generic_frameless_function_invocation_not.
11395 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11396 (POP_FRAME): Use vax_pop_frame.
11398 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11400 * vax-tdep.c (vax_store_struct_return): New function.
11401 (vax_extract_return_value): Ditto.
11402 (vax_store_return_value): Ditto.
11403 (vax_extract_struct_value_address): Ditto.
11404 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11405 vax_store_struct_return.
11406 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11407 (STORE_RETURN_VALUE): Use vax_store_return_value.
11408 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11410 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11412 * vax-tdep.c (vax_frame_saved_pc): New function.
11413 (vax_frame_args_address_correct): Ditto.
11414 (vax_frame_args_address): Ditto.
11415 (vax_frame_locals_address): Ditto.
11416 (vax_frame_num_args): Move code to be in proximity to
11417 other frame-related functions.
11418 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11419 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11420 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11421 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11422 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11424 2002-04-22 H.J. Lu (hjl@gnu.org)
11426 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11429 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11431 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11432 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11433 (FRAME_INIT_SAVED_REGS): New macro.
11435 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11437 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11439 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11441 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11443 (fetch_osf_core_registers): Likewise.
11444 (supply_gregset): Likewise.
11446 2002-04-22 J. Brobecker <brobecker@gnat.com>
11448 * symfile.h (get_section_index): Define.
11449 * symfile.c (get_section_index): New function.
11450 * mdebugread.c (SC_IS_SBSS): New macro.
11451 (SC_IS_BSS): Return true for the scBss storage class only, as
11452 the scSBss storage class refers to the .sbss section.
11453 (parse_partial_symbols): Discard the symbols which associated
11454 section does not exist.
11455 Make sure to use the .sbss section index for symbols which
11456 storage class is scBss, rather than using the .bss section index.
11458 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11460 * vax-tdep.c: Update copyright years.
11461 (vax_register_name): New function.
11462 (vax_register_byte): Ditto.
11463 (vax_register_raw_size): Ditto.
11464 (vax_register_virtual_size): Ditto.
11465 (vax_register_virtual_type): Ditto.
11466 * config/vax/tm-vax.h: Update copyright years.
11467 (REGISTER_NAMES): Remove.
11468 (REGISTER_NAME): Define.
11469 (REGISTER_BYTE): Use vax_register_byte.
11470 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11471 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11472 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11474 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11476 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11478 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11480 2002-04-21 David S. Miller <davem@redhat.com>
11482 * arch-utils.c (generic_prologue_frameless_p): Kill
11483 SKIP_PROLOGUE_FRAMELESS_P code.
11484 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11486 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11487 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11488 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11490 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11491 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11492 (sparc_gdbarch_init): Pass it to
11493 set_gdbarch_prologue_frameless_p.
11495 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11497 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11498 (alphabsd-nat.o): New dependency list.
11500 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11502 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11504 (alpha-linux-tdep.o): New dependency list.
11505 (alphafbsd-tdep.o): Likewise.
11507 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11509 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11511 * alpha-tdep.c: ...from here.
11512 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11514 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11516 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11517 prototype from here...
11518 * alpha-tdep.h: ...to here.
11520 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11522 * frame.h (selected_frame_level): Document as deprecated.
11523 (frame_relative_level): Declare.
11524 * stack.c (frame_relative_level): New function.
11525 (selected_frame_level): Document as deprecated.
11526 (select_frame): Do not set the selected_frame_level.
11528 * stack.c (frame_info, record_selected_frame): Update.
11529 (frame_command, current_frame_command): Update.
11530 (up_silently_base, up_command, down_silently_base): Update.
11531 (down_command): Update.
11532 * inflow.c (kill_command): Update.
11533 * tracepoint.c (finish_tfind_command): Update.
11534 * corelow.c (core_open): Update.
11535 * thread.c (info_threads_command): Update.
11536 (do_captured_thread_select): Update.
11537 * infcmd.c (finish_command): Update.
11538 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11540 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11542 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11544 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11546 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11549 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11551 * alphafbsd-tdep.c: Update copyright years. Include
11553 (alphafbsd_use_struct_convention): Make static.
11554 (alphafbsd_init_abi): New function.
11555 (_initialize_alphafbsd_tdep): New function.
11556 * config/alpha/tm-fbsd.h: Update copyright years.
11557 (USE_STRUCT_CONVENTION): Remove.
11559 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11561 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11562 an Alpha ABI variant.
11563 (alpha_abi_handler_list): Declare.
11564 (alpha_gdbarch_register_os_abi): New function.
11565 (alpha_gdbarch_init): Give registered ABI variant handlers a
11566 chance to tweak the gdbarch once we have set up defaults.
11567 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11569 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11571 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11572 to standard_coerce_float_to_double.
11573 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11575 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11577 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11578 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11579 from gdbarch_tdep rather than a constant.
11580 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11581 the default text address for all Alpha Unix ABIs.
11582 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11583 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11585 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11587 * alpha-tdep.h: New file. Includes several Alpha target constants
11589 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11590 let gdbarch deal with.
11591 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11592 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11593 to dependency list.
11594 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11595 Alpha target register names.
11596 * alphabsd-nat.c: Likewise.
11597 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11598 Alpha target register names. Make serveral routines static.
11599 (alpha_get_saved_register): New function.
11600 (alpha_abi_names): New.
11601 (process_note_abi_tag_sections): New function.
11602 (get_elfosabi): New function.
11603 (alpha_gdbarch_init): New function.
11604 (alpha_dump_tdep): New function.
11605 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11607 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11609 * frame.c (find_saved_register): Delete #ifdef
11610 HAVE_REGISTER_WINDOWS code.
11611 * config/sparc/tm-sparc.h: Update comments.
11612 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11614 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11616 * i960-tdep.c (i960_find_saved_register): New function.
11617 (i960_get_saved_register): New function.
11618 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11619 (i960_get_saved_register): Declare.
11620 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11622 2002-04-20 David S. Miller <davem@redhat.com>
11624 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11626 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11628 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11629 instead of NUM_PSEUDO_REGS.
11631 2002-04-20 David S. Miller <davem@redhat.com>
11633 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11634 GDB_MULTI_ARCH_PARTIAL
11635 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11636 define, let tm-sp64.h do it.
11638 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11640 * frame.c (find_saved_register): Avoid a NULL pointer
11641 dereference and actually walk the frame list.
11643 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11645 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11646 sorted in most most-recent-used order. Document.
11647 * gdbarch.h, gdbarch.c: Regenerate.
11649 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11651 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11653 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11654 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11655 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11658 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11661 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11662 (build_builtin_type_vec128): Ditto.
11663 (append_composite_type_field): Fix calculation of type length in
11666 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11668 * config/djgpp/README: Update.
11670 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11673 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11675 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11676 (alpha_setup_arbitrary_frame): ...to this.
11677 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11678 for alpha_setup_arbitrary_frame.
11680 2002-04-18 Andrew Cagney <cagney@redhat.com>
11682 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11683 * gdbarch.h, gdbarch.c: Regenerate.
11685 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11686 * target.h (memory_breakpoint_from_pc): Update declaration.
11687 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11689 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11690 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11691 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11692 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11693 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11694 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11695 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11696 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11697 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11698 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11699 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11700 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11702 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11704 * monitor.c (monitor_insert_breakpoint): Ditto.
11705 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11707 * config/mcore/tm-mcore.h: Update copyright.
11708 * mem-break.c: Ditto.
11709 * xstormy16-tdep.c: Ditto.
11711 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11713 * p-exp.y: Add precedence rule for '^' token.
11714 This removes the shift/reduce conflicts.
11715 Remove the comment concerning these shift/reduce conflicts.
11717 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11719 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11720 (registers_powerpc_nofp): New register set for processors
11721 without floating point unit.
11723 2002-04-18 David S. Miller <davem@redhat.com>
11725 * MAINTAINERS: Add myself to write-after-approval.
11727 2002-04-17 Michael Snyder <msnyder@redhat.com>
11729 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11731 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11733 * rs6000-tdep.c (frame_initial_stack_address): Use
11734 frame_register_read to read the alloca_reg.
11736 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11738 * frame.c (find_saved_register): Find saved registers in the next
11742 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11744 * gdbarch.sh (LANG): Set to ``c''.
11746 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11748 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11750 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11752 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11755 * hpread.c (hpread_get_lntt): Add declaration.
11756 Also fix PR gdb/391.
11758 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11760 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11761 * aclocal.m4, configure: Re-generate.
11764 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11766 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11767 instead of tm_print_insn.
11769 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11771 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11773 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11775 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11776 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11777 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11779 2002-04-12 Don Howard <dhoward@redhat.com>
11781 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11782 max_user_call_depth.
11783 (init_cmd_lists): Initialize the new value;
11784 * cli/cli-script.c (execute_user_command): Limit the call depth of
11785 user defined commands. This avoids a core-dump when user commands
11786 are infinitly recursive.
11788 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11790 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11791 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11792 from tdep struct instead of DEFAULT_LR_SAVE.
11793 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11794 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11795 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11797 2002-04-12 Michael Snyder <msnyder@redhat.com>
11799 * Remote.c: Spelling fix.
11800 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11801 If no symbol found for "sbrk", try "_sbrk".
11802 (make_output_phdrs): Use bfd_section_name.
11803 (gcore_copy_callback): Use bfd_section_name.
11804 * eval.c: Indentation fix-ups.
11805 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11806 in case it gets applied to an address that is already
11807 in the instruction space.
11808 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11809 * symfile.c: Fix indentation, long lines.
11810 * source.c: White space fix-up.
11812 2002-04-12 Andrew Cagney <cagney@redhat.com>
11814 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11815 * frame.c (frame_register_read): New function. Return non-zero on
11817 (read_relative_register_raw_bytes_for_frame): Delete.
11818 (read_relative_register_raw_bytes): Delete.
11819 * frame.h (frame_register_read): Declare.
11820 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11821 * sh-tdep.c: Ditto.
11822 * infcmd.c (do_registers_info): Ditto.
11823 * hppa-tdep.c: Ditto.
11824 * rs6000-tdep.c: Ditto.
11825 * h8500-tdep.c: Ditto.
11826 * mips-tdep.c: Ditto.
11827 * h8300-tdep.c: Ditto.
11828 * z8k-tdep.c: Ditto.
11830 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11832 From Jimi X <jimix@watson.ibm.com>:
11833 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11836 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11838 From Jimi X <jimix@watson.ibm.com>:
11839 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11842 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11844 From Jimi X <jimix@watson.ibm.com>:
11845 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11846 register sets for these processor variants.
11848 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11850 * regformats/reg-ppc.dat: Support FPSCR.
11852 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11854 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11855 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11856 Add fpscr as an invalid/unfetchable register.
11857 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11858 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11859 (fill_fpregset): Add support for register fpscr.
11860 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11861 (fill_gregset): Account for the fact that register ``mq'' might
11863 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11864 (registers_power): Add fpscr to register set at slot 71.
11865 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11866 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11868 2002-04-11 Michael Snyder <msnyder@redhat.com>
11870 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11871 * configure: Regenerate.
11872 * config.in: Regenerate.
11873 * acconfig.h: Add define for _SYSCALL32.
11874 * core-sol2.c: Remove #define _SYSCALL32.
11875 * solib-legacy.c: Remove #define _SYSCALL32.
11877 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11879 * stack.c (select_frame): Cleanup internal error message, do not
11882 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11884 * stack.c (select_frame): Check that selected_frame and the
11885 specified level are as expected.
11886 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11888 * frame.h (struct frame_info): Add field `level'. Update
11890 Work-in-progress PR gdb/464.
11892 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11894 * maint.c (maint_print_section_info): Rename print_section_info.
11895 (print_bfd_section_info, print_objfile_section_info): Update.
11896 * inferior.h (struct gdbarch): Add opaque declaration.
11897 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11898 * gdbarch.h: Regenerate.
11900 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11902 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11903 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11904 (kernel_u_size): Added.
11905 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11906 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11908 2002-04-04 Jim Ingham <jingham@apple.com>
11910 * valarith.c (find_size_for_pointer_math): New function, either returns
11911 the size for a pointer's target, returns 1 for void *, or errors for
11913 (value_add, value_sub): use find_size_for_pointer_math.
11915 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11917 * linux-low.c (linux_look_up_symbols): New hook.
11918 (linux_target_ops): Add linux_look_up_symbols.
11919 * remote-utils.c (decode_address): New function.
11920 (look_up_one_symbol): New function.
11921 * server.c (handle_query): Call target look_up_symbols hook.
11922 * server.h (look_up_one_symbol): Add prototype.
11923 * target.h (struct target_ops): Add look_up_symbols hook.
11925 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11927 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11928 override FP_REGNUM with frame->fp. Update copyright.
11929 * parse.c (num_std_regs, std_regs): Delete.
11930 (target_map_name_to_register): Do not search std_regs. Update
11931 function description.
11932 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11933 declarations. Update copyright.
11936 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11938 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11939 after the last symbol in a block.
11941 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11943 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11944 is non zero as a found symbol.
11946 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11948 * findvar.c: Include "builtin-regs.h".
11949 (value_of_register): Call value_of_builtin_reg when applicable.
11950 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11951 (target_map_name_to_register): Call
11952 builtin_reg_map_name_to_regnum.
11953 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11954 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11955 (builtin_regs_h): Define.
11956 (builtin-regs.o): New target.
11957 (findvar.o): Add $(builtin_regs_h).
11958 * builtin-regs.c, builtin-regs.h: New files.
11959 * std-regs.c: New file.
11960 Partial fix for PR gdb/251.
11962 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11964 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11965 it's no longer required.
11967 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11969 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11971 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11973 From Jimi X <jimix@watson.ibm.com>:
11974 * rs6000-tdep.c (rs6000_software_single_step): Use
11975 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11976 and size. Use target_insert_breakpoint() and
11977 target_remove_breakpoint() to insert and remove breakpoints
11978 instead of explicit memory reads and writes.
11980 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11982 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11983 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11984 ELF_OBJECT_FORMAT ifdef.
11986 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11988 From Jimi X <jimix@watson.ibm.com>:
11989 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11991 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11993 From Jimi X <jimix@watson.ibm.com>:
11994 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11995 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11997 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11999 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12000 s/asprintf/xasprintf/.
12001 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12003 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12005 I believe Jeff Law denies responsability for this one:
12006 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12007 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12008 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12009 Work-around for PR gdb/366.
12011 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12013 * remote-e7000.c (write_small, e7000_read_inferior_memory,
12014 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12015 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12017 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12019 * sh-tdep.c (sh_fp_frame_init_saved_regs,
12020 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12023 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12025 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12028 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12030 * README (Reporting Bugs in GDB): Document the bug web page as the
12031 prefered way of submitting bugs.
12034 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12036 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12037 -1. Update comment.
12038 * gdbarch.h, gdbarch.c: Re-generate.
12040 2002-04-07 Andreas Schwab <schwab@suse.de>
12042 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12043 buffer to regcache_collect.
12045 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12047 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12048 * gdbarch.c, gdbarch.h: Re-generate.
12050 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12052 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12053 declaration. Fix -Werror.
12055 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12057 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12058 * gdbarch.c: Regenerate.
12060 2002-04-05 Michael Snyder <msnyder@redhat.com>
12062 * breakpoint.c (clear_command): Rewrite middle section to
12063 combine two loops with identical control conditions.
12064 Add a cleanup to eliminate a memory leak.
12065 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12067 2002-04-05 H.J. Lu (hjl@gnu.org)
12069 * solib-svr4.c (bkpt_names): Add "__start".
12071 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12073 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12074 as test for 64 bit target.
12076 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12078 * h8500-tdep.c (h8500_write_fp): Delete function.
12079 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12080 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12081 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12083 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12084 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12086 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12087 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12088 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12089 (d10v_write_fp): Delete function.
12090 * inferior.h (write_fp, generic_target_write_fp): Delete
12092 * regcache.c (generic_target_write_fp): Delete function.
12093 (write_fp): Delete function.
12094 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12095 * gdbarch.h, gdbarch.c: Regenerate.
12096 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12097 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12098 (sparc64_write_fp): Delete declaration.
12099 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12100 (h8500_write_fp): Delete declaration.
12102 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12104 * sparc-tdep.c (sparc64_write_fp): Delete.
12105 (sparc_push_dummy_frame): Replace write_fp call with code to store
12107 (sparc_gdbarch_init): Do not initialize write_fp.
12109 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12111 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12114 2002-03-29 Jim Blandy <jimb@redhat.com>
12116 * stack.c (get_selected_block): Add new argument `addr_in_block',
12117 used to return the exact code address we used to select the block,
12118 not just the block.
12119 * blockframe.c (get_frame_block, get_current_block): Same.
12120 * frame.h (get_frame_block, get_current_block,
12121 get_selected_block): Update declarations.
12122 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12123 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12125 2002-04-05 Michael Snyder <msnyder@redhat.com>
12127 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12130 2002-04-05 J. Brobecker <brobecker@gnat.com>
12132 * utils.c (xfullpath): New function.
12133 * defs.h (xfullpath): Add declaration.
12134 * source.c (openp): Use xfullpath in place of gdb_realpath to
12135 avoid resolving the basename part of filenames when the
12136 associated file is a symbolic link. This fixes a potential
12137 inconsistency between the filenames known to GDB and the
12138 filenames it prints in the annotations.
12139 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12140 to be able to match a filename with either the real filename, or
12141 the name of any symbolic link to this file.
12142 (lookup_partial_symtab): Ditto.
12144 2002-04-04 Michael Snyder <msnyder@redhat.com>
12146 * breakpoint.c: Add support for hardware breakpoints in overlays.
12147 (overlay_events_enabled): New state variable.
12148 (insert_breakpoints): Use overlay_events_enabled to decide
12149 whether to attempt to set a breakpoint at the overlay load addr.
12150 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12151 (remove_breakpoint): Use overlay_events_enabled to decide
12152 whether breakpoints need to be removed from overlay load addr.
12153 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12154 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12155 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12156 disable_overlay_breakpoints): Update overlay_events_enabled.
12158 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12160 * dwarf2read.c (struct function_range): New.
12161 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12162 (check_cu_functions): New.
12163 (read_file_scope): Initialize global function lists.
12164 Call dwarf_decode_line after processing children.
12165 (read_func_scope): Add to global function list.
12166 (dwarf_decode_lines): Call check_cu_functions everywhere
12167 record_line is called. Call record_line with a linenumber
12168 of 0 to mark sequence ends.
12170 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12172 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12173 change sync with glibc.
12175 2002-04-03 Jim Blandy <jimb@redhat.com>
12177 * configure.in: Call AC_C_INLINE.
12178 * configure: Regenerated.
12180 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12182 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12183 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12185 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12187 * NEWS: Mention gcore support on FreeBSD/i386.
12189 * fbsd-proc.c: New file.
12190 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12191 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12193 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12196 2002-03-29 Jim Blandy <jimb@redhat.com>
12198 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12199 unescaped newlines in string literals, but newer ones don't. So
12202 2002-03-26 Michael Snyder <msnyder@redhat.com>
12203 Andrew Cagney <cagney@redhat.com>
12205 * cli/cli-dump.c: New file. Dump memory to file,
12206 restore file to memory.
12207 * cli/cli-dump.h: New file.
12208 * Makefile.in: Add rules, dependencies for cli-dump.o.
12209 * NEWS: Mention new commands.
12211 2002-03-28 Michael Snyder <msnyder@redhat.com>
12213 * symfile.c (symbol_file_add): Move test for null symbols to later.
12215 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12217 From veksler at il.ibm.com:
12218 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12219 the xstrduped original path.
12222 2002-03-27 Michael Snyder <msnyder@redhat.com>
12224 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12225 * infcmd.c (_initialize_infcmd): Ditto.
12226 * language.c (_initialize_language): Ditto.
12227 * symfile.c (_initialize_symfile): Ditto.
12228 * top.c (_init_main): Ditto.
12229 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12231 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12233 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12234 vector registers handling.
12235 (skip_prologue): Handle new AltiVec instructions. Fill in new
12236 fields of frame data.
12237 (frame_get_saved_regs): Fill in information for AltiVec registers.
12239 2002-03-27 Jim Blandy <jimb@redhat.com>
12241 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12242 a function; leave this macro here to invoke that function.
12243 (symbol_init_mangled_name): Declaration for that function.
12244 * symtab.c (symbol_init_mangled_name): New function.
12246 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12248 * valarith.c: Replace strerror with safe_strerror.
12249 * tracepoint.c: Ditto.
12250 * lin-lwp.c: Ditto.
12251 * go32-nat.c: Ditto.
12253 * gnu-nat.c: Ditto.
12255 2002-03-27 Andreas Schwab <schwab@suse.de>
12257 * event-top.c (command_line_handler): Remove useless if.
12259 2002-03-27 Andreas Jaeger <aj@suse.de>
12261 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12264 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12266 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12267 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12268 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12269 (x86_64_linux_dr_get_status, supply_gregset),
12270 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12271 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12272 (x86_64_register_info_table): Add.
12273 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12274 (x86_64_register_raw_size, x86_64_register_virtual_type),
12275 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12276 general x86_64_register_info_table.
12277 (i386_gdbarch_init): gdbarch_register_bytes is now set
12278 dynamicaly during initialization.
12279 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12280 * gdbserver/linux-x86-64-low.c: Ditto.
12282 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12284 * gdbserver/server.c (main): Call target_signal_to_host_p
12285 and target_signal_to_host on signals received from the remote.
12286 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12287 target_signal_from_host on signals sent to the remote.
12288 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12289 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12291 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12293 * signals/signals.c: Include "server.h" in gdbserver build.
12294 (target_signal_from_name): Don't use STREQ.
12295 (_initialize_signals): Likewise. Don't include function in
12298 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12300 * signals.c: Moved to...
12301 * signals/signals.c: Here.
12302 * Makefile (signals.o): Update.
12304 2002-03-26 Jeff Law (law@redhat.com)
12306 * somread.c (som_symtab_read): Remove some commented out code and
12307 updated related comments. Do not set the minimal symbol table to
12308 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12309 in a dynamic executable.
12310 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12311 where we are unable to find the minimal symbol for the given
12314 2002-03-25 Jeff Law (law@redhat.com)
12316 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12318 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12320 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12322 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12324 * command.h: Update copyright.
12325 (struct cmd_list_element): Replace definition with opaque
12327 (enum cmd_types): Document that it will eventually be moved to
12329 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12330 (MALLOCED_REPLACEMENT): Delete macro.
12331 * Makefile.in (cli_decode_h): Add $(command_h).
12332 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12333 * top.c: Include "cli/cli-decode.h".
12334 * completer.c: Include "cli/cli-decode.h".
12335 * maint.c: Include "cli/cli-decode.h".
12336 * cli/cli-decode.h: Include "command.h".
12337 (enum command_class): Delete.
12338 (enum cmd_types): Comment out.
12339 (enum cmd_auto_boolean): Delete.
12340 (enum var_types): Delete.
12342 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12344 * cli/cli-decode.c: Include "gdb_assert.h".
12345 (add_set_or_show_cmd): New static function.
12346 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12347 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12348 all fields, such as func, from the set command.
12350 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12352 * MAINTAINERS (sh-elf): Change warning flag to -w.
12354 2002-03-23 Andrew Cagney <cagney@redhat.com>
12356 * defs.h (error): Add printf format attribute.
12357 * thread-db.c (thread_from_lwp): Fix error format string.
12358 * stack.c (parse_frame_specification): Ditto.
12359 * cli/cli-decode.c (undef_cmd_error): Ditto.
12360 * scm-lang.c (scm_lookup_name): Ditto.
12361 * tracepoint.c (trace_error): Ditto.
12362 * remote-utils.c (usage): Ditto.
12363 * remote.c (compare_sections_command): Ditto.
12366 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12368 * gdbtypes.c (append_composite_type_field): New function.
12369 (init_composite_type): New function.
12370 * gdbtypes.h (append_composite_type_field): Declare.
12371 (init_composite_type): Ditto.
12373 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12375 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12377 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12378 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12379 structure returning convention for SYSV ABI case, but not
12380 for GNU/Linux, FreeBSD, or NetBSD.
12382 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12384 * symtab.h (lookup_block_symbol): Add mangled_name argument
12387 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12388 with new mangled_name argument.
12389 * linespec.c (decode_line_1): Likewise.
12390 * valops (value_of_this): Likewise.
12391 * symtab.c (lookup_transparent_type): Likewise.
12392 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12393 (lookup_symbol): If we are given a mangled name, pass it down
12394 to lookup_symbol_aux.
12395 (lookup_block_symbol): If we are given a mangled name to check
12396 against, only return symbols which match it.
12398 2002-03-22 Christopher Faylor <cgf@redhat.com>
12400 * win32-nat.c (child_create_inferior): Check for proper shell to use
12401 here, in case the user changes it on the fly.
12402 (_initialize_inftarg): Remove shell path considerations.
12404 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12406 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12407 for gdbarch_max_register_raw_size and max_register_virtual_size.
12408 Adjust copyright year.
12410 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12412 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12413 in a function to cover the entire beginning of the function
12414 as well if it does not already.
12416 2002-03-21 Tom Rix <trix@redhat.com>
12418 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12419 (rs6000_ptrace64): Renamed from ptrace64.
12421 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12423 * gdbserver/remote-utils.c (remote_open): Don't call
12424 getprotobyname, we're all using TCP here so just use
12426 * gdbserver/gdbreplay.c (remote_open): Ditto.
12428 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12430 * regcache.c (_initialize_regcache): No need to call
12431 build_regcache() at this time; it gets called whenever
12432 the gdbarch changes.
12434 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12436 * sparc-nat.c: Include sys/param.h where possible.
12438 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12441 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12442 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12443 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12445 * stabsread.c (rs6000_builtin_type): Likewise.
12446 (read_sun_floating_type): Likewise.
12448 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12450 * stabsread.c (read_member_functions): Remove skip code for duplicate
12451 constructor/destructor methods. Use standard parsing for these
12452 methods and just do not chain them to the list of methods after
12455 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12457 * coffread.c: Remove redundant static declarations. Replace
12458 occurrences of `PTR' with `void *'.
12459 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12460 * top.h (quit_cover): Likewise.
12461 * defs.h (catch_errors): Likewise.
12463 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12465 * defs.h (XMALLOC): Define.
12466 * gdb-events.sh (XMALLOC): Delete macro.
12467 * gdb-events.c, gdb-events.h: Regenerate.
12468 * gdbarch.sh (XMALLOC): Delete macro.
12469 * gdbarch.c: Regenerate.
12470 * serial.c (XMALLOC): Delete macro.
12471 * ui-file.c (XMALLOC): Ditto.
12472 * ser-unix.h (XMALLOC): Ditto.
12473 * sh-tdep.c (XMALLOC): Ditto.
12474 * ui-out.c (XMALLOC): Ditto.
12475 * utils.c (XMALLOC): Ditto.
12476 * i386-tdep.c (XMALLOC): Ditto.
12477 * gdb-events.c (XMALLOC): Ditto.
12478 * d10v-tdep.c (XMALLOC): Ditto.
12479 * cli-out.c (XMALLOC): Ditto.
12481 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12482 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12483 * ui-file.c, ui-out.c: Ditto.
12485 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12487 * command.h (struct cmd_list_element): Add field context.
12488 (set_cmd_context, get_cmd_context): Declare.
12489 * cli/cli-decode.h: Ditto.
12490 * cli/cli-decode.c (get_cmd_context): New function.
12491 (set_cmd_context): New function.
12492 (add_cmd): Initialize context.
12493 Part of fixing PR gdb/145 and PR gdb/146.
12495 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12497 * cli/cli-decode.c (cmd_type): New function.
12498 * command.h (cmd_type): Declare.
12499 * infrun.c (set_schedlock_func): Call function cmd_type.
12500 * kod.c (kod_set_os): Call cmd_type.
12501 * cris-tdep.c (cris_version_update): Use function cmd_type.
12502 (cris_mode_update, cris_abi_update): Ditto.
12504 * command.h: (execute_cmd_post_hook): Declare.
12505 (execute_cmd_pre_hook): Declare.
12506 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12507 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12508 functions. Execute pre/post hook while ensuring that afterwords
12509 hook_in is cleared.
12510 * top.c (execute_command): Use execute_cmd_post_hook, and
12511 execute_cmd_pre_hook to execute pre/post commands.
12512 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12514 (hook_stop_stub): Call execute_cmd_pre_hook.
12516 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12518 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12519 set'' and this leads to a core dump. Move xstrdup of
12520 operating_system to after check that it is not NULL.
12522 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12524 * kod.c (kod_set_os): Remove unnecessary check that
12525 ``command->type'' is set_cmd.
12527 * valprint.c (set_input_radix): Use input_radix.
12528 (set_output_radix): Use output_radix.
12529 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12532 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12534 * value.h (struct value): Delete field ``substring_addr''. Change
12535 aligner fields to force_doublest_align, force_longest_align,
12536 force_core_addr_align and force_pointer_aligh.
12538 * value.h (struct value): Fix typo in above change.
12540 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12542 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12543 to fix internal_error from ``maintenance print architecture''.
12545 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12547 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12548 for gcc versions after gcc-2.8.1.
12550 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12552 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12553 for method resolution. Restore adjustment of ``this'' pointer after
12554 calling value_struct_elt, which was accidentally removed during the
12557 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12559 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12561 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12562 get_saved_register.
12563 * value.h (value_of_register): Update.
12565 2002-03-14 Richard Henderson <rth@redhat.com>
12567 * configure.in: Detect declaration for canonicalize_file_name.
12568 * utils.c (canonicalize_file_name): Declare, if needed.
12569 (gdb_realpath): Prefer realpath if available and usable.
12570 * config.in, configure: Rebuild.
12572 2002-03-14 Richard Henderson <rth@redhat.com>
12574 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12575 a constant array bound.
12577 * MAINTAINERS: Add myself to write-after-approval.
12579 2002-03-14 Michael Snyder <msnyder@redhat.com>
12581 * symfile.c (syms_from_objfile): Return immediately if no syms.
12582 (symbol_file_add): Return immediately if no syms.
12583 (find_sym_fns): Return immediately if no syms.
12585 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12587 * gdbserver/remote-util.c (remote_open): Print remote-side's
12588 IP address when remote debugging over the network.
12590 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12592 * config/sparc/fbsd.mh: Fix copyright.
12593 * config/sparc/fbsd.mt: Likewise.
12595 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12597 * MAINTAINERS: Fix typo in name of gdb warnings option.
12598 (x86-64): Fix formating so that this can be parsed by awk.
12600 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12602 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12603 * defs.h: Include "gdb/signals.h".
12604 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12606 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12608 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12609 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12612 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12613 Don Howard <dhoward@redhat.com>
12615 * mips-tdep.c (ST0_FR): Define.
12616 (mips2_fp_compat): New function, temporarily disabled.
12617 (mips_read_fp_register_single): New function.
12618 (mips_read_fp_register_double): New function.
12619 (mips_print_register): Use them.
12620 (do_fp_register_row): Likewise.
12622 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12624 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12627 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12629 * stabsread.c (read_member_functions): Fix is_stub test for
12630 static member functions, improve comment.
12632 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12634 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12635 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12636 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12637 commands that set boolean values.
12638 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12639 (arm_rdi_resume): Always initialize PC.
12640 (arm_rdi_open): Don't use rslt as a boolean.
12641 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12642 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12643 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12644 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12646 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12648 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12649 * configure: Rebuilt.
12651 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12653 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12654 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12656 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12658 * cli/cli-decode.c (set_cmd_completer): New function.
12659 * command.h (set_cmd_completer): Declare.
12660 * cli/cli-decode.h (set_cmd_completer): Ditto.
12662 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12663 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12664 * win32-nat.c (_initialize_inftarg): Ditto.
12665 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12666 * proc-api.c (_initialize_proc_api): Ditto.
12667 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12668 * source.c (_initialize_source): Ditto.
12669 * exec.c (_initialize_exec): Ditto.
12670 * solib.c (_initialize_solib): Ditto.
12671 * top.c (init_main): Ditto.
12672 * tracepoint.c (_initialize_tracepoint): Ditto.
12673 * symfile.c (_initialize_symfile): Ditto.
12674 * printcmd.c (_initialize_printcmd): Ditto.
12675 * infcmd.c (_initialize_infcmd): Ditto.
12676 * corefile.c (_initialize_core): Ditto.
12678 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12680 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12682 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12684 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12686 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12688 * NEWS: Update headings, 5.2 has branched.
12690 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12692 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12693 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12694 (register_addr, REGISTER_RAW_SIZE): Likewise.
12695 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12696 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12698 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12700 * MAINTAINERS (x86-64): Add myself.
12701 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12702 changed value_ptr -> struct value *
12704 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12706 * configure.host (sparc64-*-freebsd): Add.
12707 * configure.tgt: Likewise.
12708 * config/sparc/fbsd.mh: New file.
12709 * config/sparc/fbsd.mt: Likewise.
12710 * config/sparc/nm-fbsd.h: Likewise.
12711 * config/sparc/tm-fbsd.h: Likewise.
12713 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12715 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12716 regformats/reg-s390x.dat.
12718 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12720 * utils.c: Add FIXME explaining true/false problem.
12722 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12724 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12726 2002-02-28 Michael Chastain <mec@shout.net>
12728 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12730 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12732 * gdbserver/linux-s390-low.c: New file.
12733 * regformats/reg-s390.dat: New file.
12734 * regformats/reg-s390x.dat: New file.
12735 * gdbserver/configure.srv: Add S/390.
12736 * gdbserver/Makefile.in: Add S/390.
12737 * configure.tgt: Enable gdbserver for S/390.
12739 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12741 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12742 first line of the doc string for "info dos", except at the end of
12743 the sentence, since the short help stops at the first period.
12745 2002-02-28 Jason Merrill <jason@redhat.com>
12747 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12749 2002-02-27 Fred Fish <fnf@redhat.com>
12751 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12752 comment (dumy -> dummy).
12754 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12756 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12758 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12760 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12762 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12764 * gdbserver/acconfig.h: New file.
12765 * gdbserver/i387-fp.c: New file.
12766 * gdbserver/i387-fp.h: New file.
12767 * gdbserver/linux-x86-64.c: New file.
12768 * regformats/reg-x86-64.dat: New file.
12769 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12770 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12771 * gdbserver/configure.in: Add support for regsets.
12772 * gdbserver/config.in: Regenerate.
12773 * gdbserver/configure: Regenerate.
12774 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12775 * gdbserver/linux-low.h: New file.
12776 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12778 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12779 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12780 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12781 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12782 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12783 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12784 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12785 "i387-fp.h". Add PTRACE_GETREGS and friends.
12786 * gdbserver/regcache.c (supply_register): New function.
12787 (supply_register_by_name): New function.
12788 (collect_register): New function.
12789 (collect_register_by_name): New function.
12791 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12793 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12794 (config.status): Add configure.srv dependency.
12795 (server_h): Add config.h dependency.
12797 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12799 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12800 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12801 * gdbserver/configure.srv: Change i386-*-linux* to use
12804 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12806 * x86-64-tdep.c: Re-indent. Update copyright date.
12808 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12810 From Michal Ludvig <mludvig@suse.cz>:
12811 * x86-64-tdep.c (value.h): Delete.
12812 (gdb_assert.h): Include.
12813 (x86_64_register_convert_to_virtual,
12814 x86_64_register_convert_to_raw ): Add check which lets only
12815 floating-point values to be converted.
12816 (value_push): Delete.
12817 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12818 (i386_gdbarch_init): Number of register_bytes fixed.
12820 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12822 * MAINTAINERS: Add x86-64 target.
12824 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12826 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12827 * osfsolib.c (solib_map_sections): Ditto.
12828 * irix5-nat.c (solib_map_sections): Ditto.
12829 * corelow.c (gdb_check_format): Ditto.
12830 * symfile.c (symfile_bfd_open): Ditto.
12831 * solib.c (solib_map_sections): Ditto.
12834 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12836 * remote.c (_initialize_remote): By default, disable ``e'' and
12837 ``E'' step out-of-range packets.
12839 2002-02-26 Andreas Schwab <schwab@suse.de>
12841 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12842 m68k_linux_frame_saved_pc.
12843 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12845 (SIGCONTEXT_PC_OFFSET): Remove.
12846 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12847 m68k_linux_sigtramp_saved_pc): New functions.
12848 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12849 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12850 (UCONTEXT_PC_OFFSET): Define.
12851 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12852 non-RT and RT signal trampolines.
12854 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12856 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12857 (TARGET_NBPG, STACK_END_ADDR): Delete
12858 (VARIABLES_INSIDE_BLOCK): Delete.
12860 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12862 * utils.c (perror_with_name): Make string parameter constant.
12863 (print_sys_errmsg): Ditto.
12865 * defs.h (perror_with_name): Update.
12866 (print_sys_errmsg): Update.
12869 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12871 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12872 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12874 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12876 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12877 if it already matches the current architecture from the exec file.
12878 Include arch-utils.h for gdbarch_info_init prototype.
12879 * Makefile.in (rs6000-nat.o): Update dependencies.
12881 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12883 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12884 list of exported variables.
12886 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12888 * gdbserver/configure.srv: New file.
12889 * gdbserver/configure.in: Use configure.srv instead
12890 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12892 * gdbserver/configure: Regenerated.
12893 * gdbserver/terminal.h: New file.
12894 * gdbserver/Makefile.in: Update for configure changes. Remove
12895 more unneeded include paths.
12897 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12899 From wiz at danbala:
12900 * config/sparc/tm-sp64.h: Fix grammar and typos.
12903 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12905 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12906 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12907 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12908 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12909 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12910 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12911 * s390-tdep.c: Ditto.
12912 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12913 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12914 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12915 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12916 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12917 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12918 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12919 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12920 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12921 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12924 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12926 * lin-thread.c: Delete file.
12927 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12928 to gdb_proc_service.h.
12929 * configure: Re-generate.
12931 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12932 * serial.c (serial_open): Delete check for "ocd".
12935 * Makefile.in (linux-thread.o): Delete target.
12936 * linux-thread.c: Delete file.
12938 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12939 renamed SH files to be consistent.
12941 * symtab.c (sort_search_symbols): Use xfree.
12943 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12945 * arm-linux-tdep.c (arm_linux_init_abi): Register
12946 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12947 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12948 definition with undef, since we don't want the sysvr4 definition.
12949 (SKIP_TRAMPOLINE_CODE): Likewise.
12951 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12953 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12955 * configure.in: (AC_CHECK_FUNCS) Added test for
12956 canonicalize_file_name Regenerated.
12957 * config.in, configure: Regenerated.
12958 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12959 defined use canonicalize_file_name.
12961 2002-02-23 Michael Chastain <mec@shout.net>
12963 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12965 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12967 * README: Remove references to cygnus.com.
12968 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12969 dot com'' form. Remove references to cygnus.com and sourceware.
12971 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12973 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12974 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12975 1003.1-2001 no longer allows "head -1".
12976 * gdb/Makefile.in (version.c): Likewise.
12977 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12978 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12979 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12981 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12983 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12984 * command.h (cmd_cfunc_eq): Declare.
12985 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12987 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12988 ``struct cmd_list_element *''.
12989 * cli/cli-cmds.c (is_complete_command): Update. Use
12991 * top.c (execute_command): Pass the command to
12992 is_complete_command.
12993 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12995 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12997 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12998 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12999 architecture defines.
13000 * s390-tdep.c (s390_gdbarch_init): Likewise.
13002 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13004 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13005 (arm_linux_push_arguments): Likewise.
13006 (arm_linux_init_abi): Register them. Also register linux-specific
13008 (find_minsym_and_objfile): Use strcmp, not STREQ.
13009 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13010 (arm_linux_call_dummy_words): Delete declaration.
13011 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13012 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13014 (LOWEST_PC): Delete.
13016 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13018 * maint.c (print_section_info): Do not prepend `0x' to filepos
13019 output, it will be handled by local_hex_string_custom.
13021 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13023 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13024 (store_newfpe_double, store_newfpe_extended, store_fpregister)
13025 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13027 2002-02-22 Jim Blandy <jimb@redhat.com>
13029 Indicate that the bcache functions don't change the strings
13031 * bcache.h (bcache, hash): Add `const' keywords to declarations.
13032 * bcache.c (bcache, hash): Add `const' keywords to definitions.
13034 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
13036 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13038 2002-02-21 Christopher Faylor <cgf@redhat.com>
13040 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13041 find the complete path to a loaded DLL.
13043 2002-02-21 Fred Fish <fnf@redhat.com>
13045 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13046 that marks the end of the range of a function, enter a line number
13047 entry that has a line number of zero and a PC offset that matches
13048 the end of the function. This starts a range of PC's for which no
13049 line number information is known.
13050 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13051 PC's for which no line number info is found (line number is zero)
13052 then we didn't find any valid line information.
13053 * symtab.h: Document use of zero line number entry.
13055 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13057 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13058 (have_ptrace_getvrregs): Define for run time checks.
13059 (gdb_vrregset_t): New type for Altivec register handling.
13060 (fetch_register, store_register): Fetch/store altivec register
13062 (fetch_altivec_register, store_altivec_register): New functions.
13063 (supply_vrregset, fill_vrregset): New functions.
13064 (fetch_altivec_registers, store_altivec_registers): New functions.
13065 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13068 2002-02-21 Jiri Smid <smid@suse.cz>
13070 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13072 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13074 * Makefile.in (armnbsd-nat.o): Update dependencies.
13075 * armnbsd-nat.c (supply_gregset): New function. Common code to
13076 supply the integer register set.
13077 (supply_fparegset): New function. Similar for FPA registers.
13078 (fetch_regs, fetch_fp_regs): Use them.
13079 (fetch_core_registers): Likewise.
13080 (fetch_elfcore_registers): New function.
13081 (arm_netbsd_elfcore_fns): New core-file type specification.
13082 (_initialize_arm_netbsd_nat): Register it.
13084 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13086 * armnbsd-nat.c: Include gdbcore.h.
13087 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13088 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13089 'void' to declaration, to shut up ARI.
13090 (fetch_core_registers): Make static. Rewrite using supply_register.
13091 (arm_netbsd_core_fns): New core-file type specification.
13092 (_initialize_arm_netbsd_nat): New function.
13094 2002-02-21 Christopher Faylor <cgf@redhat.com>
13096 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13099 2002-02-20 Christopher Faylor <cgf@redhat.com>
13101 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13104 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13106 * jv-exp.y (parse_number): Change type of implicit longs
13107 to builtin_type_uint64.
13109 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13111 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13112 to be an integer instead of a `union wait'.
13114 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13116 * mips-linux-nat.c: Call the operating system GNU/Linux.
13117 * mips-linux-tdep.c: Likewise.
13118 * mips-tdep.c: Likewise.
13120 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13123 * jv-exp.y (parse_number): Handle 64-bit integers.
13125 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13127 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13128 AC_STDC_HEADERS to AC_HEADER_STDC.
13129 * gdbserver/configure: Regenerated.
13131 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13133 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13135 * sparc-tdep.c (get_longjmp_target): Likewise.
13137 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13139 * News: Add news about ARM and Multi-arch. Mention the new target
13142 2002-02-19 Jim Blandy <jimb@redhat.com>
13144 * stabsread.c (error_type_complaint): Improve error message.
13146 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13148 * gdbserver/README: Update documentation.
13149 * gdbserver/configure.in: Update configury to match documentation.
13150 * gdbserver/Makefile.in: Likewise.
13151 * gdbserver/configure: Regenerated.
13152 * gdbserver/aclocal.m4: New file, generated by aclocal.
13153 * gdbserver/config.in: New file, generated by autoheader.
13155 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13157 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13160 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13162 * arm-tdep.h (enum arm_float_model): New enum.
13163 (struct gdbarch_tdep): Add fp_model.
13164 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13165 up floating-point conversions until we know the floating-point model
13166 in use by the inferior. Don't complain about being unable to
13167 determine the ABI of the inferior when we don't have one.
13168 (arm_extract_return_value): Support different floating-point models.
13169 (arm_store_return_value): Likewise.
13170 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13172 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13174 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13176 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13177 of ``current_gdbarch''.
13179 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13181 * armnbsd-nat.c : ANSIfy all function declarations.
13182 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13183 (fetch_inferior_registers): Re-implement in terms of above.
13184 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13185 (store_inferior_registers): Re-implement in terms of above.
13187 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13189 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13191 * arm-linux-tdep.c: Likewise.
13192 * config/arm/tm-linux.h: Likewise.
13194 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13196 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13197 * config/arm/nbsd.mt (TM_FILE): Delete.
13198 * config/arm/tm-nbsd.h: Delete.
13200 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13202 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13203 Initialize CALL_DUMMY_LENGTH.
13205 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13207 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13209 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13210 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13211 defines one thing and that is incorrect for this port.
13212 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13214 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13216 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13218 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13220 * win32-nat.c (display_selector): New function. Displays information
13221 about the information returned by GetThreadSelectorEntry API function.
13222 (display_selectors): New function. Displays the infomation of
13223 the selector given as argument, or of CS, DS ans FS selectors
13224 if no argument is given.
13225 ( _initialize_inftarg): Add "w32" as info prefix command.
13226 Add "info w32 selector" as command calling display_selectors.
13228 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13230 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13231 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13234 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13236 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13238 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13240 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13241 (arm_fix_call_dummy): Call it.
13242 (arm_call_dummy_breakpoint_offset): Delete.
13243 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13244 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13246 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13248 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13249 Default to func_frame_chain_valid.
13250 * gdbarch.h, gdbarch.c: Re-generate.
13251 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13253 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13255 * ppc-linux-nat.c: Update copyright.
13256 (fetch_register, store_register): Add tid parameter, don't compute
13258 (fetch_ppc_registers, store_ppc_registers): Add tid
13259 parameter. Pass it along to callees.
13260 (fetch_inferior_registers, store_inferior_registers): Compute tid
13261 here, and pass it to calleed functions.
13262 (fill_gregset, supply_fpregset): Clean up formatting.
13264 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13266 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13267 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13269 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13271 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13272 * gdbarch.c gdbarch.h: Regenerate.
13273 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13275 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13276 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13277 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13279 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13280 * arm-tdep.c (arm_get_longjmp_target): New function.
13281 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13282 this to a positive value register arm_get_longjmp_target as the
13284 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13285 (arm_linux_init_abi): Set up longjmp description in tdep.
13286 * armnbsd-nat.c (get_longjmp_target): Delete.
13287 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13288 description in tdep.
13289 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13290 (get_longjmp_target): Delete declaration.
13291 (GET_LONGJMP_TARGET): Delete.
13292 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13293 (GET_LONGJMP_TARGET): Delete.
13295 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13297 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13298 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13299 of ``current_gdbarch''.
13301 2002-02-17 Tom Tromey <tromey@redhat.com>
13303 * cli/cli-cmds.c (compare_strings): New function.
13304 (complete_command): Only print each unique item once.
13305 * completer.h (complete_line): Declare.
13306 * completer.c (complete_line): New function.
13307 (line_completion_function): Use it.
13309 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13311 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13312 * gdbarch.h, gdbarch.c: Re-generate.
13314 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13316 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13318 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13320 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13321 * valops.c (value_arg_coerce): Don't take the address of a reference
13322 to convert an argument to a reference.
13324 2002-02-15 Christopher Faylor <cgf@redhat.com>
13326 * win32-nat.c (get_image_name): New function.
13327 (handle_load_dll): Use get_image_name function.
13328 (get_child_debug_event): Avoid registering debug events until possibly
13329 execed process is started.
13330 (child_create_inferior): Allow invocation via shell so that command
13331 line redirection, etc. works ok.
13332 (_initialize_inftarg): Add new command: "set shell" to control whether
13333 a shell is used to start a process.
13335 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13337 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13338 instead of find_register_by_number.
13339 (cannot_store_register): Likewise.
13341 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13343 * dwarf2read.c: Replace fprintf (stderr, ...) by
13344 fprintf_unfiltered (gdb_stderr, ...).
13346 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13348 * gdbserver/gdbserver.1: Document --attach.
13350 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13352 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13354 * arm-tdep.c (arm_default_arm_le_breakpoint)
13355 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13356 (arm_default_thumb_be_breakpoint): New. Initialize them from
13357 traditional breakpoint defines.
13358 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13359 (arm_gdbarch_init): Initialize new breakpoint variables.
13360 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13361 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13362 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13363 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13365 (arm_netbsd_init_abi_common): ... here; new function.
13366 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13367 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13368 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13369 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13371 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13373 * arm-tdep.h (enum arm_abi): New enum.
13374 (struct gdbarch_tdep): New structure.
13375 (LOWEST_PC): Provide a default.
13376 (arm_gdbarch_register_os_abi): Declare new function.
13377 * arm-tdep.c (arm_abi_names): New array.
13378 (process_note_abi_tag_sections): New function.
13379 (get_elfosabi): New function.
13380 (arm_gdbarch_register_os_abi): New function.
13381 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13382 support for that ABI has been built in, then call the appropriate
13383 configuration routine. Use gdbarch_num_regs() to get the number
13385 (arm_dump_tdep): New function.
13386 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13387 place-holder functions.
13388 (_initialize_arm_tdep): Register them.
13389 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13391 * armnbsd-tdep.c: New file.
13392 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13393 * config/arm/nbsd.mt (TDEPFILES): Add it.
13394 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13396 * armnbsd-nat.c: Include regcache.h.
13397 * Makefile.in (armnbsd-nat.o): Update dependency list.
13399 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13401 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13403 * gdbserver/Makefile.in: Fix typos in target rules.
13405 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13407 Fix part of PR gdb/267.
13408 * linespec.c (find_methods): Handle constructors specially for now.
13410 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13412 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13414 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13415 standard_coerce_float_to_double().
13417 2002-02-14 Christopher Faylor <cgf@redhat.com>
13419 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13422 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13424 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13425 find_variant_by_name, because it confuses the multiarch
13426 framework. Return NULL if there isn't an architecture with the
13427 user supplied name, instead of forcing a different one without
13428 recording the change with the multiarch machinery.
13429 (find_variant_by_name): Delete.
13431 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13433 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13434 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13436 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13438 * stack.c (print_frame_info_base): When calling
13439 print_frame_info_listing_hook, set current_source_symtab.
13441 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13443 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13444 and remove unused $(INCLUDE_DIR).
13445 Add regcache.c to OBS.
13446 Add generated register protocol files to clean target.
13447 Update dependencies for new objects, obsolete old target code.
13449 * gdbserver/linux-low.c: Remove all platform-specific code to
13450 new files. Remove various dead code. Update to use regcache
13452 * gdbserver/remote-utils.c (fromhex): Add return statement
13454 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13456 (input_interrupt): Add integer parameter to match prototype
13457 of a signal handler.
13458 (outreg): Use register_data ().
13459 (prepare_resume_reply): Use gdbserver_expedite_regs.
13460 * gdbserver/server.c (main): Dynamically allocate own_buf because
13461 PBUFSIZ is no longer constant. Use registers_to_string () and
13462 registers_from_string ().
13463 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13464 for error (), fatal (), and warning (). Update definition of
13465 PBUFSIZ to use regcache functionality. Add include guard.
13466 * gdbserver/utils.c (fatal): Add missing ``const''.
13467 (warning): New function.
13469 * regformats/regdat.sh: Include "regcache.h" in generated files.
13470 Provide init_registers () function.
13471 * regformats/regdef.h: Add prototype for set_register_cache ().
13474 * gdbserver/linux-arm-low.c: New file.
13475 * gdbserver/linux-i386-low.c: New file.
13476 * gdbserver/linux-ia64-low.c: New file.
13477 * gdbserver/linux-m68k-low.c: New file.
13478 * gdbserver/linux-mips-low.c: New file.
13479 * gdbserver/linux-ppc-low.c: New file.
13480 * gdbserver/linux-sh-low.c: New file.
13482 * gdbserver/regcache.c: New file.
13483 * gdbserver/regcache.h: New file.
13485 * gdbserver/low-linux.c: Removed obsolete file.
13487 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13489 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13490 * config/i386/linux.mt: Likewise.
13491 * config/ia64/linux.mt: Likewise.
13492 * config/m68k/linux.mh: Likewise.
13493 * config/powerpc/linux.mh: Likewise.
13494 * config/mips/linux.mt: Likewise.
13496 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13498 * config/i386/i386lynx.mh: Mark gdbserver variables
13499 as (currently) obsolete for this target.
13500 * config/i386/nbsd.mt: Likewise.
13501 * config/i386/nbsdelf.mt: Likewise.
13502 * config/m32r/m32r.mt: Likewise.
13503 * config/m68k/m68klynx.mh: Likewise.
13504 * config/m68k/nbsd.mt: Likewise.
13505 * config/m68k/sun3os4.mh: Likewise.
13506 * config/mips/vr5000.mt: Likewise.
13507 * config/ns32k/nbsd.mt: Likewise.
13508 * config/pa/hppabsd.mh: Likewise.
13509 * config/pa/hppaosf.mh: Likewise.
13510 * config/powerpc/nbsd.mt: Likewise.
13511 * config/rs6000/rs6000lynx.mh: Likewise.
13512 * config/s390/s390.mt: Likewise.
13513 * config/s390/s390x.mt: Likewise.
13514 * config/sparc/sparclynx.mh: Likewise.
13515 * config/sparc/sun4os4.mh: Likewise.
13516 * config/i386/x86-64linux.mt: Likewise.
13517 * config/sparc/linux.mh: Likewise.
13519 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13521 * configure.tgt: Configure gdbserver only for known working
13522 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13523 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13524 SUBDIRS if it is configured. Update comment for ${nativefile}.
13525 * configure: Regenerated.
13527 2002-02-13 Michael Snyder <msnyder@redhat.com>
13529 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13531 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13532 (default_gcore_mach): Just return 0, work around a problem in bfd.
13533 (default_gcore_target): OK to return NULL if exec_bfd is null.
13534 (make_mem_sec): Use a cast, avoid a warning.
13536 * procfs.c (find_memory_regions_callback): Use a cast instead of
13537 calling host_pointer_to_address (which complains if
13538 sizeof (host pointer) != sizeof (target pointer)).
13539 (procfs_make_note_section): Avoid overflow in psargs string.
13541 * procfs.c (procfs_make_note_section): Make the default
13542 implementation return an error.
13544 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13546 * procfs.c (procfs_make_note_section): Provide a default definition
13547 (for alpha-dec-osf4.0f). Fix typos.
13549 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13551 * linux-proc.c: Add include of regcache.h.
13552 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13554 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13556 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13557 * memattr.c (create_mem_region): Disallow useless empty region.
13558 Regions are half-open intervals, so allow [A..B) [B..C) as
13561 2002-02-13 Michael Chastain <mec@shout.net>
13563 * defs.h: Kill CONST_PTR.
13564 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13565 * c-lang.c (c_builtin_types): Likewise.
13566 * ch-lang.c (ch_builtin_types): Likewise.
13567 * f-lang.c (f_builtin_types): Likewise.
13568 * language.c (unknown_builtin_types): Likewise.
13569 * m2-lang.c (m2_builtin_types): Likewise.
13570 * p-lang.c (pascal_builtin_types): Likewise.
13571 * scm-lang.c (c_builtin_types): Likewise.
13573 2002-02-13 Keith Seitz <keiths@redhat.com>
13575 * arm-tdep.h (arm_get_next_pc): Add declaration.
13577 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13579 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13580 with other related struct-returning functions.
13581 (arm_extract_struct_value_address): New function.
13582 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13583 initialize float_format, double_format and long_double_format as
13584 appropriate to the endianness of the target.
13585 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13586 (arm_use_struct_convention): Delete declaration.
13587 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13589 2002-02-13 Keith Seitz <keiths@redhat.com>
13591 * defs.h (core_addr_to_string_nz): New function.
13593 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13595 Apply missing bits of 2002-01-15 patch.
13596 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13597 (fill_fpregset): Use i387_fill_fsave.
13599 2002-02-12 Keith Seitz <keiths@redhat.com>
13601 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13602 (core_addr_to_string_nz): New function.
13604 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13606 * arm-linux-nat.c: Really include arm-tdep.h.
13607 * config/arm/tm-linux.h (struct type, struct value): Declare.
13609 2002-02-11 Michael Snyder <msnyder@redhat.com>
13611 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13612 (gcore section): Ifdef for Solaris and Unixware only.
13613 (procfs_do_thread_registers): Unixware needs one lwpstatus
13614 per thread (not one prstatus or pstatus).
13615 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13616 not over all gdb threads. For unixware, call elfcore_write_pstatus
13617 once before iterating over threads.
13619 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13621 * arm-tdep.h: New file.
13622 * arm-tdep.c: Include arm-tdep.h.
13623 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13624 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13625 (arm_print_float_info, arm_register_type, convert_to_extended)
13626 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13627 (arm_extract_return_value, arm_register_name): Make static.
13628 (arm_software_single_step): Similarly. Fix types in declaration.
13629 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13630 (arm_store_return_value, arm_store_struct_return): New functions.
13631 (arm_gdbarch_init): Register the above functions. Also register
13632 call_dummy_start_offset, sizeof_call_dummy_words,
13633 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13634 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13635 max_register_virtual_size, register_size. Set up
13636 prologue_cache.saved_regs here, rather than ...
13637 (_initialize_arm_tdep): ... here.
13638 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13640 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13641 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13642 (arm_print_float_info, arm_register_type, convert_to_extended)
13643 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13644 (arm_extract_return_value, arm_register_name): Delete declarations.
13645 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13646 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13647 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13648 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13649 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13650 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13651 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13652 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13653 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13654 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13655 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13656 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13658 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13659 * remote-rdi.c remote-rdp.c: Likewise.
13660 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13661 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13662 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13665 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13666 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13667 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13668 from non-ARM_ prefixed definitions.
13669 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13671 * remote-rdi.c remote-rdp.c: Likewise.
13672 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13674 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13676 * arm-tdep.c (arm_frameless_function_invocation)
13677 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13678 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13679 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13680 (arm_pop_frame, arm_get_next_pc): Make static.
13681 (arm_gdbarch_init): Register above in gdbarch structure.
13682 (arm_read_fp): Renamed from arm_target_read_fp.
13683 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13684 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13685 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13686 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13687 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13688 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13689 (arm_pc_is_thumb_dummy): Delete declarations.
13690 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13691 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13692 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13693 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13695 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13697 * symtab.c (compare_search_syms): New function.
13698 (sort_search_symbols): New function.
13699 (search_symbols): Sort symbols after searching rather than
13702 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13704 * NEWS: Linux -> GNU/Linux.
13706 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13708 * gdbarch.sh: For for level one methods, disallow a definition
13709 when partially multi-arched. Add comments explaining rationale.
13710 * gdbarch.h: Re-generate.
13712 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13714 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13715 multi-arch partial.
13717 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13719 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13720 field. Use diff -u.
13721 * gdbarch.c: Re-generate.
13723 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13725 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13726 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13729 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13731 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13732 multi-arch partial.
13733 (PUSH_ARGUMENTS): Switch to using predefault.
13734 * gdbarch.c: Regenerate.
13736 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13738 * valops.c (PUSH_ARGUMENTS): Delete definition.
13739 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13740 partial. Default to default_push_arguments.
13741 * gdbarch.h, gdbarch.c: Regenerate.
13743 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13745 * defs.h (throw_exception): Rename return_to_top_level. Update
13747 * utils.c (error_stream, internal_verror, quit): Ditto.
13748 * top.c (throw_exception, catcher): Ditto.
13749 * sparclet-rom.c (sparclet_load): Ditto.
13750 * remote.c (interrupt_query, minitelnet): Ditto.
13751 * remote-sds.c (interrupt_query): Ditto.
13752 * remote-mips.c (mips_error, mips_kill): Ditto.
13753 * ocd.c (interrupt_query): Ditto.
13754 * monitor.c (monitor_interrupt_query): Ditto.
13755 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13756 * target.h: Update comment.
13758 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13760 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13762 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13763 default_double_format.
13764 * gdbarch.h, gdbarch.c: Re-generate.
13765 * findvar.c (floatformat_unknown): Delete variable definition.
13766 * doublest.h (floatformat_unknown): Delete variable declaration.
13768 2002-02-09 Jim Blandy <jimb@redhat.com>
13770 * stabsread.c (read_type): Add code to parse Sun's syntax for
13771 prototyped function types.
13773 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13775 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13776 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13778 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13780 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13781 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13782 now _initialize_xcoffsolib gets called again and overrides the
13783 commands from solib.c in a native configuration.
13785 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13787 * doublest.c (store_typed_floating): Don't try to return a value.
13790 2002-02-08 Jim Blandy <jimb@redhat.com>
13792 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13793 is prototyped and has no arguments, print its argument list as
13796 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13798 * MAINTAINERS (write-after-approval): Add myself.
13799 (paper-trail): I've escaped!
13801 2002-02-08 Christopher Faylor <cgf@redhat.com>
13803 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13805 (_initialize_check_for_gdb_ini): Ditto.
13807 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13809 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13810 xaprintf -> xasprintf.
13812 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13814 * win32-nat.c: Remove use of printf and sprintf functions.
13816 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13818 * arm-tdep.c (arm_frame_chain_valid): Make static.
13819 (arm_push_arguments): Likewise.
13820 (arm_gdbarch_init): New function.
13821 (_initialize_arm_tdep): Call it.
13822 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13823 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13824 (FRAME_CHAIN_VALID): Delete.
13825 (arm_frame_chain_valid): Delete declaration.
13826 (PUSH_ARGUMENTS): Delete.
13827 (arm_push_arguments): Delete declaration.
13828 (CALL_DUMMY_P): Delete.
13830 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13831 Corinna Vinschen <vinschen@redhat.com>
13833 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13834 on builtin float types.
13836 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13838 * utils.c: Include <curses.h> before "bfd.h".
13839 * tui/tui-hooks.c: Likewise.
13840 * tui/tui.c: Likewise.
13841 * tui/tuiCommand.c: Likewise.
13842 * tui/tuiData.c: Likewise.
13843 * tui/tuiDataWin.c: Likewise.
13844 * tui/tuiDisassem.c: Likewise.
13845 * tui/tuiGeneralWin.c: Likewise.
13846 * tui/tuiIO.c: Likewise.
13847 * tui/tuiLayout.c: Likewise.
13848 * tui/tuiRegs.c: Likewise.
13849 * tui/tuiSource.c: Likewise.
13850 * tui/tuiSourceWin.c: Likewise.
13851 * tui/tuiStack.c: Likewise.
13852 * tui/tuiWin.c: Likewise.
13854 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13856 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13857 to include space for pseudoregs as well. Update loops accordingly.
13858 (sh_fp_frame_init_saved_regs): Ditto.
13859 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13861 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13863 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13864 Add Richard Earnshaw to Arm maintainers.
13866 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13868 * defs.h (warning_begin): Delete declaration.
13870 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13873 2002-02-07 Michael Snyder <msnyder@redhat.com>
13875 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13876 Logic bug, remove misplaced else.
13878 2002-02-07 Klee Dienes <klee@apple.com>
13880 * fork-inferior.c (fork_inferior): Add '!' to the list of
13881 characters that need to be quoted when building a string for the
13882 shell. Quote '!' specifically with a backslash, since CSH chokes
13883 when trying to evaluate "str!str".
13885 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13887 * rdi-share/host.h: Only provide a typedef for bool if it is not
13890 2002-02-04 Michael Snyder <msnyder@redhat.com>
13892 * breakpoint.h (enum bptype): Add new overlay event bp type.
13893 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13895 * breakpoint.c (create_internal_breakpoint): New function.
13896 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13897 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13898 (create_thread_event_breakpoint): Ditto.
13899 (create_solib_event_breakpoint): Ditto.
13900 (create_overlay_event_breakpoint): New function.
13901 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13902 (update_breakpoints_after_exec): Delete and re-initialize
13903 overlay event breakpoints after an exec. Add FIXME comment
13904 about longjmp breakpoint.
13905 (print_it_typical): Ignore overlay event breakpoints.
13906 (print_one_breakpoint): Ditto.
13908 (bpstat_what): Do not stop for overlay event breakpoints.
13909 (delete_breakpoint): Don't delete overlay event breakpoints.
13910 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13911 (breakpoint_re_set): Re-create overlay event breakpoint.
13913 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13914 (overlay_manual_command): Disable overlay breakpoints.
13915 (overlay_off_command): Disable overlay breakpoints.
13917 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13919 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13920 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13921 to here from config/tm-arm.h.
13922 (coff_sym_is_thumb): Make static.
13923 (arm_elf_make_msymbol_special): New function.
13924 (arm_coff_make_msymbol_special): New function.
13925 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13926 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13927 (coff_sym_is_thumb): Delete declaration.
13928 (arm_elf_make_msymbol_special): Declare.
13929 (arm_coff_make_msymbol_special): Declare.
13930 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13931 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13933 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13935 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13937 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13939 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13940 * gdbarch.c gdbarch.h: Regenerate.
13941 * arch-utils.c (default_print_float_info): New function.
13942 * arch-utils.h (default_print_float_info): Prototype it.
13943 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13944 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13945 (PRINT_FLOAT_INFO): Document it.
13947 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13948 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13949 (PRINT_FLOAT_INFO): Define.
13951 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13953 * win32-nat.c (_initialize_check_for_gdb_ini):
13954 Add typecast to sprintf argument to suppress a warning.
13956 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13958 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13959 to allow easier handling of pass state.
13960 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13961 that gives exception name and address.
13962 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13963 and set last_sig value to ourstatus->value.sig. Some missing
13965 (child_continue): Correctly report continue_status.
13966 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13967 TARGET_SIGNAL_0 (new default value).
13968 (child_resume): consider sig argument passed to decide if
13969 the exception should be passed to debuggee or not.
13971 2002-02-05 Michael Snyder <msnyder@redhat.com>
13973 * regcache.c (fetch_register): Call target_fetch_register
13974 only if we don't call FETCH_PSEUDO_REGISTER.
13975 (store_register): Call target_store_register only if we
13976 don't call STORE_PSEUDO_REGISTER.
13978 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13980 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13981 ELF_MAKE_MSYMBOL_SPECIAL.
13982 * gdbarch.c, gdbarch.h: Regenerate.
13983 * arch-utils.c (default_make_msymbol_special): New function.
13984 * arch-utils.h (default_make_msymbol_special): Export.
13985 * elfread.c (elf_symtab_read): Compile use of
13986 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13988 * coffread.c (coff_symtab_read): Ditto, for
13989 COFF_MAKE_MSYMBOL_SPECIAL.
13991 2002-02-05 Jim Blandy <jimb@redhat.com>
13993 * solib-svr4.c (svr4_truncate_ptr): New function.
13994 (svr4_relocate_section_addresses): Do the address arithmetic with
13995 the appropriate truncation for target addresses, even when
13996 CORE_ADDR is larger than a target address.
13998 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14000 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14003 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14005 * gdbserver/linux-low.c (kill_inferior): Remove commented out
14008 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14010 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14012 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14014 * gdbserver/linux-low.c: Remove unused include files.
14016 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14018 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14019 (read_inferior_memory): Use it.
14020 (write_inferior_memory): Likewise.
14022 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14024 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14025 grubbing through sys_errlist.
14027 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14029 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14031 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14032 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14034 2002-02-04 Andrew Cagney <ac131313@redhat.com>
14036 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14037 (do_sfunc, set_cmd_sfunc): New functions.
14039 * command.h (struct cmd_list_element): Add field func.
14040 * cli/cli-decode.h (struct cmd_list_element): Ditto.
14041 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14042 * cli/cli-decode.h: Ditto.
14044 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14045 (help_all, help_cmd_list): Ditto.
14046 (find_cmd, complete_on_cmdlist): Ditto.
14047 * top.c (execute_command): Ditto.
14049 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14052 * infcmd.c (notice_args_read): Fix function signature.
14054 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14055 * cli/cli-decode.c (add_set_cmd): Ditto.
14056 * utils.c (initialize_utils): Ditto.
14057 * maint.c (_initialize_maint_cmds): Ditto.
14058 * infrun.c (_initialize_infrun): Ditto.
14059 * demangle.c (_initialize_demangler): Ditto.
14060 * remote.c (add_packet_config_cmd): Ditto.
14061 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14062 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14063 * proc-api.c (_initialize_proc_api): Ditto.
14064 * kod.c (_initialize_kod): Ditto.
14065 * valprint.c (_initialize_valprint): Ditto.
14066 * top.c (init_main): Ditto.
14067 * infcmd.c (_initialize_infcmd): Ditto.
14068 * corefile.c (_initialize_core): Ditto.
14069 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14070 * arch-utils.c (initialize_current_architecture): Ditto.
14071 (_initialize_gdbarch_utils): Ditto.
14072 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14074 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14075 * wince.c (_initialize_inftarg): Ditto.
14076 * symfile.c (_initialize_symfile): Ditto.
14077 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14078 * language.c (_initialize_language): Ditto.
14079 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14081 2002-02-04 Michael Snyder <msnyder@redhat.com>
14083 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14085 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14087 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14088 Add rules for building the register data files.
14090 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14092 * regformats/regdat.sh: Add braces to the definition of
14093 expedite_regs_${arch}.
14095 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14097 * regformats/regdef.h (struct reg): Add comment describing the
14098 requirements for offset and size fields.
14100 2002-02-04 Andreas Schwab <schwab@suse.de>
14102 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14103 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14105 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14107 * gdbarch.sh (copyright): Update years in generated header.
14108 (SMASH_TEXT_ADDRESS): Add rule.
14109 * gdbarch.h, gdbarch.c: Re-generate.
14110 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14111 * dbxread.c: Likewise.
14112 * dwarfread.c: Likewise.
14113 * elfread.c: Likewise.
14114 * somread.c: Likewise.
14116 * arm-tdep.c (arm_smash_text_address): New function.
14117 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14119 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14121 Add support for hardware watchpoints on win32 native.
14122 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14123 CONTEXT_DEBUG_REGISTERS.
14124 (dr variable): New variable. Static array containing a local copy
14125 of debug registers.
14126 (debug_registers_changed): New variable. Reflects when debug registers
14127 are changed and need to be written to inferior.
14128 (debug_registers_used): New variable. Reflects when any debug register
14129 was set, used when new threads are created.
14130 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14132 (thread_rec): Set dr array if id is the thread of current_event .
14133 (child_continue, child_resume): Change the debug registers for all
14134 threads if debug_registers_changed.
14135 (child_add_thread): Change the debug registers if debug_registers_used.
14136 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14137 Link nm.h to new nm-cygwin.h file.
14138 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14139 of hardware registers.
14141 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14143 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14144 Restore behavour broken by 2002-01-20 Andrew Cagney
14145 <ac131313@redhat.com> IEEE_FLOAT removal.
14147 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14149 * c-valprint.c (c_val_print): Pass a proper valaddr to
14150 cp_print_class_method.
14151 * valops.c (search_struct_method): If there is only one method
14152 and args is NULL, return that method.
14154 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14156 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14157 accessing tag_name directly.
14159 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14161 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14162 of accessing tag_name directly.
14164 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14167 * gdbtypes.c (replace_type): New function.
14168 * gdbtypes.h (replace_type): Add prototype.
14169 * stabsread.c (read_type): Use replace_type.
14171 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14173 * Makefile.in (memattr.o): Add missing dependencies rule.
14175 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14177 * breakpoint.c (break_at_finish_command): Really export.
14178 (break_at_finish_at_depth_command): Ditto.
14179 (tbreak_at_finish_command): Ditto.
14180 * hppa-tdep.c: Include completer.h.
14181 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14182 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14184 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14186 * utils.c (do_write): New function.
14187 (error_stream): Rewrite combining the code from error_begin and
14189 (verror): Rewrite using error_stream.
14190 (error_begin): Delete function.
14192 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14194 * utils.c (error_begin): Make static.
14195 * defs.h (error_begin): Delete declaration.
14197 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14198 (decode_line_1): Use cplusplus_error instead of error_begin,
14199 cplusplus_hint and return_to_top_level.
14200 * coffread.c (coff_symfile_read): Use error instead of error_begin
14201 and return_to_top_level.
14202 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14204 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14206 * language.h (type_error, range_error): Make string parameter
14208 * language.c (warning_pre_print): Delete extern declaration.
14209 * dwarfread.c (warning_pre_print): Ditto.
14210 * language.c (type_error, range_error): Rewrite to use verror and
14211 vwarning instead of warning_begin.
14213 2002-02-01 Michael Snyder <msnyder@redhat.com>
14215 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14216 (set_ignore_count): Move misplaced comment back where it belongs.
14218 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14220 * command.h (NO_FUNCTION): Delete macro.
14221 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14222 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14223 * tracepoint.c (_initialize_tracepoint): Ditto.
14224 * cli/cli-decode.c (add_set_cmd): Ditto.
14225 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14227 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14229 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14230 Update ``this'' pointer when calling virtual functions.
14232 2002-02-01 Michael Snyder <msnyder@redhat.com>
14234 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14235 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14237 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14239 * regformats/reg-arm.dat: New file.
14240 * regformats/reg-i386.dat: New file.
14241 * regformats/reg-ia64.dat: New file.
14242 * regformats/reg-m68k.dat: New file.
14243 * regformats/reg-mips.dat: New file.
14244 * regformats/reg-ppc.dat: New file.
14245 * regformats/reg-sh.dat: New file.
14246 * regformats/regdef.h: New file.
14247 * regformats/regdat.sh: New file.
14249 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14251 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14252 (arm_frame_args_address, arm_frame_locals_address): New functions.
14253 (arm_frame_num_args): New function.
14254 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14255 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14256 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14258 2002-01-31 Michael Snyder <msnyder@redhat.com>
14260 * breakpoint.c (break_at_finish_command): Export.
14261 (break_at_finish_at_depth_command): Export.
14262 (tbreak_at_finish_command): Export.
14263 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14264 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14265 "txbreak" commands, which are HPPA specific.
14267 * printcmd.c (disassemble_command): Remove an ancient
14268 artifact of an old merge.
14270 * symfile.h (enum overlay_debugging_state):
14271 Define enum constant values for overlay mode.
14272 * symfile.c (overlay_debugging): Use enums instead of literals.
14273 (overlay_is_mapped, overlay_auto_command,
14274 overlay_manual_command): Ditto.
14276 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14277 breakpoint_here_p, breakpoint_inserted_here_p,
14278 breakpoint_thread_match, bpstat_stop_status,
14279 describe_other_breakpoints, check_duplicates, clear_command):
14280 Coding standard fixes.
14282 * target.c (target_xfer_memory): Add spaces, coding standard.
14283 (do_xfer_memory): Add missing line to trust-readonly
14284 code: check bfd SEC_READONLY flag for section.
14286 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14288 * PROBLEMS: Fix typo, 5.1->5.1.1.
14290 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14292 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14293 data symbols, since we search based on textlow and texthigh.
14294 (find_pc_sect_symtab): Likewise.
14296 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14298 * defs.h (vwarning): Declare.
14299 * utils.c (vwarning): New function.
14300 (warning): Call vwarning.
14301 (warning_begin): Delete function.
14303 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14304 the warning message.
14305 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14308 2002-01-30 Michael Snyder <msnyder@redhat.com>
14310 * NEWS: Mention "set trust-readonly-sections" command.
14311 Mention generate-core-file command.
14313 2002-01-15 Michael Snyder <msnyder@redhat.com>
14315 * target.c: New command, "set trust-readonly-sections on".
14316 (do_xfer_memory): Honor the suggestion to trust readonly sections
14317 by reading them from the object file instead of from the target.
14318 (initialize_targets): Register command "set trust-readonly-sections".
14320 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14322 * parse.c (target_map_name_to_register): Simplify, search regs and
14323 pseudo-regs using a single loop.
14325 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14327 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14329 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14331 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14332 * config/i386/i386v42mp.mh: Add i387-nat.o .
14333 * i386v4-nat.c: Include i387-nat.h.
14334 (supply_fpregset): Use i387_supply_fsave.
14335 (fill_fpregset): Use i387_fill_fsave.
14337 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14339 * arm-tdep.c (arm_call_dummy_words): Define.
14340 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14341 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14342 (CALL_DUMMY_WORDS): Define.
14343 (arm_call_dummy_words): Declare.
14344 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14345 (arm_linux_call_dummy_words): Declare.
14347 2002-01-30 Andreas Schwab <schwab@suse.de>
14349 * m68klinux-nat.c: Fix last change to use regcache_collect
14350 instead of referencing registers[] directly.
14352 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14354 * parse.c (target_map_name_to_register): Delete code wrapped in
14355 #ifdef REGISTER_NAME_ALIAS_HOOK.
14357 2002-01-28 Michael Snyder <msnyder@redhat.com>
14359 * regcache.c (legacy_read_register_gen): Need to be able to
14360 read pseudo-register as well as real register.
14361 (legacy_write_register_gen): Ditto.
14363 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14365 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14366 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14367 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14368 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14369 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14370 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14371 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14372 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14373 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14374 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14375 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14376 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14377 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14378 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14379 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14380 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14381 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14382 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14383 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14384 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14386 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14388 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14389 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14390 (initialize_current_architecture): Update target_byte_order using
14391 information from BFD.
14392 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14393 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14395 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14397 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14398 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14400 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14401 #ifdef INVALID_FLOAT.
14402 * infcmd.c (do_registers_info): Ditto.
14403 * values.c (unpack_double): Ditto. Add comment.
14405 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14406 already commented out.
14408 2002-01-26 Andreas Schwab <schwab@suse.de>
14410 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14411 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14412 registers and add support for PTRACE_GETREGS.
14414 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14416 GDB 5.1.1 released from 5.1 branch.
14417 * NEWS: Add 5.1.1 news.
14418 * README: Sync with 5.1 branch.
14420 2002-01-23 Fred Fish <fnf@redhat.com>
14422 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14423 stabstring on initial malloc. Reallocing will copy it for us,
14426 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14428 * Makefile.in (hpread_h): Delete.
14429 (HFILES_NO_SRCDIR): Remove hpread.h.
14430 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14431 (hpread.o): Update dependencies.
14432 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14434 * hp-psymtab-read.c: Remove file.
14435 * hp-symtab-read.c: Remove file.
14436 * hpread.h: Remove file.
14438 * hpread.c: Merge all contents of hp-psymtab-read.c,
14439 hp-symtab-read.c and hpread.h into this file, as it was prior to
14442 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14443 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14444 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14445 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14447 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14449 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14450 fill_gregset): Call gdbarch_tdep() just once, assign result to
14451 variable and use that, instead of calling the function several
14454 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14456 * configure.host: Accept sparcv9 as alias for sparc64.
14457 * configure.tgt: Likewise.
14459 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14461 * solib-aix5.c (build_so_list_from_mapfile)
14462 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14463 arguments is not reversed.
14464 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14465 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14467 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14469 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14470 modified version of obsolete sh_fetch_pseudo_register.
14471 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14472 (sh4_register_read): New function.
14473 (sh_pseudo_register_write): New function. Renamed and modified
14474 version of obsolete sh_store_pseudo_register.
14475 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14476 (sh4_register_write): New function.
14477 (sh_gdbarch_init): Remove setting of gdbarch function
14478 fetch_pseudo_register and store_pseudo_register. Remove setting of
14479 register_convert_to_raw, register_convert_to_virtual,
14480 register_convertible.
14481 (sh_sh4_register_convertible): Delete. No longer needed. All is
14482 taken care by architecture specific functions
14483 register_read/register_write.
14484 (sh_sh4_register_convert_to_virtual): Make static.
14485 (sh_sh4_register_convert_to_raw): Ditto.
14487 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14489 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14490 (floatformat_is_nan, floatformat_mantissa): Ditto.
14492 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14493 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14494 builtin_type_ieee_double_little,
14495 builtin_type_ieee_double_littlebyte_bigword,
14496 builtin_type_m68881_ext, builtin_type_i960_ext,
14497 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14498 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14499 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14500 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14502 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14504 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14505 parameter. Set frameless flag if it exists and depended of
14506 whether the scanned function is frameless or not.
14507 (xstormy16_skip_prologue): If function is frameless, return
14508 result of xstormy16_scan_prologue().
14509 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14512 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14514 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14515 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14516 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14517 sh_sh4_register_byte, sh_sh4_register_raw_size,
14518 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14519 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14520 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14521 sh_store_pseudo_register, sh_do_pseudo_register): Call
14522 gdbarch_tdep() just once, assign result to variable and use that,
14523 instead of calling the function several times.
14525 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14527 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14528 macros instead of LAST_FPU_CTRL_REGNUM.
14529 (store_register): Likewise.
14531 2002-01-21 Jim Blandy <jimb@redhat.com>
14533 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14534 is up-to-date before running the program, not just when a program
14537 2002-01-21 Fred Fish <fnf@redhat.com>
14539 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14540 when we have found all instructions we are looking for.
14542 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14544 * arm-tdep.c (arm_register_name): New function.
14545 (arm_registers_names): Make static.
14546 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14547 (arm_register_name): Declare.
14548 (REGISTER_NAME): Use it.
14550 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14551 Kevin Buettner <kevinb@redhat.com>
14553 Convert arm targets to new FRAME interface.
14554 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14555 (arm_frame_find_save_regs): Delete.
14556 (arm_frame_init_saved_regs): New.
14557 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14558 Allocate extra_info as required. Convert all uses of fsr.regs
14559 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14561 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14562 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14563 (check_prologue_cache, save_prologue_cache): Likewise.
14564 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14565 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14566 (FRAME_FIND_SAVED_REGS): Delete.
14567 (arm_frame_find_saved_regs): Delete prototype.
14568 (arm_frame_init_saved_regs): New prototype.
14569 (FRAME_INIT_SAVED_REGS): Define.
14571 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14573 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14575 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14577 From Jeff Law <law@redhat.com>:
14578 * infttrace.c: Include <sys/pstat.h>.
14579 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14580 exec file if the ttrace equivalent fails.
14582 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14584 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14585 (closeLogFile): Ditto.
14587 2002-01-20 Michael Chastain <mec@shout.net>
14589 * top.c (print_gdb_version): Bump copyright year to 2002.
14591 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14593 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14594 Zannoni and Eli Zaretskii.
14596 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14598 * buildsym.c: Update copyright years.
14599 * c-typeprint.c: Likewise.
14600 * dwarf2read.c: Likewise.
14601 * f-typeprint.c: Likewise.
14602 * gdbtypes.c: Likewise.
14603 * gdbtypes.h: Likewise.
14604 * hp-symtab-read.c: Likewise.
14605 * hpread.c: Likewise.
14606 * mdebugread.c: Likewise.
14607 * p-typeprint.c: Likewise.
14609 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14611 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14612 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14613 byte-order selectable.
14614 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14615 * arch-utils.c: Ditto.
14616 (set_endian): Ditto.
14617 (set_endian_from_file): Ditto.
14618 * gdbserver/low-sim.c (create_inferior): Ditto.
14619 * gdbarch.sh: Ditto.
14620 * gdbarch.h: Re-generate.
14621 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14622 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14623 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14624 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14625 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14626 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14627 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14628 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14630 * config/mips/tm-wince.h: Remove #undef of macro
14631 TARGET_BYTE_ORDER_SELECTABLE.
14632 * config/sh/tm-wince.h: Ditto.
14634 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14636 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14637 member function fields. Add accessor macro
14638 TYPE_FN_FIELD_ARTIFICIAL.
14639 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14640 * c-typeprint.c (c_type_print_base): Skip artificial member
14643 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14645 * f-typeprint.c: Delete unused function f_type_print_args.
14646 * p-typeprint.c: Delete unused function pascal_type_print_args.
14648 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14650 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14651 comment. Add ``artificial'' to ``union field_location''.
14653 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14655 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14656 * mdebugread.c (parse_symbol): Likewise.
14657 * stabsread.c (define_symbol): Likewise.
14658 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14659 initializing TYPE_FIELD_BITPOS to n (obsolete).
14660 (hpread_doc_function_type): Likewise.
14661 * hpread.c (hpread_function_type): Likewise.
14663 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14665 * configure.in (host_makefile_frag): Only require a host makefile
14666 fragment when a native build.
14667 * configure: Re-generate.
14669 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14671 * doublest.h (floatformat_from_type): Declare.
14672 * doublest.c (floatformat_from_type): New function.
14673 (convert_typed_floating): Use.
14675 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14676 call to function floatformat_from_type.
14678 * gdbarch.sh (IEEE_FLOAT): Delete.
14679 * gdbarch.h, gdbarch.c: Re-generate.
14680 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14681 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14682 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14683 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14684 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14685 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14686 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14687 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14688 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14689 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14690 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14691 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14693 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14694 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14695 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14696 * sh-tdep.c (sh_gdbarch_init): Ditto.
14697 * mips-tdep.c (mips_gdbarch_init): Ditto.
14698 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14699 * cris-tdep.c (cris_gdbarch_init): Ditto.
14701 2002-01-20 Jiri Smid <smid@suse.cz>
14703 * configure.host, configure.tgt: Support x86-64.
14704 * NEWS: Note new target x86-64.
14706 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14707 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14708 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14709 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14710 x86-64-linux-nat.o): Fix dependencies.
14712 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14714 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14715 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14716 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14717 * config/sparc/xm-sun4os4.h: Delete file.
14718 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14720 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14722 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14723 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14724 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14725 * config/i386/i386lynx.mh (XM_FILE): Delete.
14726 * config/rs6000/xm-rs6000ly.h: Delete file.
14727 * config/sparc/xm-sparclynx.h: Delete file.
14728 * config/m68k/xm-m68klynx.h: Delete file.
14729 * config/i386/xm-i386lynx.h: Delete file.
14730 * config/xm-lynx.h: Delete file.
14731 * config/djgpp/fnchange.lst: Update.
14733 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14735 * alpha-tdep.c (alpha_register_byte): New function.
14736 (alpha_register_raw_size): Ditto.
14737 (alpha_register_virtual_size): Ditto.
14738 (alpha_skip_prologue_internal): Renamed from
14739 alpha_skip_prologue.
14740 (alpha_skip_prologue): New version that calls
14741 alpha_skip_prologue_internal.
14742 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14743 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14744 second argument from alpha_skip_prologue.
14745 (REGISTER_BYTE): Use alpha_register_byte.
14746 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14747 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14748 (FRAMELESS_FUNCTION_INVOCATION): Use
14749 generic_frameless_function_invocation_not.
14750 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14751 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14753 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14755 * config/mips/xm-news-mips.h: Delete file.
14756 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14758 * config/m88k/xm-m88k.h: Delete file.
14759 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14760 * config/m88k/xm-delta88v4.h: Ditto.
14761 * config/m88k/xm-delta88.h: Ditto.
14763 * config/alpha/xm-fbsd.h: Delete file.
14764 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14766 * config/sparc/xm-sparc.h: Delete file.
14767 * Makefile.in (xm-sun4os4.h): Delete dependency.
14768 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14769 * config/sparc/xm-sun4os4.h: Ditto.
14770 * config/sparc/xm-linux.h: Ditto.
14772 * config/i386/xm-windows.h: Delete file.
14774 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14776 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14777 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14779 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14781 * alpha-tdep.c (alpha_call_dummy_words): New.
14782 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14783 (CALL_DUMMY_P): Define.
14784 (CALL_DUMMY_WORDS): Define.
14785 (SIZEOF_CALL_DUMMY_WORDS): Define.
14787 2002-01-19 Per Bothner <per@bothner.com>
14789 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14790 isn't NULL, which can happen with some gcj-3.x-produced code.
14792 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14794 * alpha-tdep.c (alpha_register_virtual_type): New function.
14795 (alpha_init_frame_pc_first): Ditto.
14796 (alpha_fix_call_dummy): Ditto.
14797 (alpha_store_struct_return): Ditto.
14798 (alpha_extract_struct_value_address): Ditto.
14799 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14800 alpha_register_virtual_type.
14801 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14802 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14803 alpha_extract_struct_value_address.
14804 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14805 (INIT_FRAME_PC): Use init_frame_pc_noop.
14806 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14808 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14810 * i386gnu-nat.c: Include "i386-tdep.h".
14811 (fetch_fpregs): Simplify code dealing with uninitialized floating
14812 point states such that it doesn't require FP7_REGNUM.
14814 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14816 * alpha-tdep.c (frame_extra_info): New.
14817 (alpha_find_saved_regs): Make static. Use
14819 (alpha_frame_init_saved_regs): New function.
14820 (alpha_frame_saved_pc): Use frame->extra_info.
14821 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14822 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14823 (init_extra_frame_info): Rename to...
14824 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14825 (alpha_print_extra_frame_info): New function.
14826 (alpha_frame_locals_address): Ditto.
14827 (alpha_frame_args_address): Ditto.
14828 (alpha_pop_frame): Use frame->extra_info.
14829 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14830 alpha_frame_args_address.
14831 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14832 (alpha_find_saved_regs): Remove prototype.
14833 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14834 (EXTRA_FRAME_INFO): Remove.
14835 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14836 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14838 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14840 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14841 (alpha_cannot_fetch_register): Ditto.
14842 (alpha_cannot_store_register): Ditto.
14843 (alpha_register_convertible): Ditto.
14844 (alpha_use_struct_convention): Ditto.
14845 * config/alpha/tm-alpha.h: Update copyright years.
14846 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14847 (INNER_THAN): Use core_addr_lessthan.
14848 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14849 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14850 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14851 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14852 (FRAME_CHAIN): Remove unnecessary cast.
14854 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14856 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14859 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14861 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14862 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14863 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14864 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14865 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14866 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14867 * x86-64-linux-nat.c: Ditto.
14869 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14871 * alpha-tdep.c (alpha_register_name): New function.
14872 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14873 (REGISTER_NAME): Define.
14875 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14877 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14879 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14881 * alpha-tdep.c: Update copyright years.
14882 (alpha_next_pc): New function.
14883 (alpha_software_single_step): Ditto.
14884 * config/alpha/tm-alpha.h: Add prototype for
14885 alpha_software_single_step.
14887 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14889 * alphabsd-nat.c: Update copyright years.
14890 (fill_gregset): Use regcache_collect.
14891 (fill_fpregset): Likewise.
14892 (fetch_inferior_registers): Only fetch integer registers
14893 if requested to do so.
14894 (store_inferior_registers): Only store integer registers
14895 if requested to do so.
14897 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14899 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14900 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14901 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14902 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14903 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14904 * config/arm/linux.mh (XDEPFILES): Delete.
14905 * config/arm/nbsd.mh (XDEPFILES): Delete.
14906 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14907 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14908 * config/i386/i386m3.mh (XDEPFILES): Delete.
14909 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14910 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14911 * config/i386/fbsd.mh (XDEPFILES): Delete.
14912 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14913 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14914 * config/i386/i386v4.mh (XDEPFILES): Delete.
14915 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14916 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14917 * config/i386/i386aix.mh (XDEPFILES): Delete.
14918 * config/i386/go32.mh (XDEPFILES): Delete.
14919 * config/i386/cygwin.mh (XDEPFILES): Delete.
14920 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14921 * config/i386/i386mach.mh (XDEPFILES): Delete.
14922 * config/i386/i386v32.mh (XDEPFILES): Delete.
14923 * config/i386/linux.mh (XDEPFILES): Delete.
14924 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14925 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14926 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14927 * config/i386/i386sco.mh (XDEPFILES): Delete.
14928 * config/i386/i386v.mh (XDEPFILES): Delete.
14929 * config/i386/nbsd.mh (XDEPFILES): Delete.
14930 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14931 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14932 * config/i386/symmetry.mh (XDEPFILES): Delete.
14933 * config/i386/obsd.mh (XDEPFILES): Delete.
14934 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14935 * config/ia64/linux.mh (XDEPFILES): Delete.
14936 * config/ia64/aix.mh (XDEPFILES): Delete.
14937 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14938 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14939 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14940 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14941 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14942 * config/m68k/linux.mh (XDEPFILES): Delete.
14943 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14944 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14945 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14946 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14947 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14948 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14949 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14950 * config/m88k/delta88.mh (XDEPFILES): Delete.
14951 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14952 * config/m88k/m88k.mh (XDEPFILES): Delete.
14953 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14954 * config/mips/linux.mh (XDEPFILES): Delete.
14955 * config/mips/irix6.mh (XDEPFILES): Delete.
14956 * config/mips/irix5.mh (XDEPFILES): Delete.
14957 * config/mips/irix4.mh (XDEPFILES): Delete.
14958 * config/mips/irix3.mh (XDEPFILES): Delete.
14959 * config/mips/decstation.mh (XDEPFILES): Delete.
14960 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14961 (NATDEPFILES): Move core-aout.o to here.
14962 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14963 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14964 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14965 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14966 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14967 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14968 * config/pa/hpux11.mh (XDEPFILES): Delete.
14969 * config/powerpc/aix.mh (XDEPFILES): Delete.
14970 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14971 * config/powerpc/linux.mh (XDEPFILES): Delete.
14972 * config/romp/rtbsd.mh: Rename XDEPFILES.
14973 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14974 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14975 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14976 * config/s390/s390.mh (XDEPFILES): Delete.
14977 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14978 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14979 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14980 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14981 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14982 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14983 * config/sparc/linux.mh (XDEPFILES): Delete.
14984 * config/vax/vaxult.mh (XDEPFILES): Delete.
14985 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14986 * Makefile.in (DEPFILES): Remove XDEPFILES.
14988 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14990 * utils.c (internal_verror): Fix comments, default is yes not no.
14991 Update queries to match. Default to quit and dump core.
14993 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14995 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14997 * defs.h, event-top.c, gdbcmd.h: Ditto.
14998 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14999 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15000 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15001 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15002 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15003 * mi/mi-main.c:Ditto.
15005 * stack.c, symfile.c: Update copyright.
15007 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15009 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15010 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15011 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15012 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15014 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15016 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15017 * gdbserver/low-lynx.c (myattach): Likewise.
15018 * gdbserver/low-nbsd.c (myattach): Likewise.
15019 * gdbserver/low-sim.c (myattach): Likewise.
15020 * gdbserver/low-sparc.c (myattach): Likewise.
15021 * gdbserver/low-sun3.c (myattach): Likewise.
15023 * gdbserver/low-linux.c (myattach): New function.
15025 * gdbserver/server.c (attach_inferior): New function.
15026 (main): Handle "--attach".
15028 2002-01-16 Andrew Cagney <ac131313@redhat.com>
15030 * MAINTAINERS (language support): Daniel Jacobwitz is C++
15033 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
15035 * c-typeprint.c (is_type_conversion_operator): Add additional
15036 check for non-conversion operators.
15038 2002-01-15 Michael Snyder <msnyder@redhat.com>
15040 * linux-proc.c: Add "info proc" command, a la procfs.c.
15041 (read_mapping): New function, abstract and re-use code.
15042 (linux_find_memory_regions): Use new func read_mapping.
15043 (linux_info_proc_cmd): New function, implement "info proc".
15044 (_initialize_linux_proc): Add new command "info proc".
15046 2002-01-15 Michael Snyder <msnyder@redhat.com>
15048 * symfile.c (generic_load): Use bfd_map_over_sections method
15049 instead of manipulating bfd structure members directly.
15050 (add_section_size_callback): New function, bfd sections callback
15051 used by generic_load.
15052 (load_sections_callback): New function, bfd sections callback
15053 used by generic_load.
15055 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15057 [Based on work by Jim Blandy]
15058 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15059 (builtin_type_vec128): Export.
15060 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15062 (builtin_type_vec128): New builtin type for 128 bit vector
15064 (build_gdbtypes): Initialize builtin_type_v16qi and
15065 builtin_type_v8hi. Create the vec128 register builtin type
15067 (build_builtin_type_vec128): New function.
15068 (_initialize_gdbtypes): Register builtin_type_v16qi and
15069 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15070 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15071 AltiVec register to new builtin type.
15073 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15075 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15078 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15080 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15081 CLEAN_UP_REGISTER_VALUE.
15082 * regcache.c (supply_register): Update only call.
15084 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15086 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15087 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15088 a29k-*-vxworks* targets as obsolete.
15090 2002-01-14 Michael Snyder <msnyder@redhat.com>
15092 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15093 until we can resolve portability issues.
15094 * gregset.h: Remove references to fpxregs.
15095 * gcore.c (gcore_command): Initialize note_sec to NULL.
15097 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15099 * signals.c (target_signal_to_name): Rewrite. Only use
15100 signals[].name when in bounds and non-NULL.
15102 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15104 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15105 * signals.c (target_signal_to_name): Verify that SIG is within the
15106 bounds of the signals array.
15108 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15110 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15112 2002-01-13 Keith Seitz <keiths@redhat.com>
15114 * stack.c (print_frame_info_base): Print the frame's pc
15115 only if when print_frame_info_listing_hook is not defined.
15117 2002-01-13 Keith Seitz <keiths@redhat.com>
15119 * varobj.c (varobj_set_value): Make sure that there were no
15120 errors evaluating the object before attempting to set its
15122 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15123 so this offset adjustment is no longer necessary.
15124 (create_child): Don't set the error flag if the child is
15125 a CPLUS_FAKE_CHILD.
15126 (value_of_child): If value_fetch_lazy fails, return NULL
15127 so that callers will be notified that an error occurred.
15128 (c_value_of_variable): Delay check of variable's validity
15129 until later. We actually want all structs and unions to have
15131 Do not return "???" for variables which could not be evaluated.
15132 This error condition must be returned to the caller so that it
15133 can get the error condition from gdb.
15134 (cplus_name_of_child): Adjust index for vptr before figuring
15135 out the name of the child.
15136 (cplus_value_of_child): If a child's (real) parent is not valid,
15137 don't even bother trying to give a value for it. Just return
15138 an error. Change all instances in this function.
15139 (cplus_type_of_child): If our parent is one of the "fake"
15140 parents, we need to get at the type of the real parent, and
15141 derive the child's true type using this information.
15143 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15145 From 2002-01-09 John Marshall <johnm@falch.net>:
15146 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15147 sources.redhat.com, and tweak some related URLs which had
15148 suffered from linkrot.
15150 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15153 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15154 structures passed in registers.
15156 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15158 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15159 white space which prevented compilation. Reported by DSK
15160 <dsk@student.unsw.edu.au>.
15162 2002-01-11 Michael Snyder <msnyder@redhat.com>
15164 * symfile.c (build_section_addr_info_from_section_tab):
15165 Use bfd access method instead of manipulating bfd directly.
15166 (syms_from_objfile): Ditto.
15167 (simple_overlay_update_1): Ditto.
15168 (simple_overlay_update): Ditto.
15169 (generic_load): Ditto.
15170 (overlay_unmapped_address): FIXME comment, bfd access methods.
15171 (sections_overlap): FIXME comment, bfd access methods.
15172 (pc_in_mapped_range): FIXME comment, bfd access methods.
15173 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15174 (section_is_mapped): FIXME comment, bfd access methods.
15175 (section_is_overlay): FIXME comment, bfd access methods.
15177 * symfile.c (generic_load): Whitespace and long line cleanups.
15178 Remove duplicate variable, change several local variables to
15179 more appropriate data types.
15180 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15182 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15184 From Peter Schauer:
15185 * language.c (longest_local_hex_string_custom): Use phex_nz to
15186 convert NUM to a hex string.
15188 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15190 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15192 Update Copyright year.
15194 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15196 * language.c (longest_raw_hex_string): Delete unused function.
15198 2002-01-11 Petr Sorfa <petrs@caldera.com>
15200 * MAINTAINERS (write-after-approval): Add myself.
15201 * dwarf2read.c (read_tag_string_type): Handling of
15203 (read_tag_string_type): FORTRAN fix to prevent propagation of
15205 (set_cu_language): Handling of DW_LANG_Fortran95
15207 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15209 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15210 GETPID(inferior_ptid).
15211 (store_inferior_registers): Likewise.
15213 2002-01-10 Jason Merrill <jason@redhat.com>
15215 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15218 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15220 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15221 and bfd/elf32-sh-nbsd.c.
15223 2002-01-10 Michael Snyder <msnyder@redhat.com>
15225 * NEWS: Mention --pid and corefile/proc-id behavior change.
15227 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15228 * gcore.c: Include cli/cli-decode.h instead of command.h.
15230 * main.c (captured_main): Add new command line option "--pid".
15231 If the second command line argument (following the symbol-file)
15232 begins with a digit, try to attach to it before trying to open
15234 (print_gdb_help): Document the "--pid" argument.
15236 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15238 * completer.c (command_completer): New function.
15240 * completer.h <command_completer>: Add prototype.
15242 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15243 completer for the "help" command.
15245 2002-01-09 Jason Merrill <jason@redhat.com>
15247 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15249 2002-01-09 Michael Snyder <msnyder@redhat.com>
15251 * i386-linux-nat.c (fill_fpxregset): Make global.
15252 (store_fpxregset): Ditto.
15254 * gregset.h (gdb_fpxregset_t): Define.
15255 (supply_fpxregset): Prototype.
15256 (fill_fpxregset): Prototype.
15258 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15260 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15262 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15263 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15264 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15266 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15268 * MAINTAINERS: Update target maintainer rules so that any
15269 Maintainer can approve a tested patch for a maintenance-only
15272 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15274 * MAINTAINERS (write-after-approval): Add myself.
15276 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15279 2002-01-08 Michael Snyder <msnyder@redhat.com>
15281 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15282 real name of the executable, rather than the /proc name.
15284 2002-01-03 Michael Snyder <msnyder@redhat.com>
15286 Implement a "generate-core-file" command in gdb, save target state.
15287 * gcore.c: New file. Implement new command 'generate-core-file'.
15288 Save a corefile image of the current state of the inferior.
15289 * linux-proc.c: Add linux-specific code for saving corefiles.
15290 * target.h (struct target_ops): Add new target vectors for saving
15291 corefiles; to_find_memory_regions and to_make_corefile_notes.
15292 (target_find_memory_regions): New macro.
15293 (target_make_corefile_notes): New macro.
15294 * target.c (update_current_target): Inherit new target methods.
15295 (dummy_find_memory_regions): New place-holder method.
15296 (dummy_make_corefile_notes): New place-holder method.
15297 (init_dummy_target): Initialize new dummy target vectors.
15298 * exec.c (exec_set_find_memory_regions): New function.
15299 Allow the exec_ops vector for memory regions to be taken over.
15300 (exec_make_note_section): New function, target vector method.
15301 * defs.h (exec_set_find_memory_regions): Export prototype.
15302 * procfs.c (proc_find_memory_regions): New function, corefile method.
15303 (procfs_make_note_section): New function, corefile method.
15304 (init_procfs_ops): Set new target vector pointers.
15305 (find_memory_regions_callback): New function.
15306 (procfs_do_thread_registers): New function.
15307 (procfs_corefile_thread_callback): New function.
15308 * sol-thread.c (sol_find_memory_regions): New function.
15309 (sol_make_note_section): New function.
15310 (init_sol_thread_ops): Initialize new target vectors.
15311 * inftarg.c (inftarg_set_find_memory_regions): New function.
15312 Allow to_find_memory_regions vector to be taken over.
15313 (inftarg_set_make_corefile_notes): New function.
15314 Allow to_make_corefile_notes vector to be taken over.
15315 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15316 interface layer if not target_has_execution (may be a corefile).
15317 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15318 * config/sparc/sun4sol2.mh: Ditto.
15319 * config/alpha/alpha-linux.mh: Ditto.
15320 * config/arm/linux.mh: Ditto.
15321 * config/i386/x86-64linux.mh: Ditto.
15322 * config/ia64/linux.mh: Ditto.
15323 * config/m68k/linux.mh: Ditto.
15324 * config/mips/linux.mh: Ditto.
15325 * config/powerpc/linux.mh: Ditto.
15326 * config/sparc/linux.mh: Ditto.
15328 2002-01-07 Michael Snyder <msnyder@redhat.com>
15330 * arm-linux-nat.c: Remove references to regcache.c internal data
15331 (registers[] and register_valid[]).
15333 2002-01-07 Michael Snyder <msnyder@redhat.com>
15335 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15336 so that attaching to a pid will automatically read the process's
15337 symbol file and shlibs.
15338 * Makefile.in: Add rule for linux-proc.o.
15339 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15340 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15341 * config/arm/linux.mh: Ditto.
15342 * config/i386/linux.mh: Ditto.
15343 * config/i386/x86-64linux.mh: Ditto.
15344 * config/ia64/linux.mh: Ditto.
15345 * config/m68k/linux.mh: Ditto.
15346 * config/mips/linux.mh: Ditto.
15347 * config/powerpc/linux.mh: Ditto.
15348 * config/sparc/linux.mh: Ditto.
15350 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15352 * win32-nat.c: Add i386-tdep.h dependency.
15354 2002-01-07 Michael Snyder <msnyder@redhat.com>
15356 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15357 instead of bfd_get_arch_size. Don't bail out just because
15358 there's no exec_bfd.
15360 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15361 * p-valprint.c (pascal_object_print_value): Ditto.
15362 * somread.c (som_symtab_read): Ditto.
15363 * symfile.c (simple_free_overlay_region_table): Ditto.
15364 * valops.c (value_assign): Ditto.
15366 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15367 use tilde_expand and strerror for opening save-tracepoints file.
15369 * thread-db.c (thread_db_new_objfile): Indendation fix.
15371 * infptrace.c (GDB_MAX_ALLOCA): New define.
15372 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15373 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15374 can be overridden with whatever value is appropriate to the host).
15375 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15376 alloca to allocate potentially large buffer.
15377 * rs6000-nat.c (child_xfer_memory): Ditto.
15378 * symm-nat.c (child_xfer_memory): Ditto.
15379 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15381 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15383 From Nick Clifton <nickc@redhat.com>
15384 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15386 2002-01-07 Michael Snyder <msnyder@redhat.com>
15388 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15389 Don't use exec_bfd if it's NULL.
15391 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15393 * valops.c (value_arg_coerce): Fix formatting.
15395 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15397 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15398 * gnu-nat.c: Ditto.
15400 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15402 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15403 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15404 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15405 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15406 z8k-coff have not been multi-arched. Update z8k-coff build
15409 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15411 * MAINTAINERS: Mark a29k target as obsolete.
15412 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15413 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15415 * NEWS: Note that a29k targets are obsolete.
15416 * a29k-tdep.c: Mark as obsolete.
15417 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15418 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15419 a29k-*-vxworks* targets as obsolete.
15420 * remote-adapt.c: Obsolete.
15421 * remote-eb.c: Obsolete.
15422 * remote-mm.c: Obsolete.
15423 * remote-udi.c: Obsolete.
15424 * config/a29k/a29k-udi.mt: Obsolete.
15425 * config/a29k/a29k.mt: Obsolete.
15426 * config/a29k/tm-a29k.h: Obsolete.
15427 * config/a29k/tm-vx29k.h: Obsolete.
15428 * config/a29k/vx29k.mt: Obsolete.
15430 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15432 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15433 with BFD_ENDIAN_BIG.
15435 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15437 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15438 * configure, config.in: Re-generate.
15439 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15440 * defs.h: Do not include <endian.h>.
15442 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15444 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15445 * config.in: Regenerate.
15446 * configure.in: Update copyright years.
15447 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15448 * configure: Regenerate.
15449 * i386bsd-nat.c: Update copyright years.
15450 (fill_gregset): Use regcache_collect.
15451 (fetch_inferior_registers): Only fetch integer registers
15452 if requested to do so. Add support for XMM registers
15453 using PT_GETXMMREGS.
15454 (store_inferior_registers): Only store integer registers
15455 if requested to do so. Add support for XMM registers
15456 using PT_SETXMMREGS.
15457 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15458 (store_inferior_registers): Remove.
15459 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15460 (fetch_elfcore_registers): New function.
15461 (i386nbsd_elfcore_fns): New.
15462 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15463 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15465 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15466 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15467 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15468 * config/i386/tm-nbsd.h: Update copyright years.
15469 (HAVE_SSE_REGS): Define.
15470 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15471 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15472 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15473 (SIGCONTEXT_PC_OFFSET): Remove.
15474 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15476 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15478 * configure.tgt: Remove powerpc-*-macos* target.
15479 * config/m68k/xm-mpw.h: Delete file.
15480 * config/xm-mpw.h: Delete file.
15481 * ser-mac.c: Delete file.
15482 * mpw-make.sed: Delete file.
15483 * mpw-config.in: Delete file.
15484 * mac-xdep.c: Delete file.
15485 * mac-gdb.r: Delete file.
15486 * mac-defs.h: Delete file.
15487 * mac-nat.c: Delete file.
15488 * config/powerpc/macos.mh: Delete file.
15489 * config/powerpc/macos.mt: Delete file.
15490 * config/powerpc/nm-macos.h: Delete file.
15491 * config/powerpc/tm-macos.h: Delete file.
15492 * source.c (openp, open_source_file): Remove obsolete code.
15493 * top.c (gdb_readline): Ditto.
15494 * utils.c (query): Ditto.
15495 * event-top.c (display_gdb_prompt): Ditto.
15496 * Makefile.in (ser-mac.o): Delete obsolete target.
15499 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15501 * defs.h (BIG_ENDIAN): Delete macro definition.
15502 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15503 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15504 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15505 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15506 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15507 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15508 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15509 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15510 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15511 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15512 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15513 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15514 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15515 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15516 * gdbarch.c: Re-generate.
15518 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15520 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15523 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15525 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15527 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15529 * value.h (value_ptr): Delete typedef.
15531 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15533 * i386nbsd-nat.c: Update copyright years.
15534 Include i386-tdep.h.
15536 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15538 * stabsread.c: Update copyright years.
15540 From Debashis Mahata <debashis.mahata@wipro.com>:
15541 (read_struct_fields): Deal with Sun C compiler erroneous stab
15542 output for structs and unions.
15545 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15547 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15550 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15552 * cp-abi.c: Fix whitespace.
15553 (baseclass_offset): New wrapper function.
15554 * cp-abi.h (baseclass_offset): Add prototype.
15555 (struct cp_abi_ops): Add baseclass_offset pointer.
15557 * valops.c (vb_match): Move to...
15558 * gnu-v2-abi.c (vb_match): here.
15559 * valops.c (baseclass_offset): Move to...
15560 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15562 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15564 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15565 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15566 * hpacc-abi.c (init_hpacc_ops): Likewise.
15568 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15570 * valops.c (find_overload_match): Accept obj as a
15571 reference parameter. Update it before returning.
15572 * value.h (find_overload_match): Update prototype.
15573 * eval.c (evaluate_subexp_standard): Pass object to
15574 find_overload_match by reference.
15576 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15578 * valarith.c: Replace value_ptr with struct value pointer. Remove
15579 register attribute from value declarations.
15582 * scm-lang.c (scm_lookup_name): Ditto.
15584 2002-01-03 Michael Snyder <msnyder@redhat.com>
15586 Abstract the functionality of iterating over mapped memory
15587 regions into a general purpose iterator function.
15588 * procfs.c (iterate_over_mappings): New function, general purpose
15589 iterator for memory sections.
15590 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15591 (solib_mappings_callback): New function, callback for above.
15592 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15593 (info_mappings_callback): New function, callback for above.
15595 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15597 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15599 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15600 * i386-tdep.c: Include "elf-bfd.h".
15601 (process_note_abi_tag_sections): New function.
15602 (i386_gdbarch_init): Add code to recognize various OS/ABI
15605 * maint.c (_initialize_maint_cmds): Add missing \ in
15608 For older changes see ChangeLog-2001
15614 version-control: never