1 2003-01-07 Andrew Cagney <cagney@redhat.com>
3 * frame.c (deprecated_set_frame_next_hack): New function.
4 (deprecated_set_frame_prev_hack): New function.
5 * frame.h (deprecated_set_frame_next_hack): Declare.
6 (deprecated_set_frame_prev_hack): Declare.
7 * mcore-tdep.c (analyze_dummy_frame): Use
8 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11 2003-01-07 David Carlton <carlton@math.stanford.edu>
13 * linespec.c (decode_line_1): Move code into decode_dollar.
14 (decode_dollar): New function.
16 2003-01-07 Andrew Cagney <cagney@redhat.com>
18 * arm-tdep.c (arm_init_extra_frame_info): Use
19 deprecated_update_frame_base_hack.
20 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
21 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
22 (fix_frame_pointer): Ditto.
23 (mn10300_analyze_prologue): Ditto.
25 2003-01-07 Andrew Cagney <cagney@redhat.com>
27 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
28 extra_info using frame_extra_info_zalloc.
29 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
30 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
31 (sh64_init_extra_frame_info): Ditto.
32 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
33 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
34 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
35 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
36 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
37 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
38 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
39 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
40 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
41 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
42 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
43 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
45 * mn10300-tdep.c (analyze_dummy_frame): Use
46 deprecated_set_frame_extra_info_hack.
47 * mcore-tdep.c (analyze_dummy_frame): Ditto.
49 2003-01-07 J. Brobecker <brobecker@gnat.com>
51 * mdebugread.c (parse_symbol): Skip stProc entries which storage
52 class is not scText. These do not define "real" procedures.
53 (parse_partial_symbols): Likewise.
55 2003-01-06 Michael Snyder <msnyder@redhat.com>
57 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
59 2003-01-06 Andrew Cagney <ac131313@redhat.com>
61 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
62 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
63 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
64 deprecated_frame_xmalloc_with_cleanup.
65 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
66 deprecated_frame_xmalloc.
67 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
68 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
70 2003-01-06 Andrew Cagney <cagney@redhat.com>
72 * x86-64-linux-tdep.c: Include "osabi.h".
73 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
75 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
77 2003-01-06 Andrew Cagney <cagney@redhat.com>
79 * MAINTAINERS (Target Instruction Set Architectures): Update
80 arm-elf. Can be built with -Werror, has been multiarched.
82 * value.h (unpack_long): Make buffer parameter constant.
83 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
84 * scm-lang.h (scm_parse): Ditto.
85 * defs.h (extract_typed_address, extract_address): Ditto.
86 (extract_long_unsigned_integer): Ditto.
87 * inferior.h (unsigned_pointer_to_address): Ditto.
88 (signed_pointer_to_address): Ditto.
89 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
90 * gdbarch.h, gdbarch.c: Regenerate.
91 * findvar.c (extract_long_unsigned_integer): Update.
92 (extract_address): Update.
93 (extract_typed_address): Update.
94 (unsigned_pointer_to_address): Update.
95 * values.c (unpack_long): Update.
96 (unpack_double): Update.
97 (unpack_pointer): Update.
98 (unpack_field_as_long): Update.
99 * d10v-tdep.c (d10v_pointer_to_address): Update.
100 * avr-tdep.c (avr_pointer_to_address): Update.
101 * scm-lang.c (scm_unpack): Update.
102 * findvar.c (signed_pointer_to_address): Update.
104 2003-01-06 Michal Ludvig <mludvig@suse.cz>
106 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
107 since it is in i386-tdep.c.
109 2003-01-06 J. Brobecker <brobecker@gnat.com>
111 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
112 failure introduced in the previous change.
114 2003-01-05 Michael Chastain <mec@shout.net>
116 * README: Remove references to deleted remote-*.c files:
117 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
118 remote-nrom.c, remote-os9k.c, remote-udi.c.
120 2003-01-05 Mark Kettenis <kettenis@gnu.org>
122 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
123 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
124 i386_get_longjmp_target.
126 2003-01-05 Andrew Cagney <ac131313@redhat.com>
128 * arm-tdep.c (prologue_cache): Change to a pointer.
129 (_initialize_arm_tdep): Allocate prologue_cache.
130 (check_prologue_cache): Update.
131 (save_prologue_cache): Update.
132 (arm_gdbarch_init): Update.
134 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
136 * stabsread.c (update_method_name_from_physname): Call complaint()
139 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
141 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
142 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
143 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
145 * blockframe.c: Include "gdbcmd.h" and "command.h".
146 (backtrace_below_main): New variable.
147 (file_frame_chain_valid, func_frame_chain_valid)
148 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
149 (generic_func_frame_chain_valid): Remove functions.
150 (frame_chain_valid, do_flush_frames_sfunc): New functions.
151 (_initialize_blockframe): New function.
152 * Makefile.in (blockframe.o): Update dependencies.
153 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
154 comment. Call frame_chain_valid ().
155 * frame.h: Remove old prototypes. Add prototype for
156 frame_chain_valid and update comments to match.
157 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
159 * gdbarch.h: Regenerated.
160 * gdbarch.c: Regenerated.
162 * alpha-tdep.c (alpha_gdbarch_init): Don't call
163 set_gdbarch_frame_chain_valid.
164 * avr-tdep.c (avr_gdbarch_init): Likewise.
165 * cris-tdep.c (cris_gdbarch_init): Likewise.
166 * frv-tdep.c (frv_gdbarch_init): Likewise.
167 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
168 * i386-tdep.c (i386_svr4_init_abi): Likewise.
169 (i386_nw_init_abi): Likewise.
170 (i386_gdbarch_init): Likewise.
171 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
173 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
174 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
175 * mips-tdep.c (mips_gdbarch_init): Likewise.
176 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
177 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
178 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
179 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
180 * s390-tdep.c (s390_gdbarch_init): Likewise.
181 * sh-tdep.c (sh_gdbarch_init): Likewise.
182 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
183 * v850-tdep.c (v850_gdbarch_init): Likewise.
184 * vax-tdep.c (vax_gdbarch_init): Likewise.
185 * x86-64-tdep.c (x86_64_init_abi): Likewise.
187 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
188 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
189 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
190 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
191 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
192 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
193 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
194 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
196 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
198 * Makefile.in (acconfig_h): Remove incorrect macro.
200 (osabi.o): Update dependencies.
201 * configure.tgt: Set gdb_osabi based on target triplet.
202 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
203 * configure: Regenerated.
204 * config.in: Regenerated.
205 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
206 (GDB_OSABI_DEFAULT): Define if not already defined.
207 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
208 (set_osabi_string): New variables.
209 (gdbarch_register_osabi): Add new OS ABI to
210 gdb_osabi_available_names.
211 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
212 (set_osabi, show_osabi): New functions.
213 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
215 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
217 * arch-utils.c (gdbarch_info_init): Set osabi to
218 GDB_OSABI_UNINITIALIZED.
219 * gdbarch.sh: Add osabi to struct gdbarch and to struct
220 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
221 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
222 * gdbarch.c: Regenerated.
223 * gdbarch.h: Regenerated.
224 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
226 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
227 * osabi.h (enum gdb_osabi): Move to defs.h.
228 (gdbarch_init_osabi): Update prototype.
229 * defs.h (enum gdb_osabi): Moved here.
230 * Makefile.in: Update dependencies.
232 * alpha-tdep.h: Don't include "osabi.h".
233 (struct gdbarch_tdep): Remove osabi member.
234 * alpha-tdep.c: Include "osabi.h".
235 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
236 iterate over arches. Update call to gdbarch_init_osabi.
237 (alpha_dump_tdep): Don't dump osabi.
238 * alpha-linux-tdep.c: Include "osabi.h".
239 * alpha-osf1-tdep.c: Include "osabi.h".
240 * alphafbsd-tdep.c: Include "osabi.h".
241 * alphanbsd-tdep.c: Include "osabi.h".
243 * arm-tdep.h: Don't include "osabi.h".
244 (struct gdbarch_tdep): Remove osabi member.
245 * arm-tdep.c: Include "osabi.h".
246 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
247 iterate over arches. Update call to gdbarch_init_osabi.
248 (arm_dump_tdep): Don't dump osabi.
249 * arm-linux-tdep.c: Include "osabi.h".
250 * armnbsd-tdep.c: Include "osabi.h".
252 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
253 Update call to gdbarch_init_osabi.
255 * i386-tdep.h: Don't include "osabi.h".
256 (struct gdbarch_tdep): Remove osabi member.
257 * i386-tdep.c: Include "osabi.h".
258 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
259 iterate over arches. Update call to gdbarch_init_osabi.
260 (i386_dump_tdep): Don't dump osabi.
261 * i386-linux-tdep.c: Include "osabi.h".
262 * i386-sol2-tdep.c: Include "osabi.h".
263 * i386bsd-tdep.c: Include "osabi.h".
264 * i386gnu-tdep.c: Include "osabi.h".
265 * i386ly-tdep.c: Include "osabi.h".
266 * i386nbsd-tdep.c: Include "osabi.h".
267 * i386obsd-tdep.c: Include "osabi.h".
269 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
270 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
271 check osabi when iterating over arches. Update call to
273 (mips_dump_tdep): Don't dump osabi.
275 * ns32k-tdep.h: Don't include "osabi.h".
276 (struct gdbarch_tdep): Remove.
277 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
278 gdbarch_lookup_osabi. Don't iterate over arches. Don't
279 allocate tdep. Update call to gdbarch_init_osabi.
280 (ns32k_dump_tdep): Remove.
281 (_initialize_ns32k_tdep): Update call to gdbarch_register.
282 * ns32knbsd-tdep.c: Include "osabi.h".
284 * ppc-tdep.h: Don't include "osabi.h".
285 (struct gdbarch_tdep): Remove osabi member.
286 * rs6000-tdep.c: Include "osabi.h".
287 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
288 osabi when iterating over arches. Update call to
290 (rs6000_dump_tdep): Don't dump osabi.
291 * ppc-linux-tdep.c: Include "osabi.h".
292 * ppcnbsd-tdep.c: Include "osabi.h".
294 * sh-tdep.h: Don't include "osabi.h".
295 (struct gdbarch_tdep): Remove osabi member.
296 * sh-tdep.c: Include "osabi.h".
297 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
298 iterate over arches. Update call to gdbarch_init_osabi.
299 (sh_dump_tdep): Don't dump osabi.
300 * shnbsd-tdep.c: Include "osabi.h".
302 * sparc-tdep.c: Include "osabi.h".
303 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
304 iterate over arches. Update call to gdbarch_init_osabi.
305 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
308 * vax-tdep.h: Don't include "osabi.h".
309 (struct gdbarch_tdep): Remove.
310 * vax-tdep.c: Include "osabi.h".
311 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
312 iterate over arches. Don't allocate tdep. Update call
313 to gdbarch_init_osabi.
314 (vax_dump_tdep): Remove.
315 (_initialize_vax_tdep): Update call to gdbarch_register.
317 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
319 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
321 (breakpoint_re_set_one): Don't fetch the value for a disabled
324 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
326 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
327 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
328 (COERCE_FLOAT_TO_DOUBLE): Remove.
329 * gdbarch.c: Regenerate.
330 * gdbarch.h: Regenerate.
331 * Makefile.in: Remove value_h from gdbarch_h.
332 * valops.c (coerce_float_to_double): New variable.
333 (default_coerce_float_to_double): Remove.
334 (standard_coerce_float_to_double): Remove.
335 (value_arg_coerce): Use coerce_float_to_double.
336 (_initialize_valops): Add "set coerce-float-to-double".
337 * value.h (default_coerce_float_to_double): Remove prototype.
338 (standard_coerce_float_to_double): Remove prototype.
340 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
342 * mdebugread.c (parse_symbol): Likewise.
343 * stabsread.c (define_symbol): Mark all functions as prototyped.
345 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
346 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
347 set_gdbarch_coerce_float_to_double.
348 * arm-tdep.c (arm_gdbarch_init): Likewise.
349 * frv-tdep.c (frv_gdbarch_init): Likewise.
350 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
351 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
352 * mips-tdep.c (mips_gdbarch_init): Likewise.
353 (mips_coerce_float_to_double): Remove.
354 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
355 (rs6000_coerce_float_to_double): Remove.
356 * s390-tdep.c (s390_gdbarch_init): Likewise.
357 * sh-tdep.c (sh_gdbarch_init): Likewise.
358 (sh_coerce_float_to_double): Remove.
359 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
360 (sparc_coerce_float_to_double): Remove.
361 * v850-tdep.c (v850_gdbarch_init): Likewise.
362 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
363 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
364 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
365 (hppa_coerce_float_to_double): Remove prototype.
366 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
368 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
370 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
372 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
374 Suggested by Stewart Brown <sb24@avaya.com>:
375 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
376 in recursive calls. Handle TYPE_CODE_TYPEDEF.
377 (c_type_print_varspec_suffix): Likewise.
379 2003-01-04 Mark Kettenis <kettenis@gnu.org>
381 * configure.in: Don't set and AC_SUBST SUBDIRS.
382 * configure: Regenerated.
384 * configure.in: Remove code dealing with shared libraries.
385 * Makefile.in: Remove HLDFLAGS and HLDENV.
386 * configure: Regenerated.
388 2003-01-04 Andrew Cagney <ac131313@redhat.com>
390 * frame.c (deprecated_frame_xmalloc): New function.
391 (deprecated_set_frame_saved_regs_hack): New function.
392 (deprecated_set_frame_extra_info_hack): New function.
393 * frame.h (deprecated_frame_xmalloc): Declare.
394 (deprecated_set_frame_saved_regs_hack): Declare.
395 (deprecated_set_frame_extra_info_hack): Declare.
397 2003-01-04 Mark Kettenis <kettenis@gnu.org>
399 * configure.in: Move code that provides the --enable-gdbtk option
400 right after the code that handles the --enable-tui option, and
402 * configure: Regenerated.
404 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
405 AC_CHECK_FUNCS and remove the old check for pread64.
406 * acinclude.m4 (AC_GNU_SOURCE): New macro.
407 * acconfig.h (_GNU_SOURCE): Add.
408 (HAVE_PREAD64): Remove.
409 * configure, aclocal.m4, config.in: Regenerated.
411 2003-01-03 Andrew Cagney <ac131313@redhat.com>
413 * alpha-tdep.c: Use get_frame_saved_regs.
414 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
415 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
416 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
417 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
418 * vax-tdep.c, xstormy16-tdep.c: Ditto.
420 2003-01-03 Mark Kettenis <kettenis@gnu.org>
422 * configure.in: Remove all use of the SUBDIRS variable; add
423 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
424 code providing the --enable-multi-ice option, and move it right in
425 front of the code that checks whether gdbserver is supported.
427 * configure: Regenerated.
428 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
431 2003-01-03 Andrew Cagney <cagney@redhat.com>
433 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
434 * avr-tdep.c, cris-tdep.c: Ditto.
435 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
436 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
438 2003-01-03 Mark Kettenis <kettenis@gnu.org>
440 * configure.in: Remove --enable-netrom option.
441 * configure: Regenerated.
443 2003-01-03 Mark Kettenis <kettenis@gnu.org>
445 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
446 declaration for `struct re_pattern_buffer' instead.
447 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
449 2003-01-03 J. Brobecker <brobecker@gnat.com>
451 * mdebugread.c (parse_symbol): Count until the stEnd matching
454 2003-01-02 Mark Kettenis <kettenis@gnu.org>
456 * configure.in: Remove --with-cpu option.
457 subscripts. Remove evil changequotes here.
458 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
459 * config.in, configure: Regenerated.
461 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
462 * configure.in: Cleanup section that sources GDB and BFD configure
463 subscripts. Remove evil changequotes here.
464 * config.in, configure: Regenerated.
466 2003-01-02 Andrew Cagney <ac131313@redhat.com>
468 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
469 frame accessor methods.
470 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
471 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
472 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
473 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
474 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
475 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
478 2003-01-02 Mark Kettenis <kettenis@gnu.org>
480 * configure.in: Remove UI_OUT configuration code.
481 * ada-lang.c: Update assuming UI_OUT is always true.
482 * Makefile.in (UIOUT_CFLAGS): Remove.
483 * configure: Regenerated.
484 * TODO: Remove blurb about elimination of -DUI_OUT.
486 * configure.in: Move code that provides the --enable-gdbcli,
487 --enable-gdbmi options right before the code that handles the
488 --enable-tui option. Polish a bit.
489 * configure: Regenerated.
491 * configure.in: Rewrite check for GNU regex and the
492 --without-included regex option, and move it into the "Checks for
493 library functions" section. This makes us use the system regex
494 again by default on systems with version 2 of the GNU C library.
495 This was apparently broken.
496 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
497 * acconfig.h (USE_INCLUDED_REGEX): Remove.
498 * config.in, configure: Regenerated.
500 * configure.in: Move code that provides the --enable-tui option
501 before the "Checks for libraries" section. Polish the code
502 somewhat and set need_curses to yes if we build the TUI. Rewrite
503 code that looks for a library providing termcap functionality to
504 match more closely what's done in the Readline library, and move
505 it into to the "Checks for libraries" section.
506 * configure: Regenerated.
507 * Makefile.in (TERMCAP): Remove variable.
508 * config/i386/go32.mh (TERMCAP): Remove variable.
510 2003-01-02 Andrew Cagney <ac131313@redhat.com>
512 * MAINTAINERS: Mention gdb_mbuild.sh.
513 * gdb_mbuild.sh: Rewrite.
515 2003-01-02 Mark Kettenis <kettenis@gnu.org>
517 * configure.in: Fix typo in last change.
518 * config.in, configure: Regenerated.
520 2003-01-02 Andrew Cagney <ac131313@redhat.com>
522 * valarith.c (value_binop): Delete obsolete code and comments.
523 * configure.host: Ditto.
524 * buildsym.h (make_blockvector): Ditto.
525 * buildsym.c (make_blockvector): Ditto.
526 * defs.h (enum language): Ditto.
527 (chill_demangle): Ditto.
528 * elfread.c (elf_symtab_read): Ditto.
529 * dwarfread.c (CHILL_PRODUCER): Ditto.
530 (set_cu_language): Ditto.
531 (handle_producer): Ditto.
532 * expprint.c (print_subexp): Ditto.
533 * gdbtypes.c (chill_varying_type): Ditto.
534 * gdbtypes.h (builtin_type_chill_bool): Ditto.
535 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
536 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
537 (chill_varying_type): Ditto.
538 * language.h (_LANG_chill): Ditto.
539 * language.c (binop_result_type, integral_type): Ditto.
540 (character_type, string_type, structured_type): Ditto.
541 (lang_bool_type, binop_type_check): Ditto.
542 * stabsread.h (os9k_stabs): Ditto.
543 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
544 (define_symbol, read_type, read_struct_fields): Ditto.
545 (read_array_type, read_enum_type, read_huge_number): Ditto.
546 (read_range_type, start_stabs): Ditto.
547 * symfile.c (init_filename_language_table): Ditto.
548 (add_psymbol_with_dem_name_to_list): Ditto.
549 * symtab.c (symbol_init_language_specific): Ditto.
550 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
551 * symtab.h (struct general_symbol_info): Ditto.
552 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
553 * typeprint.c (typedef_print): Ditto.
554 * utils.c (fprintf_symbol_filtered): Ditto.
555 * valops.c (value_cast, search_struct_field, value_slice): Delete
557 (varying_to_slice): Delete function.
558 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
559 (varying_to_slice): Delete declaration.
560 * MAINTAINERS: Update.
562 2003-01-02 Mark Kettenis <kettenis@gnu.org>
564 * configure.in: Reorganize "Checks for library functions section"
565 a bit. Remove check for `btowc' and `isascii' functions.
566 * configure: Regenerated.
568 * acconfig.h (_MSE_INT_H): Remove.
569 * configure.in: Create "Checks for header files" section, and move
570 appropriate tests there. Don't check for objlist.h, wchar.h,
571 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
572 misdetection fix. Also add "Checks for types", "Checks for
573 compiler characteristics" and "Checks for library functions"
575 * config.in, configure: Regenerated.
577 * configure.in: Create "Checks for programs" section, and move
578 appropriate tests there.
580 2003-01-01 Mark Kettenis <kettenis@gnu.org>
582 * configure.in: Create "Checks for libraries" section, and move
583 appropriate tests there. Cleanup check for wctype in libw. Use
584 AC_SEARCH_LIBS to see whether we need libsocket.
585 * configure: Regenerated.
587 2002-12-31 Mark Kettenis <kettenis@gnu.org>
589 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
590 * config.in, configure: Regenerated.
592 2002-12-31 Mark Kettenis <kettenis@gnu.org>
594 * gdb_dirent.h: Cleanup and update code to match the example in
596 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
597 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
598 * configure: Regenerated.
600 2002-12-30 Adam Fedor <fedor@gnu.org>
602 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
603 (yylex): Initialize c to avoid uninitialized warning.
605 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
607 * doc/fdl.texi: Revert the last change.
609 2002-12-29 Mark Kettenis <kettenis@gnu.org>
611 * tracepoint.c (ISATTY): Removed.
613 2002-12-26 J. Brobecker <brobecker@gnat.com>
615 Continuing work to convert the hppa targets to multiarch partil.
617 * hppa-tdep.c: Add some missing forward declarations.
618 (frameless_function_invocation): Prefix the function name
619 by "hppa_" to avoid polluting the namespace. Update all calls
620 to use the new function name.
621 (saved_pc_after_call): Ditto.
622 (init_extra_frame_info): Ditto.
623 (frame_chain): Ditto.
624 (push_dummy_frame): Ditto.
625 (target_read_pc): Ditto.
626 (target_write_pc): Ditto.
627 (in_solib_call_trampoline): Ditto.
628 (in_solib_return_trampoline): Ditto.
629 (skip_trampoline_code): Ditto.
630 (hppa_read_fp): New function, renamed from target_read_fp.
631 (hppa_target_read_fp): New function, using hppa_read_fp.
632 This function conforms to the function profile for the
633 READ_FP gdbarch method.
634 (hppa_extract_struct_value_address): New function, extracted
635 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
637 (hppa_frame_num_args): New function.
638 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
640 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
641 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
642 for the switch to multiarch partial.
643 Update some of the macros definitions to match some changes
644 described above in the name of the function they are calling.
645 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
646 not be straightforward to convert. Do now wrap it inside
647 "#if !... #endif" to remember that this macro has still not
649 (FIX_CALL_DUMMY): Likewise.
651 2002-12-26 J. Brobecker <brobecker@gnat.com>
653 Continuing work to convert the hppa targets to multiarch partial.
655 * hppa-tdep.c (hppa_register_raw_size): New function replacing
656 the body of macro REGISTER_RAW_SIZE.
657 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
658 config/pa/tm-hppah.h. These functions will be used to initialize
659 the gdbarch structure.
660 (hppa_hpux_pc_in_sigtramp): New function.
661 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
662 (hppa_hpux_frame_base_before_sigtramp): New function.
663 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
664 Add gdbcore.h #include.
665 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
666 of this gdbarch-eligible macro to a call to the new associated
668 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
669 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
670 into a call to the new associated function.
671 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
672 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
673 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
675 2002-12-24 David Carlton <carlton@math.stanford.edu>
677 * config/sparc/tm-sparc.h: Delete duplicate definition of
678 DEPRECATED_PC_IN_CALL_DUMMY.
680 2002-12-24 Kevin Buettner <kevinb@redhat.com>
682 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
684 * configure.tgt: Recognize mips64*-*-linux*.
685 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
686 (supply_32_bit_reg): New function.
687 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
688 (fill_gregset): Use regcache_collect() instead of
689 deprecated_registers[].
690 (register_addr): Change name to mips_linux_register_addr().
691 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
692 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
693 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
694 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
695 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
696 (MIPS64_LINUX_JB_PC): New defines.
697 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
698 (mips64_elf_fpregset_t): New typedefs.
699 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
700 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
701 (mips64_linux_register_addr, set_mips_linux_register_addr)
702 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
703 (init_register_addr_data)
705 (fetch_core_registers): Add support for core file formats with 64-bit
707 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
708 (register_addr_data): New static global variable.
709 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
710 gdbarch_register_osabi() for each MIPS machine.
711 * config/mips/linux64.mt: New file.
712 * config/mips/tm-linux64.h: New file.
714 2002-12-23 Adam Fedor <fedor@gnu.org>
716 * maint.c (maintenance_demangle): Add switch to demangle
717 ObjC language symbols as well.
719 2002-12-23 Adam Fedor <fedor@gnu.org>
721 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
722 last argument from complaint function call.
724 2002-12-23 Kevin Buettner <kevinb@redhat.com>
726 * exec.c (print_section_info): Add FIXME comments regarding format
729 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
731 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
732 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
734 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
736 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
738 2002-12-23 David Carlton <carlton@math.stanford.edu>
740 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
741 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
742 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
743 information associated to a minsym, not lookup_symbol.
745 2002-12-21 Mark Kettenis <kettenis@gnu.org>
747 * x86-64-tdep.h (x86_64_init_abi): New prototype.
748 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
749 (x86_64_init_abi): Make non-static. Set number of pseudo
751 (x86_64_gdbarch_init): Remove function.
752 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
753 Remove code dealing with dissambly.
754 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
755 (_initialize_x86_64_linux_tdep): New function.
756 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
759 2002-12-14 Mark Kettenis <kettenis@gnu.org>
761 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
762 (struct gdb_osabi_handler): Remove member `arch'. Add member
764 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
765 construct a `struct bfd_arch_info' and store it in the `struct
766 gdb_osabi_handler' that is created.
767 (gdbarch_init_osabi): Check for compatibility based on machine
768 type and architecture.
769 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
771 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
772 second argument in call to gdbarch_register_osabi.
773 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
774 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
775 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
776 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
777 * arm-tdep.c (_initialize_arm_tdep): Likewise.
778 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
779 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
780 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
781 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
782 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
783 * i386-tdep.c (_initialize_i386_tdep): Likewise.
784 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
785 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
786 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
787 _initialize_i386bsd_tdep and updated likewise.
788 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
789 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
790 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
791 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
792 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
793 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
794 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
795 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
796 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
797 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
799 2002-12-20 Kevin Buettner <kevinb@redhat.com>
801 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
802 DT_MIPS_RLD_MAP case for 64-bit targets.
804 2002-12-20 Kevin Buettner <kevinb@redhat.com>
806 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
807 ``temp_saved_regs'', not the pointer or other storage contiguous
810 2002-12-20 Kevin Buettner <kevinb@redhat.com>
812 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
813 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
814 (mips_linux_get_longjmp_target): Delete declarations.
815 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
816 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
817 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
818 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
819 (mips_linux_get_longjmp_target)
820 (mips_linux_svr4_fetch_link_map_offsets): Make static.
821 (mips_linux_init_abi): New function.
822 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
824 2002-12-19 Keith Seitz <keiths@redhat.com>
826 patch committed by Elena Zannoni <ezannoni@redhat.com>
827 * thread.c (do_captured_list_thread_ids): Call prune_threads and
828 target_find_new_threads. Fix for PR mi/669.
830 2002-12-19 David Carlton <carlton@math.stanford.edu>
832 * linespec.c (decode_line_1): Move code into decode_all_digits.
833 (decode_all_digits): New function.
835 2002-12-19 Kevin Buettner <kevinb@redhat.com>
837 * exec.c (print_section_info): Select a format string to use with
838 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
840 2002-12-18 Andrew Cagney <ac131313@redhat.com>
842 * frame.c (deprecated_update_current_frame_pc_hack): Replace
843 deprecated_update_current_frame_pc_hack.
844 (deprecated_update_frame_base_hack): New function.
845 * frame.h (deprecated_update_frame_pc_hack): Replace
846 (deprecated_update_frame_base_hack): Declare.
847 * infrun.c (normal_stop): Update.
849 2002-12-18 Andrew Cagney <ac131313@redhat.com>
851 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
852 frame_extra_info_zalloc.
853 (rs6000_frame_args_address): Use get_frame_extra_info.
854 (frame_get_saved_regs): Use get_frame_saved_regs.
855 (frame_initial_stack_address): Use get_frame_saved_regs and
856 get_frame_extra_info.
857 (frame_initial_stack_address): Use get_frame_extra_info.
859 2002-12-17 Kevin Buettner <kevinb@redhat.com>
861 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
863 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
864 checks for r3900_regnames[].
866 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
868 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
870 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
872 2002-12-17 David Carlton <carlton@math.stanford.edu>
874 * symtab.c (lookup_partial_symbol): Don't search past the end of
877 2002-12-17 Andrew Cagney <ac131313@redhat.com>
879 * stack.c (frame_info): Use get_frame_saved_regs.
880 * breakpoint.c (until_break_command): Use get_frame_pc.
882 2002-12-16 Kevin Buettner <kevinb@redhat.com>
884 * buildsym.c (block_end_complaint, anon_block_end_complaint)
885 (innerblock_complaint, innerblock_anon_complaint)
886 (blockvector_complaint): Delete deprecated complaint structs.
887 (finish_block, make_blockvector, end_symtab): Replace calls
888 to complain() with calls to complaint().
889 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
890 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
891 (unexpected_type_complaint, bad_sclass_complaint)
892 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
893 Delete deprecated complaint structs.
894 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
895 Replace calls to complain() with calls to complaint().
896 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
897 (unknown_symtype_complaint, unknown_symchar_complaint)
898 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
899 (lbrac_mismatch_complaint, repeated_header_complaint)
900 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
901 Delete deprecated complaint structs.
902 (unknown_symtype_complaint, lbrac_mismatch_complaint)
903 (repeated_header_complaint)
904 (function_outside_compiliation_unit_complaint): New functions.
905 (add_old_header_file, find_corresponding_bincl_psymtab)
906 (set_namestring, find_stab_function_addr, read_dbx_symtab)
907 (process_one_symbol): Replace calls to complain() with, possibly
908 indirect, calls to complaint().
909 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
910 (unknown_attribute_form, unknown_attribute_length)
911 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
912 (const_ignored, botched_modified_type, op_deref2, op_deref4)
913 (basereg_not_handled, dup_user_type_allocation)
914 (dup_user_type_definition, missing_tag, bad_array_element_type)
915 (subscript_data_items, unhandled_array_subscript_format)
916 (unknown_array_subscript_format, not_row_major)
917 (missing_at_name): Delete deprecated complaint structs.
918 (bad_die_ref_complaint, unknown_attribute_form_complaint)
919 (dup_user_type_definition_complaint)
920 (bad_array_element_type_complaint): New functions.
921 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
922 (decode_subscript_data_item, dwarf_read_array_type)
923 (read_tag_string_type, read_subroutine_type, read_func_scope)
924 (locval, scan_partial_symbols, decode_modified_type)
925 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
926 (attribute_size): Replace calls to complain() with, possibly
927 indirect, calls to complaint().
928 * elfread.c (section_info_complaint, section_info_dup_complaint)
929 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
930 Delete deprecated complaint structs.
931 (elf_symtab_read, elfstab_offset_sections): Replace calls to
932 complain() with calls to complaint().
933 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
935 (stub_noname_complaint): New function.
936 (check_typedef, add_mangled_type): Replace calls to complain()
937 with calls to complaint().
938 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
939 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
940 (hpread_unhandled_type_complaint, hpread_struct_complaint)
941 (hpread_array_complaint, hpread_type_lookup_complaint)
942 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
943 (hpread_unhandled_common_complaint)
944 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
945 struct definitions and declarations.
946 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
947 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
948 Replace calls to complain() with, possibly indirect, calls to
950 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
952 * mdebugread.c (bad_file_number_complaint, index_complaint)
953 (aux_index_complaint, block_index_complaint)
954 (unknown_ext_complaint, unknown_sym_complaint)
955 (unknown_st_complaint, block_overflow_complaint)
956 (basic_type_complaint, unknown_type_qual_complaint)
957 (array_index_type_complaint, bad_tag_guess_complaint)
958 (block_member_complaint, stEnd_complaint)
959 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
960 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
961 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
962 (bad_continued_complaint, bad_rfd_entry_complaint)
963 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
964 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
965 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
966 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
968 (index_complaint, unknown_ext_complaint, basic_type_complaint)
969 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
970 (unexpected_type_code_complaint)
971 (function_outside_compilation_unit_complaint): New functions.
972 (parse_symbol, parse_type, upgrade_type, parse_procedure)
973 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
974 Replace calls to complain() with, possibly indirect calls to
976 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
977 Delete deprecated complaint structs.
978 (lookup__objc_class, lookup_child_selector): Replace complain()
980 * remote-vx.c (cant_contact_target): Delete deprecated complaint
982 (vx_lookup_symbol): Replace complain() with complaint().
983 * stabsread.c (invalid_cpp_abbrev_complaint)
984 (invalid_cpp_type_complaint, member_fn_complaint)
985 (const_vol_complaint, error_type_complaint)
986 (invalid_member_complaint, range_type_base_complaint)
987 (reg_value_complaint, vtbl_notfound_complaint)
988 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
989 (unresolved_sym_chain_complaint, stabs_general_complaint)
990 (lrs_general_complaint, multiply_defined_struct): Delete
991 deprecated complaint structs.
992 (invalid_cpp_abbrev_complaint, ref_value_complaint)
993 (stabs_general_complaint, lrs_general_complaint)
994 (msg_unknown_complaint): New functions.
995 (dbx_lookup_type, read_cfront_baseclasses)
996 (read_cfront_member_functions, resolve_symbol_reference)
997 (define_symbol, resolve_live_range, add_live_range, read_type)
998 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
999 (read_one_struct_field, read_baseclasses, read_tilde_fields)
1000 (read_cfront_static_fields, attach_fields_to_type)
1001 (complain_about_struct_wipeout, read_range_type)
1002 (common_block_start, common_block_end, cleanup_undefined_types)
1003 (scan_file_globals): Replace complain() with complaint().
1004 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1005 Delete deprecated complaint struct declarations.
1006 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1007 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1008 (bf_not_found_complaint, ef_complaint, eb_complaint)
1009 (function_outside_compilation_unit_complaint): New functions.
1010 (record_include_begin, record_include_end, enter_line_range)
1011 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1012 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1013 complain() with complaint().
1015 2002-12-16 Andrew Cagney <ac131313@redhat.com>
1017 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1018 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1019 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1020 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1021 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1022 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1023 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1024 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1025 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1026 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1027 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1028 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1029 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1030 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1031 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1032 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1033 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1034 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1035 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1036 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1037 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1038 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1039 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1040 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1041 * config/m88k/xm-dgux.h: Delete.
1042 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1043 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1044 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1045 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1046 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1047 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1048 * ch-valprint.c: Delete.
1050 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1052 * infrun.c (handle_inferior_event): Rearrange code to resume if
1053 no catchpoint triggers for an event.
1055 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1057 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1058 and TARGET_WAITKIND_VFORKED cases.
1060 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1062 * infrun.c (handle_inferior_event): Assume that catchpoints
1063 are not affected by DECR_PC_AFTER_BREAK.
1065 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1067 * target.c (update_current_target): Don't inherit DONT_USE.
1068 * target.h (struct target_ops): Remove DONT_USE.
1069 (target_next): Remove macro.
1071 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1073 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1075 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1077 * arm-tdep.c (convert_from_extended): New argument to hold the
1078 type of floating point result we want to convert to. Make input
1079 argument const. Fix all callers.
1080 (convert_to_extended): Similarly.
1081 (arm_extract_return_value): Now takes a regcache argument. Change
1082 code to use regcache accessor functions. Correctly extract
1083 smaller-than-word results on big-endian machines.
1084 (arm_store_return_value): Now takes a regcache argument. Change
1085 code to use regcache accessor functions. Correctly zero/sign extend
1086 smaller than word results before storing into r0.
1087 (arm_gdbarch_init): Register new-style extract_return_value and
1088 store_return_value functions.
1090 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1092 * thread-db.c (thread_from_lwp): Uniquify error msg.
1093 (lwp_from_thread): Ditto.
1094 (check_event): Ditto.
1095 (find_new_threads_callback): Ditto.
1096 (thread_db_pid_to_str): Ditto.
1098 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1100 * frame.h (get_frame_saved_regs): Declare.
1101 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1103 * frame.c (get_frame_saved_regs): New function.
1104 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1106 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1108 * frame.c (deprecated_update_current_frame_pc_hack): New
1110 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1111 * infrun.c (normal_stop): Use said function instead of directly
1112 modifying the frame's PC.
1114 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1116 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1118 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1120 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1121 config/mips/tm-irix6.h (NUM_REGS): Delete.
1122 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1123 (temp_saved_regs): Declare as a pointer rather than an array.
1124 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1125 that ``temp_saved_regs'' has storage allocated to it and that
1126 it's the correct size.
1128 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1130 * defs.h (init_last_source_visited): New prototype.
1132 * source.c (add_path): New function that adds to a specified path.
1133 (mod_path): Change to call add_path.
1134 (init_last_source_visited): New function to allow interfaces to
1135 initialize static variable: last_source_visited. Part of fix
1137 * Makefile.in: Add support for mi/mi-cmd-env.c.
1139 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1141 * frame.h (frame_id_unwind): Declare.
1142 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1144 (frame_id_unwind_ftype): Declare.
1145 * frame.c (frame_id_unwind): New function.
1146 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1147 (create_new_frame, get_prev_frame): Pass id_unwind to
1149 (frame_saved_regs_id_unwind): New function.
1150 (frame_saved_regs_id_unwind): New function.
1151 * dummy-frame.c (dummy_frame_id_unwind): New function.
1152 (struct dummy_frame): Add field id.
1153 (generic_push_dummy_frame): Initialize `id'.
1154 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1156 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1158 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1159 pass that to set_momentary_breakpoint. Move comments to where they
1161 * frame.h (set_current_frame): Delete declaration.
1162 * frame.c (set_current_frame): Delete function.
1164 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1166 * frame.c (frame_extra_info_zalloc): New function.
1167 * frame.h (frame_extra_info_zalloc): Declare.
1169 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1171 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1172 in the previous prototype change to set_momentary_breakpoint.
1174 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1176 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1178 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1179 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1180 (stop_stepping): Remove outdated check for child vfork events.
1182 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1184 * GDB 5.3 released from gdb_5_3-branch.
1186 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1188 * corelow.c (init_core_ops): Delete references to to_require_attach
1189 and to_require_detach.
1190 * exec.c (init_exec_ops): Likewise.
1191 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1192 hppa_require_detach directly.
1193 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1194 * inftarg.c (child_detach): Remove.
1195 (child_detach_from_process): Rename to child_detach, remove
1196 after_fork argument.
1197 (child_attach): Remove.
1198 (child_attach_to_process): Rename to child_attach, remove after_fork
1200 (init_child_ops): Delete references to to_require_attach
1201 and to_require_detach.
1202 * infttrace.c (hppa_require_attach): Update comment.
1203 * target.c (cleanup_target, update_current_target)
1204 (init_dummy_target, setup_target_debug): Delete references to
1205 to_require_attach and to_require_detach.
1206 (find_default_require_detach, find_default_require_attach)
1207 (debug_to_require_attach, debug_to_require_detach): Remove
1209 * target.h (struct target_ops): Remove to_require_attach
1210 and to_require_detach.
1211 (target_require_attach, target_require_detach): Delete macros.
1212 (find_default_require_detach, find_default_require_attach): Delete
1214 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1216 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1218 * frame.c (get_frame_extra_info): New function.
1219 * frame.h (get_frame_extra_info): Declare.
1221 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1223 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1224 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1225 with `struct frame_id'.
1226 (set_longjmp_resume_breakpoint): Ditto.
1227 * infrun.c (handle_inferior_event): Update.
1228 * breakpoint.c (watch_command_1, until_break_command): Update.
1229 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1230 (handle_inferior_event, step_over_function): Update.
1231 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1232 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1233 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1234 * infcmd.c (finish_command, run_stack_dummy): Update.
1236 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1238 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1239 (dwarf2_non_const_array_bound_ignored)
1240 (dwarf2_missing_line_number_section)
1241 (dwarf2_statement_list_fits_in_line_number_section)
1242 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1243 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1244 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1245 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1246 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1247 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1248 (dwarf2_missing_member_fn_type_complaint)
1249 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1250 (dwarf2_const_value_length_mismatch)
1251 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1252 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1253 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1254 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1255 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1256 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1257 complaints using deprecated struct..
1258 (dwarf2_non_const_array_bound_ignored_complaint)
1259 (dwarf2_complex_location_expr_complaint)
1260 (dwarf2_unsupported_at_frame_base_complaint)
1261 (dwarf2_const_value_length_mismatch_complaint)
1262 (dwarf2_macros_too_long_complaint)
1263 (dwarf2_macro_malformed_definition_complaint)
1264 (dwarf2_invalid_attrib_class_complaint): New functions.
1265 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1266 (read_structure_scope, read_array_type, read_common_block)
1267 (read_tag_pointer_type, read_base_type, read_partial_die)
1268 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1269 (new_symbol, dwarf2_const_value, read_type_die)
1270 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1271 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1272 complain() with, possibly indirect, calls to complaint().
1274 2002-12-11 Andrew Cagney <cagney@redhat.com>
1276 * frame.c (deprecated_get_frame_saved_regs): Rename
1277 get_frame_saved_regs.
1278 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1279 * sparc-tdep.c: Update.
1280 * hppa-tdep.c: Update.
1281 * h8500-tdep.c: Update.
1283 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1285 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1286 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1287 ``char *'' for return and parameter types.
1288 * gdbarch.h, gdbarch.c: Regenerate.
1289 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1290 return type from ``char *'' to ``const char *''.
1291 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1294 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1296 * i386-tdep.c: Include "dummy-frame.h".
1297 (i386_frame_chain, i386_frame_saved_pc): Replace
1298 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1299 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1301 2002-12-10 Andrew Cagney <cagney@redhat.com>
1303 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1304 Change to a function with predicate.
1305 * gdbarch.h, gdbarch.c: Re-generate.
1306 * frame.c (get_prev_frame): Update. Test
1307 DEPRECATED_INIT_FRAME_PC_P.
1308 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1309 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1310 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1311 * alpha-tdep.c (alpha_gdbarch_init): Update.
1312 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1313 * mips-tdep.c (mips_gdbarch_init): Update.
1314 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1315 * arm-tdep.c: Update comments.
1316 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1317 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1318 * frv-tdep.c (frv_gdbarch_init): Ditto.
1319 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1320 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1321 * s390-tdep.c (s390_gdbarch_init): Ditto.
1322 * v850-tdep.c (v850_gdbarch_init): Ditto.
1323 * vax-tdep.c (vax_gdbarch_init): Ditto.
1324 * sh-tdep.c (sh_gdbarch_init): Ditto.
1325 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1327 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1329 * i386-tdep.c (i386_gdbarch_init): Ditto.
1330 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1331 * cris-tdep.c (cris_gdbarch_init): Ditto.
1332 * avr-tdep.c (avr_gdbarch_init): Ditto.
1333 * arm-tdep.c (arm_gdbarch_init): Ditto.
1334 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1335 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1337 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1339 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1341 * hppah-nat.c (saved_vfork_pid): Add.
1342 (child_post_follow_vfork): Remove.
1343 (child_follow_fork): New function.
1344 (child_wait): Call detach_breakpoints after receiving the child vfork.
1345 Call child_resume directly instead of going through resume ().
1346 Make sure we have the exec before reporting the vfork.
1347 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1348 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1349 (follow_fork): New function. Call target_follow_fork.
1350 (follow_inferior_reset_breakpoints): New function broken out from
1351 old follow_inferior_fork.
1352 (resume): Remove hack to follow exec after vfork.
1353 * inftarg.c (child_post_follow_vfork): Remove.
1354 (child_follow_fork): New function.
1355 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1356 * target.c (cleanup_target): Replace to_post_follow_vfork with
1358 (update_current_target): Likewise.
1359 (setup_target_debug): Likewise.
1360 (debug_to_post_follow_vfork): Remove.
1361 (debug_to_follow_fork): New function.
1362 * target.h (struct target_ops): Replace to_post_folow_vfork with
1364 (child_post_follow_vfork): Remove prototype.
1365 (child_follow_fork): Add prototype.
1366 (target_post_follow_vfork): Remove macro.
1367 (target_follow_fork): Add macro.
1369 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1371 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1372 (child_post_follow_vfork): Cancel pending exec event if we follow
1374 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1375 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1376 event at the following wait call if necessary.
1377 * infrun.c (follow_vfork): Don't follow_exec here.
1378 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1379 case about HP/UX 10.20. Remove code pushed down to
1380 hppah-nat.c:child_wait.
1381 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1382 vfork_in_flight is set.
1384 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1386 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1387 for the parent's fork event.
1388 * infrun.c (handle_inferior_event): Only expect one fork event.
1389 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1390 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1392 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1394 * PROBLEMS: Delete reference to PR gdb/725.
1396 * MAINTAINERS (gdb.c++): Add David Carlton.
1398 2002-12-09 David Carlton <carlton@math.stanford.edu>
1400 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1401 * cli/cli-cmds.c: Ditto.
1403 2002-12-09 Andrew Cagney <cagney@redhat.com>
1405 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1406 function address in <>.
1407 * gdbarch.c: Re-generate.
1409 2002-12-09 David Carlton <carlton@math.stanford.edu>
1411 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1413 2002-12-09 David Carlton <carlton@math.stanford.edu>
1415 * linespec.c (symtab_from_filename): New function.
1416 (decode_line_1): Move code into symtab_from_filename.
1418 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1420 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1422 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1424 * f-valprint.c (info_common_command): Use get_frame_pc.
1425 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1426 * ax-gdb.c (agent_command): Ditto.
1427 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1428 (rs6000_pop_frame): Ditto.
1429 (rs6000_frameless_function_invocation): Ditto.
1430 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1431 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1432 * macroscope.c (default_macro_scope): Ditto.
1433 * stack.c (print_frame_info_base): Ditto.
1434 (print_frame, frame_info, print_frame_label_vars): Ditto.
1435 (return_command, func_command, get_frame_language): Ditto.
1436 * infcmd.c (finish_command): Ditto.
1437 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1438 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1439 (break_at_finish_at_depth_command_1): Ditto.
1440 (break_at_finish_command_1): Ditto.
1441 (until_break_command, get_catch_sals): Ditto.
1442 * blockframe.c (func_frame_chain_valid): Ditto.
1443 (frameless_look_for_prologue): Ditto.
1444 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1446 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1448 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1449 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1451 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1453 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1455 * gdbarch.h, gdbarch.c: Re-generate.
1456 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1457 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1459 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1460 declaration to a function returning a CORE_ADDR.
1461 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1462 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1463 (init_frame_pc_default): Ditto.
1464 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1465 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1466 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1467 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1468 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1469 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1471 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1472 to init_frame_pc_noop.
1473 (i386_interix_init_frame_pc): Delete function.
1474 * z8k-tdep.c (init_frame_pc): Delete function.
1475 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1476 (INIT_FRAME_PC_FIRST): Ditto.
1477 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1478 (INIT_FRAME_PC_FIRST): Ditto.
1479 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1480 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1482 (INIT_FRAME_PC_FIRST): Convert to an expression.
1483 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1485 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1487 * blockframe.c: Use get_frame_base instead of directly accessing
1488 the `struct frame_info' member frame.
1489 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1490 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1492 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1494 * Makefile.in (readline_h): Define.
1495 (completer.o): Depend on readline_h.
1497 (event-top.o): Ditto.
1504 (tracepoint.o): Ditto.
1506 (cli-dump.o): Ditto.
1507 (tui-hooks.o): Ditto.
1510 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1512 More cleanup from import of readline 4.3.
1513 * completer.h (complete_line, readline_line_completion_function):
1515 (line_completion_function): Removed, not used outside of completer.c.
1516 * completer.c (readline_line_completion_function,
1517 complete_function, line_completion_function): Use const for first
1519 (line_completion_function): Make static.
1520 (filename_completer): filename_completion_function is now called
1521 rl_filename_completion_function
1522 * corelow.c: Include <readline/readline.h>.
1528 * top.c (init_main): No need to coerce
1529 readline_line_completion_function anymore.
1530 * cli/cli-dump.c: Include <readline/readline.h>.
1532 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1534 * stack.c (frame_info): Use get_prev_frame.
1535 * blockframe.c (frame_address_in_block): Ditto.
1536 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1537 (rs6000_frameless_function_invocation): Ditto.
1538 (rs6000_frame_saved_pc): Ditto.
1539 (rs6000_frame_chain): Ditto.
1540 * arch-utils.c (init_frame_pc_default): Ditto.
1542 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1544 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1545 Delete redundant definition.
1547 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1549 Import of readline 4.3:
1550 * cli/cli-cmds.c: Include readline/tilde.h.
1551 * cli/cli-setshow.c: Ditto.
1552 * defs.h: Don't declare tilde_expand anymore, since readline
1555 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1557 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1558 -Werror on this file.
1560 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1562 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1564 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1565 * gdbarch.c: Regenerate.
1567 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1569 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1570 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1571 provide a default value.
1572 * gdbarch.h, gdbarch.c: Regenerate.
1573 * frame.c (get_prev_frame): Update. Check
1574 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1575 * s390-tdep.c (s390_gdbarch_init): Update.
1576 * mips-tdep.c (mips_gdbarch_init): Update.
1577 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1578 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1579 * alpha-tdep.c (alpha_gdbarch_init): Update.
1581 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1583 * ia64-linux-nat.c: Include gdb_string.h.
1584 * alpha-nat.c: Ditto.
1585 * ppc-linux-nat.c: Ditto.
1586 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1587 Update dependencies.
1589 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1591 * gdbthread.h: Include "frame.h".
1592 (struct thread_info): Replace step_frame_address with
1594 * inferior.h: Include "frame.h".
1595 (step_frame_id): Replace external variable step_frame_address.
1596 * gdbthread.h (save_infrun_state): Replace step_frame_address
1597 parameter with step_frame_id parameter.
1598 (load_infrun_state): Ditto.
1599 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1600 * infcmd.c (step_frame_id, step_1, step_once): Update.
1601 * thread.c (load_infrun_state, save_infrun_state): Update.
1602 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1603 (handle_inferior_event, step_over_function): Update.
1604 (normal_stop, context_switch, restore_inferior_status): Update.
1605 (struct inferior_status): Replace step_frame_address with
1608 2002-12-05 David Carlton <carlton@math.stanford.edu>
1610 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1611 DW_TAG_member as well as a declaration as being a C++ static data
1613 (read_structure_scope): Combine tests for DW_TAG_member and
1616 2002-12-05 David Carlton <carlton@math.stanford.edu>
1618 * linespec.c (decode_compound): New function.
1619 (decode_line_1): Move code into decode_compound.
1621 2002-12-05 David Carlton <carlton@math.stanford.edu>
1623 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1625 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1626 the static block. See PR gdb/804.
1628 2002-12-05 David Carlton <carlton@math.stanford.edu>
1630 * symtab.c (lookup_symbol_aux_block): New function.
1631 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1633 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1635 * gdbarch.sh: Dump the predicate function and macro values.
1636 (read): Print error on standard error.
1637 * gdbarch.c: Regenerate.
1639 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1641 * Makefile.in (mips_tdep_h): Define.
1642 (mips-tdep.o): Add mips_tdep_h to dependency list.
1643 * mips-tdep.h: New file.
1644 * mips-tdep.c (mips-tdep.h): Include.
1645 (enum mips_abi): Move to mips-tdep.h.
1646 (mips_abi): New function.
1648 2002-12-04 David Carlton <carlton@math.stanford.edu>
1650 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1652 2002-12-04 David Carlton <carlton@math.stanford.edu>
1654 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1656 (lookup_symbol_aux_minsyms): New function.
1658 2002-12-04 J. Brobecker <brobecker@gnat.com>
1660 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1662 2002-12-04 J. Brobecker <brobecker@gnat.com>
1664 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1665 which is an obsolete macro name.
1667 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1669 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1670 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1672 2002-12-03 H.J. Lu (hjl@gnu.org)
1674 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1675 (create_breakpoints): Make sure the addr_string field is not
1678 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1680 * sparc-nat.c (fetch_inferior_registers)
1681 (store_inferior_registers): Add comment on problem of LWP vs
1684 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1685 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1686 (lin_lwp_store_registers): Remove.
1687 (init_lin_lwp_ops): Use fetch_inferior_registers
1688 and store_inferior_registers directly.
1689 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1690 (store_inferior_registers): Likewise.
1693 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1695 * frame.h (get_frame_id): Convert to a function.
1696 (null_frame_id, frame_id_p): Declare.
1697 (frame_id_eq, frame_id_inner): Declare.
1698 (frame_id_build): New function.
1699 * frame.c (get_frame_id): Update. Use null_frame_id.
1700 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1702 (null_frame_id, frame_id_p): Define.
1703 (frame_id_eq, frame_id_inner): Define.
1704 (frame_id_build): New function.
1705 * varobj.c (varobj_create): Update.
1706 (varobj_update): Update.
1707 * valops.c (value_assign): Update.
1708 (new_root_variable): Update.
1709 * infrun.c (save_inferior_status): Update.
1710 * breakpoint.c (watch_command_1): Update.
1712 2002-12-03 J. Brobecker <brobecker@gnat.com>
1714 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1717 2002-12-03 Andrew Cagney <cagney@redhat.com>
1719 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1722 * PROBLEMS: Mention PR gdb/725.
1724 2002-12-03 Andreas Schwab <schwab@suse.de>
1726 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1728 2002-12-02 Adam Fedor <fedor@gnu.org>
1729 Klee Dienes <kdienes@apple.com>
1731 * objc-lang.c (objc_printstr): Add width arg to match
1733 (compare_selectors): Add 'const' to arg types.
1734 (compare_classes): Likewise.
1735 (find_imps): Cast msym pointer to avoid compiler warning.
1736 (print_object_command): Validate the address before
1737 passing it to the print routine.
1738 (find_objc_msgcall_submethod): Change function argument to
1740 * objc-lang.h: Add 'extern' to all function declarations.
1741 (value_nsstring): Add declaration.
1743 2002-12-02 J. Brobecker <brobecker@gnat.com>
1745 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1746 Fixes a build failure on HP/UX.
1748 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1750 (hpread_has_name): Advance declaration to avoid a compilation warning.
1751 (pst_syms_count): Add missing variable type. By change, the compiler
1752 was defaulting to int, which seems a good choice. Fixes a compilation
1754 (pst_syms_size): Likewise.
1756 2002-12-02 J. Brobecker <brobecker@gnat.com>
1758 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1759 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1760 later to set the proper gdbarch methods depending on the osabi.
1761 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1763 2002-12-02 J. Brobecker <brobecker@gnat.com>
1765 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1766 * osabi.c (gdb_osabi_name): Add strings images for the two new
1768 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1770 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1772 * MAINTAINERS (Java): Global maintainers are responible for Java.
1773 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1774 part Java maintainers.
1776 2002-12-02 J. Brobecker <brobecker@gnat.com>
1778 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1779 Fixes a compilation failure on AiX.
1781 2002-12-02 J. Brobecker <brobecker@gnat.com>
1783 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1784 why aix-thread.o is not listed.
1786 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1788 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1789 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1790 * gdbarch.h, gdbarch.c: Re-generate.
1791 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1792 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1793 * config/pa/tm-hppa.h, frame.h: Update.
1794 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1795 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1796 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1797 * cris-tdep.c, alpha-tdep.c: Update.
1798 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1799 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1800 (get_prev_frame): Ditto.
1802 2002-11-30 Andrew Cagney <cagney@redhat.com>
1804 * exec.c (xfer_memory): Replace boolean with int.
1805 * p-exp.y: Use 0 instead of false.
1806 * corelow.c (gdb_check_format): Change return type to int from
1808 * utils.c: Don't include <curses.h> or <term.h> first.
1810 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1812 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1813 (m68hc11_register_byte): Remove.
1814 (m68hc11_gdbarch_init): Don't set the above.
1816 2002-11-29 Andrew Cagney <cagney@redhat.com>
1818 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1819 by calling get_selected_frame.
1820 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1821 set_current_frame, create_new_frame, select_frame and
1823 * remote-e7000.c (e7000_start_remote): Ditto.
1824 * remote-mips.c (common_open): Ditto
1825 * remote-rdp.c (remote_rdp_open): Ditto.
1827 2002-11-29 Andreas Schwab <schwab@suse.de>
1829 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1830 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1831 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1832 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1833 read_memory_unsigned_integer instead of read_memory_integer when
1834 dealing with addresses and instruction opcodes.
1835 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1836 (m68k_linux_frame_saved_pc): Likewise.
1838 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1840 * stack.c (selected_frame, select_frame): Move from here ...
1841 * frame.c (selected_frame, select_frame): ... to here. Include
1843 * Makefile.in (frame.o): Update dependencies.
1844 * frame.c (get_selected_frame): New function.
1845 * frame.h (get_selected_frame): Declare.
1846 (deprecated_selected_frame): Rename selected_frame.
1847 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1848 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1849 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1850 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1851 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1852 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1853 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1854 * z8k-tdep.c, cli/cli-cmds.c: Update.
1856 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1858 * frame.h (get_selected_block): Add comments.
1860 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1862 * frame.c (pc_notcurrent): New function.
1863 (find_frame_sal): New function.
1864 * frame.h (find_frame_sal): Declare.
1865 (struct symtab_and_line): Add opaque declaration.
1866 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1868 (frame_info): Ditto.
1869 * ada-lang.c (find_printable_frame): Ditto.
1871 2002-11-28 J. Brobecker <brobecker@gnat.com>
1873 * configure.in: Check that the pthdebug library is recent enough
1874 before enabling thread support on native AiX.
1875 * configure: Regenerate.
1877 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1878 from the list of object files as it is now appended by configure
1879 if thread support is enabled.
1880 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1881 if thread support is enabled.
1883 2002-11-28 Andrew Cagney <cagney@redhat.com>
1885 * stack.c (get_selected_block): In-line get_current_block.
1886 * frame.h (get_current_block): Delete declaration.
1887 * blockframe.c (get_current_block): Delete function.
1889 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1891 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1892 USE_GENERIC_DUMMY_FRAMES.
1893 * gdbarch.h, gdbarch.c: Regenerate.
1894 * valops.c, frame.c: Update.
1895 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1896 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1897 * config/pa/tm-hppa.h, blockframe.c: Update.
1898 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1899 * m68k-tdep.c, alpha-tdep.c: Ditto.
1901 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1902 * mips-tdep.c: Ditto.
1904 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1906 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1907 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1908 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1909 * gdbarch.c, gdbarch.h: Re-generate.
1910 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1911 (CALL_DUMMY_LOCATION): Delete macro definition.
1912 (PC_IN_CALL_DUMMY): Delete macro definitions.
1914 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1915 default is already generic_pc_in_call_dummy.
1916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1917 * v850-tdep.c (v850_gdbarch_init): Ditto.
1918 * sh-tdep.c (sh_gdbarch_init): Ditto.
1919 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1920 * mips-tdep.c (mips_gdbarch_init): Ditto.
1921 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1922 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1923 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1924 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1925 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1926 * avr-tdep.c (avr_gdbarch_init): Ditto.
1928 * arm-tdep.c (arm_gdbarch_init): Do not set
1929 use_generic_dummy_frames, default is already 1.
1930 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1931 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1932 * v850-tdep.c (v850_gdbarch_init): Ditto.
1933 * sh-tdep.c (sh_gdbarch_init): Ditto.
1934 * s390-tdep.c (s390_gdbarch_init): Ditto.
1935 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1936 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1937 * mips-tdep.c (mips_gdbarch_init): Ditto.
1938 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1940 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1941 * i386-tdep.c (i386_gdbarch_init): Ditto.
1942 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1943 * frv-tdep.c (frv_gdbarch_init): Ditto.
1944 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1945 * cris-tdep.c (cris_gdbarch_init): Ditto.
1946 * avr-tdep.c (avr_gdbarch_init): Ditto.
1948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1949 call_dummy_location, default is already AT_ENTRY_POINT.
1950 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1951 * v850-tdep.c (v850_gdbarch_init): Ditto.
1952 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1953 * sh-tdep.c (sh_gdbarch_init): Ditto.
1954 * s390-tdep.c (s390_gdbarch_init): Ditto.
1955 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1956 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1957 * mips-tdep.c (mips_gdbarch_init): Ditto.
1958 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1959 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1960 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1961 * i386-tdep.c (i386_gdbarch_init): Ditto.
1962 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1963 * frv-tdep.c (frv_gdbarch_init): Ditto.
1964 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1965 * cris-tdep.c (cris_gdbarch_init): Ditto.
1966 * avr-tdep.c (avr_gdbarch_init): Ditto.
1967 * arm-tdep.c (arm_gdbarch_init): Ditto.
1968 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1970 2002-11-28 Andrew Cagney <cagney@redhat.com>
1972 * frame.h: Update comments on set_current_frame, create_new_frame,
1973 flush_cached_frames, reinit_frame_cache, select_frame and
1976 2002-11-27 Andrew Cagney <cagney@redhat.com>
1978 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1979 deprecated pc_in_call_dummy function.
1980 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1981 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1982 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1983 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1984 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1986 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1988 * Makefile.in: Remove Tix dependencies.
1989 * acinclude.m4: Ditto.
1990 * aclocal.m4: Ditto.
1991 * configure.in: Ditto.
1992 * configure: Regenerated.
1994 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1996 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1997 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1998 * gdbarch.c: Re-generate.
2000 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2002 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2003 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2004 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2005 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2006 pc_in_call_dummy_at_entry_point.
2007 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2008 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2009 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2010 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2011 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2012 pc_in_call_dummy_on_stack.
2013 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2014 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2015 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2016 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2017 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2019 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2021 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2022 pc_in_call_dummy_before_text_end
2023 (deprecated_pc_in_call_dummy_after_text_end): Rename
2024 pc_in_call_dummy_after_text_end.
2025 (deprecated_pc_in_call_dummy_on_stack): Rename
2026 pc_in_call_dummy_on_stack.
2027 (deprecated_pc_in_call_dummy_at_entry_point): Rename
2028 pc_in_call_dummy_at_entry_point.
2029 * m68k-tdep.c (m68k_gdbarch_init): Update.
2030 * s390-tdep.c (s390_gdbarch_init): Update.
2031 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2032 * vax-tdep.c (vax_gdbarch_init): Update.
2033 * sparc-tdep.c (sparc_gdbarch_init): Update.
2034 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2035 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2036 * i386-tdep.c (i386_gdbarch_init): Update.
2037 * frv-tdep.c (frv_gdbarch_init): Update.
2038 * cris-tdep.c (cris_gdbarch_init): Update.
2039 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2040 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2041 (deprecated_pc_in_call_dummy_after_text_end)
2042 (deprecated_pc_in_call_dummy_on_stack)
2043 (deprecated_pc_in_call_dummy_at_entry_point): Update.
2044 * alpha-tdep.c (alpha_gdbarch_init): Update.
2046 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
2048 * acconfig.h (HAVE_PREAD64): Add.
2049 * configure.in: Check for pread64.
2050 * config.in: Regenerated.
2051 * configure: Regenerated.
2052 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2053 * linux-proc.c (linux_proc_xfer_memory): New function.
2054 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2056 2002-11-25 David Carlton <carlton@math.stanford.edu>
2058 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2061 2002-11-25 Andrew Cagney <ac131313@redhat.com>
2063 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2064 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2066 2002-11-25 Jim Blandy <jimb@redhat.com>
2068 * symfile.c (init_objfile_sect_indices): New function.
2069 (default_symfile_offsets): Move the section-index-initializing
2070 stuff into init_objfile_sect_indices, and call that.
2072 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2073 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2075 * symfile.c (syms_from_objfile): Adjust indentation.
2077 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2078 || info_verbose isn't true.
2080 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2082 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2083 default to get_frame_base.
2084 * gdbarch.h, gdbarch.c: Regenerate.
2085 * arch-utils.c (default_frame_address): Delete function.
2086 * arch-utils.h (default_frame_address): Delete declaration
2088 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2090 * varobj.c (find_frame_addr_in_frame_chain):
2091 Use get_frame_base instead of FRAME_FP,
2094 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2096 * frame.h (FRAME_FP): Delete macro.
2097 (get_frame_base): New function declaration.
2098 * frame.c (get_frame_base): New function.
2099 (get_frame_id): Use ->frame.
2100 (frame_find_by_id): Rewrite to use get_frame_id.
2101 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2102 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2103 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2104 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2105 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2106 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2107 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2109 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2111 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2113 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2115 * frame.c (set_unwind_by_pc): Revert change below, use
2117 (get_prev_frame): Ditto.
2119 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2121 * dummy-frame.c (pc_in_dummy_frame): New function.
2122 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2123 (find_dummy_frame): Update comment.
2124 (generic_pop_current_frame): Use get_frame_type.
2125 * dummy-frame.h (pc_in_dummy_frame): Declare.
2126 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2127 (create_new_frame): Use pc_in_dummy_frame.
2128 (get_prev_frame): Use pc_in_dummy_frame.
2129 (frame_saved_regs_register_unwind): Use get_prev_frame.
2130 (deprecated_generic_get_saved_register): Use get_prev_frame.
2132 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2134 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2136 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2137 (varobj_create): Note that frame ID should be used.
2138 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2140 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2142 * breakpoint.c: Include "gdb_assert.h".
2143 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2145 * Makefile.in (breakpoint.o): Update dependencies.
2146 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2147 deprecated_frame_in_dummy.
2148 * stack.c (print_frame_info_base): Ditto.
2149 (frame_info): Ditto.
2150 (print_frame_info_base): Ditto. Delete dead code.
2152 2002-11-23 Andreas Schwab <schwab@suse.de>
2154 * Makefile.in (m68k_tdep_h): Define.
2155 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2156 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2157 * m68k-tdep.c: Move register number enum ...
2158 * m68k-tdep.h: ... to this new file and rename the constants from
2159 E_* to M68K_*. All uses changed.
2160 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2161 * abug-rom.c: Include "m68k-tdep.h". Use
2162 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2163 * cpu32bug-rom.c: Likewise.
2164 * dbug-rom.c: Likewise.
2165 * m68k-tdep.c: Likewise.
2166 * m68klinux-nat.c: Likewise.
2167 * remote-est.c: Likewise.
2168 * rom68k-rom.c: Likewise.
2169 * config/m68k/tm-linux.h: Likewise.
2171 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2173 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2174 dummy frame initialization code.
2175 * mips-tdep.c (mips_gdbarch_init): Ditto.
2177 2002-11-22 Christopher Faylor <cgf@redhat.com>
2179 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2182 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2184 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2185 to default_frame_address.
2186 * gdbarch.h, gdbarch.c: Re-generate.
2188 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2189 or frame_locals_address to default_frame_address.
2190 * m68k-tdep.c (m68k_gdbarch_init): Update.
2191 * i386-tdep.c (i386_gdbarch_init): Update.
2192 * frv-tdep.c (frv_gdbarch_init): Update.
2193 * sh-tdep.c (sh_gdbarch_init): Update.
2194 * v850-tdep.c (v850_gdbarch_init): Update.
2195 * sparc-tdep.c (sparc_gdbarch_init): Update.
2196 * mips-tdep.c (mips_gdbarch_init): Update.
2197 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2198 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2201 * cris-tdep.c (cris_frame_args_address): Delete function.
2202 (cris_frame_locals_address): Delete function.
2203 (cris_gdbarch_init): Do not set frame_args_address or
2204 frame_locals_address.
2206 2002-11-22 Michael Snyder <msnyder@redhat.com>
2208 * thread-db.c (thread_db_load): Tell the user what's going on
2209 if dlopen fails on libthread_db.
2211 2002-11-23 Andreas Schwab <schwab@suse.de>
2213 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2214 invariant return values.
2216 2002-11-22 Andreas Schwab <schwab@suse.de>
2218 * valops.c (value_slice): Move declaration of `offset' to avoid
2221 2002-11-22 Christopher Faylor <cgf@redhat.com>
2223 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2224 (struct so_stuff): Add end_addr field.
2225 (register_loaded_dll): Calculate and store end address of loaded dll.
2226 (solib_address): New function.
2227 (child_solib_loaded_library_pathname): Pass carefully constructed
2228 section info to safe_symbol_file_add rather than ignoring it.
2229 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2231 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2232 (child_create_inferior): Fix a compiler warning.
2233 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2234 (solib_address): Declare new function.
2236 2002-11-22 Andreas Schwab <schwab@suse.de>
2238 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2241 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2243 * maint.c (_initialize_maint_cmds): Fix typo. From
2244 Francesco Potorti` <pot@gnu.org>.
2246 2002-11-21 Andrew Cagney <cagney@redhat.com>
2248 * mips-tdep.c (mips_dump_tdep): Delete references to
2249 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2250 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2251 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2252 * printcmd.c (build_address_symbolic): Delete calls to
2253 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2254 (address_info): Ditto.
2257 2002-11-19 Klee Dienes <kdienes@apple.com>
2258 Adam Fedor <fedor@gnu.org>
2260 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2261 the ability to explicitly specify the quote characters and word
2262 break characters; if NULL is specified for either, use the old
2263 behavior of using the characters used by the completer.
2264 (skip_chars): New function. Convenience wrapper around
2265 skip_quoted_chars to provide the original skip_chars behavior.
2266 * completer.h (skip_quoted_chars): Add prototype.
2268 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2270 Problems reported by Paul Eggert.
2271 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2273 2002-11-19 Andreas Schwab <schwab@suse.de>
2275 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2276 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2277 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2278 (m68k_linux_frame_saved_pc): Move to ...
2279 * m68klinux-tdep.c: ... here. New file.
2280 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2281 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2283 2002-11-19 Adam Fedor <fedor@gnu.org>
2285 * objc-exp.y: Revert to old skip_quoted usage.
2287 2002-11-19 Adam Fedor <fedor@gnu.org>
2289 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2290 (objc_lang_h): Define.
2291 (YYFILES): Add objc-exp.tab.c.
2292 (local-maintainer-clean): Remove objc-exp.tab.c.
2293 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2295 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2297 * p-exp.y (typecast rule): Add automatic dereference of
2298 pascal classes if needed.
2299 (THIS): Set current_type.
2300 Automatically dereference pascal classes.
2301 (typebase rule): Add ^typebase recognition.
2303 2002-11-18 Adam Fedor <fedor@gnu.org>
2305 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2306 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2307 (op_name): Handle OP_OBJC_SELF.
2308 * Makefile.in (expprint.o): Add additional depends.
2310 2002-11-18 Adam Fedor <fedor@gnu.org>
2312 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2313 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2314 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2315 * objc-exp.y: Likewise.
2317 2002-11-18 Adam Fedor <fedor@gnu.org>
2319 * gdb/parser-defs.h: (struct objc_class_str): New structure
2320 for parsing ObjC classes.
2322 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2324 * stack.c (frame_relative_level): Copy function from here ...
2325 * frame.c (frame_relative_level): ...to here.
2327 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2329 * frame.h (enum frame_type): Define.
2330 (get_frame_type): Declare.
2331 (struct frame_info): Add field `type'. Delete field
2332 signal_handler_caller.
2333 (deprecated_set_frame_signal_handler_caller): Declare.
2334 * frame.c (get_frame_type): New function.
2335 (deprecated_set_frame_type): New function.
2336 (create_new_frame): Set the frame's type.
2337 (get_prev_frame): Similar.
2338 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2339 * s390-tdep.c: Ditto.
2340 * m68klinux-nat.c: Ditto.
2341 * ns32k-tdep.c: Ditto.
2342 * x86-64-linux-tdep.c: Ditto.
2343 * vax-tdep.c: Ditto.
2344 * rs6000-tdep.c: Ditto.
2345 * ppc-linux-tdep.c: Ditto.
2346 * i386-interix-tdep.c: Ditto.
2347 * mips-tdep.c: Ditto.
2348 * m68k-tdep.c: Ditto.
2349 * hppa-tdep.c: Ditto.
2350 * ia64-tdep.c: Ditto.
2351 * cris-tdep.c: Ditto.
2352 * arm-tdep.c: Ditto.
2353 * alpha-tdep.c: Ditto.
2354 * i386-tdep.c: Ditto.
2356 * ada-lang.c: Ditto.
2357 * blockframe.c: Update.
2358 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2359 deprecated_set_frame_type instead of signal_handler_caller.
2360 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2361 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2362 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2364 2002-11-18 Klee Dienes <kdienes@apple.com>
2366 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2368 2002-11-18 Klee Dienes <kdienes@apple.com>
2370 * buildsym.c (pop_context): Add comment.
2372 2002-11-18 Klee Dienes <kdienes@apple.com>
2374 * buildsym.h (pop_context): Convert to function, defined in
2376 * buildsym.c: Include gdb_assert.h.
2377 (pop_context): Implement as C function. Add check for stack
2379 * dbxread.c (process_one_symbol): Complain and stop processing
2380 that symbol if we are already at the top of the context stack for
2381 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2382 when processing N_RBRAC.
2384 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2386 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2388 (struct target_waitstatus): Add opaque definition.
2389 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2390 * exec.c (init_exec_ops): Likewise.
2391 * fork-child.c (clone_and_follow_inferior): Remove.
2392 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2393 * inferior.h (clone_and_follow_inferior): Remove prototype.
2394 * infrun.c (follow_fork_mode_both): Remove.
2395 (follow_fork_mode_kind_names): Remove commented out "both".
2396 (follow_inferior_fork): Remove follow_fork_mode_both support.
2397 * inftarg.c (child_clone_and_follow_inferior): Remove.
2398 (child_post_follow_inferior_by_clone): Remove.
2399 (init_child_ops): Don't set to_clone_and_follow_inferior
2400 or to_post_follow_inferior_by_clone.
2401 * target.c (default_clone_and_follow_inferior): Remove.
2402 (cleanup_target): Don't set to_clone_and_follow_inferior
2403 or to_post_follow_inferior_by_clone.
2404 (find_default_clone_and_follow_inferior): Remove.
2405 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2406 (debug_to_clone_and_follow_inferior): Remove.
2407 (debug_to_post_follow_inferior_by_clone): Remove.
2408 (setup_target_debug): Don't set to_clone_and_follow_inferior
2409 or to_post_follow_inferior_by_clone.
2410 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2411 and to_post_follow_inferior_by_clone.
2412 (child_clone_and_follow_inferior): Remove prototype.
2413 (child_post_follow_inferior_by_clone): Remove prototype.
2414 (target_clone_and_follow_inferior): Remove macro.
2415 (target_post_follow_inferior_by_clone): Remove macro.
2416 (find_default_clone_and_follow_inferior): Remove prototype.
2418 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2420 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2421 inferior_has_vforked, and inferior_has_execd instead of
2422 target_has_forked, target_has_vforked, and target_has_execd.
2423 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2424 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2425 (CHILD_WAIT): Define.
2426 (child_wait): Add prototype.
2427 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2429 (hpux_has_vforked): Likewise, from child_has_vforked.
2430 (hpux_has_execd): Likewise, from child_has_execd.
2431 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2432 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2433 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2434 and hpux_has_syscall_event instead of the target hooks.
2435 * infrun.c (inferior_has_forked, inferior_has_vforked)
2436 (inferior_has_execd): New functions.
2437 * inftarg.c (not_same_real_pid): Remove.
2438 (child_wait): Remove references to not_same_real_pid,
2439 target_has_forked, target_has_vforked, target_has_execd,
2440 and target_has_syscall_event.
2441 (child_has_forked, child_has_vforked, child_has_execd)
2442 (child_has_syscall_event): Remove.
2443 (init_child_ops): Remove references to child_has_forked,
2444 child_has_vforked, child_has_execd, and child_has_syscall_event.
2445 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2446 (hpux_has_vforked): Likewise, from child_has_vforked.
2447 (hpux_has_execd): Likewise, from child_has_execd.
2448 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2449 * target.c (cleanup_target): Remove references to
2450 to_has_forked, to_has_vforked, to_has_execd, and
2451 to_has_syscall_event.
2452 (update_current_target): Likewise.
2453 (setup_target_debug): Likewise.
2454 (debug_to_has_forked): Remove.
2455 (debug_to_has_vforked): Remove.
2456 (debug_to_has_execd): Remove.
2457 (debug_to_has_syscall_event): Remove.
2458 * target.h (struct target_ops): Remove to_has_forked.
2459 to_has_vforked, to_has_execd, and to_has_syscall_event.
2460 (child_has_forked, child_has_vforked, child_has_execd)
2461 (child_has_syscall_event): Remove prototypes.
2462 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2464 (target_has_forked, target_has_vforked, target_has_execd)
2465 (target_has_syscall_event): Remove macros.
2467 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2469 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2470 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2471 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2472 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2473 * target.c (cleanup_target): Remove reference to
2474 to_can_follow_vfork_prior_to_exec.
2475 (update_current_target): Likewise.
2476 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2477 (setup_target_debug): Remove reference to
2478 to_can_follow_vfork_prior_to_exec.
2479 * target.h (struct target_ops): Remove
2480 to_can_follow_vfork_prior_to_exec.
2481 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2482 (target_can_follow_vfork_prior_to_exec): Remove definition.
2483 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2485 * infrun.c (follow_vfork_when_exec): Remove.
2486 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2487 (follow_exec): Likewise.
2488 (handle_inferior_event): Likewise.
2489 (keep_going): Likewise.
2491 2002-11-15 Andrew Cagney <cagney@redhat.com>
2493 * frame.c (generic_unwind_get_saved_register): Make static.
2494 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2495 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2496 defaults to generic_unwind_get_saved_register.
2497 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2498 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2499 * frv-tdep.c (frv_gdbarch_init): Ditto.
2500 * i386-tdep.c (i386_gdbarch_init): Ditto.
2501 * s390-tdep.c (s390_gdbarch_init): Ditto.
2502 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2503 * v850-tdep.c (v850_gdbarch_init): Ditto.
2504 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2505 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2506 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2508 2002-11-15 Andrew Cagney <cagney@redhat.com>
2510 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2513 2002-11-15 Andrew Cagney <cagney@redhat.com>
2515 * frame.h (sigtramp_saved_pc): Delete declaration.
2516 * blockframe.c (sigtramp_saved_pc): Delete function.
2517 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2518 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2519 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2520 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2522 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2524 * frame.c (frame_pc_unwind): New function.
2525 (frame_saved_regs_pc_unwind): New function.
2526 (frame_register_unwind): Pass unwind_cache instead of
2527 register_unwind_cache.
2528 (set_unwind_by_pc): Add unwind_pc parameter, set.
2529 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2530 (get_prev_frame): Ditto.
2531 * frame.h (frame_pc_unwind_ftype): Declare.
2532 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2533 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2534 (frame_pc_unwind): Declare.
2535 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2536 (struct dummy_frame): Add comment mentioning that values are for
2538 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2539 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2540 (generic_file_frame_chain_valid): Ditto.
2541 * stack.c (frame_info): Ditto.
2543 2002-11-15 David Carlton <carlton@math.stanford.edu>
2545 * linespec.c (locate_first_half): New function.
2546 (decode_line_1): Move code into locate_first_half.
2548 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2550 * complaints.h: Add comment explaining how to eliminate a
2551 deprecated_complain call.
2552 * complaints.h: Fix spelling errors.
2554 2002-11-15 David Carlton <carlton@math.stanford.edu>
2556 * printcmd.c: Remove #include "disasm.h".
2558 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2560 * frame.h: Move the most relevant interface functions to the start
2563 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2565 * regcache.h (deprecated_registers): Rename registers.
2566 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2567 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2568 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2569 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2570 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2571 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2572 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2573 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2574 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2575 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2576 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2577 * v850ice.c: Update.
2579 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2581 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2584 2002-11-13 Andrew Cagney <cagney@redhat.com>
2586 * regcache.h (deprecated_read_register_bytes): Rename
2587 read_register_bytes.
2588 (deprecated_write_register_bytes): Rename write_register_bytes.
2589 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2590 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2591 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2592 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2593 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2594 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2595 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2596 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2597 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2598 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2599 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2600 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2601 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2602 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2604 2002-11-13 Jim Blandy <jimb@redhat.com>
2606 * findvar.c (read_var_value): Doc fix.
2608 2002-11-13 Andrew Cagney <cagney@redhat.com>
2610 * regcache.c (struct regcache): Replace passthough_p with
2612 (regcache_xmalloc): Initialize readonly_p.
2613 (build_regcache): Initialize readonly_p.
2614 (regcache_save): New function.
2615 (regcache_restore): New function.
2616 (regcache_cpy): Re-implement using regcache_save and
2618 (regcache_raw_read): Update.
2619 (regcache_cooked_read): When a read-only cache, checked for cached
2620 pseudo register values.
2621 (regcache_raw_write): Assert that the cache is not read-only.
2622 Remove code handling a non-passthrough cache.
2623 * regcache.h (regcache_save): Declare.
2624 (regcache_restore): Declare.
2626 2002-11-13 Andrew Cagney <cagney@redhat.com>
2628 * regcache.c (struct regcache_descr): Add fields
2629 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2630 (init_legacy_regcache_descr): Compute the size of a cooked
2631 register cache and then assign that to sizeof_raw_registers. Set
2632 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2633 (init_legacy_regcache_descr): Ditto.
2635 2002-11-13 Andrew Cagney <cagney@redhat.com>
2637 * regcache.c (register_buffer): Move to near start of file, update
2639 (regcache_raw_read): Use.
2640 (regcache_raw_write): Use.
2641 (struct regcache): Rename raw_registers to registers and
2642 raw_register_valid_p to register_valid_p.
2643 (regcache_xmalloc): Update.
2644 (regcache_xfree): Update.
2645 (register_buffer): Update.
2646 (regcache_cpy): Update.
2647 (regcache_cpy_no_passthrough): Update.
2648 (regcache_valid_p): Update.
2649 (deprecated_grub_regcache_for_registers): Update.
2650 (deprecated_grub_regcache_for_register_valid): Update.
2651 (set_register_cached): Update.
2652 (regcache_raw_write): Update.
2654 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2656 * p-exp.y (name_not_typename): Use copy_name to
2657 set current_type variable for fields of THIS.
2659 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2661 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2662 * monitor.c (init_base_monitor_ops): Likewise.
2663 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2664 * remote-array.c (init_array_ops): Likewise.
2665 * remote-e7000.c (init_e7000_ops): Likewise.
2666 * remote-es.c (init_es1800_ops): Likewise.
2667 (init_es1800_child_ops): Likewise.
2668 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2669 * remote-sim.c (init_gdbsim_ops): Likewise.
2670 * remote-st.c (init_st2000_ops): Likewise.
2671 * sol-thread.c (init_sol_core_ops): Likewise.
2672 (init_sol_thread_ops): Likewise.
2673 * v850ice.c (init_850ice_ops): Likewise.
2674 * win32-nat.c (init_child_ops): Likewise.
2675 * wince.c (init_child_ops): Likewise.
2677 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2679 * utils.c (gdb_realpath): Make rp a constant pointer.
2681 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2683 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2684 a constant buffer; cannonicalize_file_name(); realpath() with a
2685 pathconf() defined buffer, xstrdup().
2687 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2689 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2690 to hang2.C; hang3.c to hang3.C.
2692 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2694 * findvar.c (read_var_value): Reenable TLS code.
2696 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2697 Jim Blandy <jimb@redhat.com>
2699 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2700 * target.c (update_current_target): Add
2701 to_get_thread_local_address.
2702 * target.h (to_get_thread_local_address): Export.
2703 (target_get_thread_local_address): Define.
2704 (target_get_thread_local_address_p): Define.
2705 * thread-db.c: Include solib-svr4.h.
2706 (td_thr_tls_get_addr_p): Define.
2707 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2708 (thread_db_get_thread_local_address): New function.
2709 (init_thread_db_ops): Initialize to_get_thread_local_address.
2710 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2711 * configure: Regenerate.
2712 * config.in: Regenerate.
2714 2002-11-11 David Carlton <carlton@math.stanford.edu>
2716 * linespec.c (set_flags): New function.
2717 (decode_line_1): Move code into set_flags.
2719 2002-11-11 David Carlton <carlton@math.stanford.edu>
2721 * linespec.c (decode_line_1): Move chunks of code to separate
2723 (initialize_defaults): New function.
2724 (decode_indirect): New function.
2726 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2728 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2729 instead of void_code_ptr.
2730 (sigtramp_saved_pc): Ditto.
2732 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2735 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2737 * gdbtypes.h (struct main_type): Move artificial flag out of
2738 loc. New member of ``struct field'' named static_kind. Reduce
2739 overloaded meaning of bitsize.
2740 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2741 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2742 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2744 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2746 (template_to_fixed_record_type, template_to_static_fixed_type)
2747 (to_record_with_fixed_variant_part): Likewise.
2748 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2749 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2750 * dwarfread.c (struct_type, enum_type): Likewise.
2751 * hpread.c (hpread_read_enum_type)
2752 (hpread_read_function_type, hpread_read_doc_function_type)
2753 (hpread_read_struct_type): Likewise.
2754 * mdebugread.c (parse_symbol): Likewise.
2756 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2758 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2759 * stack.c (print_frame_info_base): Update.
2760 (print_frame_info_base, frame_info): Update.
2761 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2762 (sparc_frame_saved_pc): Update.
2763 * ada-lang.c (find_printable_frame): Update.
2764 * breakpoint.c (deprecated_frame_in_dummy): Update.
2766 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2768 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2770 (regmap): Extend to cover all registers.
2771 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2772 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2774 (fetch_register, sore_register): Simplify.
2775 (old_fetch_inferior_registers, old_store_inferior_registers):
2777 (cannot_fetch_register, cannot_store_register): Change
2778 implementation to use regmap array to decide which registers
2779 cannot be fetched/stored. This removes $orig_eax from the
2780 registers that cannot be fetched/stored.
2781 (fetch_inferior_registers): Call fetch_register directly instead
2782 of calling old_fetch_inferior_registers.
2783 (store_inferior_registers): Call store_register directly instead
2784 of calling old_store_inferior_registers.
2785 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2786 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2787 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2789 2002-11-09 Klee Dienes <kdienes@apple.com>
2791 * i387-tdep.c (i387_supply_register): When called with NULL as a
2792 buffer, mark the register as not provided (to mirror the behavior
2793 of supply_register).
2794 (i387_supply_fxsave): Ditto.
2795 (i387_supply_fsave): Ditto (inherits the behavior from
2796 i387_supply_register).
2798 2002-11-09 Klee Dienes <kdienes@apple.com>
2800 * blockframe.c (sigtramp_saved_pc): Use
2801 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2802 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2803 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2805 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2807 * frame.c (get_prev_frame): Test prev_p to identify a previously
2808 unwound frame. Initialize prev_p.
2809 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2812 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2814 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2815 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2816 more comments. Zap dead code.
2818 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2820 * infcmd.c (print_vector_info, print_float_info): Move code that
2821 checks whether the target has any registers and whether there is a
2822 selected frame up, such that it is also used if a target provides
2823 multi-arch definitions of these functions.
2825 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2827 * Makefile.in (DESTDIR): Define.
2828 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2831 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2832 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2834 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2836 * i386-linux-tdep.c: Include "reggroups.h".
2837 (i386_linux_register_reggroup_p): New function.
2838 (i386_linux_init_abi): Set register_reggroup_p to
2839 i386_linux_register_reggroup_p.
2840 * i386-tdep.h (i386_register_reggroup_p): Declare.
2841 * i386-tdep.c: Include "reggroups.h".
2842 (i386_init_reggroups): New function.
2843 (i386_add_reggroups): New function.
2844 (i386_register_reggroup_p): New function.
2845 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2846 (_initialize_i386_tdep): Call i386_init_reggroups.
2847 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2850 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2852 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2853 request that's available in *BSD.
2855 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2857 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2860 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2862 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2863 * dummy-frame.c (find_dummy_frame): Rename
2864 generic_find_dummy_frame, make static. Return the dummy frame
2865 instead of the regcache.
2866 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2867 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2868 (dummy_frame_register_unwind): Rename
2869 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2870 * dummy-frame.h (dummy_frame_register_unwind): Rename
2871 generic_call_dummy_register_unwind.
2873 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2875 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2876 except the inclusion of "i386/tm-i386.h", to...
2877 * config/i386/nm-i386v42mp.h: ...here.
2878 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2880 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2882 * Makefile.in (frame.o): Update dependencies.
2883 * blockframe.c (current_frame, frame_obstack_alloc)
2884 (frame_saved_regs_zalloc, get_current_frame)
2885 (set_current_frame, create_new_frame)
2886 (set_unwind_by_pc, get_next_frame)
2887 (flush_cached_frames, reinit_frame_cache)
2888 (frame_saved_regs_register_unwind)
2889 (deprecated_generic_get_saved_register)
2890 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2891 (_initialize_blockframe): Move frame code from here...
2892 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2893 "annotate.h" and "dummy-frame.h".
2894 (_initialize_frame): New function.
2896 2002-11-08 Jim Blandy <jimb@redhat.com>
2898 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2899 when we finish a function a context.
2900 * buildsym.h (outermost_context_p): New macro.
2901 (Bug analyzed by David Edelsohn.)
2903 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2905 * blockframe.c: Include "dummy-frame.h".
2906 (struct dummy_frame, dummy_frame_stack)
2907 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2908 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2909 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2910 (generic_save_call_dummy_addr, generic_pop_current_frame)
2911 (generic_pop_dummy_frame, generic_fix_call_dummy)
2912 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2913 dummy frame code from here...
2914 * dummy-frame.c: ...to here. New file.
2915 * dummy-frame.h: New file.
2916 (generic_call_dummy_register_unwind): Declare.
2917 (generic_find_dummy_frame): Declare.
2918 * Makefile.in (SFILES): Add dummy-frame.c.
2919 (dummy-frame.o): Specify dependencies.
2920 (dummy_frame_h): Define.
2921 (COMMON_OBS): Add dummy-frame.o.
2922 (blockframe.o): Update dependencies.
2924 2002-11-08 Jim Blandy <jimb@redhat.com>
2926 * dwarf2read.c (read_func_scope): Restore local_symbols and
2927 param_symbols after we finish the function context. (Based on a
2928 patch from David Edelsohn.)
2930 2002-11-08 David Carlton <carlton@math.stanford.edu>
2932 * linespec.c (symbol_found): New function.
2933 (minsym_found): New function.
2934 (decode_line_1): Separate out some code into separate functions.
2936 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2938 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2939 the benefit of the interix target.
2940 * i386-tdep.h (i386_frameless_signal_p): Declare.
2942 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2944 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2945 declaration that snuck in from change below.
2947 2002-11-06 Andrew Cagney <cagney@redhat.com>
2949 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2951 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2952 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2953 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2954 (i386_mxcsr_regnum_p): new function. Use instead of
2956 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2957 (i386_sse_regnum_p): Declare.
2958 (i386_mxcsr_regnum_p): Declare.
2959 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2960 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2961 (IS_FP_REGNUM): Update definition.
2962 (IS_FPU_CTRL_REGNUM): Update definition..
2963 (IS_SSE_REGNUM): Update definition..
2964 * i386v-nat.c (register_u_addr): Update.
2965 * go32-nat.c (fetch_register): Update.
2966 (store_register): Update.
2968 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2970 Preparation work to convert the hppa targets to multiarch partial.
2972 * hppa-tdep.c: Add new functions replacing macro bodies from
2973 config/pa/tm-hppa.h. These function will be used to initialize
2974 the gdbarch structure. Import some comments from tm-hppa.h,
2975 and place them where appropriate, to avoid loosing them when
2976 we cleanup this file.
2977 (hppa_reg_struct_has_addr): New function.
2978 (hppa_inner_than): New function.
2979 (hppa_stack_align): New function.
2980 (hppa_pc_requires_run_before_use): New function.
2981 (hppa_instruction_nullified): New function.
2982 (hppa_register_byte): New function.
2983 (hppa_register_virtual_type): New function.
2984 (hppa_store_struct_return): New function.
2985 (hppa_cannot_store_register): New function.
2986 (hppa_frame_args_address): New function.
2987 (hppa_frame_locals_address): New function.
2988 (hppa_smash_text_address): New function.
2989 (hppa_coerce_float_to_double): New function. Requires the inclusion
2992 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2994 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2995 gdbarch-eligible macro to a call to the new associated function
2996 created in hppa-tdep.c.
2997 (INNER_THAN): Likewise.
2998 (STACK_ALIGN): Likewise.
2999 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3000 (INSTRUCTION_NULLIFIED): Likewise.
3001 (REGISTER_BYTE): Likewise.
3002 (REGISTER_VIRTUAL_TYPE): Likewise.
3003 (STORE_STRUCT_RETURN): Likewise.
3004 (CANNOT_STORE_REGISTER): Likewise.
3005 (FRAME_ARGS_ADDRESS): Likewise.
3006 (FRAME_LOCALS_ADDRESS): Likewise.
3007 (SMASH_TEXT_ADDRESS): Likewise.
3008 (COERCE_FLOAT_TO_DOUBLE): Likewise.
3009 (ABOUT_TO_RETURN): Delete, as no longer used.
3011 2002-11-07 Fernando Nasser <fnasser@redhat.com>
3013 * printcmd.c (disassemble_command): Remove obsolete function.
3014 (_initialize_printcmd): Do not create disassemble command here.
3015 * cli/cli-cmds.c (disassemble_command): New function. Implements
3016 disassemble command.
3017 (init_cli_cmds): Create disassemble command here instead.
3019 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3021 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3023 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3025 * regcache.h (regcache_cooked_read_using_offset_hack)
3026 (regcache_cooked_write_using_offset_hack): Delete declarations.
3027 (register_changed): Delete declaration.
3028 * regcache.c (regcache_cooked_read_using_offset_hack)
3029 (regcache_cooked_write_using_offset_hack): Delete functions.
3030 (cooked_xfer_using_offset_hack): Delete function.
3031 (register_changed): Delete function.
3033 2002-11-07 Jim Blandy <jimb@redhat.com>
3035 * macroscope.c: #include "complaints.h".
3036 (sal_macro_scope): Cope with filenames that appear in the symtabs,
3037 but not in the macro table.
3038 * Makefile.in (macroscope.o): Record dependency.
3040 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3042 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3044 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3046 * regcache.c (deprecated_registers_fetched): Update.
3047 * regcache.h (deprecated_registers_fetched): Rename
3049 * remote-vxsparc.c (vx_read_register): Update.
3050 * remote-vxmips.c (vx_read_register): Update.
3051 * remote-vx68.c (vx_read_register): Update.
3052 * irix5-nat.c (fetch_core_registers): Update.
3053 * mipsm3-nat.c (fetch_inferior_registers): Update.
3054 * sun3-nat.c (fetch_inferior_registers): Update.
3055 * symm-nat.c (fetch_inferior_registers): Update.
3056 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3057 (fetch_core_registers): Update.
3058 (fetch_kcore_registers): Update.
3059 * mips-nat.c (fetch_inferior_registers): Update.
3060 * corelow.c (get_core_registers): Update.
3061 * a68v-nat.c (fetch_inferior_registers): Update.
3063 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3065 Put in place the framework necessary for multiarching the hppa targets.
3066 * hppa-tdep.c (hppa_gdbarch_init): New function.
3067 (hppa_dump_tdep): New function.
3068 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3069 tdep structure dumper.
3070 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3071 until the multi-arching conversion has partially been completed.
3073 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3075 * valops.c (value_assign): Merge lval_register case into
3076 lval_reg_frame_relative. Use frame_register and
3077 regcache_cooked_write instead of get_saved_register and
3078 write_register_bytes. After flushing the register cache, try to
3079 re-select the selected frame.
3081 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3083 * regcache.h (deprecated_register_valid): Rename register_valid.
3084 * regcache.c: Update.
3085 * ia64-aix-nat.c: Update.
3086 * i386gnu-nat.c: Update.
3087 * alpha-nat.c: Update.
3088 * sparc-nat.c: Update.
3089 * lynx-nat.c: Update.
3090 * remote-mips.c: Update.
3092 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3094 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3095 to end of file, to be more consistent with the pratice followed
3098 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3100 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3101 (print_float_info): Print registers in float_reggroup.
3102 (print_vector_info): Print registers in vector_reggroup.
3103 (default_print_registers_info): When all, print registers in
3104 all_reggroup. Otherwize, print registers in general_reggroup.
3105 (registers_info): Rewrite. Add support for register groups.
3108 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3110 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3112 (symtab_symbol_info): Remove eons old ifdeffed out code.
3113 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3116 2002-11-06 Theodore A. Roth <troth@openavr.org>
3118 * c-exp.y: Add missing semi-colons.
3119 * f-exp.y: Add missing semi-colons.
3120 * m2-exp.y: Add missing semi-colons.
3121 * p-exp.y: Add missing semi-colons.
3122 Add empty action to start rule to avoid a type clash error when
3123 building with bison >= 1.50.
3125 2002-11-06 Jim Blandy <jimb@redhat.com>
3127 * macrotab.h (struct macro_source_file): Doc fix.
3129 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3131 * varobj.c (child_exists, cplus_number_of_children): Change
3132 STREQ macro references to strcmp.
3133 (cplus_name_of_child): Change code to handle the fact that
3134 fields are not necessarily contiguous with regards to their
3135 access control. This is a fix for PR gdb/792.
3137 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3139 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3140 * gdbarch.h, gdbarch.c: Regnerate.
3141 * frame.h (frame_register): Declare.
3142 * frame.c (frame_register): New function.
3143 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3144 GET_SAVED_REGISTER, otherwize call
3145 generic_unwind_get_saved_register.
3146 (frame_register_read): Use frame_register instead of
3149 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3151 From Jim Ingham <jingham@apple.com>:
3152 * event-top.c (gdb_disable_readline): New function.
3153 (_initialize_event_loop): Move comment.
3155 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3157 * event-loop.c (start_event_loop): Add comment.
3160 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3162 * infcmd.c (default_print_registers_info): Do not call
3163 PRINT_REGISTER_HOOK.
3165 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3167 * sparc-tdep.c (sparc_print_register_hook): Make static.
3168 (sparc_print_registers_info): New function.
3169 (sparc_do_registers_info): New function.
3170 (sparclet_print_registers_info): New function.
3171 (sparclet_do_registers_info): New function.
3172 (do_sparc_print_registers_info): New function.
3173 (sparc_print_registers): New static function, clone of infcmd.c's
3174 default_print_registers_info.
3175 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3176 (sparclet_do_registers_info): Declare.
3177 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3178 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3180 (sparc_do_registers_info): Declare.
3181 (PRINT_REGISTER_HOOK): Delete macro.
3182 (sparc_print_register_hook): Delete declaration.
3184 2002-11-05 David Carlton <carlton@math.stanford.edu>
3186 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3188 (lookup_symbol_aux_local): New function.
3189 (lookup_symbol_aux_symtabs): New function.
3190 (lookup_symbol_aux_psymtabs): New function.
3192 2002-11-05 David Carlton <carlton@math.stanford.edu>
3194 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3195 previous values of 'objfile' and 'block'.
3197 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3199 * values.c (value_change_enclosing_type): Set
3200 enclosing_type field correctly also for the case where
3201 more memory needs to be allocated.
3203 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3205 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3208 * i387-tdep.c (i387_print_float_info): Replace calls to
3209 register_read and deprecated_read_register_gen with calls to
3210 frame_register_read, and make the necessary adjustments to the
3213 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3215 * gdbarch.sh (register_reggroup_p): Allow default value.
3216 * gdbarch.h, gdbarch.c: Regenerate.
3218 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3220 * regcache.h: Add coment indicating replacements for deprecated
3223 2002-11-02 Andrew Cagney <cagney@redhat.com>
3225 * reggroups.h, reggroups.c: New files.
3226 * regcache.c: Include "reggroups.h".
3227 (enum regcache_dump_what): Add `regcache_dump_groups'.
3228 (regcache_dump): Contract size of the "Type" column. When
3229 specified, dump the register's groups.
3230 (maintenance_print_register_groups): New function.
3231 (_initialize_regcache): Add command `maint print register-groups'.
3232 * Makefile.in (COMMON_OBS): Add reggroups.o
3233 (SFILES): Add reggroups.c.
3234 (reggroups_h): Define.
3235 (regcache.o, gdbarch.o): Update dependencies.
3236 (reggroups.o): Specify dependencies.
3237 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3238 Add opaque declaration for `struct reggroup' in generated .h file.
3239 Include "reggroups.h" in generated .c file.
3240 gdbarch.h, gdbarch.c: Re-generate.
3242 2002-11-02 Andrew Cagney <cagney@redhat.com>
3244 * regcache.h (deprecated_read_register_gen): Rename
3246 (deprecated_write_register_gen): Rename write_register_gen.
3247 * i387-tdep.c: Update.
3248 * x86-64-linux-nat.c: Update
3250 * thread-db.c: Update.
3251 * win32-nat.c: Update.
3252 * mips-tdep.c: Update.
3253 * d10v-tdep.c: Update.
3254 * cris-tdep.c: Update.
3255 * remote-sim.c: Update.
3256 * remote-rdi.c: Update.
3257 * remote-rdp.c: Update.
3260 * blockframe.c: Update.
3261 * x86-64-tdep.c: Update.
3262 * xstormy16-tdep.c: Update.
3263 * sh-tdep.c: Update.
3264 * s390-tdep.c: Update.
3265 * rs6000-tdep.c: Update.
3266 * sparc-tdep.c: Update.
3267 * i386-tdep.c: Update.
3268 * dwarf2cfi.c: Update.
3269 * regcache.c: Update.
3271 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3273 New interix-specific files:
3274 * config/i386/nm-interix.h: New file.
3275 * config/i386/interix.mh: New file.
3276 * config/i386/interix.mt: New file.
3277 * i386-interix-nat.c: New file.
3278 * i386-interix-tdep.c: New file.
3280 2002-11-01 Andrew Cagney <cagney@redhat.com>
3282 * frame.h (deprecated_generic_get_saved_register): Rename
3283 generic_get_saved_register.
3284 * blockframe.c (deprecated_generic_get_saved_register): Update.
3285 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3286 (xstormy16_frame_saved_register): Update.
3287 * sh-tdep.c (sh_gdbarch_init): Update.
3288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3289 * ia64-tdep.c (ia64_get_saved_register): Update.
3290 * cris-tdep.c (cris_gdbarch_init): Update.
3291 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3292 * arm-tdep.c (arm_gdbarch_init): Update.
3294 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3296 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3298 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3300 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3301 trampolines in sigaction.
3303 2002-10-31 Andrew Cagney <cagney@redhat.com>
3305 * h8300-tdep.c: Include "gdb_assert.h".
3306 (h8300_print_register): Add gdbarch, file and frame parameters.
3307 Use frame_read_unsigned_register to read the register's value.
3308 Use fprintf_filtered to display output.
3309 (h8300_print_registers_info): Replace h8300_do_registers_info.
3310 (h8300_gdbarch_init): Set print_registers_info.
3312 2002-10-31 Andrew Cagney <cagney@redhat.com>
3314 * frame.c (frame_read_unsigned_register): New function.
3315 (frame_read_signed_register): New function.
3316 * frame.h (frame_read_unsigned_register): Declare.
3317 (frame_read_signed_register): Declare.
3319 2002-10-31 Andrew Cagney <cagney@redhat.com>
3321 * h8500-tdep.c (h8500_print_registers_info): New static function,
3322 clone of infcmd.c's default_print_registers_info.
3323 (h8500_do_registers_info): New funtion.
3324 (h8500_print_register_hook): Rename print_register_hook, make
3327 * config/h8500/tm-h8500.h: Update copyright.
3328 (DEPRECATED_DO_REGISTERS_INFO): Define.
3329 (h8500_do_registers_info: Declare.
3330 (PRINT_REGISTER_HOOK): Delete macro.
3331 (print_register_hook): Delete function.
3333 2002-10-31 Andrew Cagney <cagney@redhat.com>
3335 * z8k-tdep.c (z8k_print_register_hook): Make static.
3336 (z8k_print_registers_info): New static function, clone of
3337 infcmd.c's default_print_registers_info.
3338 (z8k_do_registers_info): New function. Wrap
3339 z8k_print_registers_info.
3340 * config/z8k/tm-z8k.h: Update copyright.
3341 (PRINT_REGISTER_HOOK): Delete macro.
3342 (z8k_print_register_hook): Delete declaration.
3343 (DEPRECATED_DO_REGISTERS_INFO): Define.
3344 (z8k_do_registers_info): Declare.
3346 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3348 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3349 as this is already provided by value.h, and was actually causing
3350 a compilation error because of a conflict in parameter type
3351 declaration due to a missing const keyword.
3352 (low_text_segment_addres): Fix a compilation warning.
3354 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3356 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3357 registers without a name.
3358 (mips_linux_cannot_store_register): Don't store registers without
3361 2002-10-28 David Carlton <carlton@math.stanford.edu>
3363 * symtab.c (find_addr_symbol): Delete. (It was already commented
3365 * symtab.h: Delete prototype for find_addr_symbol.
3367 2002-10-26 Andrew Cagney <cagney@redhat.com>
3369 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3371 gdbarch.h, gdbarch.c: Re-generate.
3372 * infcmd.c (default_print_registers_info): Update reference.
3373 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3374 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3375 * sh-tdep.c (sh_gdbarch_init): Ditto.
3376 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3377 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3379 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3381 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3382 cfi_init_extra_frame_info.
3383 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3384 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3386 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3387 target where necessary. Add more comments and remove the ones
3388 that don't provide any useful information.
3390 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3391 deprecated_read_register_dummy with
3392 frame_unwind_unsigned_register.
3394 * i386-tdep.c (i386_extract_struct_value_address): Use
3395 regcache_raw_read_unsigned instead of
3396 regcache_cooked_read_unsigned since we know that the register
3397 we're reading isn't a pseudo register. Rename variable 'val' into
3398 the more descriptive 'addr'.
3400 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3401 (x86_64_push_return_address): Add comment.
3402 (x86_64_pop_frame): Make static.
3403 (examine_argument): Clarify comment.
3404 (x86_64_skip_prologue): Make prolog_expact variable static.
3406 * dwarf2cfi.c: Fix some formatting problems.
3407 (context_cpy, read_encoded_pointer): Clarify comments.
3409 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3410 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3411 i386 target back into x86_64_gdbarch_init. Add some comments and
3412 remove meaningless ones.
3414 2002-10-25 Andrew Cagney <cagney@redhat.com>
3416 * complaints.h (struct deprecated_complaint): Rename `struct
3418 * complaints.c (complain): Update.
3419 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3420 incorrect comment indicating that "symfile.h" was being included
3421 for the `struct complaint' definition.
3422 * remote-vx.c: Update.
3423 * objc-lang.c: Update.
3424 * xcoffread.c: Update.
3426 * mdebugread.c: Update.
3427 * stabsread.c: Update.
3428 * dwarf2read.c: Update.
3429 * dwarfread.c: Update.
3430 * elfread.c: Update.
3431 * coffread.c: Update.
3432 * stabsread.h: Update.
3433 * dbxread.c: Update.
3434 * buildsym.c: Update.
3435 * gdbtypes.c: Update.
3436 * macrotab.c: Update.
3438 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3440 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3441 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3442 (x86_64_init_abi): ...new function.
3444 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3445 * i386v-nat.c: Include "i386-tdep.h".
3447 2002-10-25 Andrew Cagney <cagney@redhat.com>
3449 * gdbtypes.c (address_space_name_to_int): Update.
3450 (address_space_int_to_name): Update.
3451 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3452 multi-arch predicate.
3453 (address_class_name_to_type_flags): Ditto.
3454 * gdbarch.h, gdbarch.c: Re-generate.
3456 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3458 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3460 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3462 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3464 * symtab.h (INIT_SAL): Delete macro.
3466 * symtab.c (init_sal): New function.
3468 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3469 to init_sal function call.
3470 (find_sal_from_funcs_and_line): Ditto.
3471 (all_sals_for_line): Ditto.
3472 * breakpoint.c (create_internal_breakpoint): Ditto.
3473 (create_fork_vfork_event_catchpoint): Ditto.
3474 (create_exec_event_catchpoint): Ditto.
3475 (parse_breakpoint_sals): Ditto.
3476 (watch_command_1): Ditto.
3477 (handle_gnu_4_16_catch_command): Ditto.
3478 (clear_command): Ditto.
3479 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3480 * infcmd.c (run_stack_dummy): Ditto.
3481 * infrun.c (process_event_stop_test): Ditto.
3482 (check_sigtramp2): Ditto.
3483 (step_over_function): Ditto.
3484 * linespec.c (decode_line_2): Ditto.
3485 (decode_line_1): Ditto.
3486 * source.c (line_info): Ditto.
3487 * symtab.c (find_pc_sect_line): Ditto.
3489 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3491 * dwarf2cfi.c (struct context)
3492 (struct context_reg): Moved to dwarf2cfi.h
3493 (context_alloc, frame_state_alloc, context_cpy):
3494 Made extern instead of static, removed prototypes.
3495 * dwarf2cfi.h (struct context)
3496 (struct context_reg): New, moved from dwarf2cfi.c
3497 (context_alloc, frame_state_alloc, context_cpy):
3499 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3500 Changed from static to extern.
3501 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3502 (LINUX_SIGCONTEXT_FP_OFFSET)
3503 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3504 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3505 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3506 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3507 set_gdbarch_*() calls now use x86-64 specific functions
3508 instead of DWARF2 CFI ones.
3509 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3510 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3511 (x86_64_init_extra_frame_info): New prototypes.
3513 2002-10-23 David Carlton <carlton@math.stanford.edu>
3515 * linespec.c: #include "parser-defs.h".
3516 Delete prototype for find_template_name_end.
3517 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3519 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3521 * NEWS: add recent mi fixes.
3522 * varobj.c (struct varobj): Add new "updated" flag.
3523 (new_variable): Default "updated" flag to 0.
3524 (varobj_set_value): Set "updated" flag to 1 if value
3526 (varobj_update): Check varobj "updated" flag before
3527 comparing old and refreshed values. Fix for
3530 2002-10-23 David Carlton <carlton@math.stanford.edu>
3532 * parse.c (parse_exp_1): Use BLOCK_START.
3533 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3535 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3537 2002-10-23 David Carlton <carlton@math.stanford.edu>
3539 * symtab.c: Delete cplusplus_hint.
3540 Delete prototype for find_template_name_end.
3542 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3544 * symtab.h: Update comment.
3546 2002-10-23 Michael Snyder <msnyder@redhat.com>
3548 * printcmd.c (address_info): Restore quotes in output.
3549 * valops.c (value_of_local): Restore quotes in error message.
3551 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3553 * symtab.c (symbol_demangled_name): New function.
3554 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3555 turning most of it into a function.
3556 (symbol_demangled_name): Export.
3558 2002-10-23 Michael Snyder <msnyder@redhat.com>
3560 * valops.c (value_of_local): Restore quotes in error message.
3562 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3564 * symtab.c (symbol_init_language_specific): New function.
3565 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3566 turning most of it into a function.
3567 (symbol_init_language_specific): Export.
3569 2002-10-23 David Carlton <carlton@math.stanford.edu>
3571 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3572 (dwarf_attr_name): Ditto.
3573 (dwarf_type_encoding_name): Ditto.
3574 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3575 (process_die): Handle DW_TAG_namespace,
3576 DW_TAG_imported_declaration, DW_TAG_imported_module.
3577 (read_namespace): New function.
3579 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3581 * configure.in: Define NEW_PROC_API on Interix too.
3582 * configure: Regenerate.
3584 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3586 * configure: Regenerate using the proper version of autoconf.
3588 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3590 * findvar.c (read_var_value): Temporarily disable TLS code, until
3591 complete TLS support is added.
3593 2002-10-21 Jim Blandy <jimb@redhat.com>
3594 Elena Zannoni <ezannoni@redhat.com>
3596 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3597 for thread local storage locations.
3598 (struct symbol): Add objfile field.
3599 (SYMBOL_OBJFILE): Define.
3600 * dwarf2read.c (is_thread_local): New static variable.
3601 (new_symbol): If variable is in thread local fill in address class
3602 and objfile appropriately.
3603 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3605 * printcmd.c (address_info): Print the information for thread
3606 local storage variable.
3607 * findvar.c (read_var_value): In case of thread local variable,
3608 defer to the target vector code to compute address.
3610 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3612 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3613 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3615 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3617 * symtab.h (address_class): Rename
3618 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3619 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3620 * printcmd.c (address_info): Ditto.
3621 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3623 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3625 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3626 DBREG_DRX macro to acces debug registers.
3628 * Makefile.in (i386obsd-tdep.o): New target.
3630 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3631 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3633 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3634 * config/i386/obsd.mt: New file.
3635 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3636 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3637 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3638 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3639 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3640 * i386obsd-tdep.c: New file.
3642 2002-10-19 Adam Fedor <fedor@gnu.org>
3644 * objc-exp.y (name_not_typename): Fix invalid comment.
3646 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3648 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3649 to allocate partial syms and macro byte caches.
3651 2002-10-18 David Carlton <carlton@math.stanford.edu>
3653 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3655 2002-10-18 Adam Fedor <fedor@gnu.org>
3657 * stabsread.c (find_name_end): New function.
3658 (define_symbol): Use it.
3660 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3662 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3663 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3664 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3665 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3667 2002-10-17 David Carlton <carlton@math.stanford.edu>
3669 * symfile.h: Add opaque declaration for struct obstack.
3670 Declare obsavestring to take a const char *.
3671 * symfile.c (obsavestring): Make first argument a const char *.
3673 2002-10-16 Adam Fedor <fedor@gnu.org>
3675 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3676 names when matching breakpoints in current file.
3678 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3680 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3681 (read_tag_pointer_type): Add address class support.
3682 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3683 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3685 * gdbarch.h, gdbarch.c: Regenerate.
3686 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3687 (make_type_with_address_space, recursive_type_dump): Add address
3689 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3690 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3691 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3693 2002-10-16 Klee Dienes <kdienes@apple.com>
3695 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3696 to get the last character of a char[] buffer, not
3697 name[sizeof(vptr_name)-1].
3699 2002-10-14 Adam Fedor <fedor@gnu.org>
3701 * symtab.h: New objc_specific struct.
3702 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3703 (SYMBOL_DEMANGLED_NAME): Likewise.
3705 2002-10-14 Adam Fedor <fedor@gnu.org>
3707 * symfile.c (init_filename_language_table): Add ObjC file extension.
3709 2002-10-14 Adam Fedor <fedor@gnu.org>
3711 * utils.c (puts_filtered_tabular): New function.
3712 (fprintf_symbol_filtered): Get ObjC demangled name.
3713 * defs.h (puts_filtered_tabular): Declared.
3715 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3717 * c-lang.h (c_type_print_varspec_prefix): Delete.
3718 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3719 ``need_post_space'' parameter. Adjust all callers.
3721 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3723 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3724 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3725 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3726 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3728 2002-10-13 Adam Fedor <fedor@gnu.org>
3730 * source.c (print_source_lines): Update comments.
3732 2002-10-13 Adam Fedor <fedor@gnu.org>
3734 * valops.c (value_of_local): New function.
3735 (value_of_this): Use it.
3736 * value.h (value_of_local): Declared.
3738 2002-10-13 Adam Fedor <fedor@gnu.org>
3740 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3741 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3743 2002-10-12 Adam Fedor <fedor@gnu.org>
3745 * language.c (binop_result_type): Add language_objc to case.
3746 (integral_type): Likewise.
3747 (character_type): Likewise.
3748 (string_type): Likewise.
3749 (boolean_type): Likewise.
3750 (structured_type): Likewise.
3751 (binop_type_check): Likewise.
3753 2002-10-11 Adam Fedor <fedor@gnu.org>
3755 * printcmd.c (address_info): Print 'self' for ObjC.
3757 2002-10-11 Adam Fedor <fedor@gnu.org>
3759 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3762 2002-10-11 Adam Fedor <fedor@gnu.org>
3764 * language.h (CAST_IS_CONVERSION): Add language_objc.
3766 2002-10-11 Adam Fedor <fedor@gnu.org>
3768 * defs.h (enum language): Add language_objc.
3770 2002-10-11 Klee Dienes <kdienes@apple.com>
3772 * corefile.c (read_memory_typed_address): New function.
3773 * gdbcore.h (read_memory_typed_address): Add prototype.
3774 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3775 to read a value destined for a CORE_ADDR, not read_memory_integer.
3776 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3777 (f77_get_dynamic_lowerbound): Ditto.
3779 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3781 * utils.c (string_to_core_addr): After turning string into
3782 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3783 which will do necessary sign-extension, etc.
3785 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3787 * c-exp.y (THIS): Delete token and grammar rule.
3788 (yylex): Don't return THIS.
3789 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3790 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3791 * demangle.c (cplus_markers): Update comment. Put '$'
3792 first. Remove CPLUS_MARKER.
3793 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3794 * jv-exp.y (THIS): Delete token and grammar rule.
3795 (yylex): Don't return THIS.
3796 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3797 * objc-exp.y (THIS): Delete token and grammar rule.
3798 (yylex): Don't return THIS.
3799 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3800 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3801 (read_member_functions): Likewise for opname.
3802 (read_tilde_fields): Use is_cplus_marker.
3804 * defs.h (CPLUS_MARKER): Don't define.
3805 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3806 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3807 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3808 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3809 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3811 * config/i386/tm-i386v4.h: Delete file.
3812 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3813 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3814 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3815 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3816 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3817 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3818 * config/i386/i386v4.mt (TM_FILE): Likewise.
3819 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3821 2002-10-10 Marko Mlinar <markom@opencores.org>
3823 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3824 accidentially not commited 2002-10-09
3825 * gdbarch.h, gdbarch.c: Re-generate.
3827 2002-10-09 Marko Mlinar <markom@opencores.org>
3829 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3830 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3831 * gdbarch.h, gdbarch.c: Re-generate.
3833 2002-10-08 Petr Sorfa <petrs@caldera.com>
3835 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3837 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3838 so we can work on more than one compilation unit at a time. This
3839 helps prepare GDB to handle inter-CU die references.
3840 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3841 the code to be defined before struct comp_unit_head.
3842 (comp_unit_head): Added new members - offset, cu_head,
3843 begin_die, next and dwarf2_abbrevs.
3844 (dwarf2_abbrevs): Removed single static var; now member of
3845 struct comp_unit_head.
3846 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3848 (psymtab_to_symtab_1): Changed to work with the new
3849 struct comp_unit_head.
3850 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3851 constructs the dwarf2_abbrevs[] inside the cu_header.
3852 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3853 dwarf2_abbrev table to clean up.
3854 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3855 handling of dwarf2_abbrevs inside the cu_header.
3856 (read_partial_die): Now supports the call to the new
3857 dwarf2_lookup_abbrev.
3858 (read_full_die): Now supports the call to the new
3859 dwarf2_lookup_abbrev.
3861 2002-10-06 Christopher Faylor <cgf@redhat.com>
3863 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3864 insure that shell variables, such as "transformed_name" are propagated
3865 to later shell statements in rule.
3867 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3869 * config/i386/nm-i386sco.h: Add protection against
3870 multiple-inclusion. Include "i386/nm-i386v.h".
3871 (REGISTER_U_ADDR): Remove define.
3872 (i386_register_u_addr): Remove prototype.
3874 2002-10-04 Michael Snyder <msnyder@redhat.com>
3876 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3877 before treating it as a single-step event.
3879 2002-10-03 Adam Fedor <fedor@gnu.org>
3881 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3882 (objc_demangle): Remove assignment in if statements, Replace
3884 (add_msglist): Likewise.
3885 (end_msglist): Likewise.
3886 (complare_selectors): Likewise.
3887 (selectors_info): Likewise.
3888 (compare_classes): Likewise.
3889 (classes_info): Likewise.
3890 (print_object_command): Likewise.
3891 (find_objc_msgcall_submethod): Replace PTR with void *.
3892 * objc-lang.h: Remove check for __STDC__.
3894 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3896 * ui-out.h (ui_out_field_fmt_int): New prototype.
3897 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3898 of field width and alignment.
3899 * stack.c (print_frame_info_base): When printing frame level, use
3900 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3903 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3905 * MAINTAINERS: Add self to Write After Approval list.
3907 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3909 * infcmd.c (interrupt_target_command_wrapper): Delete.
3910 (interrupt_target_command): Make non static.
3911 (nofp_registers_info): Make static.
3912 * stack.c (return_command_wrapper): Delete.
3913 (return_command): Make non static.
3915 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3917 * event-top.c (gdb_setup_readline): New function. Code moved from
3918 _initialize_event_loop().
3919 (_initialize_event_loop): Call gdb_setup_readline().
3921 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3923 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3924 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3925 * gdbarch.h, gdbarch.c: Re-generate.
3927 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3930 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3932 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3933 of fill_in_vptr_fieldno.
3935 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3937 * inferior.h (registers_info, stepi_command, nexti_command,
3938 continue_command, interrupt_target_command): Export from infcmd.c.
3939 * frame.h (args_info, selected_frame_level_changed_hook,
3940 return_command): Export from stack.c.
3941 * v850ice.c (stepi_command, nexti_command, continue_command): use
3942 prototypes from inferior.h.
3943 * tracepoint.c (registers_info, args_info, locals_info): Use
3944 prototypes from frame.h and inferior.h.
3945 * Makefile.in (mi-main.o): Add dependency on frame.h.
3947 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3949 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3950 value in register 3 adjusted by ppc_gp0_regnum.
3952 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3954 2002-10-02 Marko Mlinar <markom@opencores.org>
3956 * MAINTAINERS: Add myself to the Write After Approval list.
3958 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3960 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3961 of the section for the N64 ABI, fixed.
3963 * config/mips/tm-irix6.h: Include solib.h.
3965 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3967 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3970 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3972 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3973 and that "mi0" syntax has been removed.
3975 2002-09-30 David Carlton <carlton@math.stanford.edu>
3977 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3978 * ppc-sysv-tdep.c: #include "gdb_string.h".
3979 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3982 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3984 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3985 "vrsave"'s register number.
3987 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3989 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3990 use frame_unwind_signed_register to obtain the PC.
3991 (mips_frame_chain): Handle a generic dummy frame.
3992 (mips_init_extra_frame_info): When a generic dummy frame, don't
3993 re-compute the frame base.
3994 (mips_pop_frame): Handle generic dummy frames.
3995 (mips_gdbarch_init): When generic dummy frames, set
3996 use_generic_dummy_frames, push_dummy_frame to
3997 generic_push_dummy_frame, pc_in_call_dummy to
3998 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3999 generic_save_dummy_frame_tos.
4001 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4003 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
4004 against TOP when TOP was explictly set.
4005 (generic_push_dummy_frame): Set TOP to zero.
4007 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
4009 * event-loop.c (start_event_loop): Rename variable 'result' to
4010 'gdb_result', to avoid conflicts with upcoming intepreters changes.
4012 2002-09-30 Keith Seitz <keiths@redhat.com>
4014 * gdb-events.sh (selected_thread_changed): New event.
4015 * gdb-events.c: Regenerated.
4016 * gdb-events.h: Regenerated.
4018 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
4020 * MAINTAINERS: Add self to Write After Approval list.
4022 2002-09-30 Fernando Nasser <fnasser@redhat.com>
4024 * disasm.c: New file.
4025 * disasm.h: New file.
4026 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4027 (compare_lines): Ditto.
4028 (dump_insns): Ditto.
4029 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4031 (do_assembly_only): Ditto.
4032 (do_disassembly): Renamed to gdb_disassembly and moved to
4033 disasm.c. Sdded uiout argument.
4034 * Makefile.in: Add new files. Reorder SFILES list. Update
4035 dependencies. Include libgdb.a later in the insight executable.
4037 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4039 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4040 bfd/elf64-alpha-fbsd.c.
4042 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4044 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4047 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4049 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4051 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4053 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4054 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4055 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4056 (S_msg_sig_post_reply): Ditto.
4058 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
4060 * sh-tdep.c (sh_use_struct_convention): Use definition according
4062 (sh_push_arguments): Store in register with correct endianess.
4063 (sh_default_store_return_value): Ditto.
4064 (sh_gdbarch_init): Set sizeof long double to 8.
4066 2002-09-27 Mark Kettenis <kettenis@gnu.org>
4068 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4069 Fix some whitespace problems.
4071 2002-09-27 David Carlton <carlton@math.stanford.edu>
4073 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4074 (mcore-tdep.o): Ditto.
4075 (ns32k-tdep.o): Ditto.
4076 (ns32knbsd-tdep.o): Ditto.
4078 (vax-tdep.o): Ditto.
4079 * cris-tdep.c: #include "gdb_string.h"
4080 * mcore-tdep.c: Ditto.
4081 * ns32k-tdep.c: Ditto.
4082 * ns32knbsd-tdep.c: Ditto.
4084 * vax-tdep.c: Ditto.
4086 2002-09-27 David Carlton <carlton@math.stanford.edu>
4088 * config/djgpp/fnchange.lst: Add entries for
4089 gdb/testsuite/gdb.c++/m-static files.
4091 2002-09-27 Jim Wilson <wilson@redhat.com>
4093 * MAINTAINERS: Add myself to the Write After Approval list.
4095 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4097 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4100 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4102 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4105 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4107 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4108 (rs6000_struct_return_address): Delete variable.
4109 (rs6000_store_struct_return): Update.
4110 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4111 deprecated_extract_struct_value_address.
4112 (rs6000_frame_align): New function.
4113 (rs6000_gdbarch_init): Set frame_align.
4115 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4117 From Grace Sainsbury <graces@redhat.com>:
4118 * Makefile.in (gdbtk-main.o): New target.
4119 (gdb.o): New target.
4121 (main.o): Update dependencies.
4122 (gdb$(EXEEXT)): Add gdb.o.
4123 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4124 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4125 (SUBDIR_GDBTK_CLEAN): Set.
4126 (install-gdbtk): Install the insight binary.
4127 (uninstall-gdbtk): New target.
4128 (all-gdbtk, clean-gdbtk): New rule.
4129 * top.c (use_windows): Default to zero.
4130 * main.c: Include "main.h".
4132 (struct captured_main_args): Delete.
4133 (gdb_main): New function.
4137 2002-09-25 Andrew Cagney <cagney@redhat.com>
4139 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4140 (frame_map_regnum_to_name): New function.
4141 (frame_map_name_to_regnum): New function.
4142 * frame.h (frame_map_name_to_regnum): Declare.
4143 (frame_map_regnum_to_name): Declare.
4144 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4145 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4146 * parse.c: Do not include "builtin-regs.h".
4147 (target_map_name_to_register): Delete function.
4148 (write_dollar_variable): Use frame_map_name_to_regnum.
4149 * parser-defs.h (target_map_name_to_register): Delete declaration.
4150 * expprint.c: Include "frame.h".
4151 (print_subexp): Use frame_map_regnum_to_name.
4152 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4153 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4155 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4157 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4158 wasn't saved, and the next innermost frame is a dummy, return the
4159 dummy frame's link register.
4161 2002-09-24 Jim Blandy <jimb@redhat.com>
4163 Fix from Paul Breed:
4164 * main.c (captured_main): Add a `break' after the case for 'b'.
4166 2002-09-24 Keith Seitz <keiths@redhat.com>
4168 * varobj.c (c_type_of_child): Use get_target_type instead
4169 of TYPE_TARGET_TYPE.
4171 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4173 * source.c (get_current_or_default_source_symtab_and_line): Remove
4175 (set_default_source_symtab_and_line): New function. Attempts to
4176 determine a source file to list lines from if one is not currently
4178 (get_current_source_symtab_and_line): Initialize sal.pc and
4180 (set_current_source_symtab_and_line): Mark argument as const.
4181 * source.h: Update declarations and comments.
4182 * linespec.c (decode_line_1): Replace call to removed routine above.
4183 * stack.c (print_frame_info_base): Ditto.
4184 * cli/cli-cmds.c (edit_command): Ditto.
4185 (list_command): Ditto.
4187 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4189 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4190 sal.pc and sal.end fields.
4191 (get_current_or_default_source_symtab_and_line): Ditto.
4192 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4193 so we do not cause a new source symtab to be searched for (reverting an
4194 unintentional change from the 2002-09-20 patch).
4195 * scm-lang.c (scm_unpac): Ditto.
4197 2002-09-21 Andrew Cagney <cagney@redhat.com>
4199 * complaints.c (symfile_explanations): Remove new-line from
4200 ``isolated_message''.
4201 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4202 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4204 2002-09-20 Nick Clifton <nickc@redhat.com>
4206 * NEWS: Announce that V850EA ISA is no longer supported.
4207 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4209 2002-09-20 David Carlton <carlton@math.stanford.edu>
4211 * Makefile.in (c-lang.o): Correct dependencies.
4212 (utils.o): Gather dependencies.
4214 * c-lang.c: #include "gdb_string.h"
4216 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4218 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4219 * cli/cli-cmds.c (list_command): New function. Implements the new
4221 (_init_cli_cmds): Add new command definition.
4222 * gdb.1: Document edit command.
4223 * doc/gdb.texinfo: Document edit command.
4225 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4227 * source.c: Make global variables current_source_symtab and
4228 current_source_line static.
4229 (list_command): Moved to cli/cli-cmds.c.
4230 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4231 (get_first_line_listed): New accessor function.
4232 (get_lines_to_list): New accessor function.
4233 (get_current_source_symtab_and_line): New function. Retrieves the
4234 position in the source code that we consider current.
4235 (get_current_or_default_source_symtab_and_line): New function.
4236 Like the above but attempts to determine a default position if one
4237 is not currently defined.
4238 (set_current_source_symtab_and_line): New function. Sets the source
4239 code position considered current and returns the previously set one.
4240 (clear_current_source_symtab_and_line): Reset stored information about
4241 a current source line.
4242 (_initialize_source): Remove registration for the "list" command and
4244 * source.h: Add declarations for the new functions above.
4245 * symtab.h: Remove declarations for the global variables mentioned
4247 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4248 obtain current source line.
4249 * linespec.c (decode_line_1): Ditto.
4250 * macroscope.c (default_macro_scope): Ditto.
4251 * scm-lang.c (scm_unpac): Ditto.
4252 * stack.c (print_frame_info_base): Ditto.
4253 * symfile.c (clear_symtab_users): Ditto.
4254 * symtab.c (decode_line_spec): Ditto.
4255 * cli/cli-cmds.c (list_command): Moved here from source.c.
4256 (ambiguous_line_spec): Moved here from source.c.
4257 (_init_cli_cmds): Add definition for "list" and its alias.
4258 * Makefile.in: Update dependencies.
4260 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4262 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4263 with what gcc thinks is correct.
4265 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4267 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4268 multiple register push instruction.
4270 2002-09-19 Jim Blandy <jimb@redhat.com>
4272 Add support for distinct host and target character sets.
4273 * charset.c, charset.h: New files.
4274 * c-exp.y: #include "charset.h".
4275 (yylex): Convert character and string literals to the target
4276 character set, before returning them as the semantic value of the
4278 * c-lang.c: #include "charset.h".
4279 (c_emit_char): Use charset-specific methods to recognize
4280 characters with backslash escape forms, to decide which characters
4281 to print literally and which to print using numeric escape
4282 sequences, and to convert target characters to host characters
4284 * utils.c: #include "charset.h".
4285 (no_control_char_error): New function.
4286 (parse_escape): Use charset-specific methods to recognize
4287 backslash escapes, parse `control character' notation, and convert
4288 characters from the host character set to the target character set.
4289 * configure.in: Set the default host character set.
4290 Check where to find iconv, and what its argument types might be.
4291 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4292 * Makefile.in (SFILES): List charset.c.
4293 (COMMON_OBS): List charset.o.
4294 (charset.o): New rule.
4295 (charset_h): New header dependency variable.
4296 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4297 (LIBICONV): New variable, set by configure.
4298 (CLIBS): Include $(LIBICONV) here.
4299 * aclocal.m4, config.in, configure: Regenerated.
4301 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4303 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4306 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4308 * gdb_mbuild.sh: New file.
4310 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4312 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4314 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4316 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4317 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4318 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4319 valops.c, value.h: Revert previous change.
4321 2002-09-18 Michael Snyder <msnyder@redhat.com>
4323 Preliminary support for Objective-C:
4324 * defs.h (language_objc): New enum value.
4325 (puts_filtered_tabular): Declaration only, exported from utils.c.
4326 (skip_quoted): Delete, declared in completer.h.
4327 * c-exp.y: Include completer.h.
4330 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4331 New operator enum values.
4332 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4333 * language.c (binop_result_type): Handle language_objc case.
4334 (integral_type, character_type, string_type, boolean_type,
4335 structured_type, binop_type_check): Ditto.
4336 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4337 (struct objc_specific): Add to general_symbol_info.
4338 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4339 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4340 * parser-defs.h (struct objc_class_str): New struct type.
4341 (start_msglist, end_msglist, add_msglist): Declaration only,
4342 exported from objc-lang.c.
4343 * value.h (value_of_local, value_nsstring,
4344 call_function_by_hand_expecting_type): Exported from valops.c.
4345 * valops.c (find_function_addr): Export.
4346 (call_function_by_hand_expecting_type): New function.
4347 (value_of_local): New function.
4348 * symfile.c (init_filename_language_table): Add ".m" extension
4350 * utils.c (puts_filtered_tabular): New function.
4351 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4352 (set/show demangle): Extend help-string to refer to ObjC.
4353 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4354 * stabsread.c (symbol_reference_defined): Objective-C symbols
4355 may contain colons: make allowances when scanning stabs strings
4357 (objc_find_colon): New function.
4358 * printcmd.c (address_info): If language == objc then print
4359 "self" instead of "this".
4360 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4361 OP_NSSTRING, and OP_SELF.
4362 (prefixify_subexp): Ditto.
4363 * source.c (print_source_lines): Mention objc in comment.
4364 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4367 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4369 * complaints.h: Update copyright.
4370 (struct complaints): Declare.
4371 (struct complaint): Make `message' constant.
4372 (internal_complaint): Declare.
4373 (complaint): Declare.
4374 (complaint_root): Delete declaration.
4375 (symfile_complaints): Delete declaration.
4376 (struct complaints): Add opaque declaration.
4377 (clear_complaints): Add a complaints parameter.
4378 * complaints.c: Update copyright.
4379 (enum complaint_series): Define.
4380 (complaint_root): Delete.
4381 (struct complaints): Define.
4382 (complaint_sentinel, symfile_complaint_book): New variables.
4383 (symfile_explanations, symfile_complaints): New variables.
4385 (get_complaints): New function.
4386 (vcomplaint): New function.
4387 (complaint): New function.
4388 (internal_complaint): New function.
4389 (complain): Call vcomplain with symfile_complaint.
4390 (clear_complaints): Rewrite.
4391 (_initialize_complaints): Use add_setshow_command.
4392 * Makefile.in (complaints.o): Update dependencies.
4393 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4394 to call to clear_complaints.
4395 (new_symfile_objfile, reread_symbols): Ditto.
4396 (oldsyms_complaint): Delete.
4397 (empty_symtab_complaint, unknown_option_complaint): Delete.
4398 (free_named_symtabs): Use complaint instead of complain.
4400 2002-09-18 Michael Snyder <msnyder@redhat.com>
4402 Contributed by Apple Computer, Inc. Merged with current sources
4403 by Adam Fedor <fedor@doc.com> [cagney].
4405 * objc-lang.c: First clean-up round: comments, indentation.
4406 * objc-lang.h: Ditto.
4407 * objc-lang.y: Ditto.
4409 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4411 * maint.c (maintenance_internal_error): Print the parameter as the
4413 (maintenance_internal_warning): New function.
4414 (_initialize_maint_cmds): Add command `maint internal-warning'.
4416 * defs.h (internal_warning, internal_vwarning): Declare.
4417 * utils.c (struct internal_problem): Define.
4418 (internal_vproblem): New function.
4419 (internal_warning): New function.
4420 (internal_vwarning): New function.
4421 (internal_warning_problem, internal_error_problem): New variables.
4422 (internal_verror): Just call internal_vproblem.
4424 2002-09-18 Michael Snyder <msnyder@redhat.com>
4426 * objc-lang.c: New file, support for Objective-C.
4427 Preliminary check-in, not yet integrated into gdb.
4428 * objc-lang.h: New file.
4429 * objc-exp.y: New file.
4431 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4433 * infrun.c (signal_stop_update): Convert definition to ISO C.
4434 (signal_print_update): Ditto.
4435 (signal_pass_update): Ditto.
4436 * inflow.c (terminal_save_ours): Ditto.
4438 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4441 * config/djgpp/fnchange.lst: Handle name clashes between
4442 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4445 * i386-linux-tdep.h: Fix tipo.
4447 2002-09-18 Adam Fedor <fedor@gnu.org>
4449 * MAINTAINERS: Add myself to the Write After Approval list.
4451 2002-09-18 Jim Blandy <jimb@redhat.com>
4453 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4454 texthigh and textlow to reader-specific structs caused
4455 objfile_relocate to miss them. This is fixable, but the work that
4456 the change was supposed to prepare GDB for never got done anyway.
4458 2002-09-18 David Carlton <carlton@math.stanford.edu>
4460 * MAINTAINERS: Alphabetize Write After Approval list.
4462 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4465 * values.c (value_static_field): Call read_var_value.
4467 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4469 * valops.c (hand_function_call): Align the initial stack pointer
4470 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4471 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4473 * mips-tdep.c (mips_frame_align): New function.
4474 (mips_gdbarch_init): Set frame_align.
4475 * gdbarch.sh (FRAME_ALIGN): New method.
4476 * gdbarch.h, gdbarch.c: Re-generate.
4478 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4480 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4483 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4485 * NEWS: Mention that MIPS $fp behavior changed.
4486 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4487 reference to FP_REGNUM.
4488 (mipsnbsd_cannot_store_register): Ditto.
4489 * mips-linux-nat.c: Update copyright.
4490 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4491 (mips_linux_cannot_store_register): Ditto.
4492 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4493 * config/mips/tm-mips.h: Update copyright.
4494 (FP_REGNUM): Delete macro.
4495 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4496 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4497 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4498 (mips_r3041_reg_names, mips_r3051_reg_names)
4499 (mips_r3081_reg_names): Replace "fp" with "".
4502 2002-09-17 Theodore A. Roth <troth@verinet.com>
4504 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4505 generic_read_register_dummy() (PR gdb/703).
4506 (avr_push_return_address): #if 0 out unused vars.
4507 (avr_gdbarch_init): Enable use of avr_push_return_address().
4509 2002-09-17 Michael Snyder <msnyder@redhat.com>
4511 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4512 RTE will take care of it.
4514 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4516 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4517 invalid, return SP_REGNUM.
4519 2002-09-17 Michael Snyder <msnyder@redhat.com>
4521 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4522 point registers without sign extension.
4524 2002-09-17 Andrew Cagney <cagney@redhat.com>
4526 * blockframe.c (deprecated_read_register_dummy): Rename
4527 generic_read_register_dummy.
4528 * frame.c (frame_unwind_signed_register): New function.
4529 (frame_unwind_unsigned_register): New function.
4530 * frame.h (frame_unwind_signed_register): Declare.
4531 (frame_unwind_unsigned_register): Declare.
4532 (deprecated_read_register_dummy): Rename
4533 generic_read_register_dummy.
4535 * h8300-tdep.c (h8300_frame_chain): Update.
4536 (h8300_frame_saved_pc): Update.
4537 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4538 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4539 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4540 (s390_frame_chain): Update.
4541 * v850-tdep.c (v850_find_callers_reg): Update.
4542 (v850_frame_saved_pc): Update.
4543 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4544 (m32r_find_callers_reg): Update.
4545 (m32r_frame_saved_pc): Update.
4546 * sh-tdep.c (sh_find_callers_reg): Update.
4547 (sh64_get_saved_pr): Update.
4548 (sh_init_extra_frame_info): Update.
4549 (sh_init_extra_frame_info): Update.
4550 (sh64_init_extra_frame_info): Update.
4551 (sh64_init_extra_frame_info): Update.
4552 * mcore-tdep.c (mcore_find_callers_reg): Update.
4553 (mcore_frame_saved_pc): Update.
4554 (mcore_init_extra_frame_info): Update.
4555 * i386-tdep.c (i386_frame_saved_pc): Update.
4556 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4557 (ia64_init_extra_frame_info): Update.
4558 (ia64_init_extra_frame_info): Update.
4559 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4560 * cris-tdep.c (cris_init_extra_frame_info): Update.
4561 * avr-tdep.c (avr_frame_chain): Update.
4562 (avr_init_extra_frame_info): Update.
4563 (avr_frame_saved_pc): Update.
4564 * arm-tdep.c (arm_find_callers_reg): Update.
4565 (arm_init_extra_frame_info): Update.
4566 (arm_frame_saved_pc): Update.
4568 2002-09-17 Tom Tromey <tromey@redhat.com>
4570 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4573 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4575 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4576 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4578 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4581 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4583 * osfsolib.c: Remove file, replaced by solib-osf.c.
4584 * Makefile.in: Remove compilation rules for osfsolib.c.
4586 2002-09-16 David Carlton <carlton@math.stanford.edu>
4588 * cp-valprint.c (cp_print_class_method): Correct args to
4589 check_stub_method_group.
4591 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4593 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4594 `set architecture'. Unify naming convention of functions.
4595 (h8300_skip_prologue): Improve prologue analysis.
4596 (h8300_push_arguments): Rewritten to more closely match GCC's
4597 bizarre argument-passing behavior, along with the comment describing
4599 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4600 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4601 sim, remote-e7000.c, remote-hms.c and remote.c
4603 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4605 * i386-tdep.c (gdb_print_insn_i386): Removed.
4606 (i386_print_insn): New function.
4607 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4608 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4611 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4613 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4616 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4618 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4619 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4620 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4622 2002-09-13 Christopher Faylor <cgf@redhat.com>
4624 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4626 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4628 * gdbtypes.c (check_stub_method): Make static.
4629 (check_stub_method_group): New function.
4630 * gdbtypes.h: Update prototypes.
4631 * cp-support.c: New file.
4632 * cp-support.h: New file.
4634 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4635 (update_method_name_from_physname): New function.
4636 (read_member_functions): Correct method names for operators
4637 and v3 constructors/destructors. Separate v2 constructors and
4639 * Makefile.in (stabsread.o): Update dependencies.
4640 (SFILES): Add cp-support.c.
4641 (COMMON_OBS): Add cp-support.o.
4642 (cp_support_h, cp-support.o): Add.
4644 * cp-valprint.c (cp_print_class_method): Call
4645 check_stub_method_group instead of check_stub_method. Remove
4647 * p-valprint.c (pascal_object_print_class_method): Likewise.
4648 * valops.c (search_struct_method): Likewise.
4649 (find_method_list, value_struct_elt_for_reference): Likewise.
4651 2002-09-13 Andrew Cagney <cagney@redhat.com>
4653 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4654 * gdbarch.h, gdbarch.c: Regenerate.
4656 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4658 * frame.c (find_saved_register): Delete function.
4659 * frame.h (find_saved_register): Delete declaration.
4662 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4664 * mips-tdep.c (read_next_frame_reg): Re-hack using
4665 frame_register_unwind.
4667 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4669 * mips-tdep.c (mips_get_saved_register): Re-hack using
4670 frame_register_unwind.
4672 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4674 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4675 vector. Will be useful for Interix.
4676 * gdbarch.h, gdbarch.c: Regenerate.
4678 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4679 name of the malloc function by NAME_OF_MALLOC.
4681 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4683 * value.h (find_function_in_inferior): Add const keyword to
4684 one of the parameters. Allows us to invoke this function with
4686 * valops.c (find_function_in_inferior): Likewise.
4688 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4690 * exec.c (xfer_memory): Fix compilation warning with old versions
4692 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4694 2002-09-12 David Carlton <carlton@math.stanford.edu>
4696 * symtab.h: Run through gdb_indent.h.
4697 Add 2002 to Copyright year list.
4699 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4701 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4703 * MAINTAINERS: Add myself to write after approval list.
4705 2002-09-11 J. Brobecker <brobecker@gnat.com>
4707 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4709 2002-09-11 J. Brobecker <brobecker@gnat.com>
4711 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4714 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4716 * procfs.c (do_detach): Clear current signal, not just fault.
4717 Corrects problem with breakpoint trap signal leaking to detached
4720 2002-09-10 Michael Snyder <msnyder@redhat.com>
4722 * buildsym.c (finish_block): Protect against null pointer.
4724 2002-09-10 Andrew Cagney <cagney@redhat.com>
4726 * infcmd.c (default_print_registers_info): Send all output to
4727 ``file'' instead of ``gdb_stdout''.
4729 2002-09-10 Michael Snyder <msnyder@redhat.com>
4731 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4732 LONGEST, and use signed register read (addresses are sign-
4735 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4737 * event-loop.c (gdb_do_one_event): Make public.
4738 * event-loop.h (gdb_do_one_event): Declare.
4740 2002-09-10 Jeff Law <law@redhat.com>
4742 * infttrace.c (child_resume): Simplify and rework to avoid
4745 2002-09-09 Fred Fish <fnf@intrinsity.com>
4747 * printcmd.c (print_scalar_formatted): "len" is the number of
4748 target bytes, NOT the number of target bits.
4750 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4752 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4753 * top.c (init_main): Set rl_terminal_name.
4755 2002-09-08 Aidan Skinner <aidan@velvet.net>
4757 * ada-lang.c (ada_array_bound, ada_type_match,
4758 _initialize_ada_language): Fix K&R definitions.
4759 * ada-tasks.c (get_current_task): Fix K&R definitions.
4760 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4762 2002-09-07 Christopher Faylor <cgf@redhat.com>
4764 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4767 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4769 * i386-tdep.c (i386_register_virtual_type,
4770 i386_register_convertible, i386_register_convert_to_virtual,
4771 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4772 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4773 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4774 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4775 Don't set push_arguments twice.
4777 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4778 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4779 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4780 sigtramp_end to NULL.
4781 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4783 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4785 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4788 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4789 * gdbarch.h, gdbarch.c: Re-generate.
4790 * blockframe.c (find_pc_sect_partial_function): Convert to use
4791 SIGTRAMP_START_P predicate.
4793 2002-09-05 Michael Snyder <msnyder@redhat.com>
4795 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4796 generic_dummy_frame method and old method. Also distinguish
4797 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4798 (arm_extract_return_value): Use new regcache method.
4800 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4801 adjustment that doesn't conform to the ABI.
4802 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4803 saved regcache, not from current regcache.
4805 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4807 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4810 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4812 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4813 if arm_apcs_32 is false.
4815 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4817 GDB 5.3 branch created.
4819 2002-09-03 Theodore A. Roth <troth@verinet.com>
4821 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4822 generic_unwind_get_saved_register.
4824 2002-09-03 David Carlton <carlton@math.stanford.edu>
4826 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4827 argument (PR gdb/653). Update call to smash_to_method_type.
4828 (read_structure_scope): Update call to dwarf2_add_member_fn.
4830 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4832 * x86-64-linux-tdep.c: Include gdb_string.h
4833 * x86-64-linux-nat.c: Ditto.
4835 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4837 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4838 when YYDEBUG is set to 1.
4839 * c-exp.y: Likewise.
4840 * f-exp.y: Likewise.
4841 * jv-exp.y: Likewise.
4842 * m2-exp.y: Likewise.
4843 * p-exp.y: Likewise.
4845 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4847 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4849 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4850 solib_svr4_fetch_link_map_offsets to
4851 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4852 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4853 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4854 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4855 solib-svr4.o, and solib-legacy.o.
4856 * config/i386/tm-nbsd.h: Include solib.h.
4858 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4860 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4861 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4862 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4863 comment noting that this needs its own target configuration.
4864 * config/i386/nbsd.mt: New file.
4865 * config/i386/nbsdaout.mt: Remove.
4866 * config/i386/nbsdelf.mt: Ditto.
4867 * config/i386/tm-nbsdaout.h: Ditto.
4869 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4871 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4872 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4873 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4875 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4876 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4877 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4879 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4881 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4882 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4883 * i386-tdep.h (i386bsd_init_abi): New prototype.
4884 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4885 function declaration.
4886 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4887 for NetBSD-a.out or NetBSD-ELF.
4888 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4889 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4890 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4891 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4893 (i386nbsd_pc_in_sigtramp): New function.
4894 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4895 i386nbsd_pc_in_sigtramp.
4896 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4897 and i386nbsdelf_init_abi OS ABI handlers.
4898 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4899 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4901 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4903 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4904 registers if the target really has them.
4906 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4908 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4911 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4913 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4915 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4916 (alphanbsd_skip_sigtramp_frame): New functions.
4917 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4918 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4919 to alphanbsd_sigcontext_addr.
4921 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4923 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4925 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4926 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4927 nbsd_pc_in_sigtramp.
4928 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4929 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4930 * nbsd-tdep.c: Include gdb_string.h.
4931 (nbsd_pc_in_sigtramp): New function.
4932 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4933 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4934 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4935 ppcnbsd_pc_in_sigtramp.
4936 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4937 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4938 shnbsd_pc_in_sigtramp.
4939 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4940 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4941 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4943 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4945 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4946 watchpoints to NULL.
4947 (insert_breakpoints): set val field of watchpoints if NULL.
4950 2002-08-29 Jim Blandy <jimb@redhat.com>
4952 * symtab.c (lookup_symbol_aux): In the cases where we find a
4953 minimal symbol of an appropriate name and use its address to
4954 select a symtab to read and search, use `name' (as passed to us)
4955 as the demangled name when searching the symtab's global and
4956 static blocks, not the minsym's name.
4958 2002-08-29 Keith Seitz <keiths@redhat.com>
4960 * stack.c (print_frame_info_base): Always set current_source_symtab
4961 and current_source_line.
4963 2002-08-29 Donn Terry <donnte@microsoft.com>
4965 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4967 2002-08-28 Keith Seitz <keiths@redhat.com>
4969 * stack.c (select_frame): Add FIXME concerning selected-frame
4971 (select_frame_command): Send selected-frame-level-changed
4972 event notification, but only if the level actually changed.
4973 (up_silently_base): Add selected-frame-level-changed event
4975 (down_silently_base): Likewise.
4977 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4979 * Makefile.in: Update dependencies for all gdb/*.c files.
4981 2002-08-27 Tom Tromey <tromey@redhat.com>
4983 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4984 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4985 Update dependencies.
4986 * i387-tdep.c: Include gdb_string.h.
4987 * osabi.c: Likewise.
4988 * i386-linux-nat.c: Likewise.
4989 * lin-lwp.c: Likewise.
4990 * ax-gdb.c: Likewise.
4991 * signals/signals.c: Likewise.
4992 * jv-valprint.c: Likewise.
4993 * p-lang.c: Likewise.
4994 * c-valprint.c: Likewise.
4995 * cp-abi.c: Likewise.
4997 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4999 * cli/cli-script.h (copy_command_lines): Export.
5000 * breakpoint.c: Include cli/cli-script.h.
5001 * Makefile.in (breakpoint.o): Update dependencies.
5003 2002-08-26 Michael Snyder <msnyder@redhat.com>
5005 * breakpoint.c (insert_breakpoints): Protect all references
5006 to 'process_warning'. Shorten long lines.
5008 2002-08-26 Joel Brobecker <brobecker@gnat.com>
5010 * cli/cli-script.c (copy_command_lines): New function.
5011 * defs.h (copy_command_lines): Export.
5012 * testsuite/gdb.base/commands.exp: New tests for commands
5013 attached to a temporary breakpoint, and for commands that
5014 delete the breakpoint they are attached to.
5016 2002-08-26 Michael Snyder <msnyder@redhat.com>
5018 * breakpoint.c (bpstat_stop_status): Instead of copying the
5019 pointer to the breakpoint commands struct, make a new copy
5020 of the struct and point to that.
5021 (bpstat_clear): Free the commands struct.
5022 (bpstat_clear_actions): Free the commands struct.
5023 (bpstat_do_actions): Free the command actions. Also execute
5024 the local cleanups, instead of deleting them.
5025 (delete_breakpoint): Leave the commands field of the bpstat
5026 chain alone -- it will be freed later.
5028 2002-08-26 Kevin Buettner <kevinb@redhat.com>
5030 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5031 deleted in 2002-08-20 commit. This function is still used by
5034 2002-08-26 Keith Seitz <keiths@redhat.com>
5036 * gdb-events.sh: Add selected-frame-level-changed event.
5037 * gdb-events.c: Regenerated.
5038 * gdb-events.h: Regenerated.
5040 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
5043 * inflow.c (terminal_save_ours): New function to save terminal
5045 * inferior.h (terminal_save_ours): Declare.
5046 * target.c (debug_to_terminal_save_ours): New function.
5047 (cleanup_target): Defaults to_terminal_save_ours.
5048 (update_current_target): Inherit to_terminal_save_ours.
5049 (setup_target_debug): Set to_terminal_save_ours.
5050 * target.h (target_terminal_save_ours): New to save terminal settings.
5051 (target_ops): New member to_terminal_save_ours.
5052 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5053 * hpux-thread.c (init_hpux_thread_ops): Likewise.
5054 * inftarg.c (init_child_ops): Likewise.
5055 * m3-nat.c (init_m3_ops): Likewise.
5056 * procfs.c (init_procfs_ops): Likewise.
5057 * wince.c (init_child_ops): Likewise.
5058 * win32-nat.c (init_child_ops): Likewise.
5059 * sol-thread.c (init_sol_thread_ops): Likewise.
5061 2002-08-26 Mark Kettenis <kettenis@gnu.org>
5063 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5064 use regcache_* functions.
5065 (i386_gdbarch_init): Set store_return_value instead of
5066 deprecated_store_return_value.
5068 * regcache.c (regcache_raw_write_signed,
5069 regcache_raw_write_unsigned): New functions.
5070 * regcache.h (regcache_raw_write_signed,
5071 regcache_raw_write_unsigned): New prototypes.
5073 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5075 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5076 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5077 source file dependencies. Cleanup corresponding generator rules.
5079 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5081 * regcache.h (register_offset_hack): Declare.
5082 (regcache_cooked_read_using_offset_hack): Declare.
5083 (regcache_cooked_write_using_offset_hack): Declare.
5085 * regcache.c (register_offset_hack): New function.
5086 (regcache_cooked_read_using_offset_hack): New function.
5087 (regcache_cooked_write_using_offset_hack): New function.
5088 (regcache_dump): Check that the registers, according to their
5089 offset, are packed hard against each other.
5090 (cooked_xfer_using_offset_hack): New function.
5092 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5094 * regcache.c (struct regcache_descr): Add field register_type.
5095 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5097 (init_regcache_descr): Initialize register_type. Pass the descr
5098 to init_legacy_regcache_descr. Use register_type instead of
5099 REGISTER_VIRTUAL_TYPE.
5100 (register_type): New function.
5101 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5102 * regcache.h (register_type): Declare.
5104 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5106 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5107 instead of deprecated_store_return_value. Fix fallout from
5108 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5110 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5112 * regcache.c (max_register_size): New function.
5113 (init_legacy_regcache_descr): Ensure that max_register_size is
5114 large enough for REGISTER_VIRTUAL_SIZE.
5115 * regcache.h (max_register_size): Declare.
5117 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5119 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5121 (e500_extract_return_value): Change type of valbuf pointer to
5124 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5126 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5129 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5130 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5131 long long) to prevent compiler warning on 64-bit systems.
5133 2002-08-23 Andrew Cagney <cagney@redhat.com>
5135 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5136 (DEPRECATED_STORE_RETURN_VALUE): New method.
5137 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5138 * gdbarch.h, gdbarch.c: Re-generate.
5140 * values.c (set_return_value): Pass current_regcache to
5142 * arch-utils.h (legacy_store_return_value): Declare.
5143 * arch-utils.c (legacy_store_return_value): New function.
5144 (legacy_extract_return_value): Update parameters.
5146 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5148 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5149 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5150 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5151 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5152 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5153 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5154 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5155 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5156 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5157 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5159 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5160 * i386-tdep.c (i386_extract_return_value): Update.
5161 * arch-utils.c (legacy_extract_return_value): Update.
5162 * frv-tdep.c (frv_gdbarch_init): Update.
5163 * cris-tdep.c (cris_gdbarch_init): Update.
5164 * d10v-tdep.c (d10v_gdbarch_init): Update.
5165 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5166 * m68k-tdep.c (m68k_gdbarch_init): Update.
5167 * mcore-tdep.c (mcore_gdbarch_init): Update.
5168 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5169 * s390-tdep.c (s390_gdbarch_init): Update.
5170 * sparc-tdep.c (sparc_gdbarch_init): Update.
5171 * sh-tdep.c (sh_gdbarch_init): Update.
5172 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5173 * v850-tdep.c (v850_gdbarch_init): Update.
5174 * avr-tdep.c (avr_gdbarch_init): Update.
5175 * ia64-tdep.c (ia64_gdbarch_init): Update.
5176 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5177 * vax-tdep.c (vax_gdbarch_init): Update.
5178 * alpha-tdep.c (alpha_gdbarch_init): Update.
5179 * arm-tdep.c (arm_gdbarch_init): Update.
5180 * mips-tdep.c (mips_gdbarch_init): Update.
5181 * i386-tdep.c (i386_gdbarch_init): Update.
5183 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5185 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5186 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5188 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5190 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5193 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5195 * infrun.c (handle_inferior_event): Move a comment outside of a
5196 function call, in order to avoid indent reformatting this part
5197 of the code in an unreadable way.
5199 2002-08-23 Grace Sainsbury <graces@redhat.com>
5201 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5202 when breakpoints fail. Move general breakpoint error messages to
5204 * breakpoint.c (insert_breakpoints): Change warnings when
5205 breakpoints are nto inserted to specify the type. Remove call to
5206 memory_error when hardware breakpoints can't be inserted. Remove
5207 multiple calls to warning so all messages are sent to the user at
5209 (delete_breakpoints): Make insert error messsages more explicit.
5211 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5213 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5214 gdbserver/ChangeLog.
5216 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5218 * i386-tdep.c: Include "objfiles.h".
5219 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5220 skip_trampoline_code.
5221 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5222 (CPLUS_MARKER): Define to '.'.
5224 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5226 (linux_corefile_thread_callback): Increase args->num_notes.
5227 (linux_make_note_section): Initialize thread_args.num_notes, and
5228 use it to determine whether notes for any threads were created.
5230 2002-08-23 Donn Terry <donnte@microsoft.com>
5232 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5233 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5235 (write_with_trace): Conditionalize out the switch branch handling
5236 PCSHOLD if the corresponding macro is not defined. Likewise for
5237 PRSABORT and PRSTOP.
5238 This change will be needed by the Interix port.
5240 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5242 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5243 write_register wherever possible instead of manipulating the
5244 register bytes directly.
5245 Assign VALUE_CONTENTS to a variable and use that.
5246 The GPR numbers are now dependent on the architecture.
5248 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5250 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5252 (skip_prologue): Add support for BookE/e500 instructions.
5253 (e500_extract_return_value): New function.
5254 (frame_get_saved_regs): Add support for saving ev registers and
5256 (e500_store_return_value): New function.
5257 (rs6000_gdbarch_init): Move up default intializations of
5258 deprecated_extract_return_value and store_return_value. Overwrite
5259 init of store_return_value with e500 specific version.
5260 Set extract_return_value for e500.
5262 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5264 * blockframe.c (generic_call_dummy_register_unwind): Use
5265 regcache_cooked_read to catch cases in which the variable is
5266 stored in a pseudo register.
5268 2002-08-22 Andrew Cagney <cagney@redhat.com>
5270 * NEWS: Mention that the i960 has been made obsolete.
5271 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5273 (remote-nrom.o): Obsolete target.
5274 (remote-nindy.o, i960-tdep.o): Ditto.
5275 * remote-nrom.c: Make file obsolete.
5276 * remote-nindy.c, remote-vx960.c: Ditto.
5277 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5278 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5279 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5280 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5281 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5282 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5283 i960-*-vxworks* obsolete.
5284 * MAINTAINERS: Note that the i960 is obsolete.
5286 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5288 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5289 detach to allow reinitialization.
5291 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5293 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5296 2002-08-22 Jim Blandy <jimb@redhat.com>
5298 * coffread.c (coff_symfile_read): Don't try to read the line
5299 number table from disk if the image file doesn't have a symbol
5300 table; we'll never actually look at the info anyway, and Windows
5301 ships DLL's with bogus file offsets for the line number data.
5303 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5305 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5308 2002-08-21 Michael Snyder <msnyder@redhat.com>
5310 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5311 (MSYMBOL_SIZE): Replace macro with function.
5312 (DEFAULT_MIPS_TYPE): Delete unused macro.
5313 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5314 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5316 2002-08-21 Jim Blandy <jimb@redhat.com>
5318 * valops.c (value_cast): Simplify and correct logic for doing a
5319 static cast from a pointer to a base class to a pointer to a
5322 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5324 * infcmd.c (default_print_registers_info): Replace
5326 (registers_info): Use gdbarch_print_registers_info instead of
5328 * inferior.h (default_print_registers_info): Replace
5330 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5331 (DO_REGISTERS_INFO): Change to a predicate function.
5332 * gdbarch.h, gdbarch.c: Regenerate.
5334 2002-08-21 Keith Seitz <keiths@redhat.com>
5336 * gdb-events.sh: Add target-changed event.
5337 * gdb-events.c: Regenerated.
5338 * gdb-events.c: Regenerated.
5339 * valops.c (value_assign): Add target-changed event notification
5340 to inlval_register, lval_memory, and lval_reg_frame_relative.
5342 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5344 * NEWS: Add an entry regarding the improvement of the next/step
5345 operation on Alpha Tru64 multi-processor machines.
5347 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5349 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5351 * Makefile.in: Update all _h macro definitions.
5352 * Makefile.in (install-gdbtk): Move to install section.
5353 (rdi-share/libangsd.a): Move to end of file.
5355 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5357 * frame.c (frame_register_unwind): When a register, set addrp to
5358 the register's byte.
5360 2002-08-20 Michael Snyder <msnyder@redhat.com>
5362 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5363 used locally, so move them from the target machine header to here.
5364 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5365 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5367 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5369 2002-08-20 Andrew Cagney <cagney@redhat.com>
5371 * NEWS: Mention that the Apollo line was made obsolete.
5372 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5373 m68*-hp-hpux* obsolete.
5374 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5375 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5376 * buildsym.c (make_blockvector): Make static.
5377 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5378 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5379 (ALLDEPFILES): Remove dstread.c.
5380 (dstread.o): Obsolete make rule.
5381 * dstread.c: Makefile obsolete.
5383 * config/m68k/hp300hpux.mt: Ditto.
5384 * config/m68k/hp300hpux.mh: Ditto.
5385 * config/m68k/hp300bsd.mt: Ditto.
5386 * config/m68k/hp300bsd.mh: Ditto.
5387 * config/m68k/apollo68b.mt: Ditto.
5388 * config/m68k/apollo68v.mh: Ditto.
5389 * config/m68k/apollo68b.mh: Ditto.
5391 2002-08-20 Michael Snyder <msnyder@redhat.com>
5393 * mips-tdep.c (mips_in_return_stub): Make static.
5394 (mips_gdbarch_init): Set in_solib_return_trampoline.
5395 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5397 2002-08-20 Michael Snyder <msnyder@redhat.com>
5399 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5400 * gdbarch.c, gdbarch.h: Regenerate.
5401 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5403 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5405 2002-08-20 Michael Snyder <msnyder@redhat.com>
5407 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5408 (mips_gdbarch_init): Set skip_trampoline_code,
5409 in_solib_call_trampoline.
5410 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5411 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5413 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5415 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5417 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5418 vector type for ev registers.
5419 (e500_pseudo_register_read): New function.
5420 (e500_pseudo_register_write): New function.
5421 (e500_dwarf2_reg_to_regnum): New function.
5422 (PPC_UISA_NOFP_SPRS): New macro.
5423 (PPC_EV_REGS): New macro.
5424 (PPC_GPRS_PSEUDO_REGS): New macro.
5425 (registers_e500): New register set for e500.
5426 (variants): Add e500 variant.
5427 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5428 before setting architectural dependent variations. Initialize ev
5429 registers numbers. Add case for e500 architecture. Set the
5430 number of pseudo registers.
5432 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5434 * rs6000-tdep.c: Clean up comments.
5436 2002-08-20 Andrew Cagney <cagney@redhat.com>
5438 * h8300-tdep.c: Re-indent file.
5440 2002-08-20 Jim Blandy <jimb@redhat.com>
5442 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5445 2002-08-20 Keith Seitz <keiths@redhat.com>
5447 * breakpoints.c (watch_command_1): Use internal breakpoint
5448 when setting a watchpoint_scope breakpoint.
5450 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5452 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5453 (build_builtin_type_vec64i): Ditto.
5454 (build_builtin_type_vec128): Ditto.
5455 (build_builtin_type_vec128i): Ditto.
5457 2002-08-19 Michael Snyder <msnyder@redhat.com>
5459 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5460 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5461 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5462 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5463 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5464 CALL_DUMMY_ADDRESS): Delete.
5465 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5466 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5467 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5468 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5469 push_return_address.
5470 (mips_register_raw_size, mips_eabi_use_struct_convention,
5471 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5472 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5473 mips_init_extra_frame_info, mips_eabi_push_arguments,
5474 mips_n32n64_push_arguments, mips_push_return_address,
5475 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5476 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5478 2002-08-19 Michael Snyder <msnyder@redhat.com>
5480 * mips-tdep.c (mips_frame_num_args): New function.
5481 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5482 frame_saved_pc, frame_args_address, frame_locals_address,
5483 frame_num_args, and frame_args_skip.
5484 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5485 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5486 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5487 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5489 2002-08-20 Michael Snyder <msnyder@redhat.com>
5491 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5492 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5493 * mips-tdep.c (mips_store_struct_return): New function.
5494 (mips_extract_struct_value_address): New function.
5495 (mips_gdbarch_init): Set store_struct_return and
5496 extract_struct_value_address.
5498 2002-08-20 David Carlton <carlton@math.stanford.edu>
5500 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5501 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5502 (read_file_scope): Check that line_header is nonzero before
5503 decoding macro information.
5505 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5507 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5508 flag the general-purpose registers as floating-point on targets
5509 that don't support the floating-point registers.
5511 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5513 * rs6000-tdep.c (altivec_register_p): Delete.
5514 (rs6000_do_altivec_registers): Delete.
5515 (rs6000_altivec_registers_info): Delete.
5516 (rs6000_do_registers_info): Delete.
5517 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5518 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5520 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5522 * infcmd.c (do_registers_info): Print vector registers in hex
5524 (print_vector_info): Check that printing registers
5526 (print_float_info): Ditto.
5528 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5530 * mips-tdep.c (mips_gdbarch_init): Update.
5531 (mips_o32_extract_return_value): Rewrite.
5532 (mips_o32_store_return_value): Rewrite.
5533 (mips_o32_xfer_return_value): New function.
5534 (mips_xfer_register): Tweak debug print message. Allow for
5535 buf_offset when dumping the value transfered.
5537 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5539 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5540 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5541 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5542 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5543 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5545 2002-08-14 Michael Snyder <msnyder@redhat.com>
5547 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5549 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5551 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5553 (P): New macro to define a register as a pseudo register.
5554 (R, R4, R8, R16, FR32, R64, R0): Updated.
5555 (struct variant): Add new fields for number of pseudo registers
5556 and number of total registers.
5557 (tot_num_registers): New macro replacing....
5558 (num_registers): ...deleted macro.
5559 (num_registers): New function.
5560 (num_pseudo_registers): New function.
5561 (variants): Update all variants to intialize new fields correctly.
5562 Postpone initialization of number of pseudo regs and real regs.
5563 (init_variants): New function.
5564 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5567 2002-08-19 David Carlton <carlton@math.stanford.edu>
5569 * valops.c (search_struct_field): Change error message to treat
5570 return value of 0 from value_static_field as meaning that field is
5572 (value_struct_elt_for_reference): Ditto.
5573 * values.c (value_static_field): Treat an unresolved location the
5574 same as a nonexistent symbol. Fix PR gdb/635.
5575 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5576 enclosed. Fix PR gdb/574.
5577 * MAINTAINERS: Add self to Write After Approval list.
5579 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5581 * mips-tdep.c (mips_xfer_register): New function.
5582 (mips_n32n64_extract_return_value): Rewrite.
5583 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5584 instead of deprecated_extract_return_value.
5586 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5588 * rs6000-tdep.c (TDEP): Delete macro.
5589 (branch_dest): Replace use of TDEP macro with its body.
5590 (rs6000_pop_frame): Ditto.
5591 (rs6000_push_arguments): Ditto.
5592 (rs6000_skip_trampoline_code): Ditto.
5593 (rs6000_frame_saved_pc): Ditto.
5594 (rs6000_frame_chain): Ditto.
5595 (rs6000_register_name): Ditto.
5596 (rs6000_register_byte): Ditto.
5597 (rs6000_register_raw_size): Ditto.
5598 (rs6000_register_virtual_type): Ditto.
5599 (rs6000_register_convertible): Ditto.
5600 (rs6000_convert_from_func_ptr_addr): Ditto.
5602 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5604 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5606 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5607 MIPS_LINUX_JB_ELEMENT_SIZE.
5608 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5609 for MAX_REGISTER_RAW_SIZE arrays.
5610 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5611 MIPS_LINUX_JB_ELEMENT_SIZE.
5613 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5615 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5617 2002-08-19 Aidan Skinner <aidan@velvet.net>
5619 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5620 ada-valprint.c ada-tasks.c.
5621 (YYFILES): Add ada-exp.y.
5622 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5623 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5624 (ada-exp.tab.o): New target.
5626 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5628 * regcache.c (regcache_xfer_part): New function.
5629 (regcache_raw_read_part): New function.
5630 (regcache_raw_write_part): New function.
5631 (regcache_cooked_read_part): New function.
5632 (regcache_cooked_write_part): New function.
5633 * regcache.h (regcache_raw_read_part): Declare.
5634 (regcache_raw_write_part): Declare.
5635 (regcache_cooked_read_part): Declare.
5636 (regcache_cooked_write_part): Declare.
5638 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5640 * remote.c (remote_open_1): Add async_p.
5641 (remote_async_open_1): Delete.
5642 (open_remote_target): Delete.
5643 (remote_open, extended_remote_open): Update calls to remote_open_1.
5644 (remote_async_open, extended_remote_async_open): Call
5645 remote_open_1 instead of remote_async_open_1.
5647 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5649 * blockframe.c: Fix a few coding standard violations.
5651 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5653 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5655 * config/i386/tm-i386sco5.h: ... here. File removed.
5656 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5658 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5659 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5660 (TM_FILE): Set to tm-i386.h.
5661 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5662 * config/i386/tm-i386v.h: Remove file.
5663 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5664 instead of "i386/tm-i386v.h".
5665 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5666 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5668 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5669 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5672 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5674 * config/i386/nm-i386v.h: Add protection against
5676 (i386_register_u_addr): Remove prototype.
5677 (register_u_addr): New prototype.
5678 (REGISTER_U_ADDR): Redefine accordingly.
5679 * i386v-nat.c: Improve several comments.
5680 (i386_register_u_addr): Change signature and rename to
5681 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5684 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5686 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5687 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5688 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5689 deprecated_extract_return_value.
5690 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5691 rename mips_o32o64_push_arguments.
5692 (mips_gdbarch_init): Update.
5693 (mips_extract_return_value): Delete.
5694 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5695 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5696 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5697 (mips_n32n64_extract_return_value): Clone
5698 mips_extract_return_value.
5699 (mips_store_return_value): Delete.
5700 (mips_o32_store_return_value): Clone mips_store_return_value.
5701 (mips_o64_store_return_value): Clone mips_store_return_value.
5702 (mips_eabi_store_return_value): Clone mips_store_return_value.
5703 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5705 2002-08-18 Aidan Skinner <aidan@velvet.net>
5707 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5708 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5710 2002-08-18 Aidan Skinner <aidan@velvet.net>
5712 * ada-lang.c: Run through gdb_indent.sh.
5713 * ada-lang.h: Run through gdb_indent.sh.
5714 * ada-tasks.c: Run through gdb_indent.sh.
5715 * ada-typeprint.c: Run through gdb_indent.sh.
5716 * ada-valprint.c: Run through gdb_indent.sh.
5718 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5720 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5723 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5725 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5727 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5728 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5730 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5731 write_register_gen instead of write_register_bytes.
5733 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5734 i[3456]-*-osf1mk* configurations have been made obsolete.
5735 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5736 i[3456]86-*-osf1mk* hosts obsolete.
5737 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5739 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5740 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5741 config/i386/i386m3.mt, config/i386/nm-m3.h,
5742 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5743 config/i386/i386mk.mh, config/i386/i386mk.mt,
5744 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5746 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5747 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5748 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5750 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5752 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5753 (hppa_value_returned_from_stack): Declare.
5754 (hppa_extract_return_value): Declare.
5755 * config/pa/hppa.mt: New file.
5756 * configure.tgt: Recognize hppa*-*-*.
5757 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5759 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5761 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5764 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5766 * top.c (gdb_rl_operate_and_get_next): Make sure
5767 operate-and-get-next functions correctly even when the history
5768 list is completely filled.
5770 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5772 * MAINTAINERS (Target Instruction Set Architectures): Rename
5773 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5774 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5775 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5776 already listed under Host/Native.
5778 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5779 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5782 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5784 * config/ia64/ia64.mt: New file.
5785 * config/alpha/alpha.mt: New file.
5786 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5787 ia64-linux-gnu. Mention that ia64-elf is broken.
5788 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5790 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5792 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5793 generic_func_frame_valid instead of func_frame_valid.
5795 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5797 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5798 procfs appears to be broken when debugging on multi-processor
5799 machines. So enable software single stepping in order to avoid
5800 using the procfs interface to do next/step operations, using
5801 internal breakpoints instead.
5803 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5804 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5805 make this pc address equal to the value it would have if the
5806 system stepping capability was used. Also set a new flag used
5807 to ensure that we don't readjust the PC one more time later.
5809 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5810 address by DECR_PC_AFTER_BREAK when software single step is
5811 in use for this architecture, as this has already been taken
5812 care of in handle_inferior_event().
5814 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5816 * infrun.c (handle_inferior_event): Minor reformatting, to make
5817 a rather long condition expression easier to read.
5819 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5821 * Makefile.in (gdbtk.o): Move to end of file.
5822 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5823 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5824 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5825 (gdbtk-wrapper.o, gdbres.o): Ditto.
5827 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5829 * Makefile.in (copying.o): Separate out compile rule.
5830 (hpux-thread.o, procfs.o, signals.o): Ditto.
5831 (v850ice.o, z8k-tdep.o): Ditto.
5832 (tui-file.o): Move to TUI section.
5833 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5834 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5836 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5838 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5839 skip_trampoline_code, for better namespace-proofing.
5841 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5843 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5845 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5847 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5849 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5850 signal, check whether we hit a breakpoint before checking for a
5851 single step breakpoint. Otherwise, GDB fails to notice that a
5852 breakpoint has been hit when stepping onto a breakpoint.
5854 2002-08-16 Keith Seitz <keiths@redhat.com>
5856 * gdb-events.sh (clear_gdb_event_hooks): New function.
5857 * gdb-events.c: Regenerate.
5858 * gdb-events.h: Regenerate.
5860 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5862 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5863 not_a_sw_breakpoint.
5864 * breakpoint.h (bpstat_stop_status): Add parameter names.
5866 2002-08-16 Grace Sainsbury <graces@redhat.com>
5868 * remote.c (remote_insert_hw_breakpoint)
5869 (remote_remove_hw_breakpoint): Fix calculation of length field
5872 2002-08-15 Michael Snyder <msnyder@redhat.com>
5874 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5875 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5876 (supply_fpregset): Ditto.
5878 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5879 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5880 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5881 (TARGET_READ_SP): Delete.
5882 (DO_REGISTERS_INFO): Delete.
5883 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5885 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5886 from macros to functions.
5888 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5889 (mips_register_convertible, mips_register_convert_to_virtual,
5890 mips_register_convert_to_raw): Make static.
5891 (mips_read_sp): New function.
5892 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5893 (mips_do_registers_info): Make static.
5894 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5895 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5896 (mips_register_convert_from_type, mips_register_convert_to_type):
5898 (mips_gdbarch_init): Set up function_start_offset,
5899 register_virtual_size, pc_in_sigtramp.
5901 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5903 * infcmd.c (vector_info): New function.
5904 (_initialize_infcmd): Add command "info vector".
5905 (print_vector_info): New function.
5907 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5908 * gdbarch.h, gdbarch.c: Regenerate.
5910 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5912 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5913 ``print_all''. Only print vector registers when ``print_all''.
5915 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5917 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5918 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5920 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5921 Add `args' parameter.
5922 * gdbarch.h, gdbarch.c: Regenerate.
5924 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5926 * infcmd.c (float_info): Call print_float_info.
5927 (print_float_info): New function. By default, print the
5928 floating-point registers.
5930 * arch-utils.h (default_print_float_info): Delete declaration.
5931 * arch-utils.c (default_print_float_info): Delete function.
5933 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5935 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5938 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5941 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5942 * configure.host: Make i[3456]86-*-aix host obsolete.
5943 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5944 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5945 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5946 config/i386/xm-i386aix.h: Make files obsolete.
5947 * i386aix-nat.c: Make file obsolete.
5948 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5949 (i386aix-nat.o): Make target obsolete.
5951 * config/i386/nm-gnu.h: Removed.
5952 * config/i386/nm-i386gnu.h: New file.
5953 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5954 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5956 * config/i386/tm-i386gnu.h: ... here. Removed.
5957 * config/i386/xm-i386gnu.h: Removed.
5958 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5959 (NAT_FILE): Set to nm-i386gnu.h.
5960 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5961 * i386-tdep.c: New file.
5962 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5963 (i386gnu-tdep.o): Specify dependencies.
5965 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5967 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5968 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5969 Adjust a few comments to reflect reality a bit closer.
5970 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5971 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5972 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5973 target_insert_watchpoint, target_remove_watchpoint):
5975 * config/i386/nm-i386sco5.h: ... here.
5976 (kernel_u_size): Add prototype. Improve a few comments and add
5977 protection against multiple inclusion.
5979 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5982 * uw-thread.c (SP_ARG0): Define if not already defined.
5983 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5985 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5987 * config/i386/tm-i386.h: Don't include "regcache.h".
5989 * i387-tdep.h (i387_print_float_info): New prototype.
5990 * i387-tdep.c (print_i387_value, print_i387_ext,
5991 print_i387_status_word, print_i387_control_word): Add `struct
5992 ui_file *' argument and use it for output.
5993 (i387_print_float_info): Renamed from i387_float_info. Add
5994 `struct gdbarch *' and `struct ui_file *' arguments and use the
5996 * i386-tdep.c: Include "i387-tdep.h".
5997 (i386_gdbarch_init): Set print_float_info.
5998 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5999 (FLOAT_INFO): Remove define.
6001 2002-08-13 Michael Snyder <msnyder@redhat.com>
6003 * mips-tdep.c (mips_push_arguments): Rename to
6004 mips_eabi_push_arguments, and tune for EABI.
6005 (MIPS_REGS_HAVE_HOME_P): Delete.
6006 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6007 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6008 Delete references to mips_regs_have_home_p.
6010 2002-08-14 Keith Seitz <keiths@redhat.com>
6012 * Makefile.in (install-gdbtk): Create insight plugin directory.
6013 Install plugins.tcl file.
6015 2002-08-14 Keith Seitz <keiths@redhat.com>
6017 * configure.in: Move SUBDIRS to near top of the file so that
6018 --enable options may add things to it.
6019 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6020 * configure: Regenerate.
6022 2002-08-13 Michael Snyder <msnyder@redhat.com>
6024 * mips-tdep.c (mips_o32o64_push_arguments): New function,
6025 cloned from mips_push_arguments, tuned for o32/o64 ABI.
6026 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6028 2002-08-13 Andrew Cagney <ac131313@redhat.com>
6030 * vax-tdep.c (vax_get_saved_register): Delete function.
6031 (vax_gdbarch_init): Update.
6032 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6033 (ns32k_gdbarch_init): Update.
6034 * alpha-tdep.c (alpha_get_saved_register): Delete function.
6035 (alpha_gdbarch_init): Update.
6037 2002-08-13 Andrew Cagney <cagney@redhat.com>
6039 * regcache.c (init_regcache_descr): Overallocate the
6040 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6041 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6043 (set_register_cached): Add range checking assertions. Use
6046 2002-08-13 Mark Kettenis <kettenis@gnu.org>
6048 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6049 numbers for MMX registers.
6051 2002-08-13 Andrew Cagney <cagney@redhat.com>
6053 * i386-tdep.c (i386_gdbarch_init): Use
6054 generic_unwind_get_saved_register.
6056 2002-08-13 Kevin Buettner <kevinb@redhat.com>
6058 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6059 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6061 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6062 Delete. Add comment regarding this now-deleted target method.
6064 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6066 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6067 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6068 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6069 real PC and the page number (if it's within the memory bank window).
6070 (m68hc11_pseudo_register_write): Likewise when saving.
6071 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6072 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6073 (m68hc11_register_raw_size): And use 32-bit for it.
6074 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6075 16K memory bank is used by the prog; also use the virtual pc.
6077 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6079 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6080 (m68hc11_gdbarch_init): Install it in gdbarch.
6081 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6082 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6083 (MSYMBOL_SIZE): New for documentation.
6084 (insn_return_kind): Enum to specify how a function returns.
6085 (frame_extra_info): Cleanup and record the return mode.
6086 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6087 register in address computation.
6088 (m68hc11_get_return_insn): New to obtain the return instruction used
6090 (m68hc11_frame_init_saved_regs): Take into account the return
6091 instruction used by the function for far and interrupt functions.
6092 (m68hc11_init_extra_frame_info): Take into account page register.
6093 (m68hc11_frame_args_address): Adjust according to the return mode.
6094 (show_regs): Print page register only when it's used.
6096 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6098 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6099 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6100 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6102 (m68hc11_register_raw_size): Likewise.
6104 2002-08-13 Andrew Cagney <cagney@redhat.com>
6106 * i386-tdep.c (i386_register_name): Handle mmx registers.
6107 (mmx_regnum_p): New function.
6108 (i386_mmx_names): New array.
6109 (mmx_num_regs): New variable.
6110 (i386_pseudo_register_read): New function.
6111 (i386_pseudo_register_write): New function.
6112 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6114 * regcache.c (regcache_raw_read_unsigned): New function.
6115 (regcache_raw_read_signed): New function.
6116 * regcache.h (regcache_raw_read_unsigned): Declare.
6117 (regcache_raw_read_signed): Declare.
6119 2002-08-13 Andrew Cagney <cagney@redhat.com>
6121 * regcache.c (regcache_raw_read_as_address): Delete function.
6122 (regcache_cooked_read_signed): New function.
6123 (regcache_cooked_read_unsigned): New function.
6124 * regcache.h (regcache_cooked_read_signed): Declare.
6125 (regcache_cooked_read_unsigned): Declare.
6126 (regcache_raw_read_as_address): Delete declaration.
6128 * blockframe.c (generic_read_register_dummy): Use
6129 regcache_cooked_read_unsigned.
6130 * i386-tdep.c (i386_extract_struct_value_address): Use
6131 regcache_cooked_read_unsigned.
6133 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6135 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6136 double sizes according to ELF ABI flags.
6137 (gdbarch_tdep): Record elf_flags.
6139 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6141 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6142 (m6812_prolog): They can appear in 68HC12 function prologue.
6143 (m68hc11_frame_chain): Cleanup.
6145 2002-08-12 Andrew Cagney <cagney@redhat.com>
6147 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6149 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6150 (i386_linux_register_raw_size): Delete function.
6151 (i386_linux_init_abi): Update.
6152 * i386-tdep.c (i386_register_raw_size): Delete function.
6153 (i386_register_byte): Delete function.
6154 (i386_gdbarch_init): Update.
6155 (i386_register_size): Delete array.
6156 (i386_register_offset): Delete array.
6158 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6159 (REGISTER_RAW_SIZE): Delete macro.
6160 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6161 (REGISTER_BYTE): Delete macro.
6163 2002-08-11 Aidan Skinner <aidan@velvet.net>
6165 * ada-lang.c (ada_lookup_partial_symbol)
6166 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6167 prototype names so that grep ^func works properly.
6169 * ada-lang.c (ada_array_element_type)
6170 (ada_lookup_partial_symbol): Fix typos in parameter list.
6172 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6173 Fix prototype names so that grep ^func works properly.
6175 2002-08-10 Andrew Cagney <cagney@redhat.com>
6176 Elena Zannoni <ezannoni@redhat.com>
6177 Martin M. Hunt <hunt@redhat.com>
6179 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6180 (build_builtin_type_vec128i): Set the vector bit.
6181 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6182 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6183 (build_builtin_type_vec64): New function.
6184 (build_builtin_type_vec64i): New function.
6185 (build_gdbtypes): Initialize builtin_type_vec64 and
6186 builtin_type_vec64i.
6188 2002-08-09 Andrew Cagney <cagney@redhat.com>
6190 * regcache.c (regcache_dump): Compare the register offset
6192 * arch-utils.c (generic_register_byte): New function.
6193 * arch-utils.h (generic_register_byte): Declare.
6194 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6195 * gdbarch.h, gdbarch.c: Regenerate.
6197 2002-08-09 Andrew Cagney <cagney@redhat.com>
6199 * regcache.c: Include "gdbcmd.h"
6200 (_initialize_regcache): Add commands "maintenance print
6201 registers", "maintenance print raw-registers" and "maintenance
6202 print cooked-registers".
6203 (enum regcache_dump_what): Define.
6204 (dump_endian_bytes): New function.
6205 (regcache_dump): New function.
6206 (regcache_print): New function.
6207 (maintenance_print_registers): New function.
6208 (maintenance_print_raw_registers): New function.
6209 (maintenance_print_cooked_registers): New function.
6210 * Makefile.in (regcache.o): Update dependencies.
6212 2002-08-09 Michael Snyder <msnyder@redhat.com>
6214 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6215 (mips_push_arguments): Correct some comments. Use paddr_nz
6216 for printing addresses in debug output. Replace static
6217 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6218 (mips_n32n64_push_arguments): New function, cloned from
6219 mips_push_arguments and tuned for the n32/n64 ABI.
6220 (mips_push_register): Buffer needs dynamic allocation.
6221 (mips_print_register): Ditto.
6222 (do_gp_register_row): Ditto.
6223 (mips_store_return_value): Ditto.
6224 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6226 2002-08-09 Don Howard <dhoward@redhat.com>
6228 * memattr.c (mem_info_command): Print special case of upper bound
6229 as max CORE_ADDR + 1.
6231 2002-08-08 Michael Snyder <msnyder@redhat.com>
6233 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6234 returns structs by ref if they're too big to fit in two registers.
6236 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6238 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6240 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6241 mips_find_saved_regs().
6242 (mips_pop_frame): Likewise.
6244 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6246 * blockframe.c (frame_saved_regs_register_unwind): Revise
6247 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6250 2002-08-09 Grace Sainsbury <graces@redhat.com>
6252 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6253 T-packets; the 'a' is not taken as a register number.
6254 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6255 (remote_stopped_data_address): New functions; add to target
6257 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6258 prototypes to match other implementations of this
6259 function. replace integer argument with pointer -- the length
6260 field in the Z-packet is the length of what is pointed to or 1 if
6261 pointer is null. Add to target vector.
6262 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6266 * remote.c (remote_wait): Add support to extract optional
6267 watchpoint information from T-packet. Ignore unrecognized
6268 optional info in T-packet.
6269 (remote_async_wait): Ditto.
6271 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6273 * cli/cli-dump.c: Change fopen modes to use binary open modes
6274 as defined in include/fopen-bin.h throughout.
6276 2002-08-08 Michael Snyder <msnyder@redhat.com>
6278 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6280 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6282 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6283 assertion failure by returning early after a warning.
6285 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6287 * mips-tdep.c (mips_find_saved_regs): Make static.
6288 (mips_frame_init_saved_regs): New function.
6289 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6290 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6291 (mips_find_saved_regs): Delete declaration.
6293 2002-08-08 Grace Sainsbury <graces@redhat.com>
6295 * remote.c (remote_wait, remote_async_wait): Change
6296 thread_num from int to ULONGEST.
6297 (unpack_varlen_hex): Change result parameter from
6298 int * to ULONGEST *.
6300 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6302 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6303 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6305 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6307 2002-08-08 Andrew Cagney <cagney@redhat.com>
6309 * gcore.c (override_derive_stack_segment): Delete variable.
6310 (preempt_derive_stack_segment): Delete function.
6311 (derive_stack_segment): Delete function.
6312 (default_derive_stack_segment): Renamed to derive_stack_segment.
6313 (override_derive_heap_segment): Delete variable.
6314 (preempt_derive_heap_segment): Delete function.
6315 (derive_heap_segment): Delete function.
6316 (default_derive_heap_segment): Rename to derive_heap_segment.
6318 2002-08-06 Michael Snyder <msnyder@redhat.com>
6320 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6321 * mips-tdep.c (mips_EABI_use_struct_convention,
6322 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6323 New functions. (mips_use_struct_convention): Delete.
6324 (mips_gdbarch_init): set use_gdbarch_convention.
6326 2002-08-06 Michael Snyder <msnyder@redhat.com>
6328 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6329 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6330 mips_o32_reg_struct_has_addr): New functions.
6331 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6333 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6335 * regcache.c (pseudo_register): Delete function.
6336 (fetch_register): Delete function.
6337 (store_register): Delete function.
6338 (regcache_raw_read, legacy_read_register_gen): Use
6339 target_fetch_registers instead of fetch_register.
6340 (legacy_write_register_gen, regcache_raw_write): Use
6341 target_store_register instead of store_register.
6342 (write_register_bytes): Ditto.
6344 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6345 (STORE_PSEUDO_REGISTER): Delete.
6346 * gdbarch.h, gdbarch.c: Regenerate.
6348 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6350 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6351 write dump file binary.
6353 2002-08-05 Michael Snyder <msnyder@redhat.com>
6355 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6356 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6357 (mips_gdbarch_init): Set N32 target to be mips64.
6359 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6361 * frame.c (find_saved_register): Break out of loop once saved
6362 register address is found. Don't mention sparc in loop comment
6365 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6367 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6368 mips_default_saved_regsize to 8.
6370 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6372 * gcore.c: Do not include <sys/procfs.h>.
6373 * Makefile.in (gcore.o): Update dependencies.
6375 2002-08-06 Andrew Cagney <cagney@redhat.com>
6377 * configure.tgt: Make arc-*-* obsolete.
6378 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6379 * MAINTAINERS: Make arc-elf obsolete.
6380 * arc-tdep.c: Make file obsolete.
6381 * config/arc/arc.mt: Ditto.
6382 * config/arc/tm-arc.h: Ditto.
6384 2002-08-05 Theodore A. Roth <troth@verinet.com>
6386 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6388 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6390 * mcore-tdep.c (mcore_gdbarch_init): Use
6391 generic_unwind_get_saved_register instead of
6392 generic_get_saved_register.
6393 * v850-tdep.c (v850_gdbarch_init): Ditto.
6394 * frv-tdep.c (frv_gdbarch_init): Ditto.
6395 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6396 * s390-tdep.c (s390_gdbarch_init): Ditto.
6397 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6398 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6399 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6401 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6403 * objfiles.h: Add missing #include "symfile.h"
6405 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6407 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6409 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6410 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6413 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6415 * NEWS: Cleanup and nitpick.
6417 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6419 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6421 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6423 * Makefile.in (gdbtk-bp.o): Update dependencies.
6424 (gdbtk-register.o): Ditto.
6425 (gdbtk-varobj.o): Ditto.
6427 2002-08-03 Andrew Cagney <cagney@redhat.com>
6429 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6430 m68hc11_fetch_pseudo_register.
6431 (m68hc11_pseudo_register_write): Replace
6432 m68hc11_store_pseudo_register.
6433 (m68hc11_gdbarch_init): Update.
6435 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6437 * gdbarch.sh: Include "gdb_string.h".
6438 * gdbarch.c: Regenerate.
6440 * regcache.c: Include "gdb_string.h".
6441 * ax-general.c: Ditto.
6443 * std-regs.c: Ditto.
6444 * fbsd-proc.c: Ditto.
6447 * Makefile.in (regcache.o): Update dependencies.
6448 (thread.o, gdbarch.o): Ditto.
6449 (ax-general.o, gdbarch.o): Ditto.
6450 (varobj.o, std-regs.o): Ditto.
6451 (fbsd-proc.o): Specify dependencies.
6453 2002-08-02 Andrew Cagney <cagney@redhat.com>
6455 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6457 (regcache_cooked_write): Ditto.
6459 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6461 * regcache.c (regcache_cooked_read): New function.
6462 (regcache_cooked_write): New function.
6463 (read_register_gen): Rewrite using regcache_cooked_read.
6464 (write_register_gen): Rewrite using regcache_cooked_write.
6466 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6469 2002-08-02 Andrew Cagney <cagney@redhat.com>
6471 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6472 Replace the architecture methods register_read and register_write.
6473 * gdbarch.h, gdbarch.c: Regenerate.
6474 * regcache.c (init_regcache_descr): Update.
6475 (read_register_gen): Update.
6476 (write_register_gen): Update.
6477 (supply_register): Update comment.
6479 * sh-tdep.c (sh_gdbarch_init): Update.
6480 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6481 `regcache' and `gdbarch' parameters. Make `buffer' a void
6482 pointer. Update code.
6483 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6484 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6485 void pointer. Update code.
6486 (sh64_register_write): Delete.
6487 (sh4_register_read): Delete.
6488 (sh64_register_read): Delete.
6489 (sh4_register_write): Delete.
6490 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6491 void pointer, `to' parameter a void pointer.
6492 (sh_sh64_register_convert_to_raw): Ditto.
6494 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6496 * mips-tdep.c (mips_register_virtual_type): Use architecture
6497 invariant return values.
6499 2002-08-01 Andrew Cagney <cagney@redhat.com>
6501 * linux-proc.c: Include "gdb_string.h".
6502 * Makefile.in (linux-proc.o): Update dependency list.
6504 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6506 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6509 2002-08-01 Grace Sainsbury <graces@redhat.com>
6511 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6512 to_insert_watchpoint, to_remove_watchpoint,
6513 to_stopped_by_watchpoint, to_stopped_data_address,
6514 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6515 target vecctor. Define their corresponding macros so they call
6518 * target.c: Add default and debug versions of for
6519 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6520 to_insert_watchpoint, to_remove_watchpoint,
6521 to_stopped_by_watchpoint, to_stopped_data_address,
6522 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6524 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6526 * mips-tdep.c (mips_register_virtual_type): New function.
6527 (mips_gdbarch_init): Register mips_register_virtual_type()
6528 with gdbarch machinery.
6529 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6530 this file instead of tm-bigmips.h.
6531 (MIPS_REGSIZE): Delete this macro.
6532 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6533 multiarch version in mips-tdep.c will be found.
6535 2002-08-01 Andrew Cagney <cagney@redhat.com>
6537 * NEWS: Menion that CHILL has been made obsolete.
6539 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6540 * stabsread.c (read_range_type): Ditto.
6541 * gdbtypes.h: Ditto.
6542 * language.c (binop_type_check): Ditto.
6543 (binop_result_type): Ditto.
6544 (integral_type): Ditto.
6545 (character_type): Ditto.
6546 (string_type): Ditto.
6547 (boolean_type): Ditto.
6548 (structured_type): Ditto.
6549 (lang_bool_type): Ditto.
6550 (binop_type_check): Ditto.
6551 * language.h (_LANG_chill): Ditto.
6552 * dwarfread.c (set_cu_language): Ditto.
6553 * dwarfread.c (CHILL_PRODUCER): Ditto.
6554 * dwarfread.c (handle_producer): Ditto.
6555 * expression.h (enum exp_opcode): Ditto.
6556 * eval.c: Ditto for comments.
6557 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6558 * expprint.c (print_subexp): Ditto.
6559 (print_subexp): Ditto.
6560 * valops.c (value_cast): Ditto.
6561 (search_struct_field): Ditto.
6562 * value.h (COERCE_VARYING_ARRAY): Ditto.
6563 * symfile.c (init_filename_language_table): Ditto.
6564 (add_psymbol_with_dem_name_to_list): Ditto.
6565 * valarith.c (value_binop): Ditto.
6567 * valops.c (value_slice): Ditto.
6568 * symtab.h (union language_specific): Ditto.
6569 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6570 (SYMBOL_DEMANGLED_NAME): Ditto.
6571 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6572 * defs.h (enum language): Ditto.
6573 * symtab.c (got_symtab): Ditto.
6574 * utils.c (fprintf_symbol_filtered): Ditto.
6576 * ch-typeprint.c: Make file obsolete.
6577 * ch-valprint.c: Make file obsolete.
6578 * ch-lang.h: Make file obsolete.
6579 * ch-exp.c: Make file obsolete.
6580 * ch-lang.c: Make file obsolete.
6582 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6584 (TARGET_FLAGS_TO_PASS): Ditto.
6585 (CHILLFLAGS): Obsolete.
6587 (CHILL_FOR_TARGET): Obsolete.
6588 (CHILL_LIB): Obsolete.
6589 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6591 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6592 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6594 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6597 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6599 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6600 This does not change anything at the moment, but will be helpful
6601 later when full Ada support is integrated.
6603 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6605 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6608 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6610 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6611 and save it in a local variable. Use variable in later test.
6613 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6615 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6616 test. (Thanks to Daniel Jacobowitz.)
6618 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6620 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6621 (mips_abi_strings): Add "n64".
6622 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6624 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6626 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6627 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6629 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6631 * utils.c (host_pointer_to_address, address_to_host_pointer):
6632 Use gdb_assert() instead of explicit call to internal_error().
6634 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6636 * Makefile.in (rs6000-nat.o): Update dependencies.
6638 From Nicholas Duffek:
6639 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6640 (aix-thread.o): New rule.
6641 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6642 * config/powerpc/aix432.mh: New file.
6644 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6646 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6647 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6648 (fetch_core_registers, ppc_linux_supply_gregset)
6649 (ppc_linux_supply_fpregset): New functions.
6650 (ppc_linux_regset_core_fns): New.
6651 (_initialize_ppc_linux_tdep): Call add_core_fns.
6652 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6653 and ppc_linux_supply_gregset.
6654 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6655 (supply_fpregset): Call ppc_linux_supply_fpregset.
6656 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6658 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6660 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6662 * symtab.c (lookup_symbol): Demangle before lowercasing.
6664 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6666 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6668 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6669 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6670 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6671 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6673 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6674 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6675 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6676 (avr-tdep.o, mon960-rom.o): Ditto.
6677 (aout_stabs_gnu_h): Define.
6678 (symtab_h): Remove $(gdb_obstack_h).
6680 2002-07-30 Jim Blandy <jimb@redhat.com>
6682 Patch from David Carlton <carlton@math.stanford.edu>:
6683 * gdbinit.in: Move the `dir' commands that add GDB's own source
6684 directory to the search path to the end, so that the `gdb' source
6685 directory will be searched first.
6687 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6689 * gdb_obstack.h: New file.
6690 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6691 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6692 * objfiles.h: Include "gdb_obstack.h".
6693 * Makefile.in (gdb_obstack_h): Define.
6694 (symtab_h): Add $(gdb_obstack_h).
6695 (objfiles_h): Add $(gdb_obstack_h).
6697 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6698 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6699 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6700 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6701 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6702 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6703 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6704 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6706 * Makefile.in (bcache.o): Update dependencies.
6707 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6708 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6709 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6710 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6711 (stabsread.o, symfile.o, symmisc.o): Ditto.
6712 (symtab.o, typeprint.o, macroexp.o): Ditto.
6713 (macrotab.o, mdebugread.o): Ditto.
6714 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6715 (coff_ecoff_h, aout_aout64_h): Define.
6716 (aout_stabs_gnu_h, libaout_h): Define.
6718 2002-07-29 Andrew Cagney <cagney@redhat.com>
6720 * regcache.c (struct regcache_descr): Rename nr_registers to
6721 nr_cooked_registers. Revise comments describing the structure
6723 (init_regcache_descr): Update.
6724 (init_legacy_regcache_descr): Update.
6725 (read_register_gen, write_register_gen): When a cooked register in
6726 the raw register range, directly access the value from the raw
6729 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6731 * z8k-tdep.c: Do not include "obstack.h".
6732 * h8300-tdep.c, h8500-tdep.c: Ditto.
6733 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6734 * valprint.c, v850-tdep.c: Ditto.
6735 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6736 * mn10200-tdep.c: Ditto.
6738 * Makefile.in (z8k-tdep.o): Update dependencies.
6739 (m68hc11-tdep.o, valprint.o): Ditto.
6740 (v850-tdep.o, d10v-tdep.o): Ditto.
6741 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6742 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6743 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6744 (sh_opc_h, gdb_sim_sh_h): Define.
6745 (elf_sh_h, elf_bfd_h): Define.
6746 (opcode_m68hc11_h): Define.
6747 (OPCODES_SRC, OPCODES_DIR): define.
6748 (OPCODES): Use $(OPCODES_DIR).
6749 (gdb_sim_d10v_h): Rename sim_d10v_h.
6750 (gdb_sim_arm_h): Rename sim_arm_h.
6752 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6754 * utils.c (host_pointer_to_address, address_to_host_pointer):
6755 Change internal_error() message to indicate function responsible
6758 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6760 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6761 calls to local_hex_string_custom().
6763 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6765 * irix5-nat.c: Move IRIX shared library support from here...
6766 * solib-irix.c: ...to here. Revised substantially to work with
6767 generic solib framework.
6769 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6770 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6771 * mips-irix-tdep.c: New file.
6773 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6774 (mips-irix-tdep.o, solib-irix.o): New rules.
6775 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6777 * config/mips/irix6.mt (TDEPFILES): Likewise.
6778 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6780 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6782 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6783 disabled (via ``#if 0'') includes.
6785 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6787 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6788 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6789 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6790 Add support for the fpscr register.
6791 * rs6000-nat.c (regmap, fetch_inferior_registers)
6792 (store_inferior_registers, fetch_core_registers): Likewise.
6794 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6796 * rs6000-nat.c (language.h): Include.
6797 (special_regs): Delete this array.
6798 (regmap): New function.
6799 (fetch_register, store_register): Use regmap() to map gdb
6800 register numbers to ptrace register numbers. Also, use
6801 outputs from regmap() to make decisions regarding type of
6802 ptrace() call to make. In particular, don't compare against
6803 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6804 (fetch_inferior_registers, store_inferior_registers): Where
6805 possible, obtain register numbers from tdep struct. Don't
6806 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6807 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6808 (LAST_UISA_SP_REGNUM): Delete.
6810 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6812 * rs6000-nat.c (ppc-tdep.h): Include.
6813 (fetch_registers, store_register, fetch_core_registers): Don't
6814 access registers[] directly. Instead, use supply_register() or
6815 regcache_collect() as appropriate.
6816 (find_toc_address): Format hex address with local_hex_string().
6818 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6820 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6823 2002-07-24 Tom Tromey <tromey@redhat.com>
6825 * jv-exp.y: Marked all strings with _().
6826 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6828 (MethodInvocation, CastExpression, parse_number, yyerror,
6829 java_type_from_name, push_expression_name, yylex): Typo fixes.
6831 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6833 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6834 (tee_file_flush, tee_file_write, tee_file_fputs)
6835 (tee_file_isatty): New.
6836 * ui-file.h (tee_file_new): Add prototype.
6838 2002-07-24 Aidan Skinner <aidan@velvet.net>
6840 * ada-lang.c: Change k&r style function definitions to prototyped
6842 * ada-typeprint.c: Change k&r style function definitions to prototyped
6844 * ada-valprint.c: Change k&r style function definitions to prototyped
6847 2002-07-24 Andrew Cagney <cagney@redhat.com>
6849 * README: Remove reference to remote-bug.
6850 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6852 (m88k-nat.o): Delete rule.
6853 (m88k-tdep.o): Delete rule.
6854 (remote-bug.o): Delete rule.
6855 * MAINTAINERS: Mark as obsolete.
6856 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6857 * m88k-tdep.c: Make file obsolete.
6858 * config/m88k/m88k.mh: Ditto.
6859 * config/m88k/delta88v4.mh: Ditto.
6860 * config/m88k/delta88v4.mt: Ditto.
6861 * config/m88k/delta88.mt: Ditto.
6862 * config/m88k/delta88.mh: Ditto.
6863 * remote-bug.c: Ditto.
6864 * config/m88k/tm-delta88.h: Ditto.
6865 * config/m88k/nm-delta88v4.h: Ditto.
6866 * config/m88k/xm-delta88.h: Ditto.
6867 * config/m88k/xm-dgux.h: Ditto.
6868 * config/m88k/tm-m88k.h: Ditto.
6869 * config/m88k/nm-m88k.h: Ditto.
6870 * config/m88k/tm-delta88v4.h: Ditto.
6871 * m88k-nat.c: Ditto.
6872 * cxux-nat.c: Ditto.
6873 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6874 and m88*-*-* obsolete.
6875 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6878 2002-07-24 Andrew Cagney <cagney@redhat.com>
6880 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6881 constant. Same for local pointer variables.
6882 (extract_signed_integer): Ditto.
6883 * defs.h (extract_unsigned_integer): Update.
6884 (extract_signed_integer): Update.
6886 2002-07-24 Andrew Cagney <cagney@redhat.com>
6888 * regcache.c (regcache_raw_write): Change buf parameter to a
6889 constant void pointer.
6890 (regcache_raw_read): Change buf parameter to a void pointer.
6891 (legacy_write_register_gen): Change myaddr parameter a constant
6893 (supply_register): Change val parameter to a const void pointer.
6894 * regcache.h (regcache_raw_write): Update declaration.
6895 (regcache_raw_read): Update declaration.
6896 (supply_register): Update declaration.
6898 2002-07-24 Tom Tromey <tromey@redhat.com>
6900 * defs.h (gdb_readline_wrapper): Declare.
6901 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6902 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6903 * top.c (gdb_readline_wrapper): New function.
6904 (command_line_input): Use it.
6906 2002-07-24 Andrew Cagney <cagney@redhat.com>
6908 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6909 regcache_read and regcache_write.
6910 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6911 * regcache.c: Update.
6912 * sh-tdep.c (sh64_push_arguments): Update comment.
6913 (sh_pseudo_register_read): Update.
6914 (sh_pseudo_register_write): Update.
6915 (sh4_register_read): Update.
6916 (sh4_register_write): Update.
6917 (sh64_pseudo_register_read): Update.
6918 (sh64_pseudo_register_write): Update.
6919 (sh64_register_read): Update.
6920 (sh64_register_write): Update.
6921 * i386-tdep.c (i386_extract_return_value): Update.
6922 (i386_extract_struct_value_address): Update.
6923 (i386_extract_return_value): Update.
6924 * blockframe.c (generic_read_register_dummy): Update.
6925 (generic_call_dummy_register_unwind): Update
6926 * infrun.c (write_inferior_status_register): Update.
6928 2002-07-23 Jim Blandy <jimb@redhat.com>
6930 * parser-defs.h (expression_context_pc): Make this extern.
6931 (Thanks to Michael Snyder.)
6933 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6935 GDB 5.2.1 released from 5.2 branch.
6936 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6937 * README: Update to mention 5.2.1.
6939 2002-07-23 Mark Salter <msalter@redhat.com>
6941 * remote.c (remote_read_bytes): Fix check for error.
6943 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6945 * aix-thread.c (language.h): Include.
6946 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6947 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6948 Print newlines at end of debug messages.
6949 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6950 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6952 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6954 * aix-thread.c (ppc-tdep.h): Include.
6955 (special_register_p): New function.
6956 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6957 (store_regs_user_thread): Use register number information from
6958 gdbarch_tdep struct instead of hardcoded offsets relative to
6959 FIRST_UISA_SP_REGNUM.
6960 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6961 special_register_p() instead of using FPLAST_REGNUM and
6962 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6963 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6964 will be MQ's register number.
6966 2002-07-22 Michael Snyder <msnyder@redhat.com>
6968 * aix-thread.c (ops): Rename to aix_thread_ops.
6969 (base_ops): Rename to base_target.
6970 (ops_attach): Rename to aix_thread_attach.
6971 (ops_detach): Rename to aix_thread_detach.
6972 (ops_resume): Rename to aix_thread_detach.
6973 (ops_wait): Rename to aix_thread_wait.
6974 (ops_kill): Rename to aix_thread_kill.
6975 (init_ops): Rename to init_aix_thread_ops.
6976 (ops_fetch_register): Rename to aix_thread_fetch_register.
6977 (ops_store_register): Rename to aix_thread_store_register.
6978 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6979 (ops_thread_alive): Rename to aix_thread_thread_alive.
6980 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6981 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6982 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6983 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6984 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6985 (store_regs_lib): Rename to store_regs_user_thread.
6986 (store_regs_kern): Rename to store_regs_kernel_thread.
6988 2002-07-22 Michael Snyder <msnyder@redhat.com>
6990 * aix-thread.c (ops_prepare_to_store): Eliminate.
6991 (init_ops): Don't initialize ops.prepare_to_store.
6992 (store_regs_kern): Pre-fetch register buffers from child,
6993 because some registers may not be in the cache. Copy
6994 regs from register cache only if they are cached.
6995 (store_regs_lib): Copy regs from register cache only
6997 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6998 fill_gprs64): Ditto.
7000 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7002 * aix-thread.c (gdb_assert.h): Include.
7003 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7004 register sizes (from register cache) match size of buffer holding
7006 (fill_sprs32): Change parameter types to match those in the ptrace()
7008 (store_regs_lib): Likewise, but for 32-bit temporary variables.
7009 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7011 2002-07-22 Michael Snyder <msnyder@redhat.com>
7013 * aix-thread.c (supply_sprs64): Cosmetic change.
7014 (supply_sprs32): Cosmetic change.
7015 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7016 (fill_sprs64): Use regcache_collect instead of read_register.
7017 (store_regs_lib): Use regcache_collect instead of
7018 read_register. Use fill_sprs32 instead of fill_sprs64,
7019 if debugging a 32-bit architecture.
7020 (store_regs_kern): Use fill_gprs64 etc. to pull the values
7021 out of the register cache, instead of passing a pointer into
7022 the register cache directly to ptrace. Use regcache_collect
7023 insteaad of read_register.
7024 (ops_prepare_to_store): Use target_read_registers instead
7025 of read_register_bytes.
7027 2002-07-20 Aidan Skinner <aidan@velvet.net>
7029 * MAINTAINERS: Add self under write after approval.
7031 2002-07-20 Aidan Skinner <aidan@velvet.net>
7033 * ada-tasks.c: Change k&r style function definitions to prototyped
7036 2002-07-19 Andrew Cagney <ac131313@redhat.com>
7038 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7039 * x86-64-tdep.c: Include "objfiles.h".
7040 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7041 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7043 2002-07-17 Michal Ludvig <michal@suse.cz>
7045 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7046 (update_context): Initialise cfa variable.
7048 2002-07-17 Michael Snyder <msnyder@redhat.com>
7050 * aix-thread.c: Shorten some long lines.
7051 Bring comments into line with code spec.
7053 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7055 * infrun.c: Re-indent using gdb_indent.sh.
7057 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7059 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7060 Leave the indentation temporarily untouched, to minimize the diffs.
7062 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
7064 * stabsread.c: Make os9k sections of the code obsolete,
7066 * stabsread.h: Make os9k sections of the code obsolete.
7068 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7070 * linux-low.c (regsets_store_inferior_registers): Add free()
7071 at the end of a loop to prevent memory leak.
7072 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7073 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7074 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7076 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7078 2002-07-17 Jim Blandy <jimb@redhat.com>
7080 * macrocmd.c (info_macro_command): Remove newline from error
7083 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7085 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7086 (sh_gdbarch_init): Use it for sh-dsp.
7088 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7090 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7091 64-bit DWARF2 format.
7093 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7095 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7096 <sys/proc.h> when not available.
7098 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7100 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7101 * stabsread.c: Make os9k sections of the code obsolete.
7102 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7103 * config/i386/i386os9k.mt: Make file obsolete.
7104 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7105 (COMMON_OBS): Remove os9kread.o
7106 (SFILES): Remove os9kread.c.
7107 (os9kread.o, remote-os9k.o): Make target obsolete.
7108 * remote-os9k.c: Make file obsolete.
7109 * os9kread.c: Make file obsolete.
7112 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7114 * NEWS: Mention that the FR30 has been made obsolete.
7115 * fr30-tdep.c: Make file obsolete.
7116 * config/fr30/tm-fr30.h: Ditto.
7117 * config/fr30/fr30.mt: Ditto.
7118 * configure.tgt: Make fr30-*-elf obsolete.
7119 * MAINTAINERS: Make fr30-elf obsolete.
7121 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7123 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7124 found is not inside a section.
7126 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7128 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7130 (pdc_realloc): Use xrealloc() instead of realloc().
7132 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7134 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7135 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7136 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7139 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7141 * aix-thread.c (ptrace_check): Eliminate goto.
7142 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7145 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7147 * aix-thread.c (gdbcmd.h): Include.
7148 (DEBUG, DBG, DBG2, dbg): Eliminate.
7149 (debug_aix_thread): New static global.
7150 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7151 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7152 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7153 invocations to DBG and DBG2 macros to test against
7154 ``debug_aix_thread'' and call fprintf_unfiltered().
7155 (_initialize_aix_thread): Add new command "set debug aix-thread".
7157 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7159 From Gerhard Tonn <TON@de.ibm.com>:
7160 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7161 instead of supply_register.
7163 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7165 * dwarf2cfi.c: Include "gdb_assert.h".
7166 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7168 (update_context): Do not use __func__. Add missing ``break''.
7169 (update_context): Do not use __func__.
7171 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7173 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7174 and its setting. Set gdbarch instruction printing functions
7175 directly. For non-rs6000 case use new function
7176 gdb_print_insn_powerpc.
7177 (gdb_print_insn_powerpc): New function.
7179 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7181 * NEWS: Mention that the d30v has been marked obsolete.
7182 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7183 * configure.tgt: Mark d30v-*-* as obsolete.
7184 * d30v-tdep.c: Mark file as obsolete.
7185 * config/d30v/d30v.mt: Ditto.
7186 * config/d30v/tm-d30v.h: Ditto.
7188 2002-07-13 Aidan Skinner <aidan@velvet.net>
7190 * ada-tasks.c (add_task_entry): replace calls to
7191 malloc() with xmalloc
7192 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7194 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7195 ada_finish_decode_line_1, all_sals_for_line
7196 ada_breakpoint_rewrite): replace calls to free() with xfree()
7198 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7200 From Nicholas Duffek (with minor changes by Martin Hunt,
7201 Louis Hamilton, and Kevin Buettner):
7202 * aix-thread.c: New file.
7204 2002-07-12 Petr Sorfa <petrs@caldera.com>
7206 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7207 complaint for invalid attribute class or form.
7208 (read_func_scope): DW_AT_frame_base
7209 better handling of DW_AT_block*.
7210 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7211 better handling of DW_AT_block*.
7212 (read_common_block): DW_AT_location
7213 better handling of DW_AT_block*.
7214 (read_partial_die): DW_AT_location better handling
7216 (new_symbol): DW_AT_external better handling of
7217 DW_AT_block*. Proper initialization of variable
7219 (attr_form_is_block): New function that returns true
7220 if the attribute's form is of DW_FORM_block*.
7222 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7224 * valops.c (find_method_list): Remove comment about
7225 removed STATIC_MEMFUNCP argument.
7226 (value_find_oload_method_list): Likewise.
7228 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7230 From Nicholas Duffek:
7231 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7232 target_new_objfile_hook.
7234 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7236 From Nicholas Duffek:
7237 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7240 2002-07-12 Andrew Cagney <cagney@redhat.com>
7242 * MAINTAINERS: Mention --enable-sim-build-warnings.
7243 (m68hc11-elf): Disable sim build warnings.
7244 (m32r-elf): Mark as broken obsolete candidate.
7245 (x86_64-linux-gnu): Mark as buildable with -Werror.
7246 (arm-elf): Change -w to ``,'' which enables warnings but not
7249 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7251 * bcache.h: Update copyright.
7252 (struct bstring, struct bcache): Move definition to "bcache.c".
7253 Replaced by opaque declaration.
7254 (bcache_xfree): Replace free_bcache.
7255 (bcache_xmalloc, bcache_memory_used): Declare.
7257 * bcache.c: Update copyright.
7258 (struct bstring, struct bcache): Moved to here from "bcache.h".
7260 (bcache_xmalloc, bcache_memory_used): New functions.
7261 (bcache_xfree): Replace function free_bcache.
7263 * Makefile.in (objfiles.o): Add $(bcache_h).
7264 (objfiles_h): Remove $(bcache_h).
7265 (symfile.o): Add $(bcache_h).
7267 * symmisc.c: Update copyright.
7268 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7269 (print_objfile_statistics): Use bcache_memory_used.
7271 * symfile.c: Include "bcache.h".
7272 (reread_symbols): Use bcache_xfree.
7273 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7274 (add_psymbol_to_list): Pass psymbol_cache by value.
7275 (add_psymbol_with_dem_name_to_list): Ditto.
7277 * objfiles.h: Update copyright.
7278 (struct bcache): Declare opaque. Do not include "bcache.h".
7279 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7281 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7283 * objfiles.c: Include "bcache.h". Update copyright.
7284 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7286 (free_objfile): Use bcache_xfree.
7288 2002-07-11 Grace Sainsbury <graces@redhat.com>
7290 * monitor.c (monitor_fetch_register): Make name a constant.
7291 (monitor_store_register): Same.
7293 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7295 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7296 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7297 (finish_block) For non-function blocks, hash the symbol table. For
7298 function blocks, mark the symbol table as unhashed.
7299 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7300 (msymbol_hash_iw): Likewise.
7301 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7303 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7304 (lookup_minimal_symbol): Likewise for both.
7305 * symtab.h (struct block): Add `hashtable' flag. Comment the
7307 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7308 (ALL_BLOCK_SYMBOLS): Update.
7309 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7310 (struct symbol): Add `hash_next' pointer.
7311 * symtab.c (lookup_block_symbol): Search using the hash table when
7313 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7314 (search_symbols, find_addr_symbol): Likewise.
7316 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7317 (read_dst_symtab): Likewise.
7318 * jv-lang.c (get_java_class_symtab): Likewise.
7319 * mdebugread.c: Include "gdb_assert.h".
7320 (shrink_block): Assert that the block being modified is not hashed.
7321 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7322 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7324 (dump_symtab): Recognize hashed blocks.
7325 * printcmd.c (print_frame_args): Assert that function blocks do not
7326 have hashed symbol tables.
7327 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7328 (fill_in_ada_prototype, debug_print_block): Likewise.
7329 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7331 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7333 * stack.c (print_frame): Use result of frame_address_in_block()
7334 instead of fi->pc when evaluating symbols.
7335 (backtrace_command_1): Ditto.
7337 2002-07-11 Andrew Cagney <cagney@redhat.com>
7339 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7342 * arm-tdep.c (arm_register_name): Make return type constant.
7344 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7346 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7348 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7349 * s390-tdep.c (s390_fp_regnum): Ditto.
7350 (s390_read_fp): Ditto.
7351 (s390_pop_frame): Ditto.
7352 (_initialize_s390_tdep): Ditto.
7353 * remote.c (get_remote_state): Ditto.
7354 * procfs.c (mappingflags): Ditto.
7355 * memattr.c (_initialize_mem): Ditto.
7356 * mcore-tdep.c (mcore_pop_frame): Ditto.
7357 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7358 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7359 * language.c (set_case_str): Ditto.
7360 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7361 * frv-tdep.c (new_variant): Ditto.
7362 (frv_stopped_data_address): Ditto.
7363 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7364 (context_alloc): Ditto.
7365 (frame_state_alloc): Ditto.
7366 (unwind_tmp_obstack_init): Ditto.
7367 (unwind_tmp_obstack_free): Ditto.
7368 (cfi_read_fp): Ditto.
7369 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7370 (cris_pop_frame): Ditto.
7371 * c-lang.c (scanning_macro_expansion): Ditto.
7372 (finished_macro_expansion): Ditto.
7373 (c_preprocess_and_parse): Ditto.
7374 * gdbarch.sh: Ditto.
7375 * gdbarch.h, gdbarch.c: Regenerate.
7376 * config/mn10200/tm-mn10200.h: Adjust indentation.
7377 * target.c: Adjust indentation.
7378 * symtab.h: Adjust indentation.
7379 * stabsread.h: Adjust indentation.
7380 * remote-es.c: Adjust indentation.
7381 * os9kread.c: Adjust indentation.
7383 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7385 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7386 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7388 2002-07-10 Grace Sainsbury <graces@redhat.com>
7390 * NEWS: Mention m68k, mcore multi-arching.
7391 * MAINTAINERS: Change status of m68k, mcore to reflect
7394 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7396 * valops.c (find_overload_match): Free oload_syms.
7398 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7400 Define HAVE_SYS_PROC_H if sys/proc.h exists
7401 * configure.in: Add check for sys/proc.h
7402 * config.in: Regenerate.
7403 * configure: Regenerate.
7405 2002-07-09 Grace Sainsbury <graces@redhat.com>
7407 * config/m68k/tm-m68k.h: Remove macros wrapped in
7408 #if !GDB_MULTI_ARCH.
7410 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7412 * config.in, configure: Regenerate.
7414 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7416 * dwarf2cfi.c: Include "gcore.h".
7417 (execute_stack_op): Fix implementation of the
7418 DW_OP_deref and DW_OP_deref_size operators by letting do their
7419 lookup in the target.
7421 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7423 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7424 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7427 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7429 Fix PR gdb/595, gdb/602
7430 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7431 Don't call value_cast, just read the vtable pointer; update comments
7434 2002-07-05 Grace Sainsbury <graces@redhat.com>
7436 * config/mcore/tm-mcore.h: Remove file.
7437 * config/mcore/mcore.mt: Remove definition of TM_FILE
7438 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7440 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7442 * i386bsd-tdep.c: Include "gdb_string.h".
7444 2002-07-04 Grace Sainsbury <graces@redhat.com>
7446 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7447 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7449 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7450 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7451 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7452 (RETVAL_REGNUM): Move macros from tm-mcore.h
7453 (mcore_reg_struct_has_addr): New function.
7454 (mcore_gdbarch_init): Added initializations for the macros removed
7457 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7459 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7460 traditonal string branding within the ELF header.
7462 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7464 * symtab.c (remove_params): New function.
7465 (make_symbol_overload_list): Use it instead of cplus_demangle.
7466 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7468 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7470 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7472 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7474 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7475 and tdep->sigtramp_end.
7476 * i386obsd-nat.c: New file.
7477 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7479 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7480 Don't call get_current_frame().
7482 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7484 * i386-nat.c (child_post_startup_inferior): New function
7485 calling i386_cleanup_dregs if
7486 I386_USE_GENERIC_WATCHPOINTS is defined.
7487 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7488 conditional to acknowledge that i386-nat.c has its
7489 own child_post_startup_inferior function.
7491 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7493 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7494 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7495 instead of MAX_REGISTER_RAW_SIZE.
7496 (i386_extract_return_value, i386_extract_struct_value_address):
7497 Convert to use regcache.
7498 (i386_gdbarch_init): Set max_register_raw_size and
7499 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7500 Set extract_return_value and extract_struct_value_address instead
7501 of their deprecated variants.
7503 Convert i386 target to generic dummy frames.
7504 * i386-tdep.c: Include "symfile.h".
7505 (i386_frameless_signal_p): Consider a function to be frameless if
7506 the pc points at the first instruction of the function.
7507 (i386_frame_chain): Handle (generic) call dummies.
7508 (i386_frame_saved_pc): Likewise.
7509 (i386_frame_init_saved_regs): Remove code dealing with call
7510 dummies on the stack.
7511 (i386_push_dummy_frame): Removed.
7512 (i386_call_dummy_words): Removed.
7513 (i386_fix_call_dummy): Removed.
7514 (i386_push_return_address): New function.
7515 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7516 parameter, and don't call get_current_frame.
7517 (i386_pop_frame): New function.
7518 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7519 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7520 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7521 call_dummy_length to 0, set call_dummy_words to NULL, set
7522 sizeof_call_dummy_words to 0, set fix_call_dummy to
7523 generic_fix_call_dummy, set pc_in_call_dummy to
7524 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7525 generic_push_dummy_frame, set push_return_address to
7526 i386_push_return_address and set frame_chain_valid to
7527 generic_file_frame_chain_valid.
7529 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7531 * gdbarch.sh (struct regcache): Add opaque declaration.
7532 (EXTRACT_RETURN_VALUE): New architecture method.
7533 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7534 * gdbarch.h, gdbarch.c: Regenerate.
7535 * arch-utils.c (legacy_extract_return_value): New function.
7536 * arch-utils.h (legacy_extract_return_value): Declare.
7537 * values.c (value_being_returned): Re-enable code handling
7538 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7539 deprecated_grub_regcache_for_registers call to block handling
7540 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7541 (EXTRACT_RETURN_VALUE): Do not define.
7543 2002-07-03 Grace Sainsbury <graces@redhat.com>
7545 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7546 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7547 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7548 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7549 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7550 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7551 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7552 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7553 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7554 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7555 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7556 argument so the function fits the prototype in the architecture
7558 (mcore_pop_frame): Remove argument so the function fits the
7559 prototype. Use get_current_frame instead of the argument.
7560 (mcore_push_arguments): Change type of struct_return so the
7561 function can be used in the architecture vector.
7562 (mcore_store_struct_return): Add.
7563 (mcore_frame_init_saved_regs): Add.
7564 (mcore_gdbarch_init): Add function calls to replace the macros
7565 removed from tm-mcore.h
7567 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7569 * infcmd.c (print_return_value): Remove compatibility code calling
7570 deprecated_grub_regcache_for_registers.
7572 * values.c: Include "regcache.h".
7573 (value_being_returned): Update. Use
7574 deprecated_grub_regcache_for_registers to extract the register
7576 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7577 ``struct regcache''.
7578 * Makefile.in (values.o): Add dependency on $(regcache_h).
7580 * inferior.h (run_stack_dummy): Change type of second parameter to
7581 a ``struct regcache''.
7582 * valops.c (hand_function_call): Change type of retbuf to ``struct
7583 regcache''. Allocate using regcache_xmalloc, clean using
7584 make_cleanup_regcache_xfree.
7585 * infcmd.c (run_stack_dummy): Update. Use
7586 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7588 * regcache.c (do_regcache_xfree): New function.
7589 (make_cleanup_regcache_xfree): New function.
7590 * regcache.h (make_cleanup_regcache_xfree): Declare.
7592 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7594 * event-top.c (command_line_handler): Don't read past
7595 beginning of buffer.
7597 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7599 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7601 (varobj_create): Store frame_id for root.
7602 (varobj_gen_name): Use xasprintf.
7603 (varobj_update): Save and restore frame using get_frame_id() and
7605 (create_child): Use xasprintf.
7606 (new_root_variable): Initialize frame_id.
7607 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7608 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7609 to prevent memory leak.
7611 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7613 * valops.c (hand_function_call): Move declaration of retbuf to
7614 start of function, allocate using malloc, add a cleanup but before
7615 the inf_status cleanup, cleanup the buffer. Rename local variable
7616 old_chain to inf_status_cleanup.
7618 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7620 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7622 * cli/cli-decode.c (cmd_func_p): New function.
7623 (cmd_func): New function.
7625 * command.h: Add cmd_func() and cmd_func_p().
7627 2002-07-03 Grace Sainsbury <graces@redhat.com>
7629 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7630 (REGISTER_SIZE): Remove.
7631 (MAX_REGISTER_RAW_SIZE): Remove.
7632 (REGISTER_VIRTUAL_TYPE): Remove.
7633 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7634 (REGISTER_NAME): Remove.
7635 (USE_GENERIC_DUMMY_FRAMES): Remove.
7636 (CALL_DUMMY): Remove.
7637 (CALL_DUMMY_START_OFFSET): Remove.
7638 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7639 (CALL_DUMMY_LOCATION): Remove.
7640 (FIX_CALL_DUMMY): Remove.
7641 (CALL_DUMMY_ADDRESS): Remove.
7642 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7643 (SAVE_DUMMY_FRAME_TOS): Remove.
7644 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7645 (mcore_register_virtual_type): New function.
7646 (mcore_register_byte): New function.
7647 (mcore_register_size): New function.
7648 (mcore_register_name): New function.
7649 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7650 macros removed from tm-mcore.h.
7651 (mcore_dump_tdep): Add.
7652 (_initialize_mcore_tdep): Add gdbarch_register call.
7654 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7656 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7657 frameless_look_for_prologue, such that we actually call this
7660 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7662 * frame.h (frame_address_in_block): New function.
7664 * blockframe.c (frame_address_in_block): New function extracted
7665 from get_frame_block().
7666 (get_frame_block): Use frame_address_in_block().
7667 (block_innermost_frame): Use frame_address_in_block() to match
7668 the frame pc address against the block boundaries rather than
7669 the frame pc directly. This prevents a failure when a frame pc
7670 is actually a return-address pointing immediately after the end
7673 2002-07-02 Grace Sainsbury <graces@redhat.com>
7675 * MAINTAINERS: Add self under write after approval.
7677 2002-07-02 Grace Sainsbury <graces@redhat.com>
7679 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7680 used in architecture vector. The default is
7681 m68k_local_breakpoint_from_pc.
7682 (m68k_local_breakpoint_from_pc): Add.
7683 (enum): Add register numbers from tm-m68k.h.
7684 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7686 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7687 GDB_MULTI_ARCH_PARTIAL.
7688 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7689 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7691 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7692 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7693 to enum in m68k-tdep.c
7695 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7697 * solib-osf.c (open_map): Compute the list of shared libraries
7698 loaded by the inferior, rather than the list of libraries loaded
7699 by GDB itself. Otherwise, GDB ends up reading the symbols from
7700 the wrong shared libraries...
7702 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7704 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7705 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7707 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7709 (FRAMELESS_SIGNAL): Remove function.
7710 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7711 i386_linux_saved_pc_after_call): Removed.
7712 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7713 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7714 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7716 * i386-tdep.c (i386_frameless_signal_p): New function.
7717 (i386_frame_chain): Deal with frameless signals.
7718 (i386_sigtramp_saved_sp): New function.
7719 (i386_frame_saved_pc): Deal with frameless signals.
7720 (i386_saved_pc_after_call): Make sure the correct value is
7721 returned just after entry into a sigtramp.
7722 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7723 i386fbsd4_sc_sp_offset): New variables.
7724 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7725 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7726 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7727 similiar to what we already did for sc_pc_offset.
7728 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7731 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7733 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7735 * config/i386/tm-x86-64linux.h: New.
7736 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7738 * config/i386/nm-x86-64.h: Rename to ...
7739 * config/i386/nm-x86-64linux.h: ... this one.
7740 * config/i386/x86-64linux.mh: Reflect the above change.
7742 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7744 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7745 with sigcontext_addr. Add sc_sp_offset.
7746 (i386bsd_sigtramp_saved_pc): Remove prototype.
7747 (i386bsd_sicontext_addr): Add prototype.
7748 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7749 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7750 (i386_svr4_sigtramp_saved_pc): Removed.
7751 (i386_svr4_sigcontext_addr): New function.
7752 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7753 Initialize tdep->sigcontext_addr instead. Initialize
7754 tdep->sc_pc_offset and tdep->sc_sp_offset.
7755 (i386_gdbarch_init): Likewise.
7756 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7758 (i386bsd_sigtramp_saved_pc): Remove function.
7759 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7760 Initialize tdep->sigcontext_addr instead. Initialize
7762 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7763 of tdep->sigtramp_saved_pc.
7764 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7765 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7768 * i386-tdep.c (i386_frameless_function_invocation,
7769 i386_frame_num_args, i386_frame_init_saved_regs,
7770 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7771 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7772 i386_extract_return_value, i386_store_return_value,
7773 i386_extract_struct_value_address, i386_register_virtual_type,
7774 i386_register_convertible, i386_register_convert_to_virtual,
7775 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7776 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7779 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7781 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7783 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7784 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7785 this macro. Include "value.h".
7787 2002-06-30 Aidan Skinner <aidan@velvet.net>
7789 * ada-exp.tab.c: remove as it's a generated file
7790 * ada-lex.c: remove as it's a generated file
7792 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7794 * config/i386/tm-i386.h (struct frame_info, struct
7795 frame_saved_regs, struct value, struct type): Remove forward
7798 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7799 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7800 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7801 (FILL_FPXREGSET): Define.
7803 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7805 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7806 i[3456]86-*-netbsd* case.
7807 * config/i386/tm-obsd.h: Removed.
7808 * config/i386/obsd.mt: Removed.
7809 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7811 (MH_CFLAGS): Add -DYYDEBUG=0.
7813 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7814 i386nbsd_sc_pc_offset on OpenBSD too.
7816 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7817 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7818 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7820 * i386bsd-tdep.c: Include "arch-utils.h".
7821 (i386bsd_aout_in_solib_call_trampoline): New function.
7822 (i386bsd_init_abi): Set in_solib_call_trampoline to
7823 i386bsd_aout_in_solib_call_trampoline.
7824 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7825 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7827 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7829 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7830 (struct obstack, struct bcache): Add opaque declarations.
7831 * Makefile.in (macrotab_h): Update
7833 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7835 * blockframe.c (generic_find_dummy_frame): Change return type to
7836 ``struct regcache''.
7837 (struct dummy_frame): Replace field ``registers'' with regcache, a
7838 struct regcache object.
7839 (generic_find_dummy_frame): Update.
7840 (generic_push_dummy_frame): Update. Use regcache_xfree,
7841 regcache_xmalloc and regcache_cpy.
7842 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7844 (deprecated_generic_find_dummy_frame): Update.
7845 (generic_read_register_dummy): Update. Use
7846 regcache_read_as_address.
7847 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7848 (generic_get_saved_register): Update. Use regcache_read.
7850 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7852 * Makefile.in (objfiles_h): Add $(bcache_h).
7853 * objfiles.h: Include "bcache.h".
7855 * Makefile.in (symtab_h): Remove $(bcache_h).
7856 * symtab.h: Do not include "bcache.h".
7858 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7860 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7861 generic_func_frame_chain_valid.
7863 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7865 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7866 * config/i386/tm-fbsd.h: Likewise.
7868 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7870 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7871 generic_unwind_get_saved_register.
7873 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7875 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7876 * regcache.c (supply_register): Add missing argument to
7877 register_buffer call.
7879 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7881 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7882 Solaris /bin/grep does not not like it. From Peter Schauer.
7884 2002-06-26 Tom Tromey <tromey@redhat.com>
7886 * command.h (add_setshow_cmd): Declare.
7887 (add_setshow_cmd_full): Declare.
7888 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7889 returns void. Use add_setshow_cmd_full.
7890 (add_setshow_cmd_full): New function.
7891 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7892 (add_setshow_boolean_cmd): Likewise.
7894 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7896 * config/vax/tm-vax.h: Protect from multiple inclusion.
7897 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7898 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7899 * config/vax/tm-vaxbsd.h: ...here. New file.
7900 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7902 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7904 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7905 (BELIEVE_PCC_PROMOTION): Remove.
7906 (AP_REGNUM): Move to...
7907 * config/vax/nm-vax.h: ...here.
7908 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7909 (vax_breakpoint_from_pc): New function.
7910 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7911 and gdbarch_believe_pcc_promotion.
7913 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7915 * Makefile.in (vax_tdep_h): Define.
7916 (vax-tdep.o): Use $(vax_tdep_h).
7917 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7918 (vax_dump_tdep): New function.
7919 (_initialize_vax_tdep): Register vax_dump_tdep.
7920 * vax-tdep.h: Include osabi.h.
7921 (struct gdbarch_tdep): New.
7923 2002-06-26 Andrew Cagney <cagney@redhat.com>
7925 * frame.h (deprecated_generic_find_dummy_frame): Rename
7926 generic_find_dummy_frame.
7927 * blockframe.c (generic_find_dummy_frame): Make static.
7928 (deprecated_generic_find_dummy_frame): New function.
7929 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7930 generic_find_dummy_frame with deprecated_find_dummy_frame.
7931 (sh64_nofp_frame_init_saved_regs): Ditto.
7932 (sh_fp_frame_init_saved_regs): Ditto.
7933 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7934 (s390_frame_chain): Ditto.
7935 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7937 2002-06-26 Grace Sainsbury <graces@redhat.com>
7939 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7940 gdbarch vector are at the top.
7942 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7943 (FRAME_ARGS_ADDRESS): Remove.
7944 (FRAME_LOCALS_ADDRESS): Remove.
7945 (FRAME_NUM_ARGS): Remove.
7946 (FRAME_ARGS_SKIP): Remove.
7947 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7948 (m68k_gdbarch_init): Add gdbarch initializations for macros
7949 undefined in tm-m68k.h
7951 2002-06-26 Grace Sainsbury <graces@redhat.com>
7953 * monitor.h: Add the function regname to monitor_ops
7954 structure. This way NUM_REGS does not have to be a constant.
7955 * monitor.c (monitor_fetch_register): Added support for regname
7956 function. The function is called if the array regnames is NULL.
7957 (monitor_store_register): Same.
7958 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7960 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7961 cpu32bug_cmds.regname to point to new function.
7962 * abug-rom.c (abug_regname): Same as above.
7963 (init_abug_cmds): Same.
7964 * dbug-rom.c (dbug_regname): Same as above.
7965 (init_dbug_cmds): Same.
7966 * remote-est.c (est_regname): Same.
7967 (init_est_cmds): Same.
7968 * rom68k-rom.c (rom68k_regname): Same.
7969 (init_rom68k_cmds): Same.
7971 2002-06-25 Tom Tromey <tromey@redhat.com>
7973 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7975 2002-06-25 Andrew Cagney <cagney@redhat.com>
7977 * infrun.c (stop_registers): Change variable's type to ``struct
7979 (xmalloc_inferior_status): Delete function.
7980 (free_inferior_status): Delete function.
7981 (normal_stop): Use regcache_cpy.
7982 (struct inferior_status): Change type of fields ``stop_registers''
7983 and ``registers'' to ``struct regcache''.
7984 (write_inferior_status_register): Use regcache_write.
7985 (save_inferior_status): Instead of calling
7986 xmalloc_inferior_status, allocate the inf_status buffer directly.
7987 Use regcache_dup_no_passthrough and regcache_dup to save the
7989 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7990 Replace the stop_registers regcache instead of overriding it. Use
7991 regcache_xfree. Instead of calling free_inferior_status, xfree
7992 the buffer directly.
7993 (discard_inferior_status): Use regcache_xfree. Instead of calling
7994 free_inferior_status, xfree the buffer directly.
7995 (build_infrun): Use regcache_xmalloc.
7996 (_initialize_infrun): Delete redundant call to build_infrun.
7998 * Makefile.in (infcmd.o): Add $(regcache_h).
8000 * infcmd.c: Include "regcache.h".
8001 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8002 obtain the address of `stop_registers' register buffer.
8003 (print_return_value): Ditto.
8005 * inferior.h (struct regcache): Add opaque declaration.
8006 (stop_registers): Change variable's declared type to ``struct
8009 2002-06-24 Tom Tromey <tromey@redhat.com>
8011 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8012 * target.c (initialize_targets): Fixed typo in
8013 trust-readonly-sections `show' documentation.
8015 * main.c: Marked all strings with _().
8017 2002-06-24 Don Howard <dhoward@redhat.com>
8019 * memattr.c (create_mem_region): Treat hi == 0 as a special case
8020 that means max CORE_ADDR+1.
8021 (lookup_mem_region): Ditto.
8022 (mem_info_command): Ditto.
8024 2002-06-24 Grace Sainsbury <graces@redhat.com>
8026 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8027 (REGISTER_BYTES_OK): Remove.
8028 (REGISTER_BYTES): Remove.
8029 (STORE_STRUCT_RETURN): Remove.
8030 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8031 (STORE_RETURN_VALUE): Remove.
8032 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8033 (FRAME_CHAIN): Remove.
8034 (FRAMELESS_FUNCTION_INVOCATION): Remove.
8035 (FRAME_SAVED_PC): Remove.
8036 * m68k-tdep.c (m68k_register_bytes_ok):Add.
8037 (m68k_store_struct_return): Add.
8038 (m68k_deprecated_extract_return_value): Add.
8039 (m68k_deprecated_extract_struct_value_address): Add.
8040 (m68k_store_return_value): Add.
8041 (m68k_frame_chain): Add.
8042 (m68k_frameless_function_invocation): Add.
8043 (m68k_frame_saved_pc): Add.
8044 (m68k_gdbarch_init): added set_gdbarch calls for new
8045 functions and deleted macros.
8047 2002-06-23 Tom Tromey <tromey@redhat.com>
8049 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8050 (ALLDEPFILES): Likewise.
8051 (udiheaders): Removed.
8052 (udip2soc.o): Likewise.
8053 (udi2go32.o): Likewise.
8055 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8057 2002-06-22 Andrew Cagney <ac131313@redhat.com>
8059 * infrun.c (_initialize_infrun): Delete unnecessary call to
8062 * regcache.h: Update comments describing the regcache_cpy family
8064 (regcache_save, regcache_restore): Delete declaration.
8065 (regcache_save_no_passthrough): Delete declaration.
8066 (regcache_restore_no_passthrough): Delete declaration.
8067 * regcache.c (regcache_save): Delete function.
8068 (regcache_save_no_passthrough): Delete function.
8069 (regcache_restore): Delete function.
8070 (regcache_restore_no_passthrough): Delete function.
8072 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8074 * config/m68k/tm-m68k.h: Fix typo.
8075 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8076 (m68k_frame_init_saved_regs): Declare.
8078 2002-06-21 Jim Blandy <jimb@redhat.com>
8080 Remove some vestiges of Harris 88k support.
8081 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8082 register numbering quirk.
8083 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8084 odd symbols occurring in Harris 88k ELF targets.
8086 2002-06-21 Tom Tromey <tromey@redhat.com>
8088 * gdb_locale.h: New file.
8089 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8090 (defs_h): Added gdb_locale.h.
8091 * configure, config.in: Rebuilt.
8092 * configure.in (PACKAGE): Define.
8093 * defs.h: Include gdb_locale.h.
8094 * main.c (captured_main): Call setlocale, bindtextdomain,
8097 2002-06-21 Dave Brolley <brolley@redhat.com>
8099 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8100 * config/frv/frv.mt: New file.
8101 * config/frv/tm-frv.h: New file.
8102 * configure.tgt: Support frv-*-*.
8103 * Makefile.in (frv-tdep.o): New target.
8104 * frv-tdep.c: New file.
8105 * NEWS: Mention frv.
8107 2002-06-21 Dave Brolley <brolley@redhat.com>
8109 * MAINTAINERS: Add self to "Write After Approval" list.
8111 2002-06-21 Grace Sainsbury <graces@redhat.com>
8113 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8114 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8115 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8116 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8117 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8119 * m68k-tdep.c: Include arch-utils.h
8120 (m68k_register_raw_size): Add.
8121 (m68k_register_virtual_size): Add.
8122 (m68k_register_virtual_type): Add.
8123 (m68k_register_name): Add.
8124 (m68k_stack_align): Add.
8125 (m68k_register_byte): Add.
8126 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8129 2002-06-21 Grace Sainsbury <graces@redhat.com>
8131 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8132 m68k_find_saved_regs.
8133 (m68k_pop_frame): Removed saved_regs structure, and replaced
8134 references to it with frame->saved_regs.
8135 (m68k_gdbarch_init): Added function calls to initialize the
8137 (m68k_fix_call_dummy): Add.
8138 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8139 (CALL_DUMMY): Remove.
8140 (CALL_DUMMY_LENGTH): Remove.
8141 (CALL_DUMMY_START_OFFSET): Remove.
8142 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8143 (FIX_CALL_DUMMY): Remove.
8144 (PUSH_DUMMY_FRAME): Remove.
8145 (POP_FRAME): Remove.
8147 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8149 * parse.c (parse_fprintf): New function used to avoid calls to
8150 fprintf in bison parser generated debug code.
8151 * parser-defs.h: Declaration of new parse_fprintf function.
8152 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8153 Set YYDEBUG to 1 by default.
8154 Set YYFPRINTF as parse_fprintf.
8156 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8158 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8160 (pointer_encoding, enum ptr_encoding): New.
8161 (execute_cfa_program): Take care about pointer encoding.
8162 (dwarf2_build_frame_info): Only call parse_frame_info for
8163 .debug_frame and .eh_frame.
8164 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8165 fixed augmentation handling, added relative addressing,
8166 ignore duplicate FDEs. Added comments.
8167 * dwarf2cfi.c: Reindented.
8169 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8171 * event-top.c (command_handler): Don't use space_at_cmd_start
8172 unless there is sbrk() on the host. Assign time and space data
8173 to union fields of the appropriate length.
8175 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8177 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8178 x86_64_register_name. Return type changed to 'const char *'.
8179 (x86_64_register_name2nr): Rename to x86_64_register_number.
8180 (x86_64_gdbarch_init): Update to reflect the change.
8181 * x86-64-tdep.h: Ditto.
8182 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8183 (supply_fpregset): Ditto.
8185 2002-06-19 Andrew Cagney <cagney@redhat.com>
8187 * regcache.h: Update copyright.
8188 (struct regcache, struct gdbarch): Add opaque declarations.
8189 (current_regcache): Declare global variable.
8190 (regcache_read, regcache_write): Add gdbarch parameter.
8191 (regcache_save, regcache_save_no_passthrough)
8192 (regcache_restore, regcache_restore_no_passthrough)
8193 (regcache_dup, regcache_dup_no_passthrough)
8194 (regcache_cpy, regcache_cpy_no_passthrough)
8195 (deprecated_grub_regcache_for_registers)
8196 (deprecated_grub_regcache_for_register_valid)
8197 (regcache_valid_p): Add function declarations.
8199 * regcache.c: Update copyright.
8200 (regcache_descr_handle): New global variable.
8201 (struct regcache_descr): Define.
8202 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8203 (regcache_descr, xfree_regcache_descr): New functions.
8204 (struct regcache): Define.
8205 (regcache_xmalloc, regcache_xfree): New functions.
8206 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8207 (regcache_dup, regcache_dup_no_passthrough): New functions.
8208 (regcache_valid_p, regcache_read_as_address): New functions.
8209 (deprecated_grub_regcache_for_registers): New function.
8210 (deprecated_grub_regcache_for_register_valid): New function.
8211 (current_regcache): New global variable.
8212 (register_buffer): Add regcache parameter. Update calls.
8213 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8214 (read_register_gen, write_register_gen): Update register_buffer
8215 call. Test for legacy_p instead of gdbarch_register_read_p or
8216 gdbarch_register_write_p.
8217 (regcache_collect): Update register_buffer call.
8218 (build_regcache): Rewrite. Use deprecated grub functions.
8219 (regcache_save, regcache_save_no_passthrough): New functions.
8220 (regcache_restore, regcache_restore_no_passthrough): New
8222 (_initialize_regcache): Create the regcache_data_handle. Swap
8223 current_regcache global variable.
8225 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8226 parameter to regcache_read and regcache_write calls.
8227 (sh4_register_read): Ditto.
8228 (sh64_pseudo_register_read): Ditto.
8229 (sh64_register_read): Ditto.
8230 (sh_pseudo_register_write): Ditto.
8231 (sh4_register_write): Ditto.
8232 (sh64_pseudo_register_write): Ditto.
8233 (sh64_register_write): Ditto.
8235 * defs.h (XCALLOC): Define.
8237 2002-06-19 Grace Sainsbury <graces@redhat.com>
8239 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8240 * m68k-tdep.c (m68k_gdbarch_init): Added.
8241 (m68k_dump_tdep): Added.
8243 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8245 * ada-lang.c (fill_in_ada_prototype): Update comment.
8247 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8249 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8251 (mips_abi_string, mips_abi_strings): New.
8252 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8253 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8254 tdep->mips_abi_string. Honor mips_abi_string. Default to
8255 O32 if no ABI is found.
8256 (mips_dump_tdep): Use mips_abi_strings.
8257 (mips_abi_update): New function.
8258 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8259 ``set mips abi'' and ``show mips abi''. Check the size of
8262 2002-06-19 Andrew Cagney <cagney@redhat.com>
8264 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8267 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8269 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8270 current frame using only the first stack size adjustment. All
8271 subsequent size adjustments are not considered to be part of
8272 the "static" part of the current frame.
8273 Compute the address of the saved registers relative to the
8274 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8275 in use in this frame.
8277 2002-06-18 Don Howard <dhoward@redhat.com>
8279 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8280 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8281 suggesting this solution.
8283 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8285 * config/romp/xm-rtbsd.h: Delete file.
8286 * config/romp/rtbsd.mh: Delete file.
8288 2002-06-18 Keith Seitz <keiths@redhat.com>
8290 * breakpoint.c (condition_command): Post breakpoint_modify
8291 when a condition is added to an existing breakpoint.
8292 (commands_command): Likewise for commands.
8293 (set_ignore_count): Likewise for ignore counts.
8294 If no tty, do not simply return, still need to send event
8296 (ignore_command): Only print a newline if the command came
8298 Don't call breakpoints_changed, since this is now properly
8299 handled by set_ignore_count.
8301 2002-06-18 Andrew Cagney <cagney@redhat.com>
8303 * MAINTAINERS: Note that cris-elf target can be compiled with
8305 * cris-tdep.c (cris_register_name): Make return type constant.
8306 (cris_breakpoint_from_pc): Ditto.
8308 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8310 * frame.h (struct frame_info): Change type of context to
8313 2002-06-17 Andrew Cagney <cagney@redhat.com>
8315 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8317 * gdbarch.h, gdbarch.c: Regenerate.
8318 * config/mips/tm-mips.h (mips_register_name): Update.
8319 * i386-tdep.h (i386_register_name): Update.
8320 * mips-tdep.c (mips_register_name): Update
8321 * alpha-tdep.c (alpha_register_name): Update.
8322 * arch-utils.c (legacy_register_name): Update.
8323 * arch-utils.h (legacy_register_name): Update.
8324 * avr-tdep.c (avr_register_name): Update.
8325 * ia64-tdep.c (ia64_register_name): Update.
8326 * i386-tdep.c (i386_register_name): Update.
8327 * sparc-tdep.c (sparc32_register_name): Update.
8328 (sparc64_register_name): Update.
8329 (sparclite_register_name): Update.
8330 (sparclet_register_name): Update.
8331 * sh-tdep.c (sh_generic_register_name): Update.
8332 (sh_sh_register_name): Update.
8333 (sh_sh3_register_name): Update.
8334 (sh_sh3e_register_name): Update.
8335 (sh_sh_dsp_register_name): Update.
8336 (sh_sh3_dsp_register_name): Update.
8337 (sh_sh4_register_name): Update.
8338 (sh_sh64_register_name): Update.
8339 * s390-tdep.c (s390_register_name): Update.
8340 * rs6000-tdep.c (rs6000_register_name): Update.
8341 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8342 (ns32k_register_name_32382): Update.
8343 * d10v-tdep.c (d10v_ts2_register_name): Update.
8344 (d10v_ts3_register_name): Update.
8345 * xstormy16-tdep.c (xstormy16_register_name): Update.
8346 * vax-tdep.c (vax_register_name): Update.
8347 * v850-tdep.c (v850_register_name): Update.
8348 * m68hc11-tdep.c (m68hc11_register_name): Update.
8349 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8350 (am33_register_name): Update.
8352 2002-06-17 Grace Sainsbury <graces@redhat.com>
8354 * m68k-tdep.c: Reindented.
8356 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8358 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8359 list of predefined types.
8361 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8363 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8364 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8365 REGISTER_CONVERT_TO_RAW): Remove defines.
8366 (i386_register_virtual_type, i386_register_convertible,
8367 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8369 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8370 macros mentioned above.
8372 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8373 (i386lynx_saved_pc_after_call): Remove prototype.
8374 * i386ly-tdep.c: Include "i386-tdep.h".
8375 (i386lynx_saved_pc_after_call): Make static. Use
8376 read_memory_nobpt instead of read_memory. Use
8377 read_memory_unsigned_integer instead of read_memory_integer.
8378 (i386lynx_init_abi): New function.
8379 (i386lynx_coff_osabi_sniffer): New function.
8380 (_initialize_i386bsd_tdep): New function.
8382 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8383 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8384 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8385 (i386_fix_call_dummy): Remove prototype.
8386 * i386-tdep.c (i386_call_dummy_words): New variable.
8387 (i386_gdbarch_init): Adjust for removal of the
8388 macros mentioned above.
8390 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8392 * command.h (add_setshow_auto_boolean_cmd): Replace
8393 add_set_auto_boolean_cmd.
8394 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8395 add_set_auto_boolean_cmd.
8396 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8397 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8398 mask-address'' command.
8399 (show_mask_address): Add cmd parameter.
8400 * remote.c (add_packet_config_cmd): Update. Change type of
8401 set_func and show_func to cmd_sfunc_ftype.
8402 (_initialize_remote): Update `set remote Z-packet'
8403 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8404 (show_remote_protocol_e_packet_cmd): Ditto.
8405 (show_remote_protocol_E_packet_cmd): Ditto.
8406 (show_remote_protocol_P_packet_cmd): Ditto.
8407 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8408 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8409 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8410 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8411 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8412 (show_remote_protocol_Z_packet_cmd): Ditto.
8413 (show_remote_protocol_binary_download_cmd): Ditto.
8414 (show_remote_cmd): Pass NULL to all of above.
8416 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8418 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8419 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8420 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8421 POP_FRAME): Remove defines.
8422 (i386_push_arguments, i386_store_struct_return,
8423 i386_extract_return_value, i386_store_return_value,
8424 i386_extract_struct_value_address, i386_push_dummy_frame,
8425 i386_pop_frame): Renove prototypes.
8426 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8427 macros mentioned above.
8429 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8431 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8432 add_set_boolean_cmd.
8433 (add_setshow_cmd): New function.
8434 * command.h (add_setshow_boolean_cmd): Replace
8435 add_set_boolean_cmd.
8436 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8437 and ``set rdiromatzero''.
8438 * maint.c (_initialize_maint_cmds): Update commented out code.
8439 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8440 * target.c (initialize_targets): Update `set
8441 trust-readonly-sections'.
8442 * remote.c (_initialize_remote): Update `set remotebreak'.
8444 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8446 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8447 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8448 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8449 fit into multi-arch framework.
8450 (i386_breakpoint_from_pc): New function.
8451 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8454 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8455 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8456 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8457 (i386_frameless_function_invocation, i386_frame_num_args,
8458 i386_frame_init_saved_regs): Remove prototypes.
8459 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8460 macros mentioned above.
8462 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8464 * cli/cli-decode.c (set_cmd_cfunc): Update.
8465 (set_cmd_sfunc): Update.
8466 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8467 (set_cmd_sfunc, set_cmd_cfunc): Update.
8468 * cli/cli-decode.h: Update.
8470 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8472 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8473 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8475 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8477 * defs.h (auto_boolean): Declare enum.
8478 * command.h (cmd_auto_boolean): Delete enum.
8479 * mips-tdep.c (mask_address_var): Update.
8480 (mips_mask_address_p): Update.
8481 (show_mask_address): Update.
8482 * remote.c (struct packet_config): Update.
8483 (update_packet_config): Update.
8484 (show_packet_config_cmd): Update.
8485 (packet_ok): Update.
8486 (add_packet_config_cmd): Update.
8487 (_initialize_remote):
8488 * command.h: Update.
8489 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8490 (do_setshow_command): Update.
8491 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8492 * cli/cli-decode.h: Update.
8494 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8496 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8497 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8498 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8499 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8500 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8501 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8503 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8504 list of DJGPP COFF targets.
8506 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8507 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8508 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8509 (FP0_REGNUM): Remove define.
8510 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8511 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8512 (i386_register_virtual_size): Remove protoype.
8513 * i386-tdep.c (i386_register_virtual_size): Removed.
8514 (i386_extract_return_value, i386_store_return_value): Use
8515 FP0_REGNUM instead of NUM_FREGS to determine whether the
8516 floating-point registers are available.
8517 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8518 Adjust for removal of macros mentioned above.
8520 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8522 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8524 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8526 (supply_gregset, fill_gregset): Remove use of register keyword and
8527 remove declaration for regmap. Use I386_NUM_GREGS instead of
8528 NUM_REGS and NUM_FREGS.
8529 (FPREGSET_FSAVE_OFFSET): Remove.
8530 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8531 NUM_FREGS to determine whether the floating-point registers are
8534 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8535 gnu_store_registers): Replace usage of NUM_GREGS with
8538 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8539 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8540 usage of NUM_GREGS with I386_NUM_GREGS.
8542 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8544 * i386bsd-nat.c: Include "i386-tdep.h".
8545 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8548 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8549 and associated comment. They no longer make any sense, since we
8550 don't use this file anymore on Linux.
8552 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8553 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8554 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8555 elements in these arrays.
8556 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8559 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8561 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8562 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8564 2002-06-14 Andrew Cagney <cagney@redhat.com>
8566 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8567 EXTRACT_RETURN_VALUE.
8568 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8569 EXTRACT_STRUCT_VALUE_ADDRESS.
8570 * gdbarch.h, gdbarch.c: Regenerate.
8572 * values.c (value_being_returned): Handle
8573 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8574 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8576 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8577 * arm-tdep.c (arm_gdbarch_init): Update.
8578 * avr-tdep.c (avr_gdbarch_init): Update.
8579 * cris-tdep.c (cris_gdbarch_init): Update.
8580 * d10v-tdep.c (d10v_gdbarch_init): Update.
8581 * ia64-tdep.c (ia64_gdbarch_init): Update.
8582 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8583 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8584 * s390-tdep.c (s390_gdbarch_init): Update.
8585 * sh-tdep.c (sh_gdbarch_init): Update.
8586 * s390-tdep.c (s390_gdbarch_init): Update.
8587 * sparc-tdep.c (sparc_gdbarch_init): Update.
8588 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8589 * v850-tdep.c (v850_gdbarch_init): Update.
8590 * vax-tdep.c (vax_gdbarch_init): Update.
8591 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8592 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8594 * config/arc/tm-arc.h: Update.
8595 * config/d30v/tm-d30v.h: Update.
8596 * config/fr30/tm-fr30.h: Update.
8597 * config/h8300/tm-h8300.h: Update.
8598 * config/h8500/tm-h8500.h: Update.
8599 * config/i386/tm-i386.h: Update.
8600 * config/i386/tm-ptx.h: Update.
8601 * config/i386/tm-symmetry.h: Update.
8602 * config/i960/tm-i960.h: Update.
8603 * config/m32r/tm-m32r.h: Update.
8604 * config/m68k/tm-delta68.h: Update.
8605 * config/m68k/tm-linux.h: Update.
8606 * config/m68k/tm-m68k.h: Update.
8607 * config/m88k/tm-m88k.h: Update.
8608 * config/mcore/tm-mcore.h: Update.
8609 * config/mips/tm-mips.h: Update.
8610 * config/mn10200/tm-mn10200.h: Update.
8611 * config/pa/tm-hppa.h: Update.
8612 * config/pa/tm-hppa64.h: Update.
8613 * config/sparc/tm-sp64.h: Update.
8614 * config/sparc/tm-sparc.h: Update.
8615 * config/sparc/tm-sparclet.h: Update.
8616 * config/z8k/tm-z8k.h: Update.
8618 2002-06-14 Andrew Cagney <cagney@redhat.com>
8620 * Makefile.in (i386_linux_tdep_h): Define.
8621 (i386_tdep_h, i387_tdep_h): Define.
8622 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8623 $(i386_tdep_h) and $(i387_tdep_h).
8624 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8626 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8628 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8629 Already covered by the default.
8631 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8632 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8633 (i386_gdbarch_init): Initialize long_double_format and long_double
8636 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8637 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8639 * config/i386/i386sol2.mh: ... here.
8640 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8641 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8642 (SIGCONTEXT_PC_OFFSET): Remove define.
8643 (IN_SIGTRAMP): Remove define.
8644 * i386-sol2-tdep.c: New file.
8646 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8647 * config/i386/tm-i386nw.h: Removed.
8649 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8650 USE_STRUCT_CONVENTION): Remove defines.
8651 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8652 (get_longjmp_target): Remove prototype.
8653 (IN_SIGTRAMP): Remove define.
8654 (i386bsd_in_sigtramp): Remove prototype.
8655 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8656 function. Update comment accordingly
8657 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8658 (FRAME_SAVED_PC): Remove define.
8659 (i386bsd_frame_saved_pc): Remove prototype.
8660 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8661 GET_LONGJMP_TARGET): Remove defines.
8662 (get_longjmp_target): Remove prototype.
8663 (IN_SIGTRAMP): Remove define.
8664 (i386bsd_in_sigtramp): Remove prototype.
8665 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8666 function. Update comment accordingly
8667 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8668 (FRAME_SAVED_PC): Remove define.
8669 (i386bsd_frame_saved_pc): Remove prototype.
8670 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8672 (USE_STRUCT_CONVENTION): Remove prototype.
8673 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8675 (_initialize_i386bsd_nat): Revise logic to determine some
8676 constants at compile time when compiling a native GDB. Warn if
8677 things don't match up with what we expect.
8678 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8680 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8681 to use date stored in `struct gdbarch_tdep'.
8682 (i386bsd_sigcontext_offset): Remove varaible.
8683 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8684 stored in `struct gdbarch_tdep'.
8685 (i386bsd_frame_saved_pc): Make static.
8686 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8687 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8688 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8689 i386fbsd4_sc_pc_offset): New variables.
8690 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8691 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8693 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8695 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8696 Modify the value of i386fbsd_sigtramp_start and
8697 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8698 i386fbsd_sigtramp_end.
8699 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8702 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8703 define to i386-linux-tdep.h.
8704 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8705 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8707 (i386_linux_register_name, i386_linux_register_byte,
8708 i386_linux_register_raw_size): Remove prototypes.
8709 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8710 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8711 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8712 TARGET_WRITE_PC): Remove defines.
8713 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8714 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8715 i386_linux_write_pc): Remove prototypes.
8716 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8717 (get_longjmp_target): Remove prototype.
8718 * i386-linux-tdep.h: New file.
8719 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8720 * i386-linux-tdep.c: Include "i386-tdep.h" and
8721 "i386-linux-tdep.h".
8722 (i386_linux_register_name, i386_linux_register_byte,
8723 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8724 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8726 (i386_linux_init_abi): New function.
8727 (_initialize_i386_linux_tdep): New function.
8729 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8730 (i386_saved_pc_after_call): Remove prototype.
8731 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8732 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8733 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8734 (i386_register_name, i386_stab_reg_to_regnum,
8735 i386_dwarf_reg_to_regnum): Remove prototypes.
8736 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8737 SIZEOF_SSE_REGS): Remove defines.
8738 (REGISTER_BYTES): Remove define.
8739 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8740 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8741 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8742 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8743 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8744 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8745 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8746 (get_longjmp_target): Remove prototype.
8747 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8748 (sigtramp_saved_pc): Remove define.
8749 (i386v4_sigtramp_saved_pc): Remove prototype.
8750 * config/i386/tm-go32.h (FRAME_CHAIN,
8751 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8752 (i386go32_frame_saved_pc): Remove prototype.
8753 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8754 (get_longjmp_target): Remove prototype.
8755 * i386-tdep.h: Include "osabi.h".
8756 (enum i386_abi): Removed.
8757 (enum struct_return): New enum.
8758 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8759 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8760 sc_pc_offset members.
8761 (i386_gdbarch_register_os_abi): Remove prototype.
8762 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8763 I386_SSE_NUM_REGS): New defines.
8764 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8765 I386_SSE_SIZEOF_REGS): New defines.
8766 (i386_register_name, i386_register_byte, i386_register_raw_size):
8768 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8769 (i386bsd_sigtramp_saved_pc): New prototype.
8770 * i386-tdep.c: Don't include "elf-bfd.h".
8771 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8772 i386_frame_chain, i386_saved_pc_after_call): Make static.
8773 (i386_frame_saved_pc): Rewrite to call architecture dependent
8774 function to deal with signal handlers. Make static.
8775 (i386go32_frame_saved_pc): Removed.
8776 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8778 (i386_get_longjmp_target): New function.
8779 (default_struct_convention, pcc_struct_convention,
8780 reg_struct_convention, valid_conventions, struct_convention): New
8782 (i386_use_struct_convention): New function.
8783 (i386v4_sigtramp_saved_pc): Renamed to
8784 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8785 (i386_pc_in_sigtramp): New function.
8786 (i386_abi_names): Removed.
8787 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8788 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8790 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8791 i386_gdbarch_register_os_abi): Removed.
8792 (struct i386_abi_handler): Removed.
8793 (i386_abi_handler_list): Removed.
8794 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8796 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8797 i386_nw_init_abi): New functions.
8798 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8799 Use set_gdbarch_xxx() calls instead of relying on macros for a
8801 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8802 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8803 Register the various architecture variants defined in this file.
8805 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8807 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8808 (struct main_type): Remove arg_types member. Update comments for
8810 (TYPE_ARG_TYPES): Remove.
8811 (TYPE_FN_FIELD_ARGS): Update.
8812 (smash_to_method_type): Update prototype.
8814 * c-typeprint.c (cp_type_print_method_args): Take method type
8815 instead of argument list. Use new argument layout. Simplify.
8816 (c_type_print_args): Use new argument layout. Simplify.
8817 (c_type_print_base): Update call to cp_type_print_method_args.
8818 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8819 argument; use die->type instead. Update call to
8820 smash_to_method_type.
8821 (read_structure_scope): Update call to dwarf2_add_member_fn.
8822 * gdbtypes.c (allocate_stub_method): Update comment.
8823 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8824 Use new argument layout.
8825 (check_stub_method): Use new argument layout. Don't count
8826 void as an argument.
8827 (print_arg_types): Update comments. Use new argument layout.
8828 (recursive_dump_type): Don't print arg_types member.
8829 * hpread.c (hpread_read_struct_type): Use new argument layout.
8830 (fixup_class_method_type): Likewise.
8831 (hpread_type_lookup): Likewise.
8832 * stabsread.c (read_type): Update calls to read_args and
8833 smash_to_method_type.
8834 (read_args): Use new argument layout. Simplify.
8835 * valops.c (typecmp): Use new argument layout. Update parameters
8836 and comments. Simplify.
8837 (hand_function_call): Use new argument layout.
8838 (search_struct_method): Update call to typecmp.
8839 (find_overload_match): Use new argument layout.
8841 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8843 * NEWS: Mention multithreaded debug support for gdbserver.
8845 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8847 * MAINTAINERS: Mention NEWS.
8849 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8851 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8852 (struct mips_objfile_private, compare_pdr_entries): New.
8853 (non_heuristic_proc_desc): Read the ".pdr" section if it
8856 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8858 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8859 (arm_debug): New static variable.
8860 (_initialize_arm_tdep): Add ``set debug arm'' command.
8862 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8864 * Makefile.in (sim_arm_h): Define.
8865 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8866 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8867 (arm_register_sim_regno): New function, map an internal REGNUM
8868 onto a simulator register number.
8869 (arm_gdbarch_init): Set register_sim_regno.
8871 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8873 * MAINTAINERS: Add self.
8875 2002-06-11 Jim Blandy <jimb@redhat.com>
8877 * source.c (source_info): Mention whether the symtab has
8878 information about preprocessor macros.
8880 Call the command `info macro', not `show macro'.
8881 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8883 (_initialize_macrocmd): Register `info_macro_command' in
8884 `infolist', not `showlist'.
8886 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8888 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8889 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8890 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8891 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8892 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8894 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8895 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8896 (_initialize_mips_tdep): Remove dead code.
8897 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8898 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8899 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8900 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8901 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8902 MIPS_LAST_FP_ARG_REGNUM): Remove.
8904 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8906 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8907 (unwind_tmp_obstack_free, parse_frame_info)
8908 (update_context, cfi_read_fp, cfi_write_fp)
8909 (cfi_frame_chain, cfi_init_extra_frame_info)
8910 (cfi_virtual_frame_pointer): Use the above function.
8911 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8913 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8915 * v850-tdep.c (v850_type_is_scalar): New function.
8916 (v850_use_struct_convention): Match current gcc implementation
8917 as close as possible.
8918 (v850_push_arguments): Fix stack_offset handling. Don't write
8919 struct_addr into register. This is done by v850_store_struct_return.
8920 (v850_extract_return_value): Care for structs.
8921 (v850_store_return_value): Ditto.
8922 (v850_store_struct_return): Actually write address.
8924 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8926 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8927 without debug information too.
8929 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8931 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8932 Make multi-arch pure.
8933 * gdbarch.h, gdbarch.c: Re-generate.
8934 * arm-tdep.c (arm_print_float_info): Update.
8935 * arch-utils.h (default_print_float_info): Update.
8936 * arch-utils.c (default_print_float_info): Update.
8937 * infcmd.c (float_info): Update call.
8939 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8941 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8942 the front of the initialize list.
8944 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8946 * infrun.c (struct inferior_status): Replace fields
8947 selected_frame_address and selected_level with field
8949 (save_inferior_status): Update. Use get_frame_id.
8950 (struct restore_selected_frame_args): Delete.
8951 (restore_selected_frame): Update. Use frame_find_by_id.
8952 (restore_inferior_status): Update.
8954 * breakpoint.h (struct breakpoint): Change type of
8955 watchpoint_frame to frame_id.
8956 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8957 call to get_current_frame.
8958 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8960 (watchpoint_check): Use frame_find_by_id.
8962 * frame.h (record_selected_frame): Delete declaration.
8963 * stack.c (record_selected_frame): Delete function.
8965 * frame.h (struct frame_id): Define.
8966 (get_frame_id): Declare.
8967 (frame_find_by_id): Declare.
8968 * frame.c (frame_find_by_id): New function.
8969 (get_frame_id): New function.
8971 2002-06-10 Andrey Volkov <avolkov@transas.com>
8973 * ser-e7kpc.c: Fix duplicated define and call of
8974 _initialize_ser_e7000pc
8976 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8978 * signals/signals.c (target_signal_from_host): Fix #ifdef
8980 (do_target_signal_to_host): Likewise.
8982 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8984 * mips-tdep.c (mips_find_abi_section): New function.
8985 (mips_gdbarch_init): Call it.
8987 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8989 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8990 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8991 after Andrew's 2002-06-08 gdbarch change.
8993 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8995 * i386-linux-nat.c (suppy_gregset): Don't supply
8996 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8998 (fill_gregset): Don't fetch it under the same circumstances.
9000 2002-06-09 Andrew Cagney <cagney@redhat.com>
9002 * Makefile.in (callback_h): Define.
9003 (remote_sim_h): Update path to remote-sim.h.
9004 (remote-rdp.o): Add $(callback_h).
9005 (remote-sim.o): Use $(callback_h).
9006 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9007 * remote-rdp.c: Include "gdb/callback.h".
9009 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9011 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9012 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9014 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9016 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9017 * rdi-share/serpardr.c: Ditto.
9018 * rdi-share/unixcomm.c: Ditto.
9019 * rdi-share/serdrv.c: Ditto.
9020 * rdi-share/hostchan.h: Ditto.
9021 * rdi-share/hostchan.c: Ditto.
9022 * rdi-share/host.h: Ditto.
9023 * rdi-share/devsw.c: Ditto.
9025 * objfiles.h: Change type of obj_private to void pointer.
9026 * pa64solib.c: Update copyright. Don't include "assert.h", use
9027 strcmp instead of STREQ, use LONGEST, do not use PTR
9028 * somsolib.c: Ditto.
9030 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9031 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9032 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9034 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9036 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9037 (default_get_saved_register): Delete function.
9038 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9039 generic_unwind_get_saved_register.
9040 * gdbarch.h, gdbarch.c: Re-generate.
9042 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9044 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9045 generic_func_frame_chain_valid.
9046 * gdbarch.h, gdbarch.c: Re-generate.
9047 * blockframe.c (generic_func_frame_chain_valid): Only check
9048 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
9049 passing FP to PC_IN_CALL_DUMMY.
9052 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9054 * gdbarch.sh (struct gdbarch_data): Add field init_p.
9055 (register_gdbarch_data): Initialize init_p.
9056 (gdbarch_data): Initialize data pointer using the init function.
9057 (init_gdbarch_data): Delete function.
9058 (gdbarch_update_p): Update.
9059 (initialize_non_multiarch): Update.
9060 (struct gdbarch): Add field initialized_p.
9061 * gdbarch.h, gdbarch.c: Re-generate.
9063 2002-06-07 Michal Ludvig <mludvig@suse.cz>
9065 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9066 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9067 better do the things actually here.
9068 * x86-64-tdep.c (x86_64_register_name2nr): New.
9069 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9070 (x86_64_gdbarch_init): Respect the above change.
9071 * x86-64-tdep.h (x86_64_register_name2nr)
9072 (x86_64_register_nr2name): Add prototypes.
9073 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9075 2002-06-06 Michael Snyder <msnyder@redhat.com>
9077 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9078 Delete extra braces and re-indent.
9079 (d10v_store_return_value): Char return values
9080 must be shifted over by one byte in R0.
9081 (d10v_extract_return_value): Delete extra braces, re-indent.
9083 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9085 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9086 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9087 (d10v_integer_to_address): Rewrite.
9088 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9089 the d10v specific functions which take care of converting to the
9092 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9094 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9095 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9097 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9099 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9101 * config/tm-linux.h: Ditto.
9102 * config/alpha/tm-alphalinux.h: Ditto.
9103 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9104 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9105 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9106 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9107 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9108 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9109 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9110 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9111 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9112 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9113 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9114 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9115 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9116 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9117 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9118 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9119 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9120 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9121 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9122 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9123 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9124 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9125 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9126 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9127 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9128 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9129 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9130 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9131 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9132 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9133 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9134 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9135 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9136 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9137 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9138 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9139 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9141 2002-05-04 Aidan Skinner <aidan@velvet.net>
9143 * ada-exp.tab.c: New file
9144 * ada-exp.y: New file
9145 * ada-lang.c: New file
9146 * ada-lang.h: New file
9147 * ada-lex.c: New file
9148 * ada-lex.l: New file
9149 * ada-tasks.c: New file
9150 * ada-typeprint.c: New file
9151 * ada-valprint.c: New file
9153 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9155 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9156 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9158 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9160 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9161 insetead of ppc-linux-tdep.o.
9162 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9163 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9165 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9167 2002-05-07 Christian Groessler <chris@groessler.org>
9168 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9169 bit register contents for little endian hosts.
9171 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9173 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9176 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9178 * gdbarch.h: Regenerate.
9180 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9182 * MAINTAINERS: Add everyone to write-after-approval list.
9184 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9186 * stack.c (frame_info): Use frame_register_unwind instead of
9187 saved_regs. Mention when the SP is on the stack or in a register.
9189 * frame.h (frame_register_unwind_ftype): Define. Document.
9190 (struct frame_info): Add field register_unwind and
9191 register_unwind_cache.
9192 (frame_register_unwind): Declare.
9193 (generic_unwind_get_saved_register): Declare.
9195 * frame.c (frame_register_unwind): New function.
9196 (generic_unwind_get_saved_register): New function.
9198 * blockframe.c (generic_call_dummy_register_unwind): New function.
9199 (frame_saved_regs_register_unwind): New function.
9200 (set_unwind_by_pc): New function.
9201 (create_new_frame): New function.
9202 (get_prev_frame): New function.
9204 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9206 * a29k-share/: Delete directory.
9207 * remote-vx29k.c: Delete file.
9209 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9211 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9212 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9214 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9216 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9217 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9220 (sparcnbsd-tdep.o): New dependency lists.
9221 * NEWS: Note new UltraSPARC NetBSD native configuration.
9222 * configure.host (sparc64-*-netbsd*): New host.
9223 * configure.tgt (sparc-*-netbsdelf*)
9224 (sparc-*-netbsd*): Set gdb_target to nbsd.
9225 (sparc64-*-netbsd*): New target.
9226 * sparc64nbsd-nat.c: New file.
9227 * sparcnbsd-nat.c: New file.
9228 * sparcnbsd-tdep.c: New file.
9229 * sparcnbsd-tdep.h: New file.
9230 * config/sparc/nbsd.mt: New file.
9231 * config/sparc/nbsd64.mh: New file.
9232 * config/sparc/nbsd64.mt: New file.
9233 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9234 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9236 * config/sparc/nbsdaout.mt: Remove.
9237 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9238 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9240 * config/sparc/nbsdelf.mt: Remove.
9241 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9242 sparc-nat.c compatiblity defines.
9243 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9244 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9245 * config/sparc/tm-nbsd64.h: New file.
9246 * config/sparc/tm-nbsdaout.h: Remove.
9247 * config/sparc/xm-nbsd.h: Remove.
9249 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9251 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9252 * sparc-tdep.c: Include osabi.h.
9253 (gdbarch_tdep): Add osabi member.
9254 (_initialize_sparc_tdep): Use gdbarch_register.
9255 (sparc_gdbarch_init): Use generic OS ABI framework.
9256 (sparc_dump_tdep): New function.
9258 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9260 * corefile.c (do_captured_read_memory_integer): Return non-zero
9262 (safe_read_memory_integer): Copy result of memory read when
9263 status is non-zero. Also, add comments.
9265 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9267 * Makefile.in (ppc_tdep_h): Define.
9270 (rs6000-tdep.o): Use $(ppc_tdep_h).
9273 (ppcnbsd-tdep.o): New dependency lists.
9274 * ppc-tdep.h: Use generic OS ABI framework.
9275 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9276 (ppc_linux_init_abi): New functions.
9277 (ppc_sysv_abi_broken_use_struct_convention)
9278 (ppc_sysv_abi_use_struct_convention)
9279 (ppc_sysv_abi_push_arguments): Move to...
9280 * ppc-sysv-tdep.c: ...here.
9281 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9282 * rs6000-tdep.c (process_note_abi_tag_sections)
9283 (get_elfosabi): Remove.
9284 (rs6000_gdbarch_init): Use generic OS ABI framework.
9285 (rs6000_dump_tdep): New function.
9286 (_initialize_rs6000_tdep): Use gdbarch_register.
9287 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9288 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9289 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9290 of ppc-linux-tdep.o.
9291 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9292 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9293 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9294 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9295 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9296 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9298 2002-05-29 Jim Blandy <jimb@redhat.com>
9300 * macroscope.c (default_macro_scope): Put `void' in empty argument
9303 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9305 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9306 * arch-utils.c: Include "sim-regno.h".
9307 * gdbarch.sh: Don't include "sim-regno.h".
9308 * gdbarch.h, gdbarch.c: Regenerate.
9309 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9311 * arch-utils.h (legacy_register_sim_regno): To here.
9312 * remote-sim.c (legacy_register_sim_regno): Move function from
9314 * arch-utils.c (legacy_register_sim_regno): To here.
9316 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9318 * sim-regno.h: New file.
9319 * Makefile.in (sim_regno_h): Define.
9320 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9321 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9322 (legacy_register_sim_regno): New function.
9323 (one2one_register_sim_regno): New function.
9324 (gdbsim_fetch_register): Rewrite.
9325 (gdbsim_store_register): Only store a register when
9326 REGISTER_SIM_REGNO is valid.
9327 * d10v-tdep.c: Include "sim-regno.h".
9328 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9329 (d10v_ts3_register_sim_regno): Ditto.
9330 * gdbarch.sh: Include "sim-regno.h".
9331 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9332 * gdbarch.h, gdbarch.c: Regenerate.
9333 * arch-utils.h (default_register_sim_regno): Delete declaration.
9334 * arch-utils.c (default_register_sim_regno): Delete function.
9336 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9338 * ppcnbsd-nat.c: Rewrite.
9339 * ppcnbsd-tdep.c: New file.
9340 * ppcnbsd-tdep.h: New file.
9341 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9342 solib.o, and solib-svr4.o.
9343 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9344 nbsd-tdep.o, and corelow.o.
9346 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9348 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9349 `tr' and `sed'. Mention that `broken' targets are not expected to
9352 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9354 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9355 Let PC point right after the prologue before looking up symbols.
9357 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9359 * i386-tdep.c (i386_register_virtual_type): Return
9360 builtin_type_vec128i for SSE registers.
9362 * gdbtypes.h (builtin_type_vec128i): Declare.
9364 * gdbtypes.c (build_builtin_type_vec128i): New function.
9365 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9366 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9367 (build_gdbtypes): Initialize new builtin vector types.
9368 (_initialize_gdbtypes): Register new vector types with gdbarch.
9370 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9372 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9373 since it has been multi-arch'd.
9374 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9375 Move Alpha and VAX multi-arch news entries to same section
9376 as other multi-arch news.
9378 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9380 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9381 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9382 static. Rename some register numbers to put them in ns32k-tdep
9384 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9385 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9387 (_initialize_ns32k_tdep): Use gdbarch_register.
9388 * ns32k-tdep.h: New file.
9389 * ns32knbsd-tdep.c: New file.
9390 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9391 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9392 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9393 REGISTER_BYTES, REGISTER_BYTE): Remove.
9394 * config/ns32k/tm-ns32k.h: New file.
9395 * config/ns32k/tm-umax.h: Remove.
9397 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9399 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9400 ns32k_store_struct_return, ns32k_extract_return_value,
9401 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9403 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9404 ns32k_saved_pc_after_call.
9405 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9406 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9407 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9408 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9409 ns32k_extract_struct_value_address.
9411 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9413 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9414 ns32k_fix_call_dummy): New.
9415 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9416 ns32k_call_dummy_words.
9417 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9418 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9419 CALL_DUMMY_NARGS): Remove.
9420 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9422 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9424 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9425 ns32k_frame_saved_pc, ns32k_frame_args_address,
9426 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9427 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9428 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9429 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9430 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9431 (BREAKPOINT): Remove..
9432 (FRAME_CHAIN): Define as ns32k_frame_chain.
9433 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9434 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9435 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9436 (FRAME_FIND_SAVED_REGS): Remove.
9437 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9438 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9439 (POP_FRAME): Define as ns32k_pop_frame.
9441 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9443 * ns32k-tdep.c (ns32k_register_byte_32082,
9444 ns32k_register_byte_32382, ns32k_register_raw_size,
9445 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9447 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9448 ns32k_register_byte_32382.
9449 * config/ns32k/tm-umax.h: Update copyright years.
9450 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9451 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9452 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9453 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9454 (ns32k_get_enter_addr): Fix prototype.
9456 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9458 * ns32k-tdep.c: Update copyright years.
9459 (ns32k_register_name_32082): New function.
9460 (ns32k_register_name_32382): Ditto.
9461 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9462 (REGISTER_NAME): Define as ns32k_register_name_32382.
9463 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9464 (REGISTER_NAME): Define as ns32k_register_name_32082.
9466 2002-05-24 Jim Blandy <jimb@redhat.com>
9468 * dwarf2read.c (free_line_header): Use xfree, not free.
9470 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9472 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9473 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9475 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9477 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9479 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9481 From Ross Alexander at NEC Europe:
9482 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9484 2002-05-23 Michael Snyder <msnyder@redhat.com>
9486 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9487 for input, rather than parse_and_eval_address.
9489 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9491 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9492 * Makefile.in (sim_d10v_h): Update definition.
9494 2002-05-24 Andrew Cagney <cagney@redhat.com>
9496 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9497 change `2002-05-22 Michael Snyder' below.
9498 (d10v_push_arguments): Ditto.
9499 (d10v_extract_return_value): Ditto.
9501 2002-05-23 Jim Blandy <jimb@redhat.com>
9503 * macrotab.c (check_for_redefinition): Don't complain if the new
9504 definition is the same as the previous one. Take more arguments
9505 to allow the comparison.
9506 (macro_define_object, macro_define_function): Pass more arguments
9507 to check_for_redefinition.
9509 2002-05-22 Michael Snyder <msnyder@redhat.com>
9511 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9512 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9513 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9514 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9515 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9516 Add a temp variable to save a call (and a memory read).
9517 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9518 if possible (so that PC_IN_CALL_DUMMY will work).
9520 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9522 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9524 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9526 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9528 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9529 (dwarf2_build_frame_info): Add offset to fde->initial_location
9530 so that frames of shared libraries are mapped correctly.
9531 (execute_stack_op): Change type of 'result' from ULONGEST to
9534 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9536 * config/alpha/tm-nbsd.h: Include solib.h.
9538 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9540 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9541 assumptions about the host's byte order.
9543 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9545 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9547 * alphanbsd-tdep.c: Include solib-svr4.h.
9548 * shnbsd-tdep.c: Ditto.
9550 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9552 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9553 nbsd-tdep.h to dependency list.
9554 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9555 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9556 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9557 nbsdaout.mh and nbsdelf.mh consistently.
9558 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9559 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9560 nbsdaout.mt and nbsdelf.mh consistently.
9561 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9562 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9563 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9564 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9565 a.out shared library stuff from here...
9566 * config/nm-nbsdaout.h: ...to here.
9567 * config/tm-nbsd.h: Remove.
9568 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9569 * config/arm/nbsd.mh: Remove.
9570 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9572 * config/arm/nbsdaout.mh: New file.
9573 * config/arm/nbsdelf.mh: New file.
9574 * config/arm/nm-nbsdaout.h: New file.
9575 * config/i386/nbsd.mh: Remove.
9576 * config/i386/nbsd.mt: Remove.
9577 * config/i386/nbsdaout.mh: New file.
9578 * config/i386/nbsdaout.mt: New file.
9579 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9580 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9581 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9582 i386_register_u_addr): Remove.
9583 * config/i386/nm-nbsdaout.h: New file.
9584 * config/i386/nm-nbsdelf.h: Remove.
9585 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9586 (USE_STRUCT_CONVENTION): Remove.
9587 * config/i386/tm-nbsdaout.h: New file.
9588 * config/i386/tm-nbsdelf.h: Remove.
9589 * config/m68k/nbsd.mh: Remove.
9590 * config/m68k/nbsd.mt: Remove.
9591 * config/m68k/nbsdaout.mh: New file.
9592 * config/m68k/nbsdaout.mt: New file.
9593 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9594 * config/m68k/nm-nbsdaout.h: New file.
9595 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9596 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9597 * config/ns32k/nbsd.mh: Remove.
9598 * config/ns32k/nbsd.mt: Remove.
9599 * config/ns32k/nbsdaout.mh: New file.
9600 * config/ns32k/nbsdaout.mt: New file.
9601 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9602 * config/ns32k/nm-nbsdaout.h: New file.
9603 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9604 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9605 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9606 (SVR4_SHARED_LIBS): Remove.
9607 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9608 * config/sparc/nbsd.mh: Remove.
9609 * config/sparc/nbsd.mt: Remove.
9610 * config/sparc/nbsdaout.mh: New file.
9611 * config/sparc/nbsdaout.mt: New file.
9612 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9613 * config/sparc/nbsdelf.mt: New file.
9614 * config/sparc/nm-nbsdaout.h: New file.
9615 * config/sparc/nm-nbsdelf.h: Remove.
9616 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9617 * config/sparc/tm-nbsdaout.h: New file.
9619 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9621 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9623 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9625 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9627 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9629 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9631 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9633 * NEWS: Note new MIPS NetBSD native configuration.
9634 * configure.host (mips*-*-netbsd*): New host.
9635 * configure.tgt (mips*-*-netbsd*): New target.
9636 * mipsnbsd-nat.c: New file.
9637 * mipsnbsd-tdep.c: New file.
9638 * mipsnbsd-tdep.h: New file.
9639 * config/mips/nbsd.mh: New file.
9640 * config/mips/nbsd.mt: New file.
9641 * config/mips/nm-nbsd.h: New file.
9642 * config/mips/tm-nbsd.h: New file.
9644 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9646 * Makefile.in (SFILES): Add osabi.c.
9647 (COMMON_OBS): Add osabi.o.
9648 (osabi.o): New dependency list.
9649 * osabi.c: New file.
9650 * osabi.h: New file.
9651 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9653 * Makefile.in (alpha_tdep_h): Define and use instead of
9655 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9656 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9658 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9659 * alpha-tdep.h: Include osabi.h.
9660 (alpha_abi): Remove.
9661 (gdbarch_tdep): Use generic OS ABI framework.
9662 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9663 gdbarch_register_osabi.
9664 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9665 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9666 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9668 * Makefile.in (sh_tdep_h): Add osabi.h.
9669 * sh-tdep.h (sh_osabi): Remove.
9670 (gdbarch_tdep): Use generic OS ABI framework.
9671 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9672 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9673 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9674 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9676 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9677 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9678 gdbarch_register_osabi.
9679 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9680 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9681 (get_elfosabi): Rename to...
9682 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9683 ABI framework support routines.
9684 (arm_gdbarch_init): Use generic OS ABI framework.
9685 (arm_dump_tdep): Likewise.
9686 (_initialize_arm_tdep): Likewise.
9687 * arm-tdep.h: Include osabi.h.
9689 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9691 (arm_gdbarch_register_os_abi): Remove prototype.
9692 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9693 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9695 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9696 * mips-tdep.c: Include osabi.h.
9697 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9700 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9702 * h8300-tdep.c: Fix formatting.
9704 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9706 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9707 printing vector registers.
9709 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9711 From Fernando Nasser:
9712 * remote.c (remote_async_open_1): Re-throw the exception when the
9714 (remote_cisco_open): Ditto.
9715 (remote_open_1): Ditto.
9717 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9719 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9720 (remote_start_remote): Add uiout parameter. Pass through to
9721 remote_start_remote_dummy.
9722 (remote_open_1): Use catch_exception instead of catch_errors.
9723 (remote_async_open_1): Ditto.
9724 (remote_cisco_open): Ditto.
9726 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9728 * remote.c (remote_start_remote): Replace PTR with void pointer.
9729 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9732 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9734 * gdb_indent.sh: Allow the script to be run in the sim directory.
9736 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9738 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9739 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9741 * corelow.c (core_open): Only call set_gdbarch_from_file if
9744 2002-05-17 Andrey Volkov <avolkov@transas.com>
9746 * h8300-tdep.c: Add support of EXR register
9747 * config/h8300/tm-h8300.h: Ditto.
9749 2002-05-17 Andrey Volkov <avolkov@transas.com>
9751 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9753 2002-05-17 Andrey Volkov <avolkov@transas.com>
9755 * h8300-tdep.c: Change literal regnums to REGNO.
9757 2002-05-17 Jim Blandy <jimb@redhat.com>
9759 * NEWS: Note addition of macro support.
9761 Expand preprocessor macros in C expressions.
9762 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9763 (scan_macro_expansion, scanning_macro_expansion,
9764 finished_macro_expansion): New function declarations.
9765 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9766 variable declarations.
9767 * parser-defs.h (expression_context_pc): New declaration.
9768 * parse.c (expression_context_pc): New variable.
9769 (parse_exp_1): Set expression_context_pc, as well as
9770 expression_context_block.
9771 * c-exp.y (yylex): If we're not already reading the result of a
9772 macro expansion, try to macro-expand the next token. When we're
9773 done scanning a macro expansion, switch back to the mainline text.
9774 Commas and `if's in a macro's expansion don't terminate the input.
9775 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9776 (macro_original_text, macro_expanded_text,
9777 expression_macro_lookup_func, expression_macro_lookup_baton): New
9779 (scan_macro_expansion, scanning_macro_expansion,
9780 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9781 c_preprocess_and_parse): New functions.
9782 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9783 c_preprocess_and_parse, instead of c_parse.
9784 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9785 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9787 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9789 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9790 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9791 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9793 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9795 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9797 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9799 * Makefile.in (sh_tdep_h): Define and use.
9800 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9801 register enum): Move to...
9802 * * sh-tdep.h: ...here.
9803 * sh-tdep.c: Include sh-tdep.h.
9804 * sh3-rom.c: Likewise.
9805 * shnbsd-tdep.c: Likewise.
9807 2002-05-16 Michael Snyder <msnyder@redhat.com>
9809 * arm-tdep.c: Spelling fix in comment.
9811 2002-05-16 Jim Blandy <jimb@redhat.com>
9813 Add commands for manually expanding macros and showing their
9815 * macrocmd.c, macroscope.c, macroscope.h: New files.
9816 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9817 (macroscope_h): New variable.
9818 (HFILES_NO_SRCDIR): Add macroscope.h.
9819 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9820 (macroscope.o, macrocmd.o): New rules.
9822 Teach the Dwarf 2 reader to read macro information.
9823 * dwarf2read.c: #include "macrotab.h".
9824 (dwarf_macinfo_buffer): New variable.
9825 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9827 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9828 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9829 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9830 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9831 dwarf2_macro_spaces_in_definition): New complaints.
9832 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9833 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9834 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9835 the partial symbol table.
9836 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9837 from what's recorded in the partial symbol table.
9838 (read_file_scope): If the compilation unit has a
9839 `DW_AT_macro_info' attribute, read its macro information.
9840 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9842 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9845 * ser-tcp.c: Don't include <netinet/udp.h>.
9847 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9849 * MAINTAINERS: Update my email address.
9851 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9853 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9854 include file of the same name.
9856 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9858 * configure.tgt: Mark v850 as multi-arched.
9859 * config/v850/tm-v850.h: Remove file.
9860 * config/v850/v850.mt: Eliminate TM_FILE.
9862 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9864 * v850-tdep.c: Full multi-arch.
9865 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9866 Define GDB_MULTI_ARCH to 2.
9868 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9870 * p-exp.y (current_type): New static variable.
9871 Carries the type of the expression at the position that is parsed.
9872 (push_current_type, pop_current_type): Two new functions. Used
9873 to store/restore current_type in expression on specific tokens.
9874 (search_field): New static variable. Set to one after parsing a point
9875 as at that point only a FIELDNAME token should be searched.
9876 (FIELDNAME): New token. After a point only a token belonging to
9877 current_type type definition is allowed.
9878 (all over token rules): reset and change current_type according
9880 (exp '[' rule): insert implicit array index field if
9881 exp is a pascal string type.
9883 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9885 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9886 frame info. Use frame_info's saved_regs instead of matching member
9887 in extra_frame_info throughout.
9888 (v850_frame_init_saved_regs): New function.
9889 (v850_init_extra_frame_info): Move most functionality into
9890 v850_frame_init_saved_regs().
9891 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9892 (v850_frame_find_saved_regs): Remove declaration.
9893 (FRAME_FIND_SAVED_REGS): Remove definition.
9894 (v850_frame_init_saved_regs): Add declaration.
9895 (FRAME_INIT_SAVED_REGS): Add definition.
9897 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9899 * v850-tdep.c: Begin multi-arch'ing v850.
9900 (v850_target_architecture_hook): Remove function.
9901 (v850_gdbarch_init): New function. Add code previously in
9902 v850_target_architecture_hook().
9903 (_initialize_v850_tdep): Don't set target_architecture_hook.
9904 Call register_gdbarch_init() instead.
9906 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9908 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9909 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9910 (fixup_class_method_type): Likewise.
9912 2002-05-15 Jim Blandy <jimb@redhat.com>
9914 Add macro structures to GDB's symbol tables. Nobody puts anything
9916 * symtab.h (struct symtab): New member: `macro_table'.
9917 * buildsym.h (pending_macros): New global variable.
9918 * buildsym.c: #include "macrotab.h".
9919 (buildsym_init): Initialize `pending_macros'.
9920 (end_symtab): If we found macro information while reading a CU's
9921 debugging info, do build a symtab structure for it. Make the
9922 symtab point to the macro information, and clear the
9923 `pending_macros' pointer which held it while we were reading the
9925 (really_free_pendings): Free any pending macro table.
9926 * objfiles.h (struct objfile): New member: `macro_cache'.
9927 * objfiles.c (allocate_objfile): Set allocate and free functions
9928 for the macro cache's objstack.
9929 (free_objfile): Empty the macro cache's obstack.
9930 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9931 set new allocate and free functions for it.
9932 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9933 free functions for the macro cache's objstack. (Why is this
9934 function building its own objfile?)
9935 * symmisc.c (print_objfile_statistics): Print statistics on the
9937 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9939 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9941 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9942 (REGISTER_U_ADDR): Delete definition.
9943 (arm_register_u_addr): Delete declaration.
9945 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9947 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9948 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9950 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9952 * regcache.c (register_valid): Revise comments refering to "Not
9953 available" and "unavailable".
9954 * frame.c (frame_register_read): Ditto.
9955 * findvar.c (value_of_register): Ditto.
9957 2002-05-15 Andrew Cagney <cagney@redhat.com>
9959 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9960 (remote-sim.o): Update dependencies.
9961 (d10v-tdep.o): Specify dependencies.
9962 (sim_d10v_h): Define.
9964 2002-05-14 Jim Blandy <jimb@redhat.com>
9966 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9967 * macrotab.c (macro_lookup_inclusion, find_definition,
9968 new_macro_table): Same.
9970 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9971 not `! strcmp ()'. This is a dubious improvement.
9972 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9974 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9975 although it's not necessary, to avoid a warning.
9977 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9979 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9980 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9981 TYPE_INSTANCE_FLAGS.
9982 (struct main_type): New.
9983 (struct type): Move most members to struct main_type. Change
9984 cv_type and as_type to new type_chain member. Add instance_flags.
9985 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9986 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9987 (finish_cv_type): Remove prototype.
9988 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9990 (alloc_type_instance): New function.
9991 (smash_type): New function.
9992 (make_pointer_type, make_reference_type, make_function_type)
9993 (smash_to_member_type, smash_to_method_type): Call smash_type.
9994 (make_qualified_type): New function.
9995 (make_type_with_address_space): Call make_qualified_type.
9996 (make_cv_type): Likewise.
9997 (finish_cv_type): Remove unnecessary function.
9998 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9999 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10000 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10001 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10002 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10003 * hpread.c (hpread_read_struct_type): Likewise.
10004 * stabsread.c (read_struct_type): Likewise.
10006 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
10008 * configure.tgt: Add a catch all sh* target, for cases like
10009 sh[2,3,4]-elf and sh-hms.
10011 2002-05-14 Keith Seitz <keiths@redhat.com>
10013 * event-loop.c (create_file_handler): Don't do anything but
10014 update data when we are given a fd which we are already
10017 2002-05-14 Michal Ludvig <mludvig@suse.cz>
10019 * dwarf2cfi.c (context_cpy): Copy registers correctly.
10020 (update_context): Use __func__ in warnings.
10022 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10024 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
10025 and tcp_close to net_open and net_close.
10026 (net_open): Accept "udp:" and "tcp:" specifications. Connect
10027 using UDP if requested. Don't try to disable Nagle on UDP
10029 * remote.c (remote_serial_open): New function. Warn about UDP.
10030 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10032 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10034 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10036 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10038 * configure.tgt: Remove sh-hms target.
10039 * MAINTAINERS: Don't list sh-hms as a separate target.
10041 2002-05-13 Jim Blandy <jimb@redhat.com>
10043 Add first preprocessor macro-expansion files.
10044 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10045 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10046 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10047 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10048 (COMMON_OBS): Add macrotab.o, macroexp.o.
10049 (macroexp.o, macrotab.o): New rules.
10051 2002-05-13 Andrew Cagney <ac131313@redhat.com>
10053 * config/m88k/tm-m88k.h: Update copyright.
10054 (m88k_target_write_pc): Declare
10055 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10056 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10057 (SHIFT_INST_REGS): Update definition.
10058 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10059 using old definition of TARGET_WRITE_PC.
10060 * regcache.c (generic_target_write_pc): Delete code handling
10062 * gdbarch.sh (NNPC_REGNUM): Delete.
10063 * gdbarch.h, gdbarch.c: Regenerate.
10065 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
10067 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10068 builtin reg number.
10070 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10072 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10073 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10074 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10076 * c-typeprint.c (cp_type_print_method_args): Likewise.
10077 (c_type_print_args): Likewise.
10078 * d10v-tdep.c (d10v_push_arguments): Likewise.
10079 (d10v_extract_return_value): Likewise.
10080 * expprint.c (print_subexp): Likewise.
10081 * gdbtypes.c (lookup_primitive_typename): Likewise.
10082 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10083 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10084 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10085 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10086 (TYPE_VECTOR): Likewise.
10087 * hpread.c (hpread_read_struct_type)
10088 (fix_static_member_physnames, fixup_class_method_type)
10089 (hpread_type_lookup): Likewise.
10090 * mdebugread.c (parse_symbol, parse_type): Likewise.
10091 * p-lang.c (is_pascal_string_type): Likewise.
10092 * valops.c (hand_function_call): Likewise.
10093 * x86-64-tdep.c (classify_argument): Likewise.
10095 * hpread.c (hpread_read_function_type)
10096 (hpread_read_doc_function_type): Call replace_type.
10097 * dstread.c (create_new_type): Delete.
10098 (decode_dst_structure, process_dst_function): Call alloc_type.
10099 Use type access macros.
10101 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10103 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10104 the're not supported by the current architecture.
10105 (i387_fill_fxsave): Likewise.
10107 2002-05-12 Fred Fish <fnf@redhat.com>
10109 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10110 sect_index_xxx members to index the first slot in section_offsets
10111 if all of the section_offsets are zero.
10113 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10115 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10116 checked in with last change.
10118 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10120 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10121 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10124 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10126 * Makefile.in: Update dependencies.
10128 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10130 * language.c (local_hex_string_custom): Simplify. Do not depend
10131 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10133 * memattr.c (mem_info_command): Replace calls to
10134 longest_local_hex_string and longest_local_hex_string_custom.
10135 * buildsym.c (make_blockvector): Ditto.
10136 * solib.c (info_sharedlibrary_command): Ditto.
10137 * tracepoint.c (tracepoints_info): Ditto.
10138 * symtab.c (print_msymbol_info): Ditto.
10140 * language.c (local_hex_string): Delete.
10141 (local_hex_string_custom): Delete.
10142 (longest_local_hex_string): Rename to local_hex_string.
10143 (longest_local_hex_string_custom): Rename to
10144 local_hex_string_custom.
10145 * language.h (local_hex_string): Change parameter type to LONGEST.
10146 (local_hex_string_custom): Ditto.
10147 (longest_local_hex_string): Delete declaration.
10148 (longest_local_hex_string_custom): Ditto.
10150 * solib.c: Update copyright.
10151 * memattr.c: Update copyright.
10153 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10155 * arch-utils.h (legacy_register_to_value): Declare.
10156 (legacy_value_to_register): Declare.
10157 (legacy_convert_register_p): Declare.
10158 * arch-utils.c (legacy_register_to_value): New function.
10159 (legacy_value_to_register): New function.
10160 (legacy_convert_register_p): New function.
10162 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10163 (VALUE_TO_REGISTER): Define.
10164 (CONVERT_REGISTER_P): Define.
10165 * gdbarch.h, gdbarch.c: Regenerate.
10167 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10169 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10170 CONVERT_REGISTER_P.
10172 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10173 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10175 * Makefile.in: Update dependencies for valops.c.
10176 * valops.c: Include "gdb_assert.h".
10177 (typecmp): Skip THIS parameter to methods.
10178 (find_method_list): Remove static_memfuncp argument,
10179 update callers. Check for stub methods.
10180 (find_value_oload_method_list): Don't set *static_memfuncp.
10181 (find_overload_match): Don't check for stub methods. Assert
10182 that methods are not stubbed. Handle static methods.
10183 (value_find_oload_method_list): Remove static_memfuncp argument.
10184 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10185 to the argument list for static stub methods.
10186 * value.h (value_find_oload_method_list): Update prototype.
10188 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10190 * arch-utils.h (generic_register_size): Declare.
10191 (generic_register_raw_size, generic_register_virtual_size): Delete
10193 * arch-utils.c (generic_register_raw_size): Delete.
10194 (generic_register_size): New function.
10195 (generic_register_virtual_size): Delete.
10197 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10198 default generic_register_size.
10199 * gdbarch.h, gdbarch.c: Re-generate.
10201 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10202 register_virtual_size.
10203 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10204 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10206 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10208 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10209 * gdbarch.h, gdbarch.c: Regenerate.
10210 * gnu-v3-abi.c: Update copyright.
10211 (vtable_address_point_offset): Update.
10212 (gnuv3_rtti_type): Update.
10213 (gnuv3_baseclass_offset): Update.
10214 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10215 (init_fetch_link_map_offsets): Update.
10216 * remote.c (get_remote_state): Update.
10218 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10220 * TODO: Remove value_headof/value_from_vtable_info comment.
10221 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10222 * values.c (value_headof, value_from_vtable_info): Delete.
10223 * value.h (value_from_vtable_info): Delete prototype.
10225 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10227 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10228 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10230 (gdb_assert_h): Define.
10231 (gdb_wait_h): Define.
10232 (gdb_regex_h): Define.
10234 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10236 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10237 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10239 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10241 * nbsd-tdep.c: Fix comment.
10243 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10245 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10246 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10247 (nbsd-tdep.o): New dependency list.
10248 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10250 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10251 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10252 * nbsd-tdep.c: New file.
10253 * nbsd-tdep.h: New file.
10254 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10256 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10257 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10258 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10259 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10261 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10263 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10264 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10265 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10266 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10267 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10268 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10270 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10272 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10273 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10274 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10275 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10276 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10277 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10278 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10280 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10282 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10283 fetch_elfcore_registers to...
10284 * i386nbsd-tdep.c: ...here.
10285 (i386nbsd_use_struct_convention): Rename to...
10286 (i386nbsd_aout_use_struct_convention): ...this.
10287 (i386nbsd_supply_reg): New function.
10288 (i386nbsd_fill_reg): New function.
10289 (fetch_core_registers): Use i386nbsd_supply_reg.
10290 (fetch_elfcore_registers): Likewise.
10291 (_initialize_i386nbsd_tdep): New function.
10292 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10293 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10294 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10295 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10296 (i386nbsd_aout_use_struct_convention): ...this.
10298 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10300 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10301 (store_inferior_registers): Use shnbsd_fill_reg.
10302 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10303 sh_nbsd_supply_register): Collapse into...
10304 (shnbsd_supply_reg): ...this.
10305 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10306 (shnbsd_fill_reg): ...this.
10307 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10308 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10309 (fetch_core_registers): Use shnbsd_supply_reg.
10310 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10311 (sh_nbsd_core_fns): Rename to...
10312 (shnbsd_core_fns): ...this.
10313 (sh_nbsd_elfcore_fns): Rename to...
10314 (shnbsd_elfcore_fns): ...this.
10315 (sh_nbsd_init_abi): Rename to...
10316 (shnbsd_init_abi): ...this.
10317 (_initialize_sh_nbsd_tdep): Rename to...
10318 (_initialize_shnbsd_tdep): ...this.
10319 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10320 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10321 sh_nbsd_fill_register): Remove prototypes.
10322 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10324 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10326 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10327 (i387-nat.o): Delete dependency list.
10328 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10329 (x86-64-linux-nat.o): Likewise.
10330 * i387-nat.c: Delete file, moving contents to...
10331 * i387-tdep.c: ...here.
10332 * i387-nat.h: Rename...
10333 * i387-tdep.h: ...to this.
10334 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10335 * i386-linux-nat.c: Likewise.
10336 * i386bsd-nat.c: Likewise.
10337 * i386gnu-nat.c: Likewise.
10338 * i386nbsd-nat.c: Likewise.
10339 * i386v4-nat.c: Likewise.
10340 * x86-64-linux-nat.c: Likewise.
10341 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10342 * config/i386/go32.mh (NATDEPFILES): Likewise.
10343 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10344 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10345 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10346 * config/i386/linux.mh (NATDEPFILES): Likewise.
10347 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10348 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10349 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10350 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10352 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10354 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10355 (alphanbsd-nat.o): Remove dependency list.
10356 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10357 * alphanbsd-nat.c: Delete. Contents moved to...
10358 * alphanbsd-tdep.c: ...here.
10359 (_initialize_alphanbsd_tdep): Register core functions.
10360 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10362 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10364 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10365 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10366 (alphanbsd-nat.o): Likewise.
10367 (alphabsd-tdep.o): New dependency list.
10368 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10369 (fill_gregset): Use alphabsd_fill_reg.
10370 (supply_fpregset): Use alphabsd_supply_fpreg.
10371 (fill_fpregset): Use alphabsd_fill_fpreg.
10372 (fetch_inferior_registers): Use struct reg and struct fpreg
10373 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10374 and alphabsd_supply_fpreg.
10375 (store_inferior_registers): Use struct reg and struct fpreg
10376 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10377 and alphabsd_fill_fpreg.
10378 * alphabsd-tdep.c: New file.
10379 * alphabsd-tdep.h: New file.
10380 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10381 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10382 alphabsd_supply_fpreg.
10383 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10384 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10386 2002-05-11 Eric Christopher <echristo@redhat.com>
10388 * mips-tdep.c (mips_double_register_type): Fix thinko.
10389 (mips_single_register_type): Ditto.
10390 * MAINTAINERS: Add self.
10392 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10394 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10395 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10396 right thing on architectures with different endianness and/or
10399 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10401 From Christian Limpach <chris@Pin.LU>
10402 * configure.in: Change sed expression which comments out
10403 NATDEPFILES to also comment out continuation lines.
10404 * configure: Regenerate.
10406 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10408 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10411 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10413 * sh-tdep.c: Include correct file.
10415 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10417 New support for sh64-elf (sh5) target.
10419 * configure.tgt: For sh64-elf target, default to sh-elf.
10421 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10422 (struct gdbarch_tdep): Add new fields for new registers and ABI
10425 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10426 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10427 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10428 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10429 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10430 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10431 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10432 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10433 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10434 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10435 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10436 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10437 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10438 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10439 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10440 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10441 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10442 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10443 sign_extend, sh64_nofp_frame_init_saved_regs,
10444 sh64_init_extra_frame_info, sh64_get_saved_register,
10445 sh64_extract_struct_value_address, sh64_pop_frame,
10446 sh64_push_arguments, sh64_extract_return_value,
10447 sh64_store_return_value, sh64_show_media_regs,
10448 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10449 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10450 sh_sh64_register_virtual_type,
10451 sh_sh64_register_convert_to_virtual,
10452 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10453 sh64_register_read, sh64_pseudo_register_write,
10454 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10455 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10456 sh64_do_pseudo_register, sh_compact_do_registers_info,
10457 sh64_do_registers_info, sh_gdbarch_init): New functions.
10459 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10461 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10463 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10465 * linespec.c (decode_line_1): Check for a double quote after
10466 a filename correctly.
10468 2002-05-10 Jim Blandy <jimb@redhat.com>
10470 Properly track the size of the current objfile's .debug_line section.
10471 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10472 (DWARF_LINE_SIZE): New macro.
10473 (dwarf2_build_psymtabs_hard): Record the line section's size in
10474 the partial symbol table.
10475 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10478 2002-05-10 Petr Sorfa <petrs@caldera.com>
10480 * ia64-tdep.c: Handle breakpoints on L instruction type
10481 in MLX instruction bundle by moving the breakpoint to
10482 the third slot (X instruction type) as L holds only data.
10484 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10486 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10487 (process_one_symbol): Complain about discarding local symbols
10488 due to a misplaced N_LBRAC entry.
10490 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10492 From Daniel Berlin <dan@cgsoftware.com>
10493 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10494 decrease the depth we are at, in the case of templates.
10496 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10498 * mips-tdep.c (mips_float_register_type): New function.
10499 (mips_double_register_type): New function.
10500 (mips_print_register): Use them.
10501 (do_fp_register_row): Likewise.
10503 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10505 * signals/signals.c (signals): Remove conditional compilation around
10506 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10507 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10509 2002-05-09 Michael Snyder <msnyder@redhat.com>
10511 * remote-rdp.c (remote_rdp_can_run): Remove.
10513 2002-05-09 Tom Tromey <tromey@redhat.com>
10515 * jv-valprint.c (java_val_print): Handle `char' as a special case
10518 2002-05-09 Michael Snyder <msnyder@redhat.com>
10520 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10521 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10522 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10523 str r(0123),[sp,#nn].
10524 (arm_skip_prologue): Ditto. Also make disassembly
10525 order-independent by placing it in a loop.
10527 2002-05-06 Michael Snyder <msnyder@redhat.com>
10529 * stabsread.c (read_type): Add recognition for new attribute:
10530 "@V;" means that an array type is actually a vector.
10531 This is analogous to the vector flag that's been added to dwarf2.
10533 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10535 * i386-tdep.h (i386_abi): New enum.
10536 (struct gdbarch_tdep): Replace os_ident member with abi.
10537 (i386_gdbarch_register_os_abi): New prototype.
10538 * i386-tdep.c (i386_abi_names): New array.
10539 (process_note_abi_tag_sections): Removed.
10540 (process_note_sections): New function.
10541 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10542 (struct i386_abi_handler): New struct.
10543 (i386_abi_handler_list): New variable.
10544 (i386_gdbarch_register_os_abi): New function.
10545 (i386_gdbarch_init): Adapt for the changes given above.
10547 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10549 * gregset.h: Say "GNU/Linux".
10551 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10553 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10554 (build_gdbtypes): Build builtin_type_v2_float.
10555 (_initialize_gdbtypes): Register new builtin type.
10557 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10559 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10560 (clear_gdbarch_swap): New function.
10561 (initialize_non_multiarch): Call.
10562 (gdbarch_update_p): Before calling init(), swap out and clear the
10563 existing architecture.
10564 * gdbarch.c: Regenerate.
10566 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10568 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10571 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10573 * sh-nbsd-nat.c: Rename to...
10574 * shnbsd-nat.c: ...this.
10575 * sh-nbsd-tdep.c: Rename to...
10576 * shnbsd-tdep.c: ...this.
10577 * sh-nbsd-tdep.h: Rename to...
10578 * shnbsd-tdep.h: ...this.
10579 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10580 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10582 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10584 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10585 concatenation for command help messages.
10587 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10589 * NEWS: Note new sh*-*-netbsdelf* configuration.
10590 * configure.host: Set gdb_host_cpu to sh for all sh*.
10591 (sh*-*-netbsdelf*): New host.
10592 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10593 (sh*-*-netbsdelf*): New target.
10594 * sh-nbsd-nat.c: New file.
10595 * sh-nbsd-tdep.c: New file.
10596 * sh-nbsd-tdep.h: New file.
10597 * config/sh/nbsd.mh: New file.
10598 * config/sh/nbsd.mt: New file.
10599 * config/sh/nm-nbsd.h: New file.
10600 * config/sh/tm-nbsd.h: New file.
10602 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10604 * sh-tdep.c (sh_osabi_names): Declare.
10605 (process_note_abi_tag_sections): New function.
10606 (get_elfosabi): Ditto.
10607 (sh_gdbarch_register_os_abi): Ditto.
10608 (sh_dump_tdep): Ditto.
10609 _initialize_sh_tdep): Use gdbarch_register to register
10610 sh_gdbarch_init and sh_dump_tdep.
10611 * config/sh/tm-sh.h (sh_osabi): Declare.
10612 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10614 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10616 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10617 (thumb_scan_prologue): Ditto.
10618 (arm_find_callers_reg): Ditto.
10619 (arm_frame_chain): Ditto.
10620 (arm_init_extra_frame_info): Ditto.
10621 (arm_frame_saved_pc): Ditto.
10622 (arm_pop_frame): Ditto.
10623 (arm_push_return_address): New function.
10624 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10625 call_dummy_location, call_dummy_breakpoint_offset_p,
10626 call_dummy_breakpoint_offset, call_dummy_p,
10627 call_dummy_stack_adjust_p, call_dummy_words,
10628 sizeof_call_dummy_words, call_dummy_start_offset,
10629 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10630 call_dummy_address, push_return_address and push_dummy_frame for
10631 generic dummy frames.
10633 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10635 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10636 size computation for alloca.
10637 (sh_fp_frame_init_saved_regs): Likewise.
10639 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10641 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10642 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10643 * arm-tdep.c (arm_store_return_value): Use them.
10644 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10645 * remote-rdp.c (remote_rdp_fetch_register): Use
10646 ARM_MAX_REGISTER_RAW_SIZE.
10647 (remote_rdp_store_register): Likewise.
10649 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10651 * dwarf2cfi.c: Code cleanup, removed unused variables,
10652 added default labels to switch {} statements.
10653 * x86-64-tdep.c: Ditto.
10654 * x86-64-linux-nat.c: Ditto.
10656 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10658 * solib.h: Protect against multiple inclusion.
10660 2002-05-06 Jim Blandy <jimb@redhat.com>
10662 Add first preprocessor macro-expansion files.
10663 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10664 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10665 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10666 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10667 (COMMON_OBS): Add macrotab.o, macroexp.o.
10668 (macroexp.o, macrotab.o): New rules.
10670 Separate the job of reading the line number info statement program
10671 header (...expialidocious) out into its own function.
10672 * dwarf2read.c (struct line_head, struct filenames, struct
10673 directories): Replace with...
10674 (struct line_header): New structure, containing the full
10675 contents of the statement program header, including the
10676 include directory and file name tables.
10677 (read_file_scope): If we have line number info, instead of just
10678 calling dwarf_decode_lines to do all the work, call
10679 dwarf_decode_line_header first to get a `struct line_header'
10680 containing the data in the statement program header, and then
10681 pass that to dwarf_decode_lines, which will pick up where that
10682 left off. Be sure to clean up the `struct line_header' object.
10683 (dwarf_decode_line_header, free_line_header, add_include_dir,
10684 add_file_name): New functions.
10685 (dwarf_decode_lines): Move all the code to read the statement
10686 program header into dwarf_decode_line_header. Take the line
10687 header it built as the first argument, instead of the offset to
10688 the compilation unit's line number info. Use the new `struct
10689 line_header' type instead of the old structures. No need to do
10690 cleanups here now, since we don't allocate anything.
10691 (dwarf2_statement_list_fits_in_line_number_section,
10692 dwarf2_line_header_too_long): New complaints.
10694 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10696 * gdbtypes.c (init_vector_type): New function.
10697 (build_builtin_type_vec128): Simplify the representation of SIMD
10699 (build_gdbtypes): Initialize new builtin vector types.
10700 (_initialize_gdbtypes): Register new vector types with gdbarch.
10701 (builtin_type_v4_float, builtin_type_v4_int32,
10702 builtin_type_v8_int16, builtin_type_v16_int8,
10703 builtin_type_v2_int32, builtin_type_v4_int16,
10704 builtin_type_v8_int8): New (renamed) SIMD types.
10706 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10708 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10709 (i387_fill_fxsave): Likewise.
10711 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10713 * alpha-tdep.c (alpha_extract_return_value): Don't use
10714 non-constant array size in prototype.
10716 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10718 From Brian Taylor <briant at model dot com>:
10719 * ui-out.c (ui_out_field_core_addr): Use the function
10720 longest_local_hex_string_custom'to format addresses > 32 bits
10723 * ui-out.c (ui_out_field_core_addr): Update comment.
10725 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10727 * stack.c (select_and_print_frame): Make static. Delete the
10729 (func_command): Update call.
10730 (select_frame_command): Delete code computing the frame level.
10731 * frame.h (select_and_print_frame): Delete declaration.
10733 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10735 * sparc-tdep.c (sparc_get_saved_register): Comment why
10736 get_prev_frame call is safe.
10738 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10740 * frame.h (select_frame): Delete level parameter.
10741 * stack.c (select_frame): Update. Use frame_relative_level to
10742 obtain the frame's level.
10743 (select_and_print_frame): Update call.
10744 (select_frame_command): Ditto.
10745 (up_silently_base): Ditto.
10746 (down_silently_base): Ditto.
10747 * ocd.c (ocd_start_remote): Ditto.
10748 * remote-rdp.c (remote_rdp_open): Ditto.
10749 * remote-mips.c (mips_initialize): Ditto.
10750 (common_open): Ditto.
10751 * remote-e7000.c (e7000_start_remote): Ditto.
10752 * m3-nat.c (select_thread): Ditto.
10753 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10754 (child_get_current_exception_event): Ditto.
10755 * varobj.c (varobj_create): Ditto.
10756 (varobj_update): Ditto.
10757 (c_value_of_root): Ditto.
10758 * tracepoint.c (finish_tfind_command): Ditto.
10759 * corelow.c (core_open): Ditto.
10760 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10761 * thread.c (info_threads_command): Ditto.
10762 (switch_to_thread): Ditto.
10763 * infrun.c (normal_stop): Ditto.
10764 (restore_selected_frame): Ditto.
10765 (restore_inferior_status): Ditto.
10766 * breakpoint.c (insert_breakpoints): Ditto.
10767 (watchpoint_check): Ditto.
10768 (bpstat_stop_status): Ditto.
10769 (do_enable_breakpoint): Ditto.
10770 * blockframe.c (flush_cached_frames): Ditto.
10771 (reinit_frame_cache): Ditto.
10773 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10775 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10778 2002-05-04 Jim Blandy <jimb@redhat.com>
10780 * gdbtypes.c (replace_type): Doc fix.
10782 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10784 * valprint.c (strcat_longest): Delete commented out function.
10787 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10789 * MAINTAINERS: Mark a29k as deleted.
10790 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10791 Move new configurations to the top.
10792 * configure.tgt: Remove a29k.
10793 * config/a29k/tm-vx29k.h: Delete.
10794 * config/a29k/vx29k.mt: Delete.
10795 * config/a29k/tm-a29k.h: Delete.
10796 * config/a29k/a29k-udi.mt: Delete.
10797 * config/a29k/a29k.mt: Delete.
10798 * a29k-tdep.c: Delete.
10799 * remote-udi.c: Delete.
10800 * remote-mm.c: Delete.
10801 * remote-eb.c: Delete.
10802 * remote-adapt.c: Delete.
10803 * Makefile.in: Remove obsolete code.
10804 * config/s390/s390x.mt: Ditto.
10805 * config/s390/s390.mt: Ditto.
10806 * config/sparc/sparclynx.mh: Ditto.
10807 * config/sparc/linux.mh: Ditto.
10808 * config/pa/hppaosf.mh: Ditto.
10809 * config/pa/hppabsd.mh: Ditto.
10810 * config/ns32k/nbsd.mt: Ditto.
10811 * config/mips/vr5000.mt: Ditto.
10812 * config/m68k/sun3os4.mh: Ditto.
10813 * config/m68k/nbsd.mt: Ditto.
10814 * config/m68k/m68klynx.mh: Ditto.
10815 * config/m32r/m32r.mt: Ditto.
10816 * config/i386/x86-64linux.mt: Ditto.
10817 * config/i386/nbsdelf.mt: Ditto.
10818 * config/i386/nbsd.mt: Ditto.
10819 * config/i386/i386lynx.mh: Ditto.
10821 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10823 * target.c (debug_print_register): New function. Handle oversize
10825 (debug_to_fetch_registers): Call.
10826 (debug_to_store_registers): Call.
10828 2002-05-03 Jim Blandy <jimb@redhat.com>
10830 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10831 (read_type): Doc fix.
10832 * gdbtypes.c (replace_type): Doc fix.
10834 * stabsread.c (multiply_defined_struct): New complaint.
10835 (read_struct_type): If the type we were passed isn't empty, or
10836 incomplete, don't read the new struct type into it; complain,
10837 and return the original type unchanged. Take a new `type_code'
10838 argument, which is the type code for the new type.
10839 (read_type): Rather than storing the type's type code here, pass
10840 it as an argument to read_struct_type, and let that take care of
10841 storing it. That way, we don't overwrite the original type code,
10842 so read_struct_type can use it to decide whether we're overwriting
10843 something we shouldn't.
10844 (complain_about_struct_wipeout): New function.
10846 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10848 * gdbarch.sh: Assert that gdbarch is non-NULL.
10849 * gdbarch.c: Regenerate.
10851 2002-05-03 Jason Merrill <jason@redhat.com>
10853 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10856 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10858 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10859 (x86_64_dwarf2gdb_regno_map_length),
10860 (x86_64_dwarf2_reg_to_regnum): Added.
10861 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10862 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10863 (_initialize_x86_64_tdep): Synced with the change above.
10864 (x86_64_skip_prologue): Reformulated message.
10866 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10868 * f-exp.y: Also use new prev_lexptr variable
10869 to improve error reporting. Based on Michael Snyder
10870 2002-04-24 dated patch to c-exp.y.
10871 * jv-exp.y: Likewise.
10872 * m2-exp.y: Likewise.
10874 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10876 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10877 we are dealing with vectors.
10879 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10881 * config/m68k/tm-nbsd.h: Obvious fix,
10882 correct machine name.
10884 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10886 * p-typeprint.c (pascal_type_print_base): Add support
10887 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10889 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10891 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10892 for fondamental pascal 'char' type.
10894 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10896 * p-lang.h (is_pascal_string_type): Declaration changed,
10897 new sixth argument of type char ** added.
10898 * p-lang.c (is_pascal_string_type): Implementation
10899 changed. Args length_pos, length_size, string_pos, char_size
10900 can now be NULL. New argument arrayname set to the field
10901 name of the char array. Return value set to char array
10902 field index plus one.
10903 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10904 is_pascal_string_type function.
10906 2002-05-02 Andrew Cagney <cagney@redhat.com>
10908 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10909 <cagney@redhat.com> change.
10910 * gdbarch.c: Regenerate.
10912 2002-05-02 Andrew Cagney <cagney@redhat.com>
10914 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10915 before probing for a new one. Detect errorenous gdbarch_init
10917 * gdbarch.c: Regenerate.
10919 2002-05-01 Andrew Cagney <cagney@redhat.com>
10921 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10922 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10923 * config/v850/tm-v850.h: Ditto. Update copyright.
10925 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10927 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10930 2002-04-30 Michael Snyder <msnyder@redhat.com>
10932 * arm-tdep.c: Whitespace clean-ups.
10933 (arm_skip_prologue): Fix thinko; two lines
10934 should have been removed as part of 4/24 change.
10936 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10938 * rs6000-tdep.c: Added comment describing how fpscr register
10939 numbers were chosen.
10941 2002-04-30 Michael Snyder <msnyder@redhat.com>
10943 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10945 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10947 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10948 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10949 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10951 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10953 From Louis Hamilton <hamilton@redhat.com>:
10954 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10955 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10956 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10957 not bfd-private xcoff data, to determine wordsize.
10958 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10960 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10962 GDB 5.2 released from 5.2 branch.
10964 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10966 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10967 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10968 (x86_64_register_info_table): Added comments with register numbers.
10970 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10972 * rs6000-tdep.c (rs6000_extract_return_value,
10973 rs6000_store_return_value): Handle returning vectors.
10974 (rs6000_gdbarch_init): Use
10975 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10976 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10978 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10980 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10981 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10983 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10985 * hpread.c (hpread_psymtab_to_symtab_1,
10986 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10987 with fprintf_unfiltered (gdb_stderr,...).
10989 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10991 * remote-array.c (printf_monitor, write_monitor,
10992 array_insert_breakpoint, array_remove_breakpoint ):
10993 Replace fprintf (stderr,...
10994 with fprintf_unfiltered (gdb_stderr,....
10995 * remote-es.c: Likewise.
10996 * remote-os9k.c: Likewise.
10997 * remote-st.c: Likewise.
10999 2002-04-28 Andreas Schwab <schwab@suse.de>
11001 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11002 linux-proc.o and gcore.o.
11004 2002-04-26 Michal Ludvig <mludvig@suse.cz>
11006 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11007 code without frame pointers.
11009 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11011 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11012 ON_STACK is needed.
11014 2002-04-26 Ben Elliston <bje@redhat.com>
11016 * target.c (do_xfer_memory): Correct reference to the new option
11017 "trust-readonly-sections".
11019 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
11021 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11022 * gdbtypes.c (recursive_dump_type): Output the vector flag.
11023 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11025 (read_array_type): Record the fact that this array type is really a
11026 vector (i.e. are passed in by value).
11028 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
11030 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11031 * alpha-tdep.c (alpha_sigcontext_addr): New function.
11032 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11033 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11034 * alpha-linux-tdep.c: Include frame.h.
11035 (alpha_linux_sigcontext_addr): New function.
11036 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11037 alpha_linux_sigcontext_addr.
11038 * alpha-osf1-tdep.c: Include gdbcore.h.
11039 (alpha_osf1_sigcontext_addr): New function.
11040 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11041 alpha_osf1_sigcontext_addr.
11042 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11043 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11045 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11047 * stack.c (selected_frame_level):
11048 (select_frame): Do not set selected_frame_level.
11049 * frame.h (selected_frame_level): Delete declaration.
11051 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11053 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11054 convert_from_func_ptr-addr when AIX / PowerOpen.
11056 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11058 * valops.c (hand_function_call): Call
11059 generic_save_call_dummy_addr.
11060 * frame.h (generic_save_call_dummy_addr): Declare.
11061 * blockframe.c (struct dummy_frame): Add fields call_lo and
11063 (generic_find_dummy_frame): Check for PC in range call_lo to
11064 call_hi instead of entry_point_address.
11065 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11066 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11067 (generic_save_call_dummy_addr): New function.
11069 2002-04-24 David S. Miller <davem@redhat.com>
11071 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11072 sparc_skip_prologue.
11073 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11074 information to find prologue when possible.
11075 (sparc_prologue_frameless_p): Call examine_prologue directly.
11076 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11077 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11079 (SKIP_PROLOGUE): Likewise.
11081 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11083 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11084 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11085 indicate that the condition it was testing is always true.
11086 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11087 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11088 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11090 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11092 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11093 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11094 tdep->jb_pc and tdep->jb_elt_size.
11095 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11096 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11097 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11098 * alpha-nat.c (get_longjmp_target): Remove.
11099 (JB_ELEMENT_SIZE): Ditto.
11101 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11102 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11103 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11104 to alpha_get_longjmp_target.
11105 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11106 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11107 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11109 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11111 * README: Update to GDB 5.2.
11113 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11115 * gdbarch.sh (LC_ALL): Set to `c'.
11117 2002-04-25 Theodore A. Roth <troth@verinet.com>
11119 * avr-tdep.c: Ran through gdb_indent.sh.
11121 2002-04-25 Theodore A. Roth <troth@verinet.com>
11123 * MAINTAINERS: Add myself as AVR maintainer.
11124 * NEWS: Note new target avr.
11126 2002-04-25 Theodore A. Roth <troth@verinet.com>
11128 * Makefile.in: Add support for AVR target.
11129 * configure.tgt: Add support for AVR target.
11130 * avr-tdep.c: New file
11131 * config/avr/avr.mt: New file.
11133 2002-04-25 Theodore A. Roth <troth@verinet.com>
11135 * MAINTAINERS: Add myself to write-after-approval.
11137 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11139 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11140 with fprintf_unfiltered (gdb_stderr,....
11142 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11145 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11147 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11149 * p-exp.y: Also use new prev_lexptr variable
11150 to improve error reporting. Based on Michael Snyder
11151 2002-04-24 dated patch to c-exp.y.
11153 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11155 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11156 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11157 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11159 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11161 (FUNCTION_START_OFFSET): Remove.
11162 (BREAKPOINT): Ditto.
11164 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11166 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11169 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11171 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11172 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11173 alpha_linux_pc_in_sigtramp.
11174 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11175 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11176 alpha_osf1_pc_in_sigtramp.
11177 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11178 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11179 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11180 alphafbsd_pc_in_sigtramp.
11181 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11182 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11183 alphanbsd_pc_in_sigtramp.
11184 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11185 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11187 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11189 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11191 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11193 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11195 (alphanbsd-nat.o): New dependency list.
11196 (alphanbsd-tdep.o): Ditto.
11197 * NEWS: Note new native NetBSD/alpha configuration.
11198 * alphanbsd-nat.c: New file.
11199 * alphanbsd-tdep.c: Ditto.
11200 * configure.host (alpha*-*-netbsd*): New host.
11201 * configure.tgt (alpha*-*-netbsd*): New target.
11202 * config/alpha/nbsd.mh: New file.
11203 * config/alpha/nbsd.mt: Ditto.
11204 * config/alpha/nm-nbsd.h: Ditto.
11205 * config/alpha/tm-nbsd.h: Ditto.
11207 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11209 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11210 (alpha-osf1-tdep.o): New dependency list.
11211 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11212 and skip_sigtramp_frame members.
11213 * alpha-linux-tdep.c: Include gdbcore.h.
11214 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11215 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11216 * alpha-osf1-tdep.c: New file.
11217 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11219 (alpha_frame_past_sigtramp_frame): New function.
11220 (alpha_dynamic_sigtramp_offset): Ditto.
11221 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11222 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11223 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11224 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11225 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11226 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11227 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11228 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11229 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11230 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11231 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11232 to find_solib_trampoline_target.
11233 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11234 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11235 (SKIP_TRAMPOLINE_CODE): Remove.
11236 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11237 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11238 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11239 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11240 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11241 (PROC_SIGTRAMP_MAGIC): Ditto.
11242 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11243 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11244 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11245 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11246 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11248 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11250 * NEWS: Note that Alpha targets are now multi-arch.
11252 2002-04-24 Michael Snyder <msnyder@redhat.com>
11254 * parser-defs.h (prev_lexptr): New external variable.
11255 * parse.c (parse_exp_1): Set prev_lexptr to null before
11256 calling the language-specific parser.
11257 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11258 (yyerror): Use prev_lexptr in error reporting.
11260 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11262 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11263 * gregset.h: If FILL_FPXREGSET is defined, provide
11264 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11265 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11266 is defined, call fill_fpxregset.
11268 2002-04-24 Roland McGrath <roland@frob.com>
11270 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11271 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11272 (supply_gregset, supply_fpregset): New functions.
11274 * gnu-nat.c (gnu_find_memory_regions): New function.
11275 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11276 (gnu_xfer_memory): Add a cast.
11278 2002-04-24 Michael Snyder <msnyder@redhat.com>
11280 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11281 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11282 of argument regs ("str r(0123), [r11, #-nn"]).
11283 (arm_skip_prologue): Better handling for frameless functions.
11284 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11285 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11287 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11289 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11290 NUM_PSEUDO_REGS can be used.
11292 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11294 * arch-utils.h: Update copyright.
11296 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11297 * gdbarch.h, gdbarch.c: Re-generate.
11299 * inferior.h (IN_SIGTRAMP): Delete definition.
11300 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11301 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11303 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11304 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11305 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11306 (find_proc_framesize): Ditto.
11307 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11308 (alpha_init_extra_frame_info): Ditto.
11309 * infrun.c (handle_inferior_event): Ditto.
11310 (handle_inferior_event): Ditto.
11311 (check_sigtramp2): Ditto.
11312 * blockframe.c (create_new_frame): Ditto.
11313 (get_prev_frame): Ditto.
11314 * ppc-linux-tdep.c: Update comments.
11315 * i386-linux-tdep.c: Update comments.
11316 * breakpoint.c (bpstat_what): Update comment.
11318 2002-04-24 David S. Miller <davem@redhat.com>
11320 * i960-tdep.c (register_in_window_p): New function.
11321 (i960_find_saved_register): Use it instead of
11322 REGISTER_IN_WINDOW_P.
11323 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11325 * symtab.h (find_stab_function_addr): Kill extern.
11326 * minsyms.c (find_stab_function_addr): Remove from here...
11327 * dbxread.c: ... to here, and mark it static.
11329 2002-04-20 David S. Miller <davem@redhat.com>
11331 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11332 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11334 2002-04-21 David S. Miller <davem@redhat.com>
11336 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11337 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11338 (vx_write_register): Likewise.
11340 2002-04-23 J. Brobecker <brobecker@gnat.com>
11342 * source.c (is_regular_file): New function.
11343 (openp): Check wether file to open is a regular file
11344 to avoid opening directories.
11346 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11348 * findvar.c (extract_signed_integer): Cast printf argument
11349 to suppress format warning.
11350 (extract_unsigned_integer): Likewise.
11351 * infcmd.c (registers_info): Likewise.
11352 * top.c (get_prompt_1): Likewise.
11353 * valops.c (value_assign): Likewise.
11354 * valprint.c (print_decimal): Likewise.
11356 2002-04-22 H.J. Lu (hjl@gnu.org)
11358 * c-exp.y (typebase): Support
11360 [long|long long|short] [signed|unsigned] [int|]
11364 signed [long|long long|short] int
11366 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11368 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11370 * vax-tdep.h: New file.
11371 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11372 Make several routines static.
11373 (vax_get_saved_register): New function.
11374 (vax_gdbarch_init): New function.
11375 (_initialize_vax_tdep): Register vax_gdbarch_init.
11376 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11377 Remove macros now under the control of gdbarch.
11379 2002-04-22 Michael Snyder <msnyder@redhat.com>
11381 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11382 Some whitespace and coding standards tweaks.
11384 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11386 * vax-tdep.c: Include regcache.h.
11387 (vax_call_dummy_words): New.
11388 (sizeof_vax_call_dummy_words): New.
11389 (vax_fix_call_dummy): New function.
11390 (vax_saved_pc_after_call): Ditto.
11391 * config/vax/tm-vax.h: Don't include regcache.h.
11392 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11393 (CALL_DUMMY): Remove.
11394 (CALL_DUMMY_WORDS): Define.
11395 (SIZEOF_CALL_DUMMY_WORDS): Define.
11396 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11398 2002-04-18 Michael Snyder <msnyder@redhat.com>
11400 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11402 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11404 * vax-tdep.c (vax_frame_chain): New function.
11405 (vax_push_dummy_frame): Ditto.
11406 (vax_pop_frame): Ditto.
11407 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11408 (FRAMELESS_FUNCTION_INVOCATION): Use
11409 generic_frameless_function_invocation_not.
11410 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11411 (POP_FRAME): Use vax_pop_frame.
11413 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11415 * vax-tdep.c (vax_store_struct_return): New function.
11416 (vax_extract_return_value): Ditto.
11417 (vax_store_return_value): Ditto.
11418 (vax_extract_struct_value_address): Ditto.
11419 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11420 vax_store_struct_return.
11421 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11422 (STORE_RETURN_VALUE): Use vax_store_return_value.
11423 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11425 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11427 * vax-tdep.c (vax_frame_saved_pc): New function.
11428 (vax_frame_args_address_correct): Ditto.
11429 (vax_frame_args_address): Ditto.
11430 (vax_frame_locals_address): Ditto.
11431 (vax_frame_num_args): Move code to be in proximity to
11432 other frame-related functions.
11433 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11434 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11435 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11436 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11437 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11439 2002-04-22 H.J. Lu (hjl@gnu.org)
11441 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11444 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11446 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11447 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11448 (FRAME_INIT_SAVED_REGS): New macro.
11450 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11452 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11454 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11456 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11458 (fetch_osf_core_registers): Likewise.
11459 (supply_gregset): Likewise.
11461 2002-04-22 J. Brobecker <brobecker@gnat.com>
11463 * symfile.h (get_section_index): Define.
11464 * symfile.c (get_section_index): New function.
11465 * mdebugread.c (SC_IS_SBSS): New macro.
11466 (SC_IS_BSS): Return true for the scBss storage class only, as
11467 the scSBss storage class refers to the .sbss section.
11468 (parse_partial_symbols): Discard the symbols which associated
11469 section does not exist.
11470 Make sure to use the .sbss section index for symbols which
11471 storage class is scBss, rather than using the .bss section index.
11473 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11475 * vax-tdep.c: Update copyright years.
11476 (vax_register_name): New function.
11477 (vax_register_byte): Ditto.
11478 (vax_register_raw_size): Ditto.
11479 (vax_register_virtual_size): Ditto.
11480 (vax_register_virtual_type): Ditto.
11481 * config/vax/tm-vax.h: Update copyright years.
11482 (REGISTER_NAMES): Remove.
11483 (REGISTER_NAME): Define.
11484 (REGISTER_BYTE): Use vax_register_byte.
11485 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11486 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11487 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11489 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11491 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11493 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11495 2002-04-21 David S. Miller <davem@redhat.com>
11497 * arch-utils.c (generic_prologue_frameless_p): Kill
11498 SKIP_PROLOGUE_FRAMELESS_P code.
11499 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11501 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11502 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11503 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11505 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11506 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11507 (sparc_gdbarch_init): Pass it to
11508 set_gdbarch_prologue_frameless_p.
11510 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11512 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11513 (alphabsd-nat.o): New dependency list.
11515 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11517 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11519 (alpha-linux-tdep.o): New dependency list.
11520 (alphafbsd-tdep.o): Likewise.
11522 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11524 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11526 * alpha-tdep.c: ...from here.
11527 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11529 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11531 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11532 prototype from here...
11533 * alpha-tdep.h: ...to here.
11535 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11537 * frame.h (selected_frame_level): Document as deprecated.
11538 (frame_relative_level): Declare.
11539 * stack.c (frame_relative_level): New function.
11540 (selected_frame_level): Document as deprecated.
11541 (select_frame): Do not set the selected_frame_level.
11543 * stack.c (frame_info, record_selected_frame): Update.
11544 (frame_command, current_frame_command): Update.
11545 (up_silently_base, up_command, down_silently_base): Update.
11546 (down_command): Update.
11547 * inflow.c (kill_command): Update.
11548 * tracepoint.c (finish_tfind_command): Update.
11549 * corelow.c (core_open): Update.
11550 * thread.c (info_threads_command): Update.
11551 (do_captured_thread_select): Update.
11552 * infcmd.c (finish_command): Update.
11553 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11555 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11557 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11559 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11561 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11564 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11566 * alphafbsd-tdep.c: Update copyright years. Include
11568 (alphafbsd_use_struct_convention): Make static.
11569 (alphafbsd_init_abi): New function.
11570 (_initialize_alphafbsd_tdep): New function.
11571 * config/alpha/tm-fbsd.h: Update copyright years.
11572 (USE_STRUCT_CONVENTION): Remove.
11574 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11576 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11577 an Alpha ABI variant.
11578 (alpha_abi_handler_list): Declare.
11579 (alpha_gdbarch_register_os_abi): New function.
11580 (alpha_gdbarch_init): Give registered ABI variant handlers a
11581 chance to tweak the gdbarch once we have set up defaults.
11582 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11584 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11586 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11587 to standard_coerce_float_to_double.
11588 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11590 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11592 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11593 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11594 from gdbarch_tdep rather than a constant.
11595 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11596 the default text address for all Alpha Unix ABIs.
11597 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11598 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11600 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11602 * alpha-tdep.h: New file. Includes several Alpha target constants
11604 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11605 let gdbarch deal with.
11606 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11607 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11608 to dependency list.
11609 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11610 Alpha target register names.
11611 * alphabsd-nat.c: Likewise.
11612 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11613 Alpha target register names. Make serveral routines static.
11614 (alpha_get_saved_register): New function.
11615 (alpha_abi_names): New.
11616 (process_note_abi_tag_sections): New function.
11617 (get_elfosabi): New function.
11618 (alpha_gdbarch_init): New function.
11619 (alpha_dump_tdep): New function.
11620 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11622 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11624 * frame.c (find_saved_register): Delete #ifdef
11625 HAVE_REGISTER_WINDOWS code.
11626 * config/sparc/tm-sparc.h: Update comments.
11627 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11629 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11631 * i960-tdep.c (i960_find_saved_register): New function.
11632 (i960_get_saved_register): New function.
11633 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11634 (i960_get_saved_register): Declare.
11635 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11637 2002-04-20 David S. Miller <davem@redhat.com>
11639 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11641 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11643 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11644 instead of NUM_PSEUDO_REGS.
11646 2002-04-20 David S. Miller <davem@redhat.com>
11648 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11649 GDB_MULTI_ARCH_PARTIAL
11650 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11651 define, let tm-sp64.h do it.
11653 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11655 * frame.c (find_saved_register): Avoid a NULL pointer
11656 dereference and actually walk the frame list.
11658 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11660 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11661 sorted in most most-recent-used order. Document.
11662 * gdbarch.h, gdbarch.c: Regenerate.
11664 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11666 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11668 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11669 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11670 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11673 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11676 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11677 (build_builtin_type_vec128): Ditto.
11678 (append_composite_type_field): Fix calculation of type length in
11681 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11683 * config/djgpp/README: Update.
11685 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11688 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11690 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11691 (alpha_setup_arbitrary_frame): ...to this.
11692 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11693 for alpha_setup_arbitrary_frame.
11695 2002-04-18 Andrew Cagney <cagney@redhat.com>
11697 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11698 * gdbarch.h, gdbarch.c: Regenerate.
11700 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11701 * target.h (memory_breakpoint_from_pc): Update declaration.
11702 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11704 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11705 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11706 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11707 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11708 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11709 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11710 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11711 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11712 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11713 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11714 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11715 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11717 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11719 * monitor.c (monitor_insert_breakpoint): Ditto.
11720 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11722 * config/mcore/tm-mcore.h: Update copyright.
11723 * mem-break.c: Ditto.
11724 * xstormy16-tdep.c: Ditto.
11726 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11728 * p-exp.y: Add precedence rule for '^' token.
11729 This removes the shift/reduce conflicts.
11730 Remove the comment concerning these shift/reduce conflicts.
11732 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11734 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11735 (registers_powerpc_nofp): New register set for processors
11736 without floating point unit.
11738 2002-04-18 David S. Miller <davem@redhat.com>
11740 * MAINTAINERS: Add myself to write-after-approval.
11742 2002-04-17 Michael Snyder <msnyder@redhat.com>
11744 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11746 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11748 * rs6000-tdep.c (frame_initial_stack_address): Use
11749 frame_register_read to read the alloca_reg.
11751 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11753 * frame.c (find_saved_register): Find saved registers in the next
11757 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11759 * gdbarch.sh (LANG): Set to ``c''.
11761 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11763 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11765 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11767 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11770 * hpread.c (hpread_get_lntt): Add declaration.
11771 Also fix PR gdb/391.
11773 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11775 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11776 * aclocal.m4, configure: Re-generate.
11779 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11781 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11782 instead of tm_print_insn.
11784 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11786 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11788 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11790 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11791 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11792 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11794 2002-04-12 Don Howard <dhoward@redhat.com>
11796 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11797 max_user_call_depth.
11798 (init_cmd_lists): Initialize the new value;
11799 * cli/cli-script.c (execute_user_command): Limit the call depth of
11800 user defined commands. This avoids a core-dump when user commands
11801 are infinitly recursive.
11803 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11805 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11806 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11807 from tdep struct instead of DEFAULT_LR_SAVE.
11808 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11809 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11810 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11812 2002-04-12 Michael Snyder <msnyder@redhat.com>
11814 * Remote.c: Spelling fix.
11815 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11816 If no symbol found for "sbrk", try "_sbrk".
11817 (make_output_phdrs): Use bfd_section_name.
11818 (gcore_copy_callback): Use bfd_section_name.
11819 * eval.c: Indentation fix-ups.
11820 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11821 in case it gets applied to an address that is already
11822 in the instruction space.
11823 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11824 * symfile.c: Fix indentation, long lines.
11825 * source.c: White space fix-up.
11827 2002-04-12 Andrew Cagney <cagney@redhat.com>
11829 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11830 * frame.c (frame_register_read): New function. Return non-zero on
11832 (read_relative_register_raw_bytes_for_frame): Delete.
11833 (read_relative_register_raw_bytes): Delete.
11834 * frame.h (frame_register_read): Declare.
11835 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11836 * sh-tdep.c: Ditto.
11837 * infcmd.c (do_registers_info): Ditto.
11838 * hppa-tdep.c: Ditto.
11839 * rs6000-tdep.c: Ditto.
11840 * h8500-tdep.c: Ditto.
11841 * mips-tdep.c: Ditto.
11842 * h8300-tdep.c: Ditto.
11843 * z8k-tdep.c: Ditto.
11845 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11847 From Jimi X <jimix@watson.ibm.com>:
11848 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11851 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11853 From Jimi X <jimix@watson.ibm.com>:
11854 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11857 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11859 From Jimi X <jimix@watson.ibm.com>:
11860 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11861 register sets for these processor variants.
11863 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11865 * regformats/reg-ppc.dat: Support FPSCR.
11867 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11869 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11870 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11871 Add fpscr as an invalid/unfetchable register.
11872 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11873 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11874 (fill_fpregset): Add support for register fpscr.
11875 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11876 (fill_gregset): Account for the fact that register ``mq'' might
11878 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11879 (registers_power): Add fpscr to register set at slot 71.
11880 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11881 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11883 2002-04-11 Michael Snyder <msnyder@redhat.com>
11885 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11886 * configure: Regenerate.
11887 * config.in: Regenerate.
11888 * acconfig.h: Add define for _SYSCALL32.
11889 * core-sol2.c: Remove #define _SYSCALL32.
11890 * solib-legacy.c: Remove #define _SYSCALL32.
11892 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11894 * stack.c (select_frame): Cleanup internal error message, do not
11897 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11899 * stack.c (select_frame): Check that selected_frame and the
11900 specified level are as expected.
11901 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11903 * frame.h (struct frame_info): Add field `level'. Update
11905 Work-in-progress PR gdb/464.
11907 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11909 * maint.c (maint_print_section_info): Rename print_section_info.
11910 (print_bfd_section_info, print_objfile_section_info): Update.
11911 * inferior.h (struct gdbarch): Add opaque declaration.
11912 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11913 * gdbarch.h: Regenerate.
11915 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11917 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11918 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11919 (kernel_u_size): Added.
11920 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11921 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11923 2002-04-04 Jim Ingham <jingham@apple.com>
11925 * valarith.c (find_size_for_pointer_math): New function, either returns
11926 the size for a pointer's target, returns 1 for void *, or errors for
11928 (value_add, value_sub): use find_size_for_pointer_math.
11930 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11932 * linux-low.c (linux_look_up_symbols): New hook.
11933 (linux_target_ops): Add linux_look_up_symbols.
11934 * remote-utils.c (decode_address): New function.
11935 (look_up_one_symbol): New function.
11936 * server.c (handle_query): Call target look_up_symbols hook.
11937 * server.h (look_up_one_symbol): Add prototype.
11938 * target.h (struct target_ops): Add look_up_symbols hook.
11940 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11942 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11943 override FP_REGNUM with frame->fp. Update copyright.
11944 * parse.c (num_std_regs, std_regs): Delete.
11945 (target_map_name_to_register): Do not search std_regs. Update
11946 function description.
11947 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11948 declarations. Update copyright.
11951 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11953 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11954 after the last symbol in a block.
11956 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11958 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11959 is non zero as a found symbol.
11961 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11963 * findvar.c: Include "builtin-regs.h".
11964 (value_of_register): Call value_of_builtin_reg when applicable.
11965 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11966 (target_map_name_to_register): Call
11967 builtin_reg_map_name_to_regnum.
11968 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11969 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11970 (builtin_regs_h): Define.
11971 (builtin-regs.o): New target.
11972 (findvar.o): Add $(builtin_regs_h).
11973 * builtin-regs.c, builtin-regs.h: New files.
11974 * std-regs.c: New file.
11975 Partial fix for PR gdb/251.
11977 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11979 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11980 it's no longer required.
11982 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11984 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11986 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11988 From Jimi X <jimix@watson.ibm.com>:
11989 * rs6000-tdep.c (rs6000_software_single_step): Use
11990 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11991 and size. Use target_insert_breakpoint() and
11992 target_remove_breakpoint() to insert and remove breakpoints
11993 instead of explicit memory reads and writes.
11995 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11997 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11998 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11999 ELF_OBJECT_FORMAT ifdef.
12001 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12003 From Jimi X <jimix@watson.ibm.com>:
12004 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12006 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12008 From Jimi X <jimix@watson.ibm.com>:
12009 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12010 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12012 2002-04-07 Mark Kettenis <kettenis@gnu.org>
12014 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12015 s/asprintf/xasprintf/.
12016 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12018 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12020 I believe Jeff Law denies responsability for this one:
12021 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12022 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12023 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12024 Work-around for PR gdb/366.
12026 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12028 * remote-e7000.c (write_small, e7000_read_inferior_memory,
12029 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12030 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12032 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12034 * sh-tdep.c (sh_fp_frame_init_saved_regs,
12035 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12038 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12040 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12043 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12045 * README (Reporting Bugs in GDB): Document the bug web page as the
12046 prefered way of submitting bugs.
12049 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12051 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12052 -1. Update comment.
12053 * gdbarch.h, gdbarch.c: Re-generate.
12055 2002-04-07 Andreas Schwab <schwab@suse.de>
12057 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12058 buffer to regcache_collect.
12060 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12062 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12063 * gdbarch.c, gdbarch.h: Re-generate.
12065 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12067 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12068 declaration. Fix -Werror.
12070 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12072 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12073 * gdbarch.c: Regenerate.
12075 2002-04-05 Michael Snyder <msnyder@redhat.com>
12077 * breakpoint.c (clear_command): Rewrite middle section to
12078 combine two loops with identical control conditions.
12079 Add a cleanup to eliminate a memory leak.
12080 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12082 2002-04-05 H.J. Lu (hjl@gnu.org)
12084 * solib-svr4.c (bkpt_names): Add "__start".
12086 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12088 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12089 as test for 64 bit target.
12091 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12093 * h8500-tdep.c (h8500_write_fp): Delete function.
12094 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12095 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12096 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12097 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12098 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12099 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12101 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12102 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12103 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12104 (d10v_write_fp): Delete function.
12105 * inferior.h (write_fp, generic_target_write_fp): Delete
12107 * regcache.c (generic_target_write_fp): Delete function.
12108 (write_fp): Delete function.
12109 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12110 * gdbarch.h, gdbarch.c: Regenerate.
12111 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12112 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12113 (sparc64_write_fp): Delete declaration.
12114 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12115 (h8500_write_fp): Delete declaration.
12117 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12119 * sparc-tdep.c (sparc64_write_fp): Delete.
12120 (sparc_push_dummy_frame): Replace write_fp call with code to store
12122 (sparc_gdbarch_init): Do not initialize write_fp.
12124 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12126 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12129 2002-03-29 Jim Blandy <jimb@redhat.com>
12131 * stack.c (get_selected_block): Add new argument `addr_in_block',
12132 used to return the exact code address we used to select the block,
12133 not just the block.
12134 * blockframe.c (get_frame_block, get_current_block): Same.
12135 * frame.h (get_frame_block, get_current_block,
12136 get_selected_block): Update declarations.
12137 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12138 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12140 2002-04-05 Michael Snyder <msnyder@redhat.com>
12142 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12145 2002-04-05 J. Brobecker <brobecker@gnat.com>
12147 * utils.c (xfullpath): New function.
12148 * defs.h (xfullpath): Add declaration.
12149 * source.c (openp): Use xfullpath in place of gdb_realpath to
12150 avoid resolving the basename part of filenames when the
12151 associated file is a symbolic link. This fixes a potential
12152 inconsistency between the filenames known to GDB and the
12153 filenames it prints in the annotations.
12154 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12155 to be able to match a filename with either the real filename, or
12156 the name of any symbolic link to this file.
12157 (lookup_partial_symtab): Ditto.
12159 2002-04-04 Michael Snyder <msnyder@redhat.com>
12161 * breakpoint.c: Add support for hardware breakpoints in overlays.
12162 (overlay_events_enabled): New state variable.
12163 (insert_breakpoints): Use overlay_events_enabled to decide
12164 whether to attempt to set a breakpoint at the overlay load addr.
12165 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12166 (remove_breakpoint): Use overlay_events_enabled to decide
12167 whether breakpoints need to be removed from overlay load addr.
12168 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12169 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12170 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12171 disable_overlay_breakpoints): Update overlay_events_enabled.
12173 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12175 * dwarf2read.c (struct function_range): New.
12176 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12177 (check_cu_functions): New.
12178 (read_file_scope): Initialize global function lists.
12179 Call dwarf_decode_line after processing children.
12180 (read_func_scope): Add to global function list.
12181 (dwarf_decode_lines): Call check_cu_functions everywhere
12182 record_line is called. Call record_line with a linenumber
12183 of 0 to mark sequence ends.
12185 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12187 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12188 change sync with glibc.
12190 2002-04-03 Jim Blandy <jimb@redhat.com>
12192 * configure.in: Call AC_C_INLINE.
12193 * configure: Regenerated.
12195 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12197 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12198 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12200 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12202 * NEWS: Mention gcore support on FreeBSD/i386.
12204 * fbsd-proc.c: New file.
12205 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12206 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12208 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12211 2002-03-29 Jim Blandy <jimb@redhat.com>
12213 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12214 unescaped newlines in string literals, but newer ones don't. So
12217 2002-03-26 Michael Snyder <msnyder@redhat.com>
12218 Andrew Cagney <cagney@redhat.com>
12220 * cli/cli-dump.c: New file. Dump memory to file,
12221 restore file to memory.
12222 * cli/cli-dump.h: New file.
12223 * Makefile.in: Add rules, dependencies for cli-dump.o.
12224 * NEWS: Mention new commands.
12226 2002-03-28 Michael Snyder <msnyder@redhat.com>
12228 * symfile.c (symbol_file_add): Move test for null symbols to later.
12230 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12232 From veksler at il.ibm.com:
12233 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12234 the xstrduped original path.
12237 2002-03-27 Michael Snyder <msnyder@redhat.com>
12239 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12240 * infcmd.c (_initialize_infcmd): Ditto.
12241 * language.c (_initialize_language): Ditto.
12242 * symfile.c (_initialize_symfile): Ditto.
12243 * top.c (_init_main): Ditto.
12244 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12246 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12248 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12249 vector registers handling.
12250 (skip_prologue): Handle new AltiVec instructions. Fill in new
12251 fields of frame data.
12252 (frame_get_saved_regs): Fill in information for AltiVec registers.
12254 2002-03-27 Jim Blandy <jimb@redhat.com>
12256 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12257 a function; leave this macro here to invoke that function.
12258 (symbol_init_mangled_name): Declaration for that function.
12259 * symtab.c (symbol_init_mangled_name): New function.
12261 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12263 * valarith.c: Replace strerror with safe_strerror.
12264 * tracepoint.c: Ditto.
12265 * lin-lwp.c: Ditto.
12266 * go32-nat.c: Ditto.
12268 * gnu-nat.c: Ditto.
12270 2002-03-27 Andreas Schwab <schwab@suse.de>
12272 * event-top.c (command_line_handler): Remove useless if.
12274 2002-03-27 Andreas Jaeger <aj@suse.de>
12276 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12279 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12281 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12282 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12283 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12284 (x86_64_linux_dr_get_status, supply_gregset),
12285 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12286 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12287 (x86_64_register_info_table): Add.
12288 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12289 (x86_64_register_raw_size, x86_64_register_virtual_type),
12290 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12291 general x86_64_register_info_table.
12292 (i386_gdbarch_init): gdbarch_register_bytes is now set
12293 dynamicaly during initialization.
12294 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12295 * gdbserver/linux-x86-64-low.c: Ditto.
12297 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12299 * gdbserver/server.c (main): Call target_signal_to_host_p
12300 and target_signal_to_host on signals received from the remote.
12301 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12302 target_signal_from_host on signals sent to the remote.
12303 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12304 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12306 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12308 * signals/signals.c: Include "server.h" in gdbserver build.
12309 (target_signal_from_name): Don't use STREQ.
12310 (_initialize_signals): Likewise. Don't include function in
12313 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12315 * signals.c: Moved to...
12316 * signals/signals.c: Here.
12317 * Makefile (signals.o): Update.
12319 2002-03-26 Jeff Law (law@redhat.com)
12321 * somread.c (som_symtab_read): Remove some commented out code and
12322 updated related comments. Do not set the minimal symbol table to
12323 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12324 in a dynamic executable.
12325 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12326 where we are unable to find the minimal symbol for the given
12329 2002-03-25 Jeff Law (law@redhat.com)
12331 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12333 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12335 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12337 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12339 * command.h: Update copyright.
12340 (struct cmd_list_element): Replace definition with opaque
12342 (enum cmd_types): Document that it will eventually be moved to
12344 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12345 (MALLOCED_REPLACEMENT): Delete macro.
12346 * Makefile.in (cli_decode_h): Add $(command_h).
12347 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12348 * top.c: Include "cli/cli-decode.h".
12349 * completer.c: Include "cli/cli-decode.h".
12350 * maint.c: Include "cli/cli-decode.h".
12351 * cli/cli-decode.h: Include "command.h".
12352 (enum command_class): Delete.
12353 (enum cmd_types): Comment out.
12354 (enum cmd_auto_boolean): Delete.
12355 (enum var_types): Delete.
12357 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12359 * cli/cli-decode.c: Include "gdb_assert.h".
12360 (add_set_or_show_cmd): New static function.
12361 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12362 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12363 all fields, such as func, from the set command.
12365 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12367 * MAINTAINERS (sh-elf): Change warning flag to -w.
12369 2002-03-23 Andrew Cagney <cagney@redhat.com>
12371 * defs.h (error): Add printf format attribute.
12372 * thread-db.c (thread_from_lwp): Fix error format string.
12373 * stack.c (parse_frame_specification): Ditto.
12374 * cli/cli-decode.c (undef_cmd_error): Ditto.
12375 * scm-lang.c (scm_lookup_name): Ditto.
12376 * tracepoint.c (trace_error): Ditto.
12377 * remote-utils.c (usage): Ditto.
12378 * remote.c (compare_sections_command): Ditto.
12381 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12383 * gdbtypes.c (append_composite_type_field): New function.
12384 (init_composite_type): New function.
12385 * gdbtypes.h (append_composite_type_field): Declare.
12386 (init_composite_type): Ditto.
12388 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12390 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12392 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12393 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12394 structure returning convention for SYSV ABI case, but not
12395 for GNU/Linux, FreeBSD, or NetBSD.
12397 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12399 * symtab.h (lookup_block_symbol): Add mangled_name argument
12402 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12403 with new mangled_name argument.
12404 * linespec.c (decode_line_1): Likewise.
12405 * valops (value_of_this): Likewise.
12406 * symtab.c (lookup_transparent_type): Likewise.
12407 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12408 (lookup_symbol): If we are given a mangled name, pass it down
12409 to lookup_symbol_aux.
12410 (lookup_block_symbol): If we are given a mangled name to check
12411 against, only return symbols which match it.
12413 2002-03-22 Christopher Faylor <cgf@redhat.com>
12415 * win32-nat.c (child_create_inferior): Check for proper shell to use
12416 here, in case the user changes it on the fly.
12417 (_initialize_inftarg): Remove shell path considerations.
12419 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12421 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12422 for gdbarch_max_register_raw_size and max_register_virtual_size.
12423 Adjust copyright year.
12425 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12427 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12428 in a function to cover the entire beginning of the function
12429 as well if it does not already.
12431 2002-03-21 Tom Rix <trix@redhat.com>
12433 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12434 (rs6000_ptrace64): Renamed from ptrace64.
12436 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12438 * gdbserver/remote-utils.c (remote_open): Don't call
12439 getprotobyname, we're all using TCP here so just use
12441 * gdbserver/gdbreplay.c (remote_open): Ditto.
12443 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12445 * regcache.c (_initialize_regcache): No need to call
12446 build_regcache() at this time; it gets called whenever
12447 the gdbarch changes.
12449 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12451 * sparc-nat.c: Include sys/param.h where possible.
12453 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12456 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12457 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12458 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12460 * stabsread.c (rs6000_builtin_type): Likewise.
12461 (read_sun_floating_type): Likewise.
12463 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12465 * stabsread.c (read_member_functions): Remove skip code for duplicate
12466 constructor/destructor methods. Use standard parsing for these
12467 methods and just do not chain them to the list of methods after
12470 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12472 * coffread.c: Remove redundant static declarations. Replace
12473 occurrences of `PTR' with `void *'.
12474 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12475 * top.h (quit_cover): Likewise.
12476 * defs.h (catch_errors): Likewise.
12478 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12480 * defs.h (XMALLOC): Define.
12481 * gdb-events.sh (XMALLOC): Delete macro.
12482 * gdb-events.c, gdb-events.h: Regenerate.
12483 * gdbarch.sh (XMALLOC): Delete macro.
12484 * gdbarch.c: Regenerate.
12485 * serial.c (XMALLOC): Delete macro.
12486 * ui-file.c (XMALLOC): Ditto.
12487 * ser-unix.h (XMALLOC): Ditto.
12488 * sh-tdep.c (XMALLOC): Ditto.
12489 * ui-out.c (XMALLOC): Ditto.
12490 * utils.c (XMALLOC): Ditto.
12491 * i386-tdep.c (XMALLOC): Ditto.
12492 * gdb-events.c (XMALLOC): Ditto.
12493 * d10v-tdep.c (XMALLOC): Ditto.
12494 * cli-out.c (XMALLOC): Ditto.
12496 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12497 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12498 * ui-file.c, ui-out.c: Ditto.
12500 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12502 * command.h (struct cmd_list_element): Add field context.
12503 (set_cmd_context, get_cmd_context): Declare.
12504 * cli/cli-decode.h: Ditto.
12505 * cli/cli-decode.c (get_cmd_context): New function.
12506 (set_cmd_context): New function.
12507 (add_cmd): Initialize context.
12508 Part of fixing PR gdb/145 and PR gdb/146.
12510 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12512 * cli/cli-decode.c (cmd_type): New function.
12513 * command.h (cmd_type): Declare.
12514 * infrun.c (set_schedlock_func): Call function cmd_type.
12515 * kod.c (kod_set_os): Call cmd_type.
12516 * cris-tdep.c (cris_version_update): Use function cmd_type.
12517 (cris_mode_update, cris_abi_update): Ditto.
12519 * command.h: (execute_cmd_post_hook): Declare.
12520 (execute_cmd_pre_hook): Declare.
12521 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12522 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12523 functions. Execute pre/post hook while ensuring that afterwords
12524 hook_in is cleared.
12525 * top.c (execute_command): Use execute_cmd_post_hook, and
12526 execute_cmd_pre_hook to execute pre/post commands.
12527 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12529 (hook_stop_stub): Call execute_cmd_pre_hook.
12531 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12533 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12534 set'' and this leads to a core dump. Move xstrdup of
12535 operating_system to after check that it is not NULL.
12537 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12539 * kod.c (kod_set_os): Remove unnecessary check that
12540 ``command->type'' is set_cmd.
12542 * valprint.c (set_input_radix): Use input_radix.
12543 (set_output_radix): Use output_radix.
12544 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12547 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12549 * value.h (struct value): Delete field ``substring_addr''. Change
12550 aligner fields to force_doublest_align, force_longest_align,
12551 force_core_addr_align and force_pointer_aligh.
12553 * value.h (struct value): Fix typo in above change.
12555 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12557 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12558 to fix internal_error from ``maintenance print architecture''.
12560 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12562 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12563 for gcc versions after gcc-2.8.1.
12565 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12567 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12568 for method resolution. Restore adjustment of ``this'' pointer after
12569 calling value_struct_elt, which was accidentally removed during the
12572 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12574 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12576 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12577 get_saved_register.
12578 * value.h (value_of_register): Update.
12580 2002-03-14 Richard Henderson <rth@redhat.com>
12582 * configure.in: Detect declaration for canonicalize_file_name.
12583 * utils.c (canonicalize_file_name): Declare, if needed.
12584 (gdb_realpath): Prefer realpath if available and usable.
12585 * config.in, configure: Rebuild.
12587 2002-03-14 Richard Henderson <rth@redhat.com>
12589 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12590 a constant array bound.
12592 * MAINTAINERS: Add myself to write-after-approval.
12594 2002-03-14 Michael Snyder <msnyder@redhat.com>
12596 * symfile.c (syms_from_objfile): Return immediately if no syms.
12597 (symbol_file_add): Return immediately if no syms.
12598 (find_sym_fns): Return immediately if no syms.
12600 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12602 * gdbserver/remote-util.c (remote_open): Print remote-side's
12603 IP address when remote debugging over the network.
12605 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12607 * config/sparc/fbsd.mh: Fix copyright.
12608 * config/sparc/fbsd.mt: Likewise.
12610 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12612 * MAINTAINERS: Fix typo in name of gdb warnings option.
12613 (x86-64): Fix formating so that this can be parsed by awk.
12615 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12617 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12618 * defs.h: Include "gdb/signals.h".
12619 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12621 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12623 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12624 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12627 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12628 Don Howard <dhoward@redhat.com>
12630 * mips-tdep.c (ST0_FR): Define.
12631 (mips2_fp_compat): New function, temporarily disabled.
12632 (mips_read_fp_register_single): New function.
12633 (mips_read_fp_register_double): New function.
12634 (mips_print_register): Use them.
12635 (do_fp_register_row): Likewise.
12637 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12639 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12642 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12644 * stabsread.c (read_member_functions): Fix is_stub test for
12645 static member functions, improve comment.
12647 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12649 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12650 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12651 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12652 commands that set boolean values.
12653 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12654 (arm_rdi_resume): Always initialize PC.
12655 (arm_rdi_open): Don't use rslt as a boolean.
12656 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12657 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12658 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12659 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12661 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12663 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12664 * configure: Rebuilt.
12666 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12668 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12669 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12671 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12673 * cli/cli-decode.c (set_cmd_completer): New function.
12674 * command.h (set_cmd_completer): Declare.
12675 * cli/cli-decode.h (set_cmd_completer): Ditto.
12677 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12678 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12679 * win32-nat.c (_initialize_inftarg): Ditto.
12680 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12681 * proc-api.c (_initialize_proc_api): Ditto.
12682 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12683 * source.c (_initialize_source): Ditto.
12684 * exec.c (_initialize_exec): Ditto.
12685 * solib.c (_initialize_solib): Ditto.
12686 * top.c (init_main): Ditto.
12687 * tracepoint.c (_initialize_tracepoint): Ditto.
12688 * symfile.c (_initialize_symfile): Ditto.
12689 * printcmd.c (_initialize_printcmd): Ditto.
12690 * infcmd.c (_initialize_infcmd): Ditto.
12691 * corefile.c (_initialize_core): Ditto.
12693 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12695 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12697 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12699 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12701 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12703 * NEWS: Update headings, 5.2 has branched.
12705 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12707 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12708 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12709 (register_addr, REGISTER_RAW_SIZE): Likewise.
12710 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12711 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12713 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12715 * MAINTAINERS (x86-64): Add myself.
12716 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12717 changed value_ptr -> struct value *
12719 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12721 * configure.host (sparc64-*-freebsd): Add.
12722 * configure.tgt: Likewise.
12723 * config/sparc/fbsd.mh: New file.
12724 * config/sparc/fbsd.mt: Likewise.
12725 * config/sparc/nm-fbsd.h: Likewise.
12726 * config/sparc/tm-fbsd.h: Likewise.
12728 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12730 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12731 regformats/reg-s390x.dat.
12733 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12735 * utils.c: Add FIXME explaining true/false problem.
12737 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12739 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12741 2002-02-28 Michael Chastain <mec@shout.net>
12743 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12745 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12747 * gdbserver/linux-s390-low.c: New file.
12748 * regformats/reg-s390.dat: New file.
12749 * regformats/reg-s390x.dat: New file.
12750 * gdbserver/configure.srv: Add S/390.
12751 * gdbserver/Makefile.in: Add S/390.
12752 * configure.tgt: Enable gdbserver for S/390.
12754 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12756 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12757 first line of the doc string for "info dos", except at the end of
12758 the sentence, since the short help stops at the first period.
12760 2002-02-28 Jason Merrill <jason@redhat.com>
12762 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12764 2002-02-27 Fred Fish <fnf@redhat.com>
12766 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12767 comment (dumy -> dummy).
12769 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12771 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12773 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12775 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12777 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12779 * gdbserver/acconfig.h: New file.
12780 * gdbserver/i387-fp.c: New file.
12781 * gdbserver/i387-fp.h: New file.
12782 * gdbserver/linux-x86-64.c: New file.
12783 * regformats/reg-x86-64.dat: New file.
12784 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12785 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12786 * gdbserver/configure.in: Add support for regsets.
12787 * gdbserver/config.in: Regenerate.
12788 * gdbserver/configure: Regenerate.
12789 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12790 * gdbserver/linux-low.h: New file.
12791 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12793 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12794 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12795 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12796 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12797 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12798 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12799 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12800 "i387-fp.h". Add PTRACE_GETREGS and friends.
12801 * gdbserver/regcache.c (supply_register): New function.
12802 (supply_register_by_name): New function.
12803 (collect_register): New function.
12804 (collect_register_by_name): New function.
12806 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12808 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12809 (config.status): Add configure.srv dependency.
12810 (server_h): Add config.h dependency.
12812 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12814 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12815 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12816 * gdbserver/configure.srv: Change i386-*-linux* to use
12819 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12821 * x86-64-tdep.c: Re-indent. Update copyright date.
12823 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12825 From Michal Ludvig <mludvig@suse.cz>:
12826 * x86-64-tdep.c (value.h): Delete.
12827 (gdb_assert.h): Include.
12828 (x86_64_register_convert_to_virtual,
12829 x86_64_register_convert_to_raw ): Add check which lets only
12830 floating-point values to be converted.
12831 (value_push): Delete.
12832 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12833 (i386_gdbarch_init): Number of register_bytes fixed.
12835 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12837 * MAINTAINERS: Add x86-64 target.
12839 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12841 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12842 * osfsolib.c (solib_map_sections): Ditto.
12843 * irix5-nat.c (solib_map_sections): Ditto.
12844 * corelow.c (gdb_check_format): Ditto.
12845 * symfile.c (symfile_bfd_open): Ditto.
12846 * solib.c (solib_map_sections): Ditto.
12849 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12851 * remote.c (_initialize_remote): By default, disable ``e'' and
12852 ``E'' step out-of-range packets.
12854 2002-02-26 Andreas Schwab <schwab@suse.de>
12856 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12857 m68k_linux_frame_saved_pc.
12858 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12860 (SIGCONTEXT_PC_OFFSET): Remove.
12861 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12862 m68k_linux_sigtramp_saved_pc): New functions.
12863 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12864 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12865 (UCONTEXT_PC_OFFSET): Define.
12866 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12867 non-RT and RT signal trampolines.
12869 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12871 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12872 (TARGET_NBPG, STACK_END_ADDR): Delete
12873 (VARIABLES_INSIDE_BLOCK): Delete.
12875 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12877 * utils.c (perror_with_name): Make string parameter constant.
12878 (print_sys_errmsg): Ditto.
12880 * defs.h (perror_with_name): Update.
12881 (print_sys_errmsg): Update.
12884 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12886 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12887 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12889 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12891 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12892 if it already matches the current architecture from the exec file.
12893 Include arch-utils.h for gdbarch_info_init prototype.
12894 * Makefile.in (rs6000-nat.o): Update dependencies.
12896 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12898 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12899 list of exported variables.
12901 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12903 * gdbserver/configure.srv: New file.
12904 * gdbserver/configure.in: Use configure.srv instead
12905 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12907 * gdbserver/configure: Regenerated.
12908 * gdbserver/terminal.h: New file.
12909 * gdbserver/Makefile.in: Update for configure changes. Remove
12910 more unneeded include paths.
12912 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12914 From wiz at danbala:
12915 * config/sparc/tm-sp64.h: Fix grammar and typos.
12918 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12920 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12921 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12922 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12923 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12924 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12925 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12926 * s390-tdep.c: Ditto.
12927 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12928 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12929 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12930 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12931 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12932 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12933 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12934 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12935 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12936 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12939 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12941 * lin-thread.c: Delete file.
12942 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12943 to gdb_proc_service.h.
12944 * configure: Re-generate.
12946 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12947 * serial.c (serial_open): Delete check for "ocd".
12950 * Makefile.in (linux-thread.o): Delete target.
12951 * linux-thread.c: Delete file.
12953 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12954 renamed SH files to be consistent.
12956 * symtab.c (sort_search_symbols): Use xfree.
12958 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12960 * arm-linux-tdep.c (arm_linux_init_abi): Register
12961 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12962 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12963 definition with undef, since we don't want the sysvr4 definition.
12964 (SKIP_TRAMPOLINE_CODE): Likewise.
12966 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12968 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12970 * configure.in: (AC_CHECK_FUNCS) Added test for
12971 canonicalize_file_name Regenerated.
12972 * config.in, configure: Regenerated.
12973 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12974 defined use canonicalize_file_name.
12976 2002-02-23 Michael Chastain <mec@shout.net>
12978 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12980 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12982 * README: Remove references to cygnus.com.
12983 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12984 dot com'' form. Remove references to cygnus.com and sourceware.
12986 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12988 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12989 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12990 1003.1-2001 no longer allows "head -1".
12991 * gdb/Makefile.in (version.c): Likewise.
12992 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12993 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12994 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12996 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12998 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12999 * command.h (cmd_cfunc_eq): Declare.
13000 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13002 * cli/cli-cmds.h (is_complete_command): Change parameter to a
13003 ``struct cmd_list_element *''.
13004 * cli/cli-cmds.c (is_complete_command): Update. Use
13006 * top.c (execute_command): Pass the command to
13007 is_complete_command.
13008 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13010 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13012 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13013 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13014 architecture defines.
13015 * s390-tdep.c (s390_gdbarch_init): Likewise.
13017 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13019 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13020 (arm_linux_push_arguments): Likewise.
13021 (arm_linux_init_abi): Register them. Also register linux-specific
13023 (find_minsym_and_objfile): Use strcmp, not STREQ.
13024 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13025 (arm_linux_call_dummy_words): Delete declaration.
13026 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13027 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13029 (LOWEST_PC): Delete.
13031 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13033 * maint.c (print_section_info): Do not prepend `0x' to filepos
13034 output, it will be handled by local_hex_string_custom.
13036 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13038 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13039 (store_newfpe_double, store_newfpe_extended, store_fpregister)
13040 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13042 2002-02-22 Jim Blandy <jimb@redhat.com>
13044 Indicate that the bcache functions don't change the strings
13046 * bcache.h (bcache, hash): Add `const' keywords to declarations.
13047 * bcache.c (bcache, hash): Add `const' keywords to definitions.
13049 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
13051 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13053 2002-02-21 Christopher Faylor <cgf@redhat.com>
13055 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13056 find the complete path to a loaded DLL.
13058 2002-02-21 Fred Fish <fnf@redhat.com>
13060 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13061 that marks the end of the range of a function, enter a line number
13062 entry that has a line number of zero and a PC offset that matches
13063 the end of the function. This starts a range of PC's for which no
13064 line number information is known.
13065 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13066 PC's for which no line number info is found (line number is zero)
13067 then we didn't find any valid line information.
13068 * symtab.h: Document use of zero line number entry.
13070 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13072 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13073 (have_ptrace_getvrregs): Define for run time checks.
13074 (gdb_vrregset_t): New type for Altivec register handling.
13075 (fetch_register, store_register): Fetch/store altivec register
13077 (fetch_altivec_register, store_altivec_register): New functions.
13078 (supply_vrregset, fill_vrregset): New functions.
13079 (fetch_altivec_registers, store_altivec_registers): New functions.
13080 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13083 2002-02-21 Jiri Smid <smid@suse.cz>
13085 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13087 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13089 * Makefile.in (armnbsd-nat.o): Update dependencies.
13090 * armnbsd-nat.c (supply_gregset): New function. Common code to
13091 supply the integer register set.
13092 (supply_fparegset): New function. Similar for FPA registers.
13093 (fetch_regs, fetch_fp_regs): Use them.
13094 (fetch_core_registers): Likewise.
13095 (fetch_elfcore_registers): New function.
13096 (arm_netbsd_elfcore_fns): New core-file type specification.
13097 (_initialize_arm_netbsd_nat): Register it.
13099 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13101 * armnbsd-nat.c: Include gdbcore.h.
13102 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13103 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13104 'void' to declaration, to shut up ARI.
13105 (fetch_core_registers): Make static. Rewrite using supply_register.
13106 (arm_netbsd_core_fns): New core-file type specification.
13107 (_initialize_arm_netbsd_nat): New function.
13109 2002-02-21 Christopher Faylor <cgf@redhat.com>
13111 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13114 2002-02-20 Christopher Faylor <cgf@redhat.com>
13116 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13119 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13121 * jv-exp.y (parse_number): Change type of implicit longs
13122 to builtin_type_uint64.
13124 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13126 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13127 to be an integer instead of a `union wait'.
13129 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13131 * mips-linux-nat.c: Call the operating system GNU/Linux.
13132 * mips-linux-tdep.c: Likewise.
13133 * mips-tdep.c: Likewise.
13135 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13138 * jv-exp.y (parse_number): Handle 64-bit integers.
13140 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13142 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13143 AC_STDC_HEADERS to AC_HEADER_STDC.
13144 * gdbserver/configure: Regenerated.
13146 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13148 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13150 * sparc-tdep.c (get_longjmp_target): Likewise.
13152 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13154 * News: Add news about ARM and Multi-arch. Mention the new target
13157 2002-02-19 Jim Blandy <jimb@redhat.com>
13159 * stabsread.c (error_type_complaint): Improve error message.
13161 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13163 * gdbserver/README: Update documentation.
13164 * gdbserver/configure.in: Update configury to match documentation.
13165 * gdbserver/Makefile.in: Likewise.
13166 * gdbserver/configure: Regenerated.
13167 * gdbserver/aclocal.m4: New file, generated by aclocal.
13168 * gdbserver/config.in: New file, generated by autoheader.
13170 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13172 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13175 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13177 * arm-tdep.h (enum arm_float_model): New enum.
13178 (struct gdbarch_tdep): Add fp_model.
13179 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13180 up floating-point conversions until we know the floating-point model
13181 in use by the inferior. Don't complain about being unable to
13182 determine the ABI of the inferior when we don't have one.
13183 (arm_extract_return_value): Support different floating-point models.
13184 (arm_store_return_value): Likewise.
13185 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13187 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13189 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13191 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13192 of ``current_gdbarch''.
13194 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13196 * armnbsd-nat.c : ANSIfy all function declarations.
13197 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13198 (fetch_inferior_registers): Re-implement in terms of above.
13199 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13200 (store_inferior_registers): Re-implement in terms of above.
13202 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13204 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13206 * arm-linux-tdep.c: Likewise.
13207 * config/arm/tm-linux.h: Likewise.
13209 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13211 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13212 * config/arm/nbsd.mt (TM_FILE): Delete.
13213 * config/arm/tm-nbsd.h: Delete.
13215 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13217 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13218 Initialize CALL_DUMMY_LENGTH.
13220 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13222 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13224 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13225 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13226 defines one thing and that is incorrect for this port.
13227 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13229 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13231 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13233 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13235 * win32-nat.c (display_selector): New function. Displays information
13236 about the information returned by GetThreadSelectorEntry API function.
13237 (display_selectors): New function. Displays the infomation of
13238 the selector given as argument, or of CS, DS ans FS selectors
13239 if no argument is given.
13240 ( _initialize_inftarg): Add "w32" as info prefix command.
13241 Add "info w32 selector" as command calling display_selectors.
13243 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13245 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13246 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13249 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13251 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13253 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13255 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13256 (arm_fix_call_dummy): Call it.
13257 (arm_call_dummy_breakpoint_offset): Delete.
13258 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13259 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13261 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13263 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13264 Default to func_frame_chain_valid.
13265 * gdbarch.h, gdbarch.c: Re-generate.
13266 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13268 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13270 * ppc-linux-nat.c: Update copyright.
13271 (fetch_register, store_register): Add tid parameter, don't compute
13273 (fetch_ppc_registers, store_ppc_registers): Add tid
13274 parameter. Pass it along to callees.
13275 (fetch_inferior_registers, store_inferior_registers): Compute tid
13276 here, and pass it to calleed functions.
13277 (fill_gregset, supply_fpregset): Clean up formatting.
13279 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13281 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13282 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13284 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13286 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13287 * gdbarch.c gdbarch.h: Regenerate.
13288 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13290 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13291 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13292 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13294 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13295 * arm-tdep.c (arm_get_longjmp_target): New function.
13296 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13297 this to a positive value register arm_get_longjmp_target as the
13299 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13300 (arm_linux_init_abi): Set up longjmp description in tdep.
13301 * armnbsd-nat.c (get_longjmp_target): Delete.
13302 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13303 description in tdep.
13304 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13305 (get_longjmp_target): Delete declaration.
13306 (GET_LONGJMP_TARGET): Delete.
13307 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13308 (GET_LONGJMP_TARGET): Delete.
13310 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13312 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13313 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13314 of ``current_gdbarch''.
13316 2002-02-17 Tom Tromey <tromey@redhat.com>
13318 * cli/cli-cmds.c (compare_strings): New function.
13319 (complete_command): Only print each unique item once.
13320 * completer.h (complete_line): Declare.
13321 * completer.c (complete_line): New function.
13322 (line_completion_function): Use it.
13324 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13326 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13327 * gdbarch.h, gdbarch.c: Re-generate.
13329 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13331 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13333 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13335 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13336 * valops.c (value_arg_coerce): Don't take the address of a reference
13337 to convert an argument to a reference.
13339 2002-02-15 Christopher Faylor <cgf@redhat.com>
13341 * win32-nat.c (get_image_name): New function.
13342 (handle_load_dll): Use get_image_name function.
13343 (get_child_debug_event): Avoid registering debug events until possibly
13344 execed process is started.
13345 (child_create_inferior): Allow invocation via shell so that command
13346 line redirection, etc. works ok.
13347 (_initialize_inftarg): Add new command: "set shell" to control whether
13348 a shell is used to start a process.
13350 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13352 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13353 instead of find_register_by_number.
13354 (cannot_store_register): Likewise.
13356 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13358 * dwarf2read.c: Replace fprintf (stderr, ...) by
13359 fprintf_unfiltered (gdb_stderr, ...).
13361 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13363 * gdbserver/gdbserver.1: Document --attach.
13365 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13367 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13369 * arm-tdep.c (arm_default_arm_le_breakpoint)
13370 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13371 (arm_default_thumb_be_breakpoint): New. Initialize them from
13372 traditional breakpoint defines.
13373 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13374 (arm_gdbarch_init): Initialize new breakpoint variables.
13375 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13376 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13377 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13378 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13380 (arm_netbsd_init_abi_common): ... here; new function.
13381 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13382 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13383 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13384 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13386 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13388 * arm-tdep.h (enum arm_abi): New enum.
13389 (struct gdbarch_tdep): New structure.
13390 (LOWEST_PC): Provide a default.
13391 (arm_gdbarch_register_os_abi): Declare new function.
13392 * arm-tdep.c (arm_abi_names): New array.
13393 (process_note_abi_tag_sections): New function.
13394 (get_elfosabi): New function.
13395 (arm_gdbarch_register_os_abi): New function.
13396 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13397 support for that ABI has been built in, then call the appropriate
13398 configuration routine. Use gdbarch_num_regs() to get the number
13400 (arm_dump_tdep): New function.
13401 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13402 place-holder functions.
13403 (_initialize_arm_tdep): Register them.
13404 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13406 * armnbsd-tdep.c: New file.
13407 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13408 * config/arm/nbsd.mt (TDEPFILES): Add it.
13409 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13411 * armnbsd-nat.c: Include regcache.h.
13412 * Makefile.in (armnbsd-nat.o): Update dependency list.
13414 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13416 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13418 * gdbserver/Makefile.in: Fix typos in target rules.
13420 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13422 Fix part of PR gdb/267.
13423 * linespec.c (find_methods): Handle constructors specially for now.
13425 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13427 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13429 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13430 standard_coerce_float_to_double().
13432 2002-02-14 Christopher Faylor <cgf@redhat.com>
13434 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13437 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13439 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13440 find_variant_by_name, because it confuses the multiarch
13441 framework. Return NULL if there isn't an architecture with the
13442 user supplied name, instead of forcing a different one without
13443 recording the change with the multiarch machinery.
13444 (find_variant_by_name): Delete.
13446 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13448 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13449 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13451 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13453 * stack.c (print_frame_info_base): When calling
13454 print_frame_info_listing_hook, set current_source_symtab.
13456 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13458 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13459 and remove unused $(INCLUDE_DIR).
13460 Add regcache.c to OBS.
13461 Add generated register protocol files to clean target.
13462 Update dependencies for new objects, obsolete old target code.
13464 * gdbserver/linux-low.c: Remove all platform-specific code to
13465 new files. Remove various dead code. Update to use regcache
13467 * gdbserver/remote-utils.c (fromhex): Add return statement
13469 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13471 (input_interrupt): Add integer parameter to match prototype
13472 of a signal handler.
13473 (outreg): Use register_data ().
13474 (prepare_resume_reply): Use gdbserver_expedite_regs.
13475 * gdbserver/server.c (main): Dynamically allocate own_buf because
13476 PBUFSIZ is no longer constant. Use registers_to_string () and
13477 registers_from_string ().
13478 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13479 for error (), fatal (), and warning (). Update definition of
13480 PBUFSIZ to use regcache functionality. Add include guard.
13481 * gdbserver/utils.c (fatal): Add missing ``const''.
13482 (warning): New function.
13484 * regformats/regdat.sh: Include "regcache.h" in generated files.
13485 Provide init_registers () function.
13486 * regformats/regdef.h: Add prototype for set_register_cache ().
13489 * gdbserver/linux-arm-low.c: New file.
13490 * gdbserver/linux-i386-low.c: New file.
13491 * gdbserver/linux-ia64-low.c: New file.
13492 * gdbserver/linux-m68k-low.c: New file.
13493 * gdbserver/linux-mips-low.c: New file.
13494 * gdbserver/linux-ppc-low.c: New file.
13495 * gdbserver/linux-sh-low.c: New file.
13497 * gdbserver/regcache.c: New file.
13498 * gdbserver/regcache.h: New file.
13500 * gdbserver/low-linux.c: Removed obsolete file.
13502 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13504 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13505 * config/i386/linux.mt: Likewise.
13506 * config/ia64/linux.mt: Likewise.
13507 * config/m68k/linux.mh: Likewise.
13508 * config/powerpc/linux.mh: Likewise.
13509 * config/mips/linux.mt: Likewise.
13511 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13513 * config/i386/i386lynx.mh: Mark gdbserver variables
13514 as (currently) obsolete for this target.
13515 * config/i386/nbsd.mt: Likewise.
13516 * config/i386/nbsdelf.mt: Likewise.
13517 * config/m32r/m32r.mt: Likewise.
13518 * config/m68k/m68klynx.mh: Likewise.
13519 * config/m68k/nbsd.mt: Likewise.
13520 * config/m68k/sun3os4.mh: Likewise.
13521 * config/mips/vr5000.mt: Likewise.
13522 * config/ns32k/nbsd.mt: Likewise.
13523 * config/pa/hppabsd.mh: Likewise.
13524 * config/pa/hppaosf.mh: Likewise.
13525 * config/powerpc/nbsd.mt: Likewise.
13526 * config/rs6000/rs6000lynx.mh: Likewise.
13527 * config/s390/s390.mt: Likewise.
13528 * config/s390/s390x.mt: Likewise.
13529 * config/sparc/sparclynx.mh: Likewise.
13530 * config/sparc/sun4os4.mh: Likewise.
13531 * config/i386/x86-64linux.mt: Likewise.
13532 * config/sparc/linux.mh: Likewise.
13534 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13536 * configure.tgt: Configure gdbserver only for known working
13537 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13538 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13539 SUBDIRS if it is configured. Update comment for ${nativefile}.
13540 * configure: Regenerated.
13542 2002-02-13 Michael Snyder <msnyder@redhat.com>
13544 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13546 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13547 (default_gcore_mach): Just return 0, work around a problem in bfd.
13548 (default_gcore_target): OK to return NULL if exec_bfd is null.
13549 (make_mem_sec): Use a cast, avoid a warning.
13551 * procfs.c (find_memory_regions_callback): Use a cast instead of
13552 calling host_pointer_to_address (which complains if
13553 sizeof (host pointer) != sizeof (target pointer)).
13554 (procfs_make_note_section): Avoid overflow in psargs string.
13556 * procfs.c (procfs_make_note_section): Make the default
13557 implementation return an error.
13559 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13561 * procfs.c (procfs_make_note_section): Provide a default definition
13562 (for alpha-dec-osf4.0f). Fix typos.
13564 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13566 * linux-proc.c: Add include of regcache.h.
13567 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13569 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13571 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13572 * memattr.c (create_mem_region): Disallow useless empty region.
13573 Regions are half-open intervals, so allow [A..B) [B..C) as
13576 2002-02-13 Michael Chastain <mec@shout.net>
13578 * defs.h: Kill CONST_PTR.
13579 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13580 * c-lang.c (c_builtin_types): Likewise.
13581 * ch-lang.c (ch_builtin_types): Likewise.
13582 * f-lang.c (f_builtin_types): Likewise.
13583 * language.c (unknown_builtin_types): Likewise.
13584 * m2-lang.c (m2_builtin_types): Likewise.
13585 * p-lang.c (pascal_builtin_types): Likewise.
13586 * scm-lang.c (c_builtin_types): Likewise.
13588 2002-02-13 Keith Seitz <keiths@redhat.com>
13590 * arm-tdep.h (arm_get_next_pc): Add declaration.
13592 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13594 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13595 with other related struct-returning functions.
13596 (arm_extract_struct_value_address): New function.
13597 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13598 initialize float_format, double_format and long_double_format as
13599 appropriate to the endianness of the target.
13600 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13601 (arm_use_struct_convention): Delete declaration.
13602 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13604 2002-02-13 Keith Seitz <keiths@redhat.com>
13606 * defs.h (core_addr_to_string_nz): New function.
13608 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13610 Apply missing bits of 2002-01-15 patch.
13611 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13612 (fill_fpregset): Use i387_fill_fsave.
13614 2002-02-12 Keith Seitz <keiths@redhat.com>
13616 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13617 (core_addr_to_string_nz): New function.
13619 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13621 * arm-linux-nat.c: Really include arm-tdep.h.
13622 * config/arm/tm-linux.h (struct type, struct value): Declare.
13624 2002-02-11 Michael Snyder <msnyder@redhat.com>
13626 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13627 (gcore section): Ifdef for Solaris and Unixware only.
13628 (procfs_do_thread_registers): Unixware needs one lwpstatus
13629 per thread (not one prstatus or pstatus).
13630 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13631 not over all gdb threads. For unixware, call elfcore_write_pstatus
13632 once before iterating over threads.
13634 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13636 * arm-tdep.h: New file.
13637 * arm-tdep.c: Include arm-tdep.h.
13638 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13639 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13640 (arm_print_float_info, arm_register_type, convert_to_extended)
13641 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13642 (arm_extract_return_value, arm_register_name): Make static.
13643 (arm_software_single_step): Similarly. Fix types in declaration.
13644 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13645 (arm_store_return_value, arm_store_struct_return): New functions.
13646 (arm_gdbarch_init): Register the above functions. Also register
13647 call_dummy_start_offset, sizeof_call_dummy_words,
13648 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13649 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13650 max_register_virtual_size, register_size. Set up
13651 prologue_cache.saved_regs here, rather than ...
13652 (_initialize_arm_tdep): ... here.
13653 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13655 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13656 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13657 (arm_print_float_info, arm_register_type, convert_to_extended)
13658 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13659 (arm_extract_return_value, arm_register_name): Delete declarations.
13660 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13661 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13662 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13663 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13664 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13665 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13666 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13667 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13668 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13669 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13670 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13671 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13673 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13674 * remote-rdi.c remote-rdp.c: Likewise.
13675 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13676 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13677 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13680 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13681 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13682 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13683 from non-ARM_ prefixed definitions.
13684 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13686 * remote-rdi.c remote-rdp.c: Likewise.
13687 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13689 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13691 * arm-tdep.c (arm_frameless_function_invocation)
13692 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13693 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13694 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13695 (arm_pop_frame, arm_get_next_pc): Make static.
13696 (arm_gdbarch_init): Register above in gdbarch structure.
13697 (arm_read_fp): Renamed from arm_target_read_fp.
13698 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13699 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13700 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13701 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13702 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13703 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13704 (arm_pc_is_thumb_dummy): Delete declarations.
13705 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13706 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13707 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13708 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13710 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13712 * symtab.c (compare_search_syms): New function.
13713 (sort_search_symbols): New function.
13714 (search_symbols): Sort symbols after searching rather than
13717 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13719 * NEWS: Linux -> GNU/Linux.
13721 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13723 * gdbarch.sh: For for level one methods, disallow a definition
13724 when partially multi-arched. Add comments explaining rationale.
13725 * gdbarch.h: Re-generate.
13727 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13729 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13730 multi-arch partial.
13732 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13734 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13735 field. Use diff -u.
13736 * gdbarch.c: Re-generate.
13738 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13740 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13741 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13744 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13746 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13747 multi-arch partial.
13748 (PUSH_ARGUMENTS): Switch to using predefault.
13749 * gdbarch.c: Regenerate.
13751 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13753 * valops.c (PUSH_ARGUMENTS): Delete definition.
13754 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13755 partial. Default to default_push_arguments.
13756 * gdbarch.h, gdbarch.c: Regenerate.
13758 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13760 * defs.h (throw_exception): Rename return_to_top_level. Update
13762 * utils.c (error_stream, internal_verror, quit): Ditto.
13763 * top.c (throw_exception, catcher): Ditto.
13764 * sparclet-rom.c (sparclet_load): Ditto.
13765 * remote.c (interrupt_query, minitelnet): Ditto.
13766 * remote-sds.c (interrupt_query): Ditto.
13767 * remote-mips.c (mips_error, mips_kill): Ditto.
13768 * ocd.c (interrupt_query): Ditto.
13769 * monitor.c (monitor_interrupt_query): Ditto.
13770 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13771 * target.h: Update comment.
13773 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13775 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13777 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13778 default_double_format.
13779 * gdbarch.h, gdbarch.c: Re-generate.
13780 * findvar.c (floatformat_unknown): Delete variable definition.
13781 * doublest.h (floatformat_unknown): Delete variable declaration.
13783 2002-02-09 Jim Blandy <jimb@redhat.com>
13785 * stabsread.c (read_type): Add code to parse Sun's syntax for
13786 prototyped function types.
13788 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13790 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13791 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13793 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13795 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13796 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13797 now _initialize_xcoffsolib gets called again and overrides the
13798 commands from solib.c in a native configuration.
13800 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13802 * doublest.c (store_typed_floating): Don't try to return a value.
13805 2002-02-08 Jim Blandy <jimb@redhat.com>
13807 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13808 is prototyped and has no arguments, print its argument list as
13811 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13813 * MAINTAINERS (write-after-approval): Add myself.
13814 (paper-trail): I've escaped!
13816 2002-02-08 Christopher Faylor <cgf@redhat.com>
13818 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13820 (_initialize_check_for_gdb_ini): Ditto.
13822 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13824 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13825 xaprintf -> xasprintf.
13827 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13829 * win32-nat.c: Remove use of printf and sprintf functions.
13831 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13833 * arm-tdep.c (arm_frame_chain_valid): Make static.
13834 (arm_push_arguments): Likewise.
13835 (arm_gdbarch_init): New function.
13836 (_initialize_arm_tdep): Call it.
13837 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13838 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13839 (FRAME_CHAIN_VALID): Delete.
13840 (arm_frame_chain_valid): Delete declaration.
13841 (PUSH_ARGUMENTS): Delete.
13842 (arm_push_arguments): Delete declaration.
13843 (CALL_DUMMY_P): Delete.
13845 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13846 Corinna Vinschen <vinschen@redhat.com>
13848 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13849 on builtin float types.
13851 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13853 * utils.c: Include <curses.h> before "bfd.h".
13854 * tui/tui-hooks.c: Likewise.
13855 * tui/tui.c: Likewise.
13856 * tui/tuiCommand.c: Likewise.
13857 * tui/tuiData.c: Likewise.
13858 * tui/tuiDataWin.c: Likewise.
13859 * tui/tuiDisassem.c: Likewise.
13860 * tui/tuiGeneralWin.c: Likewise.
13861 * tui/tuiIO.c: Likewise.
13862 * tui/tuiLayout.c: Likewise.
13863 * tui/tuiRegs.c: Likewise.
13864 * tui/tuiSource.c: Likewise.
13865 * tui/tuiSourceWin.c: Likewise.
13866 * tui/tuiStack.c: Likewise.
13867 * tui/tuiWin.c: Likewise.
13869 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13871 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13872 to include space for pseudoregs as well. Update loops accordingly.
13873 (sh_fp_frame_init_saved_regs): Ditto.
13874 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13876 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13878 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13879 Add Richard Earnshaw to Arm maintainers.
13881 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13883 * defs.h (warning_begin): Delete declaration.
13885 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13888 2002-02-07 Michael Snyder <msnyder@redhat.com>
13890 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13891 Logic bug, remove misplaced else.
13893 2002-02-07 Klee Dienes <klee@apple.com>
13895 * fork-inferior.c (fork_inferior): Add '!' to the list of
13896 characters that need to be quoted when building a string for the
13897 shell. Quote '!' specifically with a backslash, since CSH chokes
13898 when trying to evaluate "str!str".
13900 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13902 * rdi-share/host.h: Only provide a typedef for bool if it is not
13905 2002-02-04 Michael Snyder <msnyder@redhat.com>
13907 * breakpoint.h (enum bptype): Add new overlay event bp type.
13908 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13910 * breakpoint.c (create_internal_breakpoint): New function.
13911 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13912 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13913 (create_thread_event_breakpoint): Ditto.
13914 (create_solib_event_breakpoint): Ditto.
13915 (create_overlay_event_breakpoint): New function.
13916 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13917 (update_breakpoints_after_exec): Delete and re-initialize
13918 overlay event breakpoints after an exec. Add FIXME comment
13919 about longjmp breakpoint.
13920 (print_it_typical): Ignore overlay event breakpoints.
13921 (print_one_breakpoint): Ditto.
13923 (bpstat_what): Do not stop for overlay event breakpoints.
13924 (delete_breakpoint): Don't delete overlay event breakpoints.
13925 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13926 (breakpoint_re_set): Re-create overlay event breakpoint.
13928 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13929 (overlay_manual_command): Disable overlay breakpoints.
13930 (overlay_off_command): Disable overlay breakpoints.
13932 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13934 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13935 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13936 to here from config/tm-arm.h.
13937 (coff_sym_is_thumb): Make static.
13938 (arm_elf_make_msymbol_special): New function.
13939 (arm_coff_make_msymbol_special): New function.
13940 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13941 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13942 (coff_sym_is_thumb): Delete declaration.
13943 (arm_elf_make_msymbol_special): Declare.
13944 (arm_coff_make_msymbol_special): Declare.
13945 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13946 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13948 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13950 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13952 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13954 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13955 * gdbarch.c gdbarch.h: Regenerate.
13956 * arch-utils.c (default_print_float_info): New function.
13957 * arch-utils.h (default_print_float_info): Prototype it.
13958 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13959 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13960 (PRINT_FLOAT_INFO): Document it.
13962 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13963 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13964 (PRINT_FLOAT_INFO): Define.
13966 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13968 * win32-nat.c (_initialize_check_for_gdb_ini):
13969 Add typecast to sprintf argument to suppress a warning.
13971 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13973 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13974 to allow easier handling of pass state.
13975 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13976 that gives exception name and address.
13977 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13978 and set last_sig value to ourstatus->value.sig. Some missing
13980 (child_continue): Correctly report continue_status.
13981 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13982 TARGET_SIGNAL_0 (new default value).
13983 (child_resume): consider sig argument passed to decide if
13984 the exception should be passed to debuggee or not.
13986 2002-02-05 Michael Snyder <msnyder@redhat.com>
13988 * regcache.c (fetch_register): Call target_fetch_register
13989 only if we don't call FETCH_PSEUDO_REGISTER.
13990 (store_register): Call target_store_register only if we
13991 don't call STORE_PSEUDO_REGISTER.
13993 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13995 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13996 ELF_MAKE_MSYMBOL_SPECIAL.
13997 * gdbarch.c, gdbarch.h: Regenerate.
13998 * arch-utils.c (default_make_msymbol_special): New function.
13999 * arch-utils.h (default_make_msymbol_special): Export.
14000 * elfread.c (elf_symtab_read): Compile use of
14001 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14003 * coffread.c (coff_symtab_read): Ditto, for
14004 COFF_MAKE_MSYMBOL_SPECIAL.
14006 2002-02-05 Jim Blandy <jimb@redhat.com>
14008 * solib-svr4.c (svr4_truncate_ptr): New function.
14009 (svr4_relocate_section_addresses): Do the address arithmetic with
14010 the appropriate truncation for target addresses, even when
14011 CORE_ADDR is larger than a target address.
14013 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14015 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14018 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14020 * gdbserver/linux-low.c (kill_inferior): Remove commented out
14023 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14025 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14027 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14029 * gdbserver/linux-low.c: Remove unused include files.
14031 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14033 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14034 (read_inferior_memory): Use it.
14035 (write_inferior_memory): Likewise.
14037 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14039 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14040 grubbing through sys_errlist.
14042 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14044 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14046 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14047 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14049 2002-02-04 Andrew Cagney <ac131313@redhat.com>
14051 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14052 (do_sfunc, set_cmd_sfunc): New functions.
14054 * command.h (struct cmd_list_element): Add field func.
14055 * cli/cli-decode.h (struct cmd_list_element): Ditto.
14056 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14057 * cli/cli-decode.h: Ditto.
14059 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14060 (help_all, help_cmd_list): Ditto.
14061 (find_cmd, complete_on_cmdlist): Ditto.
14062 * top.c (execute_command): Ditto.
14064 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14067 * infcmd.c (notice_args_read): Fix function signature.
14069 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14070 * cli/cli-decode.c (add_set_cmd): Ditto.
14071 * utils.c (initialize_utils): Ditto.
14072 * maint.c (_initialize_maint_cmds): Ditto.
14073 * infrun.c (_initialize_infrun): Ditto.
14074 * demangle.c (_initialize_demangler): Ditto.
14075 * remote.c (add_packet_config_cmd): Ditto.
14076 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14077 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14078 * proc-api.c (_initialize_proc_api): Ditto.
14079 * kod.c (_initialize_kod): Ditto.
14080 * valprint.c (_initialize_valprint): Ditto.
14081 * top.c (init_main): Ditto.
14082 * infcmd.c (_initialize_infcmd): Ditto.
14083 * corefile.c (_initialize_core): Ditto.
14084 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14085 * arch-utils.c (initialize_current_architecture): Ditto.
14086 (_initialize_gdbarch_utils): Ditto.
14087 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14089 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14090 * wince.c (_initialize_inftarg): Ditto.
14091 * symfile.c (_initialize_symfile): Ditto.
14092 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14093 * language.c (_initialize_language): Ditto.
14094 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14096 2002-02-04 Michael Snyder <msnyder@redhat.com>
14098 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14100 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14102 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14103 Add rules for building the register data files.
14105 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14107 * regformats/regdat.sh: Add braces to the definition of
14108 expedite_regs_${arch}.
14110 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14112 * regformats/regdef.h (struct reg): Add comment describing the
14113 requirements for offset and size fields.
14115 2002-02-04 Andreas Schwab <schwab@suse.de>
14117 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14118 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14120 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14122 * gdbarch.sh (copyright): Update years in generated header.
14123 (SMASH_TEXT_ADDRESS): Add rule.
14124 * gdbarch.h, gdbarch.c: Re-generate.
14125 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14126 * dbxread.c: Likewise.
14127 * dwarfread.c: Likewise.
14128 * elfread.c: Likewise.
14129 * somread.c: Likewise.
14131 * arm-tdep.c (arm_smash_text_address): New function.
14132 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14134 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14136 Add support for hardware watchpoints on win32 native.
14137 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14138 CONTEXT_DEBUG_REGISTERS.
14139 (dr variable): New variable. Static array containing a local copy
14140 of debug registers.
14141 (debug_registers_changed): New variable. Reflects when debug registers
14142 are changed and need to be written to inferior.
14143 (debug_registers_used): New variable. Reflects when any debug register
14144 was set, used when new threads are created.
14145 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14147 (thread_rec): Set dr array if id is the thread of current_event .
14148 (child_continue, child_resume): Change the debug registers for all
14149 threads if debug_registers_changed.
14150 (child_add_thread): Change the debug registers if debug_registers_used.
14151 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14152 Link nm.h to new nm-cygwin.h file.
14153 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14154 of hardware registers.
14156 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14158 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14159 Restore behavour broken by 2002-01-20 Andrew Cagney
14160 <ac131313@redhat.com> IEEE_FLOAT removal.
14162 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14164 * c-valprint.c (c_val_print): Pass a proper valaddr to
14165 cp_print_class_method.
14166 * valops.c (search_struct_method): If there is only one method
14167 and args is NULL, return that method.
14169 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14171 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14172 accessing tag_name directly.
14174 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14176 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14177 of accessing tag_name directly.
14179 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14182 * gdbtypes.c (replace_type): New function.
14183 * gdbtypes.h (replace_type): Add prototype.
14184 * stabsread.c (read_type): Use replace_type.
14186 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14188 * Makefile.in (memattr.o): Add missing dependencies rule.
14190 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14192 * breakpoint.c (break_at_finish_command): Really export.
14193 (break_at_finish_at_depth_command): Ditto.
14194 (tbreak_at_finish_command): Ditto.
14195 * hppa-tdep.c: Include completer.h.
14196 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14197 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14199 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14201 * utils.c (do_write): New function.
14202 (error_stream): Rewrite combining the code from error_begin and
14204 (verror): Rewrite using error_stream.
14205 (error_begin): Delete function.
14207 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14209 * utils.c (error_begin): Make static.
14210 * defs.h (error_begin): Delete declaration.
14212 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14213 (decode_line_1): Use cplusplus_error instead of error_begin,
14214 cplusplus_hint and return_to_top_level.
14215 * coffread.c (coff_symfile_read): Use error instead of error_begin
14216 and return_to_top_level.
14217 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14219 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14221 * language.h (type_error, range_error): Make string parameter
14223 * language.c (warning_pre_print): Delete extern declaration.
14224 * dwarfread.c (warning_pre_print): Ditto.
14225 * language.c (type_error, range_error): Rewrite to use verror and
14226 vwarning instead of warning_begin.
14228 2002-02-01 Michael Snyder <msnyder@redhat.com>
14230 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14231 (set_ignore_count): Move misplaced comment back where it belongs.
14233 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14235 * command.h (NO_FUNCTION): Delete macro.
14236 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14237 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14238 * tracepoint.c (_initialize_tracepoint): Ditto.
14239 * cli/cli-decode.c (add_set_cmd): Ditto.
14240 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14242 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14244 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14245 Update ``this'' pointer when calling virtual functions.
14247 2002-02-01 Michael Snyder <msnyder@redhat.com>
14249 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14250 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14252 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14254 * regformats/reg-arm.dat: New file.
14255 * regformats/reg-i386.dat: New file.
14256 * regformats/reg-ia64.dat: New file.
14257 * regformats/reg-m68k.dat: New file.
14258 * regformats/reg-mips.dat: New file.
14259 * regformats/reg-ppc.dat: New file.
14260 * regformats/reg-sh.dat: New file.
14261 * regformats/regdef.h: New file.
14262 * regformats/regdat.sh: New file.
14264 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14266 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14267 (arm_frame_args_address, arm_frame_locals_address): New functions.
14268 (arm_frame_num_args): New function.
14269 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14270 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14271 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14273 2002-01-31 Michael Snyder <msnyder@redhat.com>
14275 * breakpoint.c (break_at_finish_command): Export.
14276 (break_at_finish_at_depth_command): Export.
14277 (tbreak_at_finish_command): Export.
14278 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14279 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14280 "txbreak" commands, which are HPPA specific.
14282 * printcmd.c (disassemble_command): Remove an ancient
14283 artifact of an old merge.
14285 * symfile.h (enum overlay_debugging_state):
14286 Define enum constant values for overlay mode.
14287 * symfile.c (overlay_debugging): Use enums instead of literals.
14288 (overlay_is_mapped, overlay_auto_command,
14289 overlay_manual_command): Ditto.
14291 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14292 breakpoint_here_p, breakpoint_inserted_here_p,
14293 breakpoint_thread_match, bpstat_stop_status,
14294 describe_other_breakpoints, check_duplicates, clear_command):
14295 Coding standard fixes.
14297 * target.c (target_xfer_memory): Add spaces, coding standard.
14298 (do_xfer_memory): Add missing line to trust-readonly
14299 code: check bfd SEC_READONLY flag for section.
14301 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14303 * PROBLEMS: Fix typo, 5.1->5.1.1.
14305 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14307 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14308 data symbols, since we search based on textlow and texthigh.
14309 (find_pc_sect_symtab): Likewise.
14311 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14313 * defs.h (vwarning): Declare.
14314 * utils.c (vwarning): New function.
14315 (warning): Call vwarning.
14316 (warning_begin): Delete function.
14318 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14319 the warning message.
14320 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14323 2002-01-30 Michael Snyder <msnyder@redhat.com>
14325 * NEWS: Mention "set trust-readonly-sections" command.
14326 Mention generate-core-file command.
14328 2002-01-15 Michael Snyder <msnyder@redhat.com>
14330 * target.c: New command, "set trust-readonly-sections on".
14331 (do_xfer_memory): Honor the suggestion to trust readonly sections
14332 by reading them from the object file instead of from the target.
14333 (initialize_targets): Register command "set trust-readonly-sections".
14335 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14337 * parse.c (target_map_name_to_register): Simplify, search regs and
14338 pseudo-regs using a single loop.
14340 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14342 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14344 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14346 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14347 * config/i386/i386v42mp.mh: Add i387-nat.o .
14348 * i386v4-nat.c: Include i387-nat.h.
14349 (supply_fpregset): Use i387_supply_fsave.
14350 (fill_fpregset): Use i387_fill_fsave.
14352 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14354 * arm-tdep.c (arm_call_dummy_words): Define.
14355 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14356 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14357 (CALL_DUMMY_WORDS): Define.
14358 (arm_call_dummy_words): Declare.
14359 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14360 (arm_linux_call_dummy_words): Declare.
14362 2002-01-30 Andreas Schwab <schwab@suse.de>
14364 * m68klinux-nat.c: Fix last change to use regcache_collect
14365 instead of referencing registers[] directly.
14367 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14369 * parse.c (target_map_name_to_register): Delete code wrapped in
14370 #ifdef REGISTER_NAME_ALIAS_HOOK.
14372 2002-01-28 Michael Snyder <msnyder@redhat.com>
14374 * regcache.c (legacy_read_register_gen): Need to be able to
14375 read pseudo-register as well as real register.
14376 (legacy_write_register_gen): Ditto.
14378 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14380 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14381 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14382 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14383 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14384 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14385 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14386 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14387 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14388 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14389 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14390 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14391 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14392 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14393 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14394 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14395 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14396 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14397 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14398 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14399 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14401 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14403 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14404 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14405 (initialize_current_architecture): Update target_byte_order using
14406 information from BFD.
14407 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14408 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14410 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14412 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14413 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14415 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14416 #ifdef INVALID_FLOAT.
14417 * infcmd.c (do_registers_info): Ditto.
14418 * values.c (unpack_double): Ditto. Add comment.
14420 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14421 already commented out.
14423 2002-01-26 Andreas Schwab <schwab@suse.de>
14425 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14426 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14427 registers and add support for PTRACE_GETREGS.
14429 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14431 GDB 5.1.1 released from 5.1 branch.
14432 * NEWS: Add 5.1.1 news.
14433 * README: Sync with 5.1 branch.
14435 2002-01-23 Fred Fish <fnf@redhat.com>
14437 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14438 stabstring on initial malloc. Reallocing will copy it for us,
14441 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14443 * Makefile.in (hpread_h): Delete.
14444 (HFILES_NO_SRCDIR): Remove hpread.h.
14445 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14446 (hpread.o): Update dependencies.
14447 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14449 * hp-psymtab-read.c: Remove file.
14450 * hp-symtab-read.c: Remove file.
14451 * hpread.h: Remove file.
14453 * hpread.c: Merge all contents of hp-psymtab-read.c,
14454 hp-symtab-read.c and hpread.h into this file, as it was prior to
14457 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14458 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14459 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14460 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14462 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14464 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14465 fill_gregset): Call gdbarch_tdep() just once, assign result to
14466 variable and use that, instead of calling the function several
14469 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14471 * configure.host: Accept sparcv9 as alias for sparc64.
14472 * configure.tgt: Likewise.
14474 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14476 * solib-aix5.c (build_so_list_from_mapfile)
14477 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14478 arguments is not reversed.
14479 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14480 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14482 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14484 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14485 modified version of obsolete sh_fetch_pseudo_register.
14486 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14487 (sh4_register_read): New function.
14488 (sh_pseudo_register_write): New function. Renamed and modified
14489 version of obsolete sh_store_pseudo_register.
14490 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14491 (sh4_register_write): New function.
14492 (sh_gdbarch_init): Remove setting of gdbarch function
14493 fetch_pseudo_register and store_pseudo_register. Remove setting of
14494 register_convert_to_raw, register_convert_to_virtual,
14495 register_convertible.
14496 (sh_sh4_register_convertible): Delete. No longer needed. All is
14497 taken care by architecture specific functions
14498 register_read/register_write.
14499 (sh_sh4_register_convert_to_virtual): Make static.
14500 (sh_sh4_register_convert_to_raw): Ditto.
14502 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14504 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14505 (floatformat_is_nan, floatformat_mantissa): Ditto.
14507 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14508 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14509 builtin_type_ieee_double_little,
14510 builtin_type_ieee_double_littlebyte_bigword,
14511 builtin_type_m68881_ext, builtin_type_i960_ext,
14512 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14513 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14514 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14515 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14517 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14519 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14520 parameter. Set frameless flag if it exists and depended of
14521 whether the scanned function is frameless or not.
14522 (xstormy16_skip_prologue): If function is frameless, return
14523 result of xstormy16_scan_prologue().
14524 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14527 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14529 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14530 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14531 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14532 sh_sh4_register_byte, sh_sh4_register_raw_size,
14533 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14534 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14535 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14536 sh_store_pseudo_register, sh_do_pseudo_register): Call
14537 gdbarch_tdep() just once, assign result to variable and use that,
14538 instead of calling the function several times.
14540 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14542 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14543 macros instead of LAST_FPU_CTRL_REGNUM.
14544 (store_register): Likewise.
14546 2002-01-21 Jim Blandy <jimb@redhat.com>
14548 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14549 is up-to-date before running the program, not just when a program
14552 2002-01-21 Fred Fish <fnf@redhat.com>
14554 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14555 when we have found all instructions we are looking for.
14557 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14559 * arm-tdep.c (arm_register_name): New function.
14560 (arm_registers_names): Make static.
14561 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14562 (arm_register_name): Declare.
14563 (REGISTER_NAME): Use it.
14565 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14566 Kevin Buettner <kevinb@redhat.com>
14568 Convert arm targets to new FRAME interface.
14569 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14570 (arm_frame_find_save_regs): Delete.
14571 (arm_frame_init_saved_regs): New.
14572 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14573 Allocate extra_info as required. Convert all uses of fsr.regs
14574 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14576 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14577 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14578 (check_prologue_cache, save_prologue_cache): Likewise.
14579 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14580 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14581 (FRAME_FIND_SAVED_REGS): Delete.
14582 (arm_frame_find_saved_regs): Delete prototype.
14583 (arm_frame_init_saved_regs): New prototype.
14584 (FRAME_INIT_SAVED_REGS): Define.
14586 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14588 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14590 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14592 From Jeff Law <law@redhat.com>:
14593 * infttrace.c: Include <sys/pstat.h>.
14594 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14595 exec file if the ttrace equivalent fails.
14597 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14599 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14600 (closeLogFile): Ditto.
14602 2002-01-20 Michael Chastain <mec@shout.net>
14604 * top.c (print_gdb_version): Bump copyright year to 2002.
14606 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14608 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14609 Zannoni and Eli Zaretskii.
14611 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14613 * buildsym.c: Update copyright years.
14614 * c-typeprint.c: Likewise.
14615 * dwarf2read.c: Likewise.
14616 * f-typeprint.c: Likewise.
14617 * gdbtypes.c: Likewise.
14618 * gdbtypes.h: Likewise.
14619 * hp-symtab-read.c: Likewise.
14620 * hpread.c: Likewise.
14621 * mdebugread.c: Likewise.
14622 * p-typeprint.c: Likewise.
14624 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14626 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14627 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14628 byte-order selectable.
14629 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14630 * arch-utils.c: Ditto.
14631 (set_endian): Ditto.
14632 (set_endian_from_file): Ditto.
14633 * gdbserver/low-sim.c (create_inferior): Ditto.
14634 * gdbarch.sh: Ditto.
14635 * gdbarch.h: Re-generate.
14636 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14637 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14638 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14639 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14640 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14641 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14642 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14643 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14645 * config/mips/tm-wince.h: Remove #undef of macro
14646 TARGET_BYTE_ORDER_SELECTABLE.
14647 * config/sh/tm-wince.h: Ditto.
14649 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14651 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14652 member function fields. Add accessor macro
14653 TYPE_FN_FIELD_ARTIFICIAL.
14654 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14655 * c-typeprint.c (c_type_print_base): Skip artificial member
14658 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14660 * f-typeprint.c: Delete unused function f_type_print_args.
14661 * p-typeprint.c: Delete unused function pascal_type_print_args.
14663 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14665 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14666 comment. Add ``artificial'' to ``union field_location''.
14668 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14670 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14671 * mdebugread.c (parse_symbol): Likewise.
14672 * stabsread.c (define_symbol): Likewise.
14673 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14674 initializing TYPE_FIELD_BITPOS to n (obsolete).
14675 (hpread_doc_function_type): Likewise.
14676 * hpread.c (hpread_function_type): Likewise.
14678 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14680 * configure.in (host_makefile_frag): Only require a host makefile
14681 fragment when a native build.
14682 * configure: Re-generate.
14684 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14686 * doublest.h (floatformat_from_type): Declare.
14687 * doublest.c (floatformat_from_type): New function.
14688 (convert_typed_floating): Use.
14690 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14691 call to function floatformat_from_type.
14693 * gdbarch.sh (IEEE_FLOAT): Delete.
14694 * gdbarch.h, gdbarch.c: Re-generate.
14695 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14696 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14697 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14698 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14699 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14700 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14701 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14702 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14703 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14704 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14705 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14706 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14708 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14709 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14710 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14711 * sh-tdep.c (sh_gdbarch_init): Ditto.
14712 * mips-tdep.c (mips_gdbarch_init): Ditto.
14713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14714 * cris-tdep.c (cris_gdbarch_init): Ditto.
14716 2002-01-20 Jiri Smid <smid@suse.cz>
14718 * configure.host, configure.tgt: Support x86-64.
14719 * NEWS: Note new target x86-64.
14721 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14722 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14723 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14724 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14725 x86-64-linux-nat.o): Fix dependencies.
14727 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14729 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14730 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14731 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14732 * config/sparc/xm-sun4os4.h: Delete file.
14733 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14735 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14737 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14738 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14739 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14740 * config/i386/i386lynx.mh (XM_FILE): Delete.
14741 * config/rs6000/xm-rs6000ly.h: Delete file.
14742 * config/sparc/xm-sparclynx.h: Delete file.
14743 * config/m68k/xm-m68klynx.h: Delete file.
14744 * config/i386/xm-i386lynx.h: Delete file.
14745 * config/xm-lynx.h: Delete file.
14746 * config/djgpp/fnchange.lst: Update.
14748 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14750 * alpha-tdep.c (alpha_register_byte): New function.
14751 (alpha_register_raw_size): Ditto.
14752 (alpha_register_virtual_size): Ditto.
14753 (alpha_skip_prologue_internal): Renamed from
14754 alpha_skip_prologue.
14755 (alpha_skip_prologue): New version that calls
14756 alpha_skip_prologue_internal.
14757 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14758 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14759 second argument from alpha_skip_prologue.
14760 (REGISTER_BYTE): Use alpha_register_byte.
14761 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14762 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14763 (FRAMELESS_FUNCTION_INVOCATION): Use
14764 generic_frameless_function_invocation_not.
14765 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14766 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14768 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14770 * config/mips/xm-news-mips.h: Delete file.
14771 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14773 * config/m88k/xm-m88k.h: Delete file.
14774 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14775 * config/m88k/xm-delta88v4.h: Ditto.
14776 * config/m88k/xm-delta88.h: Ditto.
14778 * config/alpha/xm-fbsd.h: Delete file.
14779 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14781 * config/sparc/xm-sparc.h: Delete file.
14782 * Makefile.in (xm-sun4os4.h): Delete dependency.
14783 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14784 * config/sparc/xm-sun4os4.h: Ditto.
14785 * config/sparc/xm-linux.h: Ditto.
14787 * config/i386/xm-windows.h: Delete file.
14789 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14791 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14792 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14794 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14796 * alpha-tdep.c (alpha_call_dummy_words): New.
14797 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14798 (CALL_DUMMY_P): Define.
14799 (CALL_DUMMY_WORDS): Define.
14800 (SIZEOF_CALL_DUMMY_WORDS): Define.
14802 2002-01-19 Per Bothner <per@bothner.com>
14804 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14805 isn't NULL, which can happen with some gcj-3.x-produced code.
14807 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14809 * alpha-tdep.c (alpha_register_virtual_type): New function.
14810 (alpha_init_frame_pc_first): Ditto.
14811 (alpha_fix_call_dummy): Ditto.
14812 (alpha_store_struct_return): Ditto.
14813 (alpha_extract_struct_value_address): Ditto.
14814 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14815 alpha_register_virtual_type.
14816 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14817 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14818 alpha_extract_struct_value_address.
14819 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14820 (INIT_FRAME_PC): Use init_frame_pc_noop.
14821 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14823 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14825 * i386gnu-nat.c: Include "i386-tdep.h".
14826 (fetch_fpregs): Simplify code dealing with uninitialized floating
14827 point states such that it doesn't require FP7_REGNUM.
14829 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14831 * alpha-tdep.c (frame_extra_info): New.
14832 (alpha_find_saved_regs): Make static. Use
14834 (alpha_frame_init_saved_regs): New function.
14835 (alpha_frame_saved_pc): Use frame->extra_info.
14836 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14837 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14838 (init_extra_frame_info): Rename to...
14839 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14840 (alpha_print_extra_frame_info): New function.
14841 (alpha_frame_locals_address): Ditto.
14842 (alpha_frame_args_address): Ditto.
14843 (alpha_pop_frame): Use frame->extra_info.
14844 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14845 alpha_frame_args_address.
14846 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14847 (alpha_find_saved_regs): Remove prototype.
14848 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14849 (EXTRA_FRAME_INFO): Remove.
14850 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14851 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14853 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14855 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14856 (alpha_cannot_fetch_register): Ditto.
14857 (alpha_cannot_store_register): Ditto.
14858 (alpha_register_convertible): Ditto.
14859 (alpha_use_struct_convention): Ditto.
14860 * config/alpha/tm-alpha.h: Update copyright years.
14861 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14862 (INNER_THAN): Use core_addr_lessthan.
14863 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14864 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14865 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14866 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14867 (FRAME_CHAIN): Remove unnecessary cast.
14869 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14871 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14874 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14876 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14877 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14878 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14879 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14880 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14881 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14882 * x86-64-linux-nat.c: Ditto.
14884 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14886 * alpha-tdep.c (alpha_register_name): New function.
14887 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14888 (REGISTER_NAME): Define.
14890 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14892 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14894 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14896 * alpha-tdep.c: Update copyright years.
14897 (alpha_next_pc): New function.
14898 (alpha_software_single_step): Ditto.
14899 * config/alpha/tm-alpha.h: Add prototype for
14900 alpha_software_single_step.
14902 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14904 * alphabsd-nat.c: Update copyright years.
14905 (fill_gregset): Use regcache_collect.
14906 (fill_fpregset): Likewise.
14907 (fetch_inferior_registers): Only fetch integer registers
14908 if requested to do so.
14909 (store_inferior_registers): Only store integer registers
14910 if requested to do so.
14912 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14914 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14915 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14916 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14917 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14918 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14919 * config/arm/linux.mh (XDEPFILES): Delete.
14920 * config/arm/nbsd.mh (XDEPFILES): Delete.
14921 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14922 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14923 * config/i386/i386m3.mh (XDEPFILES): Delete.
14924 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14925 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14926 * config/i386/fbsd.mh (XDEPFILES): Delete.
14927 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14928 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14929 * config/i386/i386v4.mh (XDEPFILES): Delete.
14930 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14931 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14932 * config/i386/i386aix.mh (XDEPFILES): Delete.
14933 * config/i386/go32.mh (XDEPFILES): Delete.
14934 * config/i386/cygwin.mh (XDEPFILES): Delete.
14935 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14936 * config/i386/i386mach.mh (XDEPFILES): Delete.
14937 * config/i386/i386v32.mh (XDEPFILES): Delete.
14938 * config/i386/linux.mh (XDEPFILES): Delete.
14939 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14940 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14941 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14942 * config/i386/i386sco.mh (XDEPFILES): Delete.
14943 * config/i386/i386v.mh (XDEPFILES): Delete.
14944 * config/i386/nbsd.mh (XDEPFILES): Delete.
14945 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14946 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14947 * config/i386/symmetry.mh (XDEPFILES): Delete.
14948 * config/i386/obsd.mh (XDEPFILES): Delete.
14949 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14950 * config/ia64/linux.mh (XDEPFILES): Delete.
14951 * config/ia64/aix.mh (XDEPFILES): Delete.
14952 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14953 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14954 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14955 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14956 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14957 * config/m68k/linux.mh (XDEPFILES): Delete.
14958 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14959 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14960 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14961 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14962 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14963 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14964 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14965 * config/m88k/delta88.mh (XDEPFILES): Delete.
14966 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14967 * config/m88k/m88k.mh (XDEPFILES): Delete.
14968 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14969 * config/mips/linux.mh (XDEPFILES): Delete.
14970 * config/mips/irix6.mh (XDEPFILES): Delete.
14971 * config/mips/irix5.mh (XDEPFILES): Delete.
14972 * config/mips/irix4.mh (XDEPFILES): Delete.
14973 * config/mips/irix3.mh (XDEPFILES): Delete.
14974 * config/mips/decstation.mh (XDEPFILES): Delete.
14975 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14976 (NATDEPFILES): Move core-aout.o to here.
14977 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14978 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14979 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14980 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14981 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14982 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14983 * config/pa/hpux11.mh (XDEPFILES): Delete.
14984 * config/powerpc/aix.mh (XDEPFILES): Delete.
14985 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14986 * config/powerpc/linux.mh (XDEPFILES): Delete.
14987 * config/romp/rtbsd.mh: Rename XDEPFILES.
14988 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14989 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14990 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14991 * config/s390/s390.mh (XDEPFILES): Delete.
14992 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14993 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14994 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14995 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14996 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14997 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14998 * config/sparc/linux.mh (XDEPFILES): Delete.
14999 * config/vax/vaxult.mh (XDEPFILES): Delete.
15000 * config/vax/vaxult2.mh (XDEPFILES): Delete.
15001 * Makefile.in (DEPFILES): Remove XDEPFILES.
15003 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15005 * utils.c (internal_verror): Fix comments, default is yes not no.
15006 Update queries to match. Default to quit and dump core.
15008 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15010 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
15012 * defs.h, event-top.c, gdbcmd.h: Ditto.
15013 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15014 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15015 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15016 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15017 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15018 * mi/mi-main.c:Ditto.
15020 * stack.c, symfile.c: Update copyright.
15022 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15024 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15025 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15026 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15027 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15029 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15031 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15032 * gdbserver/low-lynx.c (myattach): Likewise.
15033 * gdbserver/low-nbsd.c (myattach): Likewise.
15034 * gdbserver/low-sim.c (myattach): Likewise.
15035 * gdbserver/low-sparc.c (myattach): Likewise.
15036 * gdbserver/low-sun3.c (myattach): Likewise.
15038 * gdbserver/low-linux.c (myattach): New function.
15040 * gdbserver/server.c (attach_inferior): New function.
15041 (main): Handle "--attach".
15043 2002-01-16 Andrew Cagney <ac131313@redhat.com>
15045 * MAINTAINERS (language support): Daniel Jacobwitz is C++
15048 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
15050 * c-typeprint.c (is_type_conversion_operator): Add additional
15051 check for non-conversion operators.
15053 2002-01-15 Michael Snyder <msnyder@redhat.com>
15055 * linux-proc.c: Add "info proc" command, a la procfs.c.
15056 (read_mapping): New function, abstract and re-use code.
15057 (linux_find_memory_regions): Use new func read_mapping.
15058 (linux_info_proc_cmd): New function, implement "info proc".
15059 (_initialize_linux_proc): Add new command "info proc".
15061 2002-01-15 Michael Snyder <msnyder@redhat.com>
15063 * symfile.c (generic_load): Use bfd_map_over_sections method
15064 instead of manipulating bfd structure members directly.
15065 (add_section_size_callback): New function, bfd sections callback
15066 used by generic_load.
15067 (load_sections_callback): New function, bfd sections callback
15068 used by generic_load.
15070 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15072 [Based on work by Jim Blandy]
15073 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15074 (builtin_type_vec128): Export.
15075 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15077 (builtin_type_vec128): New builtin type for 128 bit vector
15079 (build_gdbtypes): Initialize builtin_type_v16qi and
15080 builtin_type_v8hi. Create the vec128 register builtin type
15082 (build_builtin_type_vec128): New function.
15083 (_initialize_gdbtypes): Register builtin_type_v16qi and
15084 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15085 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15086 AltiVec register to new builtin type.
15088 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15090 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15093 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15095 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15096 CLEAN_UP_REGISTER_VALUE.
15097 * regcache.c (supply_register): Update only call.
15099 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15101 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15102 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15103 a29k-*-vxworks* targets as obsolete.
15105 2002-01-14 Michael Snyder <msnyder@redhat.com>
15107 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15108 until we can resolve portability issues.
15109 * gregset.h: Remove references to fpxregs.
15110 * gcore.c (gcore_command): Initialize note_sec to NULL.
15112 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15114 * signals.c (target_signal_to_name): Rewrite. Only use
15115 signals[].name when in bounds and non-NULL.
15117 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15119 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15120 * signals.c (target_signal_to_name): Verify that SIG is within the
15121 bounds of the signals array.
15123 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15125 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15127 2002-01-13 Keith Seitz <keiths@redhat.com>
15129 * stack.c (print_frame_info_base): Print the frame's pc
15130 only if when print_frame_info_listing_hook is not defined.
15132 2002-01-13 Keith Seitz <keiths@redhat.com>
15134 * varobj.c (varobj_set_value): Make sure that there were no
15135 errors evaluating the object before attempting to set its
15137 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15138 so this offset adjustment is no longer necessary.
15139 (create_child): Don't set the error flag if the child is
15140 a CPLUS_FAKE_CHILD.
15141 (value_of_child): If value_fetch_lazy fails, return NULL
15142 so that callers will be notified that an error occurred.
15143 (c_value_of_variable): Delay check of variable's validity
15144 until later. We actually want all structs and unions to have
15146 Do not return "???" for variables which could not be evaluated.
15147 This error condition must be returned to the caller so that it
15148 can get the error condition from gdb.
15149 (cplus_name_of_child): Adjust index for vptr before figuring
15150 out the name of the child.
15151 (cplus_value_of_child): If a child's (real) parent is not valid,
15152 don't even bother trying to give a value for it. Just return
15153 an error. Change all instances in this function.
15154 (cplus_type_of_child): If our parent is one of the "fake"
15155 parents, we need to get at the type of the real parent, and
15156 derive the child's true type using this information.
15158 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15160 From 2002-01-09 John Marshall <johnm@falch.net>:
15161 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15162 sources.redhat.com, and tweak some related URLs which had
15163 suffered from linkrot.
15165 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15168 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15169 structures passed in registers.
15171 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15173 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15174 white space which prevented compilation. Reported by DSK
15175 <dsk@student.unsw.edu.au>.
15177 2002-01-11 Michael Snyder <msnyder@redhat.com>
15179 * symfile.c (build_section_addr_info_from_section_tab):
15180 Use bfd access method instead of manipulating bfd directly.
15181 (syms_from_objfile): Ditto.
15182 (simple_overlay_update_1): Ditto.
15183 (simple_overlay_update): Ditto.
15184 (generic_load): Ditto.
15185 (overlay_unmapped_address): FIXME comment, bfd access methods.
15186 (sections_overlap): FIXME comment, bfd access methods.
15187 (pc_in_mapped_range): FIXME comment, bfd access methods.
15188 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15189 (section_is_mapped): FIXME comment, bfd access methods.
15190 (section_is_overlay): FIXME comment, bfd access methods.
15192 * symfile.c (generic_load): Whitespace and long line cleanups.
15193 Remove duplicate variable, change several local variables to
15194 more appropriate data types.
15195 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15197 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15199 From Peter Schauer:
15200 * language.c (longest_local_hex_string_custom): Use phex_nz to
15201 convert NUM to a hex string.
15203 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15205 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15207 Update Copyright year.
15209 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15211 * language.c (longest_raw_hex_string): Delete unused function.
15213 2002-01-11 Petr Sorfa <petrs@caldera.com>
15215 * MAINTAINERS (write-after-approval): Add myself.
15216 * dwarf2read.c (read_tag_string_type): Handling of
15218 (read_tag_string_type): FORTRAN fix to prevent propagation of
15220 (set_cu_language): Handling of DW_LANG_Fortran95
15222 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15224 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15225 GETPID(inferior_ptid).
15226 (store_inferior_registers): Likewise.
15228 2002-01-10 Jason Merrill <jason@redhat.com>
15230 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15233 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15235 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15236 and bfd/elf32-sh-nbsd.c.
15238 2002-01-10 Michael Snyder <msnyder@redhat.com>
15240 * NEWS: Mention --pid and corefile/proc-id behavior change.
15242 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15243 * gcore.c: Include cli/cli-decode.h instead of command.h.
15245 * main.c (captured_main): Add new command line option "--pid".
15246 If the second command line argument (following the symbol-file)
15247 begins with a digit, try to attach to it before trying to open
15249 (print_gdb_help): Document the "--pid" argument.
15251 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15253 * completer.c (command_completer): New function.
15255 * completer.h <command_completer>: Add prototype.
15257 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15258 completer for the "help" command.
15260 2002-01-09 Jason Merrill <jason@redhat.com>
15262 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15264 2002-01-09 Michael Snyder <msnyder@redhat.com>
15266 * i386-linux-nat.c (fill_fpxregset): Make global.
15267 (store_fpxregset): Ditto.
15269 * gregset.h (gdb_fpxregset_t): Define.
15270 (supply_fpxregset): Prototype.
15271 (fill_fpxregset): Prototype.
15273 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15275 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15277 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15278 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15279 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15281 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15283 * MAINTAINERS: Update target maintainer rules so that any
15284 Maintainer can approve a tested patch for a maintenance-only
15287 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15289 * MAINTAINERS (write-after-approval): Add myself.
15291 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15294 2002-01-08 Michael Snyder <msnyder@redhat.com>
15296 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15297 real name of the executable, rather than the /proc name.
15299 2002-01-03 Michael Snyder <msnyder@redhat.com>
15301 Implement a "generate-core-file" command in gdb, save target state.
15302 * gcore.c: New file. Implement new command 'generate-core-file'.
15303 Save a corefile image of the current state of the inferior.
15304 * linux-proc.c: Add linux-specific code for saving corefiles.
15305 * target.h (struct target_ops): Add new target vectors for saving
15306 corefiles; to_find_memory_regions and to_make_corefile_notes.
15307 (target_find_memory_regions): New macro.
15308 (target_make_corefile_notes): New macro.
15309 * target.c (update_current_target): Inherit new target methods.
15310 (dummy_find_memory_regions): New place-holder method.
15311 (dummy_make_corefile_notes): New place-holder method.
15312 (init_dummy_target): Initialize new dummy target vectors.
15313 * exec.c (exec_set_find_memory_regions): New function.
15314 Allow the exec_ops vector for memory regions to be taken over.
15315 (exec_make_note_section): New function, target vector method.
15316 * defs.h (exec_set_find_memory_regions): Export prototype.
15317 * procfs.c (proc_find_memory_regions): New function, corefile method.
15318 (procfs_make_note_section): New function, corefile method.
15319 (init_procfs_ops): Set new target vector pointers.
15320 (find_memory_regions_callback): New function.
15321 (procfs_do_thread_registers): New function.
15322 (procfs_corefile_thread_callback): New function.
15323 * sol-thread.c (sol_find_memory_regions): New function.
15324 (sol_make_note_section): New function.
15325 (init_sol_thread_ops): Initialize new target vectors.
15326 * inftarg.c (inftarg_set_find_memory_regions): New function.
15327 Allow to_find_memory_regions vector to be taken over.
15328 (inftarg_set_make_corefile_notes): New function.
15329 Allow to_make_corefile_notes vector to be taken over.
15330 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15331 interface layer if not target_has_execution (may be a corefile).
15332 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15333 * config/sparc/sun4sol2.mh: Ditto.
15334 * config/alpha/alpha-linux.mh: Ditto.
15335 * config/arm/linux.mh: Ditto.
15336 * config/i386/x86-64linux.mh: Ditto.
15337 * config/ia64/linux.mh: Ditto.
15338 * config/m68k/linux.mh: Ditto.
15339 * config/mips/linux.mh: Ditto.
15340 * config/powerpc/linux.mh: Ditto.
15341 * config/sparc/linux.mh: Ditto.
15343 2002-01-07 Michael Snyder <msnyder@redhat.com>
15345 * arm-linux-nat.c: Remove references to regcache.c internal data
15346 (registers[] and register_valid[]).
15348 2002-01-07 Michael Snyder <msnyder@redhat.com>
15350 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15351 so that attaching to a pid will automatically read the process's
15352 symbol file and shlibs.
15353 * Makefile.in: Add rule for linux-proc.o.
15354 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15355 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15356 * config/arm/linux.mh: Ditto.
15357 * config/i386/linux.mh: Ditto.
15358 * config/i386/x86-64linux.mh: Ditto.
15359 * config/ia64/linux.mh: Ditto.
15360 * config/m68k/linux.mh: Ditto.
15361 * config/mips/linux.mh: Ditto.
15362 * config/powerpc/linux.mh: Ditto.
15363 * config/sparc/linux.mh: Ditto.
15365 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15367 * win32-nat.c: Add i386-tdep.h dependency.
15369 2002-01-07 Michael Snyder <msnyder@redhat.com>
15371 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15372 instead of bfd_get_arch_size. Don't bail out just because
15373 there's no exec_bfd.
15375 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15376 * p-valprint.c (pascal_object_print_value): Ditto.
15377 * somread.c (som_symtab_read): Ditto.
15378 * symfile.c (simple_free_overlay_region_table): Ditto.
15379 * valops.c (value_assign): Ditto.
15381 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15382 use tilde_expand and strerror for opening save-tracepoints file.
15384 * thread-db.c (thread_db_new_objfile): Indendation fix.
15386 * infptrace.c (GDB_MAX_ALLOCA): New define.
15387 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15388 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15389 can be overridden with whatever value is appropriate to the host).
15390 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15391 alloca to allocate potentially large buffer.
15392 * rs6000-nat.c (child_xfer_memory): Ditto.
15393 * symm-nat.c (child_xfer_memory): Ditto.
15394 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15396 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15398 From Nick Clifton <nickc@redhat.com>
15399 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15401 2002-01-07 Michael Snyder <msnyder@redhat.com>
15403 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15404 Don't use exec_bfd if it's NULL.
15406 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15408 * valops.c (value_arg_coerce): Fix formatting.
15410 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15412 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15413 * gnu-nat.c: Ditto.
15415 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15417 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15418 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15419 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15420 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15421 z8k-coff have not been multi-arched. Update z8k-coff build
15424 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15426 * MAINTAINERS: Mark a29k target as obsolete.
15427 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15428 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15430 * NEWS: Note that a29k targets are obsolete.
15431 * a29k-tdep.c: Mark as obsolete.
15432 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15433 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15434 a29k-*-vxworks* targets as obsolete.
15435 * remote-adapt.c: Obsolete.
15436 * remote-eb.c: Obsolete.
15437 * remote-mm.c: Obsolete.
15438 * remote-udi.c: Obsolete.
15439 * config/a29k/a29k-udi.mt: Obsolete.
15440 * config/a29k/a29k.mt: Obsolete.
15441 * config/a29k/tm-a29k.h: Obsolete.
15442 * config/a29k/tm-vx29k.h: Obsolete.
15443 * config/a29k/vx29k.mt: Obsolete.
15445 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15447 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15448 with BFD_ENDIAN_BIG.
15450 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15452 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15453 * configure, config.in: Re-generate.
15454 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15455 * defs.h: Do not include <endian.h>.
15457 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15459 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15460 * config.in: Regenerate.
15461 * configure.in: Update copyright years.
15462 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15463 * configure: Regenerate.
15464 * i386bsd-nat.c: Update copyright years.
15465 (fill_gregset): Use regcache_collect.
15466 (fetch_inferior_registers): Only fetch integer registers
15467 if requested to do so. Add support for XMM registers
15468 using PT_GETXMMREGS.
15469 (store_inferior_registers): Only store integer registers
15470 if requested to do so. Add support for XMM registers
15471 using PT_SETXMMREGS.
15472 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15473 (store_inferior_registers): Remove.
15474 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15475 (fetch_elfcore_registers): New function.
15476 (i386nbsd_elfcore_fns): New.
15477 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15478 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15480 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15481 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15482 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15483 * config/i386/tm-nbsd.h: Update copyright years.
15484 (HAVE_SSE_REGS): Define.
15485 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15486 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15487 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15488 (SIGCONTEXT_PC_OFFSET): Remove.
15489 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15491 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15493 * configure.tgt: Remove powerpc-*-macos* target.
15494 * config/m68k/xm-mpw.h: Delete file.
15495 * config/xm-mpw.h: Delete file.
15496 * ser-mac.c: Delete file.
15497 * mpw-make.sed: Delete file.
15498 * mpw-config.in: Delete file.
15499 * mac-xdep.c: Delete file.
15500 * mac-gdb.r: Delete file.
15501 * mac-defs.h: Delete file.
15502 * mac-nat.c: Delete file.
15503 * config/powerpc/macos.mh: Delete file.
15504 * config/powerpc/macos.mt: Delete file.
15505 * config/powerpc/nm-macos.h: Delete file.
15506 * config/powerpc/tm-macos.h: Delete file.
15507 * source.c (openp, open_source_file): Remove obsolete code.
15508 * top.c (gdb_readline): Ditto.
15509 * utils.c (query): Ditto.
15510 * event-top.c (display_gdb_prompt): Ditto.
15511 * Makefile.in (ser-mac.o): Delete obsolete target.
15514 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15516 * defs.h (BIG_ENDIAN): Delete macro definition.
15517 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15518 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15519 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15520 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15521 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15522 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15523 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15524 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15525 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15526 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15527 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15528 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15529 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15530 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15531 * gdbarch.c: Re-generate.
15533 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15535 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15538 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15540 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15542 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15544 * value.h (value_ptr): Delete typedef.
15546 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15548 * i386nbsd-nat.c: Update copyright years.
15549 Include i386-tdep.h.
15551 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15553 * stabsread.c: Update copyright years.
15555 From Debashis Mahata <debashis.mahata@wipro.com>:
15556 (read_struct_fields): Deal with Sun C compiler erroneous stab
15557 output for structs and unions.
15560 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15562 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15565 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15567 * cp-abi.c: Fix whitespace.
15568 (baseclass_offset): New wrapper function.
15569 * cp-abi.h (baseclass_offset): Add prototype.
15570 (struct cp_abi_ops): Add baseclass_offset pointer.
15572 * valops.c (vb_match): Move to...
15573 * gnu-v2-abi.c (vb_match): here.
15574 * valops.c (baseclass_offset): Move to...
15575 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15577 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15579 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15580 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15581 * hpacc-abi.c (init_hpacc_ops): Likewise.
15583 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15585 * valops.c (find_overload_match): Accept obj as a
15586 reference parameter. Update it before returning.
15587 * value.h (find_overload_match): Update prototype.
15588 * eval.c (evaluate_subexp_standard): Pass object to
15589 find_overload_match by reference.
15591 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15593 * valarith.c: Replace value_ptr with struct value pointer. Remove
15594 register attribute from value declarations.
15597 * scm-lang.c (scm_lookup_name): Ditto.
15599 2002-01-03 Michael Snyder <msnyder@redhat.com>
15601 Abstract the functionality of iterating over mapped memory
15602 regions into a general purpose iterator function.
15603 * procfs.c (iterate_over_mappings): New function, general purpose
15604 iterator for memory sections.
15605 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15606 (solib_mappings_callback): New function, callback for above.
15607 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15608 (info_mappings_callback): New function, callback for above.
15610 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15612 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15614 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15615 * i386-tdep.c: Include "elf-bfd.h".
15616 (process_note_abi_tag_sections): New function.
15617 (i386_gdbarch_init): Add code to recognize various OS/ABI
15620 * maint.c (_initialize_maint_cmds): Add missing \ in
15623 For older changes see ChangeLog-2001
15629 version-control: never