1 2003-01-07 Andrew Cagney <cagney@redhat.com>
3 * alpha-tdep.c: Use get_frame_base.
4 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
7 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11 * config/sparc/tm-sparc.h: Ditto.
13 2003-01-07 Andrew Cagney <cagney@redhat.com>
15 * frame.c (deprecated_get_frame_context): New function.
16 (deprecated_set_frame_context): New function.
17 * frame.h (deprecated_get_frame_context): Declare.
18 (deprecated_set_frame_context): Declare.
19 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
20 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
22 2003-01-07 Andrew Cagney <cagney@redhat.com>
24 * frame.c (deprecated_set_frame_next_hack): New function.
25 (deprecated_set_frame_prev_hack): New function.
26 * frame.h (deprecated_set_frame_next_hack): Declare.
27 (deprecated_set_frame_prev_hack): Declare.
28 * mcore-tdep.c (analyze_dummy_frame): Use
29 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
30 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
32 2003-01-07 David Carlton <carlton@math.stanford.edu>
34 * linespec.c (decode_line_1): Move code into decode_dollar.
35 (decode_dollar): New function.
37 2003-01-07 Andrew Cagney <cagney@redhat.com>
39 * arm-tdep.c (arm_init_extra_frame_info): Use
40 deprecated_update_frame_base_hack.
41 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
42 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
43 (fix_frame_pointer): Ditto.
44 (mn10300_analyze_prologue): Ditto.
46 2003-01-07 Andrew Cagney <cagney@redhat.com>
48 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
49 extra_info using frame_extra_info_zalloc.
50 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
51 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
52 (sh64_init_extra_frame_info): Ditto.
53 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
54 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
55 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
56 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
57 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
58 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
59 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
60 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
61 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
62 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
63 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
64 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
66 * mn10300-tdep.c (analyze_dummy_frame): Use
67 deprecated_set_frame_extra_info_hack.
68 * mcore-tdep.c (analyze_dummy_frame): Ditto.
70 2003-01-07 J. Brobecker <brobecker@gnat.com>
72 * mdebugread.c (parse_symbol): Skip stProc entries which storage
73 class is not scText. These do not define "real" procedures.
74 (parse_partial_symbols): Likewise.
76 2003-01-06 Michael Snyder <msnyder@redhat.com>
78 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
80 2003-01-06 Andrew Cagney <ac131313@redhat.com>
82 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
83 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
84 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
85 deprecated_frame_xmalloc_with_cleanup.
86 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
87 deprecated_frame_xmalloc.
88 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
89 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
91 2003-01-06 Andrew Cagney <cagney@redhat.com>
93 * x86-64-linux-tdep.c: Include "osabi.h".
94 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
96 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
98 2003-01-06 Andrew Cagney <cagney@redhat.com>
100 * MAINTAINERS (Target Instruction Set Architectures): Update
101 arm-elf. Can be built with -Werror, has been multiarched.
103 * value.h (unpack_long): Make buffer parameter constant.
104 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
105 * scm-lang.h (scm_parse): Ditto.
106 * defs.h (extract_typed_address, extract_address): Ditto.
107 (extract_long_unsigned_integer): Ditto.
108 * inferior.h (unsigned_pointer_to_address): Ditto.
109 (signed_pointer_to_address): Ditto.
110 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
111 * gdbarch.h, gdbarch.c: Regenerate.
112 * findvar.c (extract_long_unsigned_integer): Update.
113 (extract_address): Update.
114 (extract_typed_address): Update.
115 (unsigned_pointer_to_address): Update.
116 * values.c (unpack_long): Update.
117 (unpack_double): Update.
118 (unpack_pointer): Update.
119 (unpack_field_as_long): Update.
120 * d10v-tdep.c (d10v_pointer_to_address): Update.
121 * avr-tdep.c (avr_pointer_to_address): Update.
122 * scm-lang.c (scm_unpack): Update.
123 * findvar.c (signed_pointer_to_address): Update.
125 2003-01-06 Michal Ludvig <mludvig@suse.cz>
127 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
128 since it is in i386-tdep.c.
130 2003-01-06 J. Brobecker <brobecker@gnat.com>
132 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
133 failure introduced in the previous change.
135 2003-01-05 Michael Chastain <mec@shout.net>
137 * README: Remove references to deleted remote-*.c files:
138 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
139 remote-nrom.c, remote-os9k.c, remote-udi.c.
141 2003-01-05 Mark Kettenis <kettenis@gnu.org>
143 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
144 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
145 i386_get_longjmp_target.
147 2003-01-05 Andrew Cagney <ac131313@redhat.com>
149 * arm-tdep.c (prologue_cache): Change to a pointer.
150 (_initialize_arm_tdep): Allocate prologue_cache.
151 (check_prologue_cache): Update.
152 (save_prologue_cache): Update.
153 (arm_gdbarch_init): Update.
155 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
157 * stabsread.c (update_method_name_from_physname): Call complaint()
160 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
162 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
163 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
164 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
166 * blockframe.c: Include "gdbcmd.h" and "command.h".
167 (backtrace_below_main): New variable.
168 (file_frame_chain_valid, func_frame_chain_valid)
169 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
170 (generic_func_frame_chain_valid): Remove functions.
171 (frame_chain_valid, do_flush_frames_sfunc): New functions.
172 (_initialize_blockframe): New function.
173 * Makefile.in (blockframe.o): Update dependencies.
174 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
175 comment. Call frame_chain_valid ().
176 * frame.h: Remove old prototypes. Add prototype for
177 frame_chain_valid and update comments to match.
178 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
180 * gdbarch.h: Regenerated.
181 * gdbarch.c: Regenerated.
183 * alpha-tdep.c (alpha_gdbarch_init): Don't call
184 set_gdbarch_frame_chain_valid.
185 * avr-tdep.c (avr_gdbarch_init): Likewise.
186 * cris-tdep.c (cris_gdbarch_init): Likewise.
187 * frv-tdep.c (frv_gdbarch_init): Likewise.
188 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
189 * i386-tdep.c (i386_svr4_init_abi): Likewise.
190 (i386_nw_init_abi): Likewise.
191 (i386_gdbarch_init): Likewise.
192 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
193 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
194 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
195 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
196 * mips-tdep.c (mips_gdbarch_init): Likewise.
197 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
198 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
199 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
200 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
201 * s390-tdep.c (s390_gdbarch_init): Likewise.
202 * sh-tdep.c (sh_gdbarch_init): Likewise.
203 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
204 * v850-tdep.c (v850_gdbarch_init): Likewise.
205 * vax-tdep.c (vax_gdbarch_init): Likewise.
206 * x86-64-tdep.c (x86_64_init_abi): Likewise.
208 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
209 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
210 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
211 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
212 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
213 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
214 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
215 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
217 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
219 * Makefile.in (acconfig_h): Remove incorrect macro.
221 (osabi.o): Update dependencies.
222 * configure.tgt: Set gdb_osabi based on target triplet.
223 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
224 * configure: Regenerated.
225 * config.in: Regenerated.
226 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
227 (GDB_OSABI_DEFAULT): Define if not already defined.
228 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
229 (set_osabi_string): New variables.
230 (gdbarch_register_osabi): Add new OS ABI to
231 gdb_osabi_available_names.
232 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
233 (set_osabi, show_osabi): New functions.
234 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
236 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
238 * arch-utils.c (gdbarch_info_init): Set osabi to
239 GDB_OSABI_UNINITIALIZED.
240 * gdbarch.sh: Add osabi to struct gdbarch and to struct
241 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
242 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
243 * gdbarch.c: Regenerated.
244 * gdbarch.h: Regenerated.
245 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
247 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
248 * osabi.h (enum gdb_osabi): Move to defs.h.
249 (gdbarch_init_osabi): Update prototype.
250 * defs.h (enum gdb_osabi): Moved here.
251 * Makefile.in: Update dependencies.
253 * alpha-tdep.h: Don't include "osabi.h".
254 (struct gdbarch_tdep): Remove osabi member.
255 * alpha-tdep.c: Include "osabi.h".
256 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
257 iterate over arches. Update call to gdbarch_init_osabi.
258 (alpha_dump_tdep): Don't dump osabi.
259 * alpha-linux-tdep.c: Include "osabi.h".
260 * alpha-osf1-tdep.c: Include "osabi.h".
261 * alphafbsd-tdep.c: Include "osabi.h".
262 * alphanbsd-tdep.c: Include "osabi.h".
264 * arm-tdep.h: Don't include "osabi.h".
265 (struct gdbarch_tdep): Remove osabi member.
266 * arm-tdep.c: Include "osabi.h".
267 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
268 iterate over arches. Update call to gdbarch_init_osabi.
269 (arm_dump_tdep): Don't dump osabi.
270 * arm-linux-tdep.c: Include "osabi.h".
271 * armnbsd-tdep.c: Include "osabi.h".
273 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
274 Update call to gdbarch_init_osabi.
276 * i386-tdep.h: Don't include "osabi.h".
277 (struct gdbarch_tdep): Remove osabi member.
278 * i386-tdep.c: Include "osabi.h".
279 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
280 iterate over arches. Update call to gdbarch_init_osabi.
281 (i386_dump_tdep): Don't dump osabi.
282 * i386-linux-tdep.c: Include "osabi.h".
283 * i386-sol2-tdep.c: Include "osabi.h".
284 * i386bsd-tdep.c: Include "osabi.h".
285 * i386gnu-tdep.c: Include "osabi.h".
286 * i386ly-tdep.c: Include "osabi.h".
287 * i386nbsd-tdep.c: Include "osabi.h".
288 * i386obsd-tdep.c: Include "osabi.h".
290 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
291 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
292 check osabi when iterating over arches. Update call to
294 (mips_dump_tdep): Don't dump osabi.
296 * ns32k-tdep.h: Don't include "osabi.h".
297 (struct gdbarch_tdep): Remove.
298 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
299 gdbarch_lookup_osabi. Don't iterate over arches. Don't
300 allocate tdep. Update call to gdbarch_init_osabi.
301 (ns32k_dump_tdep): Remove.
302 (_initialize_ns32k_tdep): Update call to gdbarch_register.
303 * ns32knbsd-tdep.c: Include "osabi.h".
305 * ppc-tdep.h: Don't include "osabi.h".
306 (struct gdbarch_tdep): Remove osabi member.
307 * rs6000-tdep.c: Include "osabi.h".
308 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
309 osabi when iterating over arches. Update call to
311 (rs6000_dump_tdep): Don't dump osabi.
312 * ppc-linux-tdep.c: Include "osabi.h".
313 * ppcnbsd-tdep.c: Include "osabi.h".
315 * sh-tdep.h: Don't include "osabi.h".
316 (struct gdbarch_tdep): Remove osabi member.
317 * sh-tdep.c: Include "osabi.h".
318 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
319 iterate over arches. Update call to gdbarch_init_osabi.
320 (sh_dump_tdep): Don't dump osabi.
321 * shnbsd-tdep.c: Include "osabi.h".
323 * sparc-tdep.c: Include "osabi.h".
324 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
325 iterate over arches. Update call to gdbarch_init_osabi.
326 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
329 * vax-tdep.h: Don't include "osabi.h".
330 (struct gdbarch_tdep): Remove.
331 * vax-tdep.c: Include "osabi.h".
332 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
333 iterate over arches. Don't allocate tdep. Update call
334 to gdbarch_init_osabi.
335 (vax_dump_tdep): Remove.
336 (_initialize_vax_tdep): Update call to gdbarch_register.
338 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
340 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
342 (breakpoint_re_set_one): Don't fetch the value for a disabled
345 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
347 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
348 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
349 (COERCE_FLOAT_TO_DOUBLE): Remove.
350 * gdbarch.c: Regenerate.
351 * gdbarch.h: Regenerate.
352 * Makefile.in: Remove value_h from gdbarch_h.
353 * valops.c (coerce_float_to_double): New variable.
354 (default_coerce_float_to_double): Remove.
355 (standard_coerce_float_to_double): Remove.
356 (value_arg_coerce): Use coerce_float_to_double.
357 (_initialize_valops): Add "set coerce-float-to-double".
358 * value.h (default_coerce_float_to_double): Remove prototype.
359 (standard_coerce_float_to_double): Remove prototype.
361 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
363 * mdebugread.c (parse_symbol): Likewise.
364 * stabsread.c (define_symbol): Mark all functions as prototyped.
366 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
367 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
368 set_gdbarch_coerce_float_to_double.
369 * arm-tdep.c (arm_gdbarch_init): Likewise.
370 * frv-tdep.c (frv_gdbarch_init): Likewise.
371 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
372 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
373 * mips-tdep.c (mips_gdbarch_init): Likewise.
374 (mips_coerce_float_to_double): Remove.
375 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
376 (rs6000_coerce_float_to_double): Remove.
377 * s390-tdep.c (s390_gdbarch_init): Likewise.
378 * sh-tdep.c (sh_gdbarch_init): Likewise.
379 (sh_coerce_float_to_double): Remove.
380 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
381 (sparc_coerce_float_to_double): Remove.
382 * v850-tdep.c (v850_gdbarch_init): Likewise.
383 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
384 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
385 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
386 (hppa_coerce_float_to_double): Remove prototype.
387 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
389 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
391 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
393 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
395 Suggested by Stewart Brown <sb24@avaya.com>:
396 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
397 in recursive calls. Handle TYPE_CODE_TYPEDEF.
398 (c_type_print_varspec_suffix): Likewise.
400 2003-01-04 Mark Kettenis <kettenis@gnu.org>
402 * configure.in: Don't set and AC_SUBST SUBDIRS.
403 * configure: Regenerated.
405 * configure.in: Remove code dealing with shared libraries.
406 * Makefile.in: Remove HLDFLAGS and HLDENV.
407 * configure: Regenerated.
409 2003-01-04 Andrew Cagney <ac131313@redhat.com>
411 * frame.c (deprecated_frame_xmalloc): New function.
412 (deprecated_set_frame_saved_regs_hack): New function.
413 (deprecated_set_frame_extra_info_hack): New function.
414 * frame.h (deprecated_frame_xmalloc): Declare.
415 (deprecated_set_frame_saved_regs_hack): Declare.
416 (deprecated_set_frame_extra_info_hack): Declare.
418 2003-01-04 Mark Kettenis <kettenis@gnu.org>
420 * configure.in: Move code that provides the --enable-gdbtk option
421 right after the code that handles the --enable-tui option, and
423 * configure: Regenerated.
425 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
426 AC_CHECK_FUNCS and remove the old check for pread64.
427 * acinclude.m4 (AC_GNU_SOURCE): New macro.
428 * acconfig.h (_GNU_SOURCE): Add.
429 (HAVE_PREAD64): Remove.
430 * configure, aclocal.m4, config.in: Regenerated.
432 2003-01-03 Andrew Cagney <ac131313@redhat.com>
434 * alpha-tdep.c: Use get_frame_saved_regs.
435 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
436 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
437 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
438 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
439 * vax-tdep.c, xstormy16-tdep.c: Ditto.
441 2003-01-03 Mark Kettenis <kettenis@gnu.org>
443 * configure.in: Remove all use of the SUBDIRS variable; add
444 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
445 code providing the --enable-multi-ice option, and move it right in
446 front of the code that checks whether gdbserver is supported.
448 * configure: Regenerated.
449 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
452 2003-01-03 Andrew Cagney <cagney@redhat.com>
454 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
455 * avr-tdep.c, cris-tdep.c: Ditto.
456 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
457 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
459 2003-01-03 Mark Kettenis <kettenis@gnu.org>
461 * configure.in: Remove --enable-netrom option.
462 * configure: Regenerated.
464 2003-01-03 Mark Kettenis <kettenis@gnu.org>
466 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
467 declaration for `struct re_pattern_buffer' instead.
468 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
470 2003-01-03 J. Brobecker <brobecker@gnat.com>
472 * mdebugread.c (parse_symbol): Count until the stEnd matching
475 2003-01-02 Mark Kettenis <kettenis@gnu.org>
477 * configure.in: Remove --with-cpu option.
478 subscripts. Remove evil changequotes here.
479 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
480 * config.in, configure: Regenerated.
482 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
483 * configure.in: Cleanup section that sources GDB and BFD configure
484 subscripts. Remove evil changequotes here.
485 * config.in, configure: Regenerated.
487 2003-01-02 Andrew Cagney <ac131313@redhat.com>
489 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
490 frame accessor methods.
491 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
492 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
493 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
494 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
495 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
496 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
499 2003-01-02 Mark Kettenis <kettenis@gnu.org>
501 * configure.in: Remove UI_OUT configuration code.
502 * ada-lang.c: Update assuming UI_OUT is always true.
503 * Makefile.in (UIOUT_CFLAGS): Remove.
504 * configure: Regenerated.
505 * TODO: Remove blurb about elimination of -DUI_OUT.
507 * configure.in: Move code that provides the --enable-gdbcli,
508 --enable-gdbmi options right before the code that handles the
509 --enable-tui option. Polish a bit.
510 * configure: Regenerated.
512 * configure.in: Rewrite check for GNU regex and the
513 --without-included regex option, and move it into the "Checks for
514 library functions" section. This makes us use the system regex
515 again by default on systems with version 2 of the GNU C library.
516 This was apparently broken.
517 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
518 * acconfig.h (USE_INCLUDED_REGEX): Remove.
519 * config.in, configure: Regenerated.
521 * configure.in: Move code that provides the --enable-tui option
522 before the "Checks for libraries" section. Polish the code
523 somewhat and set need_curses to yes if we build the TUI. Rewrite
524 code that looks for a library providing termcap functionality to
525 match more closely what's done in the Readline library, and move
526 it into to the "Checks for libraries" section.
527 * configure: Regenerated.
528 * Makefile.in (TERMCAP): Remove variable.
529 * config/i386/go32.mh (TERMCAP): Remove variable.
531 2003-01-02 Andrew Cagney <ac131313@redhat.com>
533 * MAINTAINERS: Mention gdb_mbuild.sh.
534 * gdb_mbuild.sh: Rewrite.
536 2003-01-02 Mark Kettenis <kettenis@gnu.org>
538 * configure.in: Fix typo in last change.
539 * config.in, configure: Regenerated.
541 2003-01-02 Andrew Cagney <ac131313@redhat.com>
543 * valarith.c (value_binop): Delete obsolete code and comments.
544 * configure.host: Ditto.
545 * buildsym.h (make_blockvector): Ditto.
546 * buildsym.c (make_blockvector): Ditto.
547 * defs.h (enum language): Ditto.
548 (chill_demangle): Ditto.
549 * elfread.c (elf_symtab_read): Ditto.
550 * dwarfread.c (CHILL_PRODUCER): Ditto.
551 (set_cu_language): Ditto.
552 (handle_producer): Ditto.
553 * expprint.c (print_subexp): Ditto.
554 * gdbtypes.c (chill_varying_type): Ditto.
555 * gdbtypes.h (builtin_type_chill_bool): Ditto.
556 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
557 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
558 (chill_varying_type): Ditto.
559 * language.h (_LANG_chill): Ditto.
560 * language.c (binop_result_type, integral_type): Ditto.
561 (character_type, string_type, structured_type): Ditto.
562 (lang_bool_type, binop_type_check): Ditto.
563 * stabsread.h (os9k_stabs): Ditto.
564 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
565 (define_symbol, read_type, read_struct_fields): Ditto.
566 (read_array_type, read_enum_type, read_huge_number): Ditto.
567 (read_range_type, start_stabs): Ditto.
568 * symfile.c (init_filename_language_table): Ditto.
569 (add_psymbol_with_dem_name_to_list): Ditto.
570 * symtab.c (symbol_init_language_specific): Ditto.
571 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
572 * symtab.h (struct general_symbol_info): Ditto.
573 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
574 * typeprint.c (typedef_print): Ditto.
575 * utils.c (fprintf_symbol_filtered): Ditto.
576 * valops.c (value_cast, search_struct_field, value_slice): Delete
578 (varying_to_slice): Delete function.
579 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
580 (varying_to_slice): Delete declaration.
581 * MAINTAINERS: Update.
583 2003-01-02 Mark Kettenis <kettenis@gnu.org>
585 * configure.in: Reorganize "Checks for library functions section"
586 a bit. Remove check for `btowc' and `isascii' functions.
587 * configure: Regenerated.
589 * acconfig.h (_MSE_INT_H): Remove.
590 * configure.in: Create "Checks for header files" section, and move
591 appropriate tests there. Don't check for objlist.h, wchar.h,
592 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
593 misdetection fix. Also add "Checks for types", "Checks for
594 compiler characteristics" and "Checks for library functions"
596 * config.in, configure: Regenerated.
598 * configure.in: Create "Checks for programs" section, and move
599 appropriate tests there.
601 2003-01-01 Mark Kettenis <kettenis@gnu.org>
603 * configure.in: Create "Checks for libraries" section, and move
604 appropriate tests there. Cleanup check for wctype in libw. Use
605 AC_SEARCH_LIBS to see whether we need libsocket.
606 * configure: Regenerated.
608 2002-12-31 Mark Kettenis <kettenis@gnu.org>
610 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
611 * config.in, configure: Regenerated.
613 2002-12-31 Mark Kettenis <kettenis@gnu.org>
615 * gdb_dirent.h: Cleanup and update code to match the example in
617 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
618 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
619 * configure: Regenerated.
621 2002-12-30 Adam Fedor <fedor@gnu.org>
623 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
624 (yylex): Initialize c to avoid uninitialized warning.
626 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
628 * doc/fdl.texi: Revert the last change.
630 2002-12-29 Mark Kettenis <kettenis@gnu.org>
632 * tracepoint.c (ISATTY): Removed.
634 2002-12-26 J. Brobecker <brobecker@gnat.com>
636 Continuing work to convert the hppa targets to multiarch partil.
638 * hppa-tdep.c: Add some missing forward declarations.
639 (frameless_function_invocation): Prefix the function name
640 by "hppa_" to avoid polluting the namespace. Update all calls
641 to use the new function name.
642 (saved_pc_after_call): Ditto.
643 (init_extra_frame_info): Ditto.
644 (frame_chain): Ditto.
645 (push_dummy_frame): Ditto.
646 (target_read_pc): Ditto.
647 (target_write_pc): Ditto.
648 (in_solib_call_trampoline): Ditto.
649 (in_solib_return_trampoline): Ditto.
650 (skip_trampoline_code): Ditto.
651 (hppa_read_fp): New function, renamed from target_read_fp.
652 (hppa_target_read_fp): New function, using hppa_read_fp.
653 This function conforms to the function profile for the
654 READ_FP gdbarch method.
655 (hppa_extract_struct_value_address): New function, extracted
656 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
658 (hppa_frame_num_args): New function.
659 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
661 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
662 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
663 for the switch to multiarch partial.
664 Update some of the macros definitions to match some changes
665 described above in the name of the function they are calling.
666 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
667 not be straightforward to convert. Do now wrap it inside
668 "#if !... #endif" to remember that this macro has still not
670 (FIX_CALL_DUMMY): Likewise.
672 2002-12-26 J. Brobecker <brobecker@gnat.com>
674 Continuing work to convert the hppa targets to multiarch partial.
676 * hppa-tdep.c (hppa_register_raw_size): New function replacing
677 the body of macro REGISTER_RAW_SIZE.
678 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
679 config/pa/tm-hppah.h. These functions will be used to initialize
680 the gdbarch structure.
681 (hppa_hpux_pc_in_sigtramp): New function.
682 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
683 (hppa_hpux_frame_base_before_sigtramp): New function.
684 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
685 Add gdbcore.h #include.
686 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
687 of this gdbarch-eligible macro to a call to the new associated
689 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
690 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
691 into a call to the new associated function.
692 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
693 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
694 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
696 2002-12-24 David Carlton <carlton@math.stanford.edu>
698 * config/sparc/tm-sparc.h: Delete duplicate definition of
699 DEPRECATED_PC_IN_CALL_DUMMY.
701 2002-12-24 Kevin Buettner <kevinb@redhat.com>
703 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
705 * configure.tgt: Recognize mips64*-*-linux*.
706 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
707 (supply_32_bit_reg): New function.
708 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
709 (fill_gregset): Use regcache_collect() instead of
710 deprecated_registers[].
711 (register_addr): Change name to mips_linux_register_addr().
712 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
713 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
714 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
715 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
716 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
717 (MIPS64_LINUX_JB_PC): New defines.
718 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
719 (mips64_elf_fpregset_t): New typedefs.
720 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
721 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
722 (mips64_linux_register_addr, set_mips_linux_register_addr)
723 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
724 (init_register_addr_data)
726 (fetch_core_registers): Add support for core file formats with 64-bit
728 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
729 (register_addr_data): New static global variable.
730 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
731 gdbarch_register_osabi() for each MIPS machine.
732 * config/mips/linux64.mt: New file.
733 * config/mips/tm-linux64.h: New file.
735 2002-12-23 Adam Fedor <fedor@gnu.org>
737 * maint.c (maintenance_demangle): Add switch to demangle
738 ObjC language symbols as well.
740 2002-12-23 Adam Fedor <fedor@gnu.org>
742 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
743 last argument from complaint function call.
745 2002-12-23 Kevin Buettner <kevinb@redhat.com>
747 * exec.c (print_section_info): Add FIXME comments regarding format
750 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
752 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
753 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
755 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
757 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
759 2002-12-23 David Carlton <carlton@math.stanford.edu>
761 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
762 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
763 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
764 information associated to a minsym, not lookup_symbol.
766 2002-12-21 Mark Kettenis <kettenis@gnu.org>
768 * x86-64-tdep.h (x86_64_init_abi): New prototype.
769 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
770 (x86_64_init_abi): Make non-static. Set number of pseudo
772 (x86_64_gdbarch_init): Remove function.
773 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
774 Remove code dealing with dissambly.
775 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
776 (_initialize_x86_64_linux_tdep): New function.
777 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
780 2002-12-14 Mark Kettenis <kettenis@gnu.org>
782 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
783 (struct gdb_osabi_handler): Remove member `arch'. Add member
785 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
786 construct a `struct bfd_arch_info' and store it in the `struct
787 gdb_osabi_handler' that is created.
788 (gdbarch_init_osabi): Check for compatibility based on machine
789 type and architecture.
790 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
792 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
793 second argument in call to gdbarch_register_osabi.
794 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
795 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
796 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
797 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
798 * arm-tdep.c (_initialize_arm_tdep): Likewise.
799 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
800 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
801 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
802 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
803 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
804 * i386-tdep.c (_initialize_i386_tdep): Likewise.
805 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
806 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
807 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
808 _initialize_i386bsd_tdep and updated likewise.
809 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
810 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
811 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
812 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
813 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
814 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
815 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
816 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
817 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
818 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
820 2002-12-20 Kevin Buettner <kevinb@redhat.com>
822 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
823 DT_MIPS_RLD_MAP case for 64-bit targets.
825 2002-12-20 Kevin Buettner <kevinb@redhat.com>
827 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
828 ``temp_saved_regs'', not the pointer or other storage contiguous
831 2002-12-20 Kevin Buettner <kevinb@redhat.com>
833 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
834 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
835 (mips_linux_get_longjmp_target): Delete declarations.
836 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
837 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
838 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
839 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
840 (mips_linux_get_longjmp_target)
841 (mips_linux_svr4_fetch_link_map_offsets): Make static.
842 (mips_linux_init_abi): New function.
843 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
845 2002-12-19 Keith Seitz <keiths@redhat.com>
847 patch committed by Elena Zannoni <ezannoni@redhat.com>
848 * thread.c (do_captured_list_thread_ids): Call prune_threads and
849 target_find_new_threads. Fix for PR mi/669.
851 2002-12-19 David Carlton <carlton@math.stanford.edu>
853 * linespec.c (decode_line_1): Move code into decode_all_digits.
854 (decode_all_digits): New function.
856 2002-12-19 Kevin Buettner <kevinb@redhat.com>
858 * exec.c (print_section_info): Select a format string to use with
859 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
861 2002-12-18 Andrew Cagney <ac131313@redhat.com>
863 * frame.c (deprecated_update_current_frame_pc_hack): Replace
864 deprecated_update_current_frame_pc_hack.
865 (deprecated_update_frame_base_hack): New function.
866 * frame.h (deprecated_update_frame_pc_hack): Replace
867 (deprecated_update_frame_base_hack): Declare.
868 * infrun.c (normal_stop): Update.
870 2002-12-18 Andrew Cagney <ac131313@redhat.com>
872 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
873 frame_extra_info_zalloc.
874 (rs6000_frame_args_address): Use get_frame_extra_info.
875 (frame_get_saved_regs): Use get_frame_saved_regs.
876 (frame_initial_stack_address): Use get_frame_saved_regs and
877 get_frame_extra_info.
878 (frame_initial_stack_address): Use get_frame_extra_info.
880 2002-12-17 Kevin Buettner <kevinb@redhat.com>
882 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
884 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
885 checks for r3900_regnames[].
887 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
889 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
891 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
893 2002-12-17 David Carlton <carlton@math.stanford.edu>
895 * symtab.c (lookup_partial_symbol): Don't search past the end of
898 2002-12-17 Andrew Cagney <ac131313@redhat.com>
900 * stack.c (frame_info): Use get_frame_saved_regs.
901 * breakpoint.c (until_break_command): Use get_frame_pc.
903 2002-12-16 Kevin Buettner <kevinb@redhat.com>
905 * buildsym.c (block_end_complaint, anon_block_end_complaint)
906 (innerblock_complaint, innerblock_anon_complaint)
907 (blockvector_complaint): Delete deprecated complaint structs.
908 (finish_block, make_blockvector, end_symtab): Replace calls
909 to complain() with calls to complaint().
910 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
911 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
912 (unexpected_type_complaint, bad_sclass_complaint)
913 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
914 Delete deprecated complaint structs.
915 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
916 Replace calls to complain() with calls to complaint().
917 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
918 (unknown_symtype_complaint, unknown_symchar_complaint)
919 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
920 (lbrac_mismatch_complaint, repeated_header_complaint)
921 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
922 Delete deprecated complaint structs.
923 (unknown_symtype_complaint, lbrac_mismatch_complaint)
924 (repeated_header_complaint)
925 (function_outside_compiliation_unit_complaint): New functions.
926 (add_old_header_file, find_corresponding_bincl_psymtab)
927 (set_namestring, find_stab_function_addr, read_dbx_symtab)
928 (process_one_symbol): Replace calls to complain() with, possibly
929 indirect, calls to complaint().
930 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
931 (unknown_attribute_form, unknown_attribute_length)
932 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
933 (const_ignored, botched_modified_type, op_deref2, op_deref4)
934 (basereg_not_handled, dup_user_type_allocation)
935 (dup_user_type_definition, missing_tag, bad_array_element_type)
936 (subscript_data_items, unhandled_array_subscript_format)
937 (unknown_array_subscript_format, not_row_major)
938 (missing_at_name): Delete deprecated complaint structs.
939 (bad_die_ref_complaint, unknown_attribute_form_complaint)
940 (dup_user_type_definition_complaint)
941 (bad_array_element_type_complaint): New functions.
942 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
943 (decode_subscript_data_item, dwarf_read_array_type)
944 (read_tag_string_type, read_subroutine_type, read_func_scope)
945 (locval, scan_partial_symbols, decode_modified_type)
946 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
947 (attribute_size): Replace calls to complain() with, possibly
948 indirect, calls to complaint().
949 * elfread.c (section_info_complaint, section_info_dup_complaint)
950 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
951 Delete deprecated complaint structs.
952 (elf_symtab_read, elfstab_offset_sections): Replace calls to
953 complain() with calls to complaint().
954 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
956 (stub_noname_complaint): New function.
957 (check_typedef, add_mangled_type): Replace calls to complain()
958 with calls to complaint().
959 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
960 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
961 (hpread_unhandled_type_complaint, hpread_struct_complaint)
962 (hpread_array_complaint, hpread_type_lookup_complaint)
963 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
964 (hpread_unhandled_common_complaint)
965 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
966 struct definitions and declarations.
967 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
968 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
969 Replace calls to complain() with, possibly indirect, calls to
971 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
973 * mdebugread.c (bad_file_number_complaint, index_complaint)
974 (aux_index_complaint, block_index_complaint)
975 (unknown_ext_complaint, unknown_sym_complaint)
976 (unknown_st_complaint, block_overflow_complaint)
977 (basic_type_complaint, unknown_type_qual_complaint)
978 (array_index_type_complaint, bad_tag_guess_complaint)
979 (block_member_complaint, stEnd_complaint)
980 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
981 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
982 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
983 (bad_continued_complaint, bad_rfd_entry_complaint)
984 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
985 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
986 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
987 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
989 (index_complaint, unknown_ext_complaint, basic_type_complaint)
990 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
991 (unexpected_type_code_complaint)
992 (function_outside_compilation_unit_complaint): New functions.
993 (parse_symbol, parse_type, upgrade_type, parse_procedure)
994 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
995 Replace calls to complain() with, possibly indirect calls to
997 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
998 Delete deprecated complaint structs.
999 (lookup__objc_class, lookup_child_selector): Replace complain()
1001 * remote-vx.c (cant_contact_target): Delete deprecated complaint
1003 (vx_lookup_symbol): Replace complain() with complaint().
1004 * stabsread.c (invalid_cpp_abbrev_complaint)
1005 (invalid_cpp_type_complaint, member_fn_complaint)
1006 (const_vol_complaint, error_type_complaint)
1007 (invalid_member_complaint, range_type_base_complaint)
1008 (reg_value_complaint, vtbl_notfound_complaint)
1009 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1010 (unresolved_sym_chain_complaint, stabs_general_complaint)
1011 (lrs_general_complaint, multiply_defined_struct): Delete
1012 deprecated complaint structs.
1013 (invalid_cpp_abbrev_complaint, ref_value_complaint)
1014 (stabs_general_complaint, lrs_general_complaint)
1015 (msg_unknown_complaint): New functions.
1016 (dbx_lookup_type, read_cfront_baseclasses)
1017 (read_cfront_member_functions, resolve_symbol_reference)
1018 (define_symbol, resolve_live_range, add_live_range, read_type)
1019 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1020 (read_one_struct_field, read_baseclasses, read_tilde_fields)
1021 (read_cfront_static_fields, attach_fields_to_type)
1022 (complain_about_struct_wipeout, read_range_type)
1023 (common_block_start, common_block_end, cleanup_undefined_types)
1024 (scan_file_globals): Replace complain() with complaint().
1025 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1026 Delete deprecated complaint struct declarations.
1027 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1028 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1029 (bf_not_found_complaint, ef_complaint, eb_complaint)
1030 (function_outside_compilation_unit_complaint): New functions.
1031 (record_include_begin, record_include_end, enter_line_range)
1032 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1033 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1034 complain() with complaint().
1036 2002-12-16 Andrew Cagney <ac131313@redhat.com>
1038 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1039 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1040 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1041 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1042 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1043 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1044 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1045 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1046 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1047 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1048 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1049 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1050 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1051 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1052 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1053 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1054 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1055 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1056 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1057 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1058 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1059 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1060 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1061 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1062 * config/m88k/xm-dgux.h: Delete.
1063 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1064 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1065 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1066 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1067 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1068 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1069 * ch-valprint.c: Delete.
1071 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1073 * infrun.c (handle_inferior_event): Rearrange code to resume if
1074 no catchpoint triggers for an event.
1076 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1078 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1079 and TARGET_WAITKIND_VFORKED cases.
1081 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1083 * infrun.c (handle_inferior_event): Assume that catchpoints
1084 are not affected by DECR_PC_AFTER_BREAK.
1086 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1088 * target.c (update_current_target): Don't inherit DONT_USE.
1089 * target.h (struct target_ops): Remove DONT_USE.
1090 (target_next): Remove macro.
1092 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1094 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1096 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1098 * arm-tdep.c (convert_from_extended): New argument to hold the
1099 type of floating point result we want to convert to. Make input
1100 argument const. Fix all callers.
1101 (convert_to_extended): Similarly.
1102 (arm_extract_return_value): Now takes a regcache argument. Change
1103 code to use regcache accessor functions. Correctly extract
1104 smaller-than-word results on big-endian machines.
1105 (arm_store_return_value): Now takes a regcache argument. Change
1106 code to use regcache accessor functions. Correctly zero/sign extend
1107 smaller than word results before storing into r0.
1108 (arm_gdbarch_init): Register new-style extract_return_value and
1109 store_return_value functions.
1111 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1113 * thread-db.c (thread_from_lwp): Uniquify error msg.
1114 (lwp_from_thread): Ditto.
1115 (check_event): Ditto.
1116 (find_new_threads_callback): Ditto.
1117 (thread_db_pid_to_str): Ditto.
1119 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1121 * frame.h (get_frame_saved_regs): Declare.
1122 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1124 * frame.c (get_frame_saved_regs): New function.
1125 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1127 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1129 * frame.c (deprecated_update_current_frame_pc_hack): New
1131 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1132 * infrun.c (normal_stop): Use said function instead of directly
1133 modifying the frame's PC.
1135 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1137 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1139 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1141 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1142 config/mips/tm-irix6.h (NUM_REGS): Delete.
1143 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1144 (temp_saved_regs): Declare as a pointer rather than an array.
1145 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1146 that ``temp_saved_regs'' has storage allocated to it and that
1147 it's the correct size.
1149 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1151 * defs.h (init_last_source_visited): New prototype.
1153 * source.c (add_path): New function that adds to a specified path.
1154 (mod_path): Change to call add_path.
1155 (init_last_source_visited): New function to allow interfaces to
1156 initialize static variable: last_source_visited. Part of fix
1158 * Makefile.in: Add support for mi/mi-cmd-env.c.
1160 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1162 * frame.h (frame_id_unwind): Declare.
1163 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1165 (frame_id_unwind_ftype): Declare.
1166 * frame.c (frame_id_unwind): New function.
1167 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1168 (create_new_frame, get_prev_frame): Pass id_unwind to
1170 (frame_saved_regs_id_unwind): New function.
1171 (frame_saved_regs_id_unwind): New function.
1172 * dummy-frame.c (dummy_frame_id_unwind): New function.
1173 (struct dummy_frame): Add field id.
1174 (generic_push_dummy_frame): Initialize `id'.
1175 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1177 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1179 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1180 pass that to set_momentary_breakpoint. Move comments to where they
1182 * frame.h (set_current_frame): Delete declaration.
1183 * frame.c (set_current_frame): Delete function.
1185 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1187 * frame.c (frame_extra_info_zalloc): New function.
1188 * frame.h (frame_extra_info_zalloc): Declare.
1190 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1192 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1193 in the previous prototype change to set_momentary_breakpoint.
1195 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1197 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1199 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1200 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1201 (stop_stepping): Remove outdated check for child vfork events.
1203 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1205 * GDB 5.3 released from gdb_5_3-branch.
1207 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1209 * corelow.c (init_core_ops): Delete references to to_require_attach
1210 and to_require_detach.
1211 * exec.c (init_exec_ops): Likewise.
1212 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1213 hppa_require_detach directly.
1214 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1215 * inftarg.c (child_detach): Remove.
1216 (child_detach_from_process): Rename to child_detach, remove
1217 after_fork argument.
1218 (child_attach): Remove.
1219 (child_attach_to_process): Rename to child_attach, remove after_fork
1221 (init_child_ops): Delete references to to_require_attach
1222 and to_require_detach.
1223 * infttrace.c (hppa_require_attach): Update comment.
1224 * target.c (cleanup_target, update_current_target)
1225 (init_dummy_target, setup_target_debug): Delete references to
1226 to_require_attach and to_require_detach.
1227 (find_default_require_detach, find_default_require_attach)
1228 (debug_to_require_attach, debug_to_require_detach): Remove
1230 * target.h (struct target_ops): Remove to_require_attach
1231 and to_require_detach.
1232 (target_require_attach, target_require_detach): Delete macros.
1233 (find_default_require_detach, find_default_require_attach): Delete
1235 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1237 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1239 * frame.c (get_frame_extra_info): New function.
1240 * frame.h (get_frame_extra_info): Declare.
1242 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1244 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1245 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1246 with `struct frame_id'.
1247 (set_longjmp_resume_breakpoint): Ditto.
1248 * infrun.c (handle_inferior_event): Update.
1249 * breakpoint.c (watch_command_1, until_break_command): Update.
1250 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1251 (handle_inferior_event, step_over_function): Update.
1252 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1253 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1254 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1255 * infcmd.c (finish_command, run_stack_dummy): Update.
1257 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1259 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1260 (dwarf2_non_const_array_bound_ignored)
1261 (dwarf2_missing_line_number_section)
1262 (dwarf2_statement_list_fits_in_line_number_section)
1263 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1264 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1265 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1266 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1267 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1268 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1269 (dwarf2_missing_member_fn_type_complaint)
1270 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1271 (dwarf2_const_value_length_mismatch)
1272 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1273 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1274 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1275 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1276 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1277 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1278 complaints using deprecated struct..
1279 (dwarf2_non_const_array_bound_ignored_complaint)
1280 (dwarf2_complex_location_expr_complaint)
1281 (dwarf2_unsupported_at_frame_base_complaint)
1282 (dwarf2_const_value_length_mismatch_complaint)
1283 (dwarf2_macros_too_long_complaint)
1284 (dwarf2_macro_malformed_definition_complaint)
1285 (dwarf2_invalid_attrib_class_complaint): New functions.
1286 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1287 (read_structure_scope, read_array_type, read_common_block)
1288 (read_tag_pointer_type, read_base_type, read_partial_die)
1289 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1290 (new_symbol, dwarf2_const_value, read_type_die)
1291 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1292 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1293 complain() with, possibly indirect, calls to complaint().
1295 2002-12-11 Andrew Cagney <cagney@redhat.com>
1297 * frame.c (deprecated_get_frame_saved_regs): Rename
1298 get_frame_saved_regs.
1299 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1300 * sparc-tdep.c: Update.
1301 * hppa-tdep.c: Update.
1302 * h8500-tdep.c: Update.
1304 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1306 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1307 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1308 ``char *'' for return and parameter types.
1309 * gdbarch.h, gdbarch.c: Regenerate.
1310 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1311 return type from ``char *'' to ``const char *''.
1312 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1315 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1317 * i386-tdep.c: Include "dummy-frame.h".
1318 (i386_frame_chain, i386_frame_saved_pc): Replace
1319 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1320 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1322 2002-12-10 Andrew Cagney <cagney@redhat.com>
1324 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1325 Change to a function with predicate.
1326 * gdbarch.h, gdbarch.c: Re-generate.
1327 * frame.c (get_prev_frame): Update. Test
1328 DEPRECATED_INIT_FRAME_PC_P.
1329 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1330 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1331 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1332 * alpha-tdep.c (alpha_gdbarch_init): Update.
1333 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1334 * mips-tdep.c (mips_gdbarch_init): Update.
1335 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1336 * arm-tdep.c: Update comments.
1337 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1338 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1339 * frv-tdep.c (frv_gdbarch_init): Ditto.
1340 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1341 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1342 * s390-tdep.c (s390_gdbarch_init): Ditto.
1343 * v850-tdep.c (v850_gdbarch_init): Ditto.
1344 * vax-tdep.c (vax_gdbarch_init): Ditto.
1345 * sh-tdep.c (sh_gdbarch_init): Ditto.
1346 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1348 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1349 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1350 * i386-tdep.c (i386_gdbarch_init): Ditto.
1351 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1352 * cris-tdep.c (cris_gdbarch_init): Ditto.
1353 * avr-tdep.c (avr_gdbarch_init): Ditto.
1354 * arm-tdep.c (arm_gdbarch_init): Ditto.
1355 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1356 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1358 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1360 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1362 * hppah-nat.c (saved_vfork_pid): Add.
1363 (child_post_follow_vfork): Remove.
1364 (child_follow_fork): New function.
1365 (child_wait): Call detach_breakpoints after receiving the child vfork.
1366 Call child_resume directly instead of going through resume ().
1367 Make sure we have the exec before reporting the vfork.
1368 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1369 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1370 (follow_fork): New function. Call target_follow_fork.
1371 (follow_inferior_reset_breakpoints): New function broken out from
1372 old follow_inferior_fork.
1373 (resume): Remove hack to follow exec after vfork.
1374 * inftarg.c (child_post_follow_vfork): Remove.
1375 (child_follow_fork): New function.
1376 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1377 * target.c (cleanup_target): Replace to_post_follow_vfork with
1379 (update_current_target): Likewise.
1380 (setup_target_debug): Likewise.
1381 (debug_to_post_follow_vfork): Remove.
1382 (debug_to_follow_fork): New function.
1383 * target.h (struct target_ops): Replace to_post_folow_vfork with
1385 (child_post_follow_vfork): Remove prototype.
1386 (child_follow_fork): Add prototype.
1387 (target_post_follow_vfork): Remove macro.
1388 (target_follow_fork): Add macro.
1390 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1392 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1393 (child_post_follow_vfork): Cancel pending exec event if we follow
1395 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1396 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1397 event at the following wait call if necessary.
1398 * infrun.c (follow_vfork): Don't follow_exec here.
1399 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1400 case about HP/UX 10.20. Remove code pushed down to
1401 hppah-nat.c:child_wait.
1402 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1403 vfork_in_flight is set.
1405 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1407 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1408 for the parent's fork event.
1409 * infrun.c (handle_inferior_event): Only expect one fork event.
1410 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1411 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1413 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1415 * PROBLEMS: Delete reference to PR gdb/725.
1417 * MAINTAINERS (gdb.c++): Add David Carlton.
1419 2002-12-09 David Carlton <carlton@math.stanford.edu>
1421 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1422 * cli/cli-cmds.c: Ditto.
1424 2002-12-09 Andrew Cagney <cagney@redhat.com>
1426 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1427 function address in <>.
1428 * gdbarch.c: Re-generate.
1430 2002-12-09 David Carlton <carlton@math.stanford.edu>
1432 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1434 2002-12-09 David Carlton <carlton@math.stanford.edu>
1436 * linespec.c (symtab_from_filename): New function.
1437 (decode_line_1): Move code into symtab_from_filename.
1439 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1441 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1443 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1445 * f-valprint.c (info_common_command): Use get_frame_pc.
1446 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1447 * ax-gdb.c (agent_command): Ditto.
1448 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1449 (rs6000_pop_frame): Ditto.
1450 (rs6000_frameless_function_invocation): Ditto.
1451 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1452 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1453 * macroscope.c (default_macro_scope): Ditto.
1454 * stack.c (print_frame_info_base): Ditto.
1455 (print_frame, frame_info, print_frame_label_vars): Ditto.
1456 (return_command, func_command, get_frame_language): Ditto.
1457 * infcmd.c (finish_command): Ditto.
1458 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1459 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1460 (break_at_finish_at_depth_command_1): Ditto.
1461 (break_at_finish_command_1): Ditto.
1462 (until_break_command, get_catch_sals): Ditto.
1463 * blockframe.c (func_frame_chain_valid): Ditto.
1464 (frameless_look_for_prologue): Ditto.
1465 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1467 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1469 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1470 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1472 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1474 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1476 * gdbarch.h, gdbarch.c: Re-generate.
1477 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1478 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1480 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1481 declaration to a function returning a CORE_ADDR.
1482 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1483 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1484 (init_frame_pc_default): Ditto.
1485 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1486 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1487 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1488 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1489 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1490 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1492 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1493 to init_frame_pc_noop.
1494 (i386_interix_init_frame_pc): Delete function.
1495 * z8k-tdep.c (init_frame_pc): Delete function.
1496 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1497 (INIT_FRAME_PC_FIRST): Ditto.
1498 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1499 (INIT_FRAME_PC_FIRST): Ditto.
1500 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1501 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1503 (INIT_FRAME_PC_FIRST): Convert to an expression.
1504 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1506 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1508 * blockframe.c: Use get_frame_base instead of directly accessing
1509 the `struct frame_info' member frame.
1510 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1511 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1513 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1515 * Makefile.in (readline_h): Define.
1516 (completer.o): Depend on readline_h.
1518 (event-top.o): Ditto.
1525 (tracepoint.o): Ditto.
1527 (cli-dump.o): Ditto.
1528 (tui-hooks.o): Ditto.
1531 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1533 More cleanup from import of readline 4.3.
1534 * completer.h (complete_line, readline_line_completion_function):
1536 (line_completion_function): Removed, not used outside of completer.c.
1537 * completer.c (readline_line_completion_function,
1538 complete_function, line_completion_function): Use const for first
1540 (line_completion_function): Make static.
1541 (filename_completer): filename_completion_function is now called
1542 rl_filename_completion_function
1543 * corelow.c: Include <readline/readline.h>.
1549 * top.c (init_main): No need to coerce
1550 readline_line_completion_function anymore.
1551 * cli/cli-dump.c: Include <readline/readline.h>.
1553 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1555 * stack.c (frame_info): Use get_prev_frame.
1556 * blockframe.c (frame_address_in_block): Ditto.
1557 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1558 (rs6000_frameless_function_invocation): Ditto.
1559 (rs6000_frame_saved_pc): Ditto.
1560 (rs6000_frame_chain): Ditto.
1561 * arch-utils.c (init_frame_pc_default): Ditto.
1563 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1565 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1566 Delete redundant definition.
1568 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1570 Import of readline 4.3:
1571 * cli/cli-cmds.c: Include readline/tilde.h.
1572 * cli/cli-setshow.c: Ditto.
1573 * defs.h: Don't declare tilde_expand anymore, since readline
1576 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1578 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1579 -Werror on this file.
1581 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1583 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1585 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1586 * gdbarch.c: Regenerate.
1588 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1590 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1591 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1592 provide a default value.
1593 * gdbarch.h, gdbarch.c: Regenerate.
1594 * frame.c (get_prev_frame): Update. Check
1595 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1596 * s390-tdep.c (s390_gdbarch_init): Update.
1597 * mips-tdep.c (mips_gdbarch_init): Update.
1598 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1599 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1600 * alpha-tdep.c (alpha_gdbarch_init): Update.
1602 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1604 * ia64-linux-nat.c: Include gdb_string.h.
1605 * alpha-nat.c: Ditto.
1606 * ppc-linux-nat.c: Ditto.
1607 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1608 Update dependencies.
1610 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1612 * gdbthread.h: Include "frame.h".
1613 (struct thread_info): Replace step_frame_address with
1615 * inferior.h: Include "frame.h".
1616 (step_frame_id): Replace external variable step_frame_address.
1617 * gdbthread.h (save_infrun_state): Replace step_frame_address
1618 parameter with step_frame_id parameter.
1619 (load_infrun_state): Ditto.
1620 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1621 * infcmd.c (step_frame_id, step_1, step_once): Update.
1622 * thread.c (load_infrun_state, save_infrun_state): Update.
1623 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1624 (handle_inferior_event, step_over_function): Update.
1625 (normal_stop, context_switch, restore_inferior_status): Update.
1626 (struct inferior_status): Replace step_frame_address with
1629 2002-12-05 David Carlton <carlton@math.stanford.edu>
1631 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1632 DW_TAG_member as well as a declaration as being a C++ static data
1634 (read_structure_scope): Combine tests for DW_TAG_member and
1637 2002-12-05 David Carlton <carlton@math.stanford.edu>
1639 * linespec.c (decode_compound): New function.
1640 (decode_line_1): Move code into decode_compound.
1642 2002-12-05 David Carlton <carlton@math.stanford.edu>
1644 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1646 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1647 the static block. See PR gdb/804.
1649 2002-12-05 David Carlton <carlton@math.stanford.edu>
1651 * symtab.c (lookup_symbol_aux_block): New function.
1652 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1654 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1656 * gdbarch.sh: Dump the predicate function and macro values.
1657 (read): Print error on standard error.
1658 * gdbarch.c: Regenerate.
1660 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1662 * Makefile.in (mips_tdep_h): Define.
1663 (mips-tdep.o): Add mips_tdep_h to dependency list.
1664 * mips-tdep.h: New file.
1665 * mips-tdep.c (mips-tdep.h): Include.
1666 (enum mips_abi): Move to mips-tdep.h.
1667 (mips_abi): New function.
1669 2002-12-04 David Carlton <carlton@math.stanford.edu>
1671 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1673 2002-12-04 David Carlton <carlton@math.stanford.edu>
1675 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1677 (lookup_symbol_aux_minsyms): New function.
1679 2002-12-04 J. Brobecker <brobecker@gnat.com>
1681 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1683 2002-12-04 J. Brobecker <brobecker@gnat.com>
1685 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1686 which is an obsolete macro name.
1688 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1690 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1691 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1693 2002-12-03 H.J. Lu (hjl@gnu.org)
1695 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1696 (create_breakpoints): Make sure the addr_string field is not
1699 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1701 * sparc-nat.c (fetch_inferior_registers)
1702 (store_inferior_registers): Add comment on problem of LWP vs
1705 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1706 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1707 (lin_lwp_store_registers): Remove.
1708 (init_lin_lwp_ops): Use fetch_inferior_registers
1709 and store_inferior_registers directly.
1710 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1711 (store_inferior_registers): Likewise.
1714 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1716 * frame.h (get_frame_id): Convert to a function.
1717 (null_frame_id, frame_id_p): Declare.
1718 (frame_id_eq, frame_id_inner): Declare.
1719 (frame_id_build): New function.
1720 * frame.c (get_frame_id): Update. Use null_frame_id.
1721 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1723 (null_frame_id, frame_id_p): Define.
1724 (frame_id_eq, frame_id_inner): Define.
1725 (frame_id_build): New function.
1726 * varobj.c (varobj_create): Update.
1727 (varobj_update): Update.
1728 * valops.c (value_assign): Update.
1729 (new_root_variable): Update.
1730 * infrun.c (save_inferior_status): Update.
1731 * breakpoint.c (watch_command_1): Update.
1733 2002-12-03 J. Brobecker <brobecker@gnat.com>
1735 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1738 2002-12-03 Andrew Cagney <cagney@redhat.com>
1740 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1743 * PROBLEMS: Mention PR gdb/725.
1745 2002-12-03 Andreas Schwab <schwab@suse.de>
1747 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1749 2002-12-02 Adam Fedor <fedor@gnu.org>
1750 Klee Dienes <kdienes@apple.com>
1752 * objc-lang.c (objc_printstr): Add width arg to match
1754 (compare_selectors): Add 'const' to arg types.
1755 (compare_classes): Likewise.
1756 (find_imps): Cast msym pointer to avoid compiler warning.
1757 (print_object_command): Validate the address before
1758 passing it to the print routine.
1759 (find_objc_msgcall_submethod): Change function argument to
1761 * objc-lang.h: Add 'extern' to all function declarations.
1762 (value_nsstring): Add declaration.
1764 2002-12-02 J. Brobecker <brobecker@gnat.com>
1766 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1767 Fixes a build failure on HP/UX.
1769 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1771 (hpread_has_name): Advance declaration to avoid a compilation warning.
1772 (pst_syms_count): Add missing variable type. By change, the compiler
1773 was defaulting to int, which seems a good choice. Fixes a compilation
1775 (pst_syms_size): Likewise.
1777 2002-12-02 J. Brobecker <brobecker@gnat.com>
1779 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1780 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1781 later to set the proper gdbarch methods depending on the osabi.
1782 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1784 2002-12-02 J. Brobecker <brobecker@gnat.com>
1786 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1787 * osabi.c (gdb_osabi_name): Add strings images for the two new
1789 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1791 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1793 * MAINTAINERS (Java): Global maintainers are responible for Java.
1794 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1795 part Java maintainers.
1797 2002-12-02 J. Brobecker <brobecker@gnat.com>
1799 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1800 Fixes a compilation failure on AiX.
1802 2002-12-02 J. Brobecker <brobecker@gnat.com>
1804 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1805 why aix-thread.o is not listed.
1807 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1809 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1810 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1811 * gdbarch.h, gdbarch.c: Re-generate.
1812 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1813 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1814 * config/pa/tm-hppa.h, frame.h: Update.
1815 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1816 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1817 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1818 * cris-tdep.c, alpha-tdep.c: Update.
1819 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1820 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1821 (get_prev_frame): Ditto.
1823 2002-11-30 Andrew Cagney <cagney@redhat.com>
1825 * exec.c (xfer_memory): Replace boolean with int.
1826 * p-exp.y: Use 0 instead of false.
1827 * corelow.c (gdb_check_format): Change return type to int from
1829 * utils.c: Don't include <curses.h> or <term.h> first.
1831 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1833 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1834 (m68hc11_register_byte): Remove.
1835 (m68hc11_gdbarch_init): Don't set the above.
1837 2002-11-29 Andrew Cagney <cagney@redhat.com>
1839 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1840 by calling get_selected_frame.
1841 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1842 set_current_frame, create_new_frame, select_frame and
1844 * remote-e7000.c (e7000_start_remote): Ditto.
1845 * remote-mips.c (common_open): Ditto
1846 * remote-rdp.c (remote_rdp_open): Ditto.
1848 2002-11-29 Andreas Schwab <schwab@suse.de>
1850 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1851 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1852 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1853 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1854 read_memory_unsigned_integer instead of read_memory_integer when
1855 dealing with addresses and instruction opcodes.
1856 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1857 (m68k_linux_frame_saved_pc): Likewise.
1859 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1861 * stack.c (selected_frame, select_frame): Move from here ...
1862 * frame.c (selected_frame, select_frame): ... to here. Include
1864 * Makefile.in (frame.o): Update dependencies.
1865 * frame.c (get_selected_frame): New function.
1866 * frame.h (get_selected_frame): Declare.
1867 (deprecated_selected_frame): Rename selected_frame.
1868 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1869 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1870 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1871 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1872 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1873 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1874 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1875 * z8k-tdep.c, cli/cli-cmds.c: Update.
1877 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1879 * frame.h (get_selected_block): Add comments.
1881 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1883 * frame.c (pc_notcurrent): New function.
1884 (find_frame_sal): New function.
1885 * frame.h (find_frame_sal): Declare.
1886 (struct symtab_and_line): Add opaque declaration.
1887 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1889 (frame_info): Ditto.
1890 * ada-lang.c (find_printable_frame): Ditto.
1892 2002-11-28 J. Brobecker <brobecker@gnat.com>
1894 * configure.in: Check that the pthdebug library is recent enough
1895 before enabling thread support on native AiX.
1896 * configure: Regenerate.
1898 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1899 from the list of object files as it is now appended by configure
1900 if thread support is enabled.
1901 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1902 if thread support is enabled.
1904 2002-11-28 Andrew Cagney <cagney@redhat.com>
1906 * stack.c (get_selected_block): In-line get_current_block.
1907 * frame.h (get_current_block): Delete declaration.
1908 * blockframe.c (get_current_block): Delete function.
1910 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1912 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1913 USE_GENERIC_DUMMY_FRAMES.
1914 * gdbarch.h, gdbarch.c: Regenerate.
1915 * valops.c, frame.c: Update.
1916 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1917 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1918 * config/pa/tm-hppa.h, blockframe.c: Update.
1919 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1920 * m68k-tdep.c, alpha-tdep.c: Ditto.
1922 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1923 * mips-tdep.c: Ditto.
1925 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1927 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1928 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1929 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1930 * gdbarch.c, gdbarch.h: Re-generate.
1931 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1932 (CALL_DUMMY_LOCATION): Delete macro definition.
1933 (PC_IN_CALL_DUMMY): Delete macro definitions.
1935 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1936 default is already generic_pc_in_call_dummy.
1937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1938 * v850-tdep.c (v850_gdbarch_init): Ditto.
1939 * sh-tdep.c (sh_gdbarch_init): Ditto.
1940 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1941 * mips-tdep.c (mips_gdbarch_init): Ditto.
1942 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1943 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1944 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1945 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1946 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1947 * avr-tdep.c (avr_gdbarch_init): Ditto.
1949 * arm-tdep.c (arm_gdbarch_init): Do not set
1950 use_generic_dummy_frames, default is already 1.
1951 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1952 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1953 * v850-tdep.c (v850_gdbarch_init): Ditto.
1954 * sh-tdep.c (sh_gdbarch_init): Ditto.
1955 * s390-tdep.c (s390_gdbarch_init): Ditto.
1956 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1957 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1958 * mips-tdep.c (mips_gdbarch_init): Ditto.
1959 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1961 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1962 * i386-tdep.c (i386_gdbarch_init): Ditto.
1963 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1964 * frv-tdep.c (frv_gdbarch_init): Ditto.
1965 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1966 * cris-tdep.c (cris_gdbarch_init): Ditto.
1967 * avr-tdep.c (avr_gdbarch_init): Ditto.
1969 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1970 call_dummy_location, default is already AT_ENTRY_POINT.
1971 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1972 * v850-tdep.c (v850_gdbarch_init): Ditto.
1973 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1974 * sh-tdep.c (sh_gdbarch_init): Ditto.
1975 * s390-tdep.c (s390_gdbarch_init): Ditto.
1976 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1977 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1978 * mips-tdep.c (mips_gdbarch_init): Ditto.
1979 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1981 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1982 * i386-tdep.c (i386_gdbarch_init): Ditto.
1983 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1984 * frv-tdep.c (frv_gdbarch_init): Ditto.
1985 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1986 * cris-tdep.c (cris_gdbarch_init): Ditto.
1987 * avr-tdep.c (avr_gdbarch_init): Ditto.
1988 * arm-tdep.c (arm_gdbarch_init): Ditto.
1989 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1991 2002-11-28 Andrew Cagney <cagney@redhat.com>
1993 * frame.h: Update comments on set_current_frame, create_new_frame,
1994 flush_cached_frames, reinit_frame_cache, select_frame and
1997 2002-11-27 Andrew Cagney <cagney@redhat.com>
1999 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2000 deprecated pc_in_call_dummy function.
2001 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2002 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2003 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2004 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2005 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2007 2002-11-26 Martin M. Hunt <hunt@redhat.com>
2009 * Makefile.in: Remove Tix dependencies.
2010 * acinclude.m4: Ditto.
2011 * aclocal.m4: Ditto.
2012 * configure.in: Ditto.
2013 * configure: Regenerated.
2015 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2017 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2018 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2019 * gdbarch.c: Re-generate.
2021 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2023 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2024 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2025 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2026 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2027 pc_in_call_dummy_at_entry_point.
2028 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2029 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2030 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2031 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2032 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2033 pc_in_call_dummy_on_stack.
2034 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2035 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2036 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2037 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2038 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2040 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2042 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2043 pc_in_call_dummy_before_text_end
2044 (deprecated_pc_in_call_dummy_after_text_end): Rename
2045 pc_in_call_dummy_after_text_end.
2046 (deprecated_pc_in_call_dummy_on_stack): Rename
2047 pc_in_call_dummy_on_stack.
2048 (deprecated_pc_in_call_dummy_at_entry_point): Rename
2049 pc_in_call_dummy_at_entry_point.
2050 * m68k-tdep.c (m68k_gdbarch_init): Update.
2051 * s390-tdep.c (s390_gdbarch_init): Update.
2052 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2053 * vax-tdep.c (vax_gdbarch_init): Update.
2054 * sparc-tdep.c (sparc_gdbarch_init): Update.
2055 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2056 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2057 * i386-tdep.c (i386_gdbarch_init): Update.
2058 * frv-tdep.c (frv_gdbarch_init): Update.
2059 * cris-tdep.c (cris_gdbarch_init): Update.
2060 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2061 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2062 (deprecated_pc_in_call_dummy_after_text_end)
2063 (deprecated_pc_in_call_dummy_on_stack)
2064 (deprecated_pc_in_call_dummy_at_entry_point): Update.
2065 * alpha-tdep.c (alpha_gdbarch_init): Update.
2067 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
2069 * acconfig.h (HAVE_PREAD64): Add.
2070 * configure.in: Check for pread64.
2071 * config.in: Regenerated.
2072 * configure: Regenerated.
2073 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2074 * linux-proc.c (linux_proc_xfer_memory): New function.
2075 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2077 2002-11-25 David Carlton <carlton@math.stanford.edu>
2079 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2082 2002-11-25 Andrew Cagney <ac131313@redhat.com>
2084 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2085 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2087 2002-11-25 Jim Blandy <jimb@redhat.com>
2089 * symfile.c (init_objfile_sect_indices): New function.
2090 (default_symfile_offsets): Move the section-index-initializing
2091 stuff into init_objfile_sect_indices, and call that.
2093 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2094 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2096 * symfile.c (syms_from_objfile): Adjust indentation.
2098 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2099 || info_verbose isn't true.
2101 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2103 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2104 default to get_frame_base.
2105 * gdbarch.h, gdbarch.c: Regenerate.
2106 * arch-utils.c (default_frame_address): Delete function.
2107 * arch-utils.h (default_frame_address): Delete declaration
2109 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2111 * varobj.c (find_frame_addr_in_frame_chain):
2112 Use get_frame_base instead of FRAME_FP,
2115 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2117 * frame.h (FRAME_FP): Delete macro.
2118 (get_frame_base): New function declaration.
2119 * frame.c (get_frame_base): New function.
2120 (get_frame_id): Use ->frame.
2121 (frame_find_by_id): Rewrite to use get_frame_id.
2122 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2123 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2124 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2125 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2126 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2127 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2128 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2130 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2132 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2134 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2136 * frame.c (set_unwind_by_pc): Revert change below, use
2138 (get_prev_frame): Ditto.
2140 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2142 * dummy-frame.c (pc_in_dummy_frame): New function.
2143 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2144 (find_dummy_frame): Update comment.
2145 (generic_pop_current_frame): Use get_frame_type.
2146 * dummy-frame.h (pc_in_dummy_frame): Declare.
2147 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2148 (create_new_frame): Use pc_in_dummy_frame.
2149 (get_prev_frame): Use pc_in_dummy_frame.
2150 (frame_saved_regs_register_unwind): Use get_prev_frame.
2151 (deprecated_generic_get_saved_register): Use get_prev_frame.
2153 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2155 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2157 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2158 (varobj_create): Note that frame ID should be used.
2159 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2161 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2163 * breakpoint.c: Include "gdb_assert.h".
2164 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2166 * Makefile.in (breakpoint.o): Update dependencies.
2167 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2168 deprecated_frame_in_dummy.
2169 * stack.c (print_frame_info_base): Ditto.
2170 (frame_info): Ditto.
2171 (print_frame_info_base): Ditto. Delete dead code.
2173 2002-11-23 Andreas Schwab <schwab@suse.de>
2175 * Makefile.in (m68k_tdep_h): Define.
2176 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2177 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2178 * m68k-tdep.c: Move register number enum ...
2179 * m68k-tdep.h: ... to this new file and rename the constants from
2180 E_* to M68K_*. All uses changed.
2181 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2182 * abug-rom.c: Include "m68k-tdep.h". Use
2183 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2184 * cpu32bug-rom.c: Likewise.
2185 * dbug-rom.c: Likewise.
2186 * m68k-tdep.c: Likewise.
2187 * m68klinux-nat.c: Likewise.
2188 * remote-est.c: Likewise.
2189 * rom68k-rom.c: Likewise.
2190 * config/m68k/tm-linux.h: Likewise.
2192 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2194 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2195 dummy frame initialization code.
2196 * mips-tdep.c (mips_gdbarch_init): Ditto.
2198 2002-11-22 Christopher Faylor <cgf@redhat.com>
2200 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2203 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2205 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2206 to default_frame_address.
2207 * gdbarch.h, gdbarch.c: Re-generate.
2209 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2210 or frame_locals_address to default_frame_address.
2211 * m68k-tdep.c (m68k_gdbarch_init): Update.
2212 * i386-tdep.c (i386_gdbarch_init): Update.
2213 * frv-tdep.c (frv_gdbarch_init): Update.
2214 * sh-tdep.c (sh_gdbarch_init): Update.
2215 * v850-tdep.c (v850_gdbarch_init): Update.
2216 * sparc-tdep.c (sparc_gdbarch_init): Update.
2217 * mips-tdep.c (mips_gdbarch_init): Update.
2218 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2219 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2220 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2222 * cris-tdep.c (cris_frame_args_address): Delete function.
2223 (cris_frame_locals_address): Delete function.
2224 (cris_gdbarch_init): Do not set frame_args_address or
2225 frame_locals_address.
2227 2002-11-22 Michael Snyder <msnyder@redhat.com>
2229 * thread-db.c (thread_db_load): Tell the user what's going on
2230 if dlopen fails on libthread_db.
2232 2002-11-23 Andreas Schwab <schwab@suse.de>
2234 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2235 invariant return values.
2237 2002-11-22 Andreas Schwab <schwab@suse.de>
2239 * valops.c (value_slice): Move declaration of `offset' to avoid
2242 2002-11-22 Christopher Faylor <cgf@redhat.com>
2244 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2245 (struct so_stuff): Add end_addr field.
2246 (register_loaded_dll): Calculate and store end address of loaded dll.
2247 (solib_address): New function.
2248 (child_solib_loaded_library_pathname): Pass carefully constructed
2249 section info to safe_symbol_file_add rather than ignoring it.
2250 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2252 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2253 (child_create_inferior): Fix a compiler warning.
2254 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2255 (solib_address): Declare new function.
2257 2002-11-22 Andreas Schwab <schwab@suse.de>
2259 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2262 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2264 * maint.c (_initialize_maint_cmds): Fix typo. From
2265 Francesco Potorti` <pot@gnu.org>.
2267 2002-11-21 Andrew Cagney <cagney@redhat.com>
2269 * mips-tdep.c (mips_dump_tdep): Delete references to
2270 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2271 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2272 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2273 * printcmd.c (build_address_symbolic): Delete calls to
2274 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2275 (address_info): Ditto.
2278 2002-11-19 Klee Dienes <kdienes@apple.com>
2279 Adam Fedor <fedor@gnu.org>
2281 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2282 the ability to explicitly specify the quote characters and word
2283 break characters; if NULL is specified for either, use the old
2284 behavior of using the characters used by the completer.
2285 (skip_chars): New function. Convenience wrapper around
2286 skip_quoted_chars to provide the original skip_chars behavior.
2287 * completer.h (skip_quoted_chars): Add prototype.
2289 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2291 Problems reported by Paul Eggert.
2292 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2294 2002-11-19 Andreas Schwab <schwab@suse.de>
2296 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2297 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2298 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2299 (m68k_linux_frame_saved_pc): Move to ...
2300 * m68klinux-tdep.c: ... here. New file.
2301 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2302 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2304 2002-11-19 Adam Fedor <fedor@gnu.org>
2306 * objc-exp.y: Revert to old skip_quoted usage.
2308 2002-11-19 Adam Fedor <fedor@gnu.org>
2310 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2311 (objc_lang_h): Define.
2312 (YYFILES): Add objc-exp.tab.c.
2313 (local-maintainer-clean): Remove objc-exp.tab.c.
2314 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2316 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2318 * p-exp.y (typecast rule): Add automatic dereference of
2319 pascal classes if needed.
2320 (THIS): Set current_type.
2321 Automatically dereference pascal classes.
2322 (typebase rule): Add ^typebase recognition.
2324 2002-11-18 Adam Fedor <fedor@gnu.org>
2326 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2327 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2328 (op_name): Handle OP_OBJC_SELF.
2329 * Makefile.in (expprint.o): Add additional depends.
2331 2002-11-18 Adam Fedor <fedor@gnu.org>
2333 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2334 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2335 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2336 * objc-exp.y: Likewise.
2338 2002-11-18 Adam Fedor <fedor@gnu.org>
2340 * gdb/parser-defs.h: (struct objc_class_str): New structure
2341 for parsing ObjC classes.
2343 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2345 * stack.c (frame_relative_level): Copy function from here ...
2346 * frame.c (frame_relative_level): ...to here.
2348 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2350 * frame.h (enum frame_type): Define.
2351 (get_frame_type): Declare.
2352 (struct frame_info): Add field `type'. Delete field
2353 signal_handler_caller.
2354 (deprecated_set_frame_signal_handler_caller): Declare.
2355 * frame.c (get_frame_type): New function.
2356 (deprecated_set_frame_type): New function.
2357 (create_new_frame): Set the frame's type.
2358 (get_prev_frame): Similar.
2359 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2360 * s390-tdep.c: Ditto.
2361 * m68klinux-nat.c: Ditto.
2362 * ns32k-tdep.c: Ditto.
2363 * x86-64-linux-tdep.c: Ditto.
2364 * vax-tdep.c: Ditto.
2365 * rs6000-tdep.c: Ditto.
2366 * ppc-linux-tdep.c: Ditto.
2367 * i386-interix-tdep.c: Ditto.
2368 * mips-tdep.c: Ditto.
2369 * m68k-tdep.c: Ditto.
2370 * hppa-tdep.c: Ditto.
2371 * ia64-tdep.c: Ditto.
2372 * cris-tdep.c: Ditto.
2373 * arm-tdep.c: Ditto.
2374 * alpha-tdep.c: Ditto.
2375 * i386-tdep.c: Ditto.
2377 * ada-lang.c: Ditto.
2378 * blockframe.c: Update.
2379 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2380 deprecated_set_frame_type instead of signal_handler_caller.
2381 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2382 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2383 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2385 2002-11-18 Klee Dienes <kdienes@apple.com>
2387 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2389 2002-11-18 Klee Dienes <kdienes@apple.com>
2391 * buildsym.c (pop_context): Add comment.
2393 2002-11-18 Klee Dienes <kdienes@apple.com>
2395 * buildsym.h (pop_context): Convert to function, defined in
2397 * buildsym.c: Include gdb_assert.h.
2398 (pop_context): Implement as C function. Add check for stack
2400 * dbxread.c (process_one_symbol): Complain and stop processing
2401 that symbol if we are already at the top of the context stack for
2402 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2403 when processing N_RBRAC.
2405 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2407 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2409 (struct target_waitstatus): Add opaque definition.
2410 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2411 * exec.c (init_exec_ops): Likewise.
2412 * fork-child.c (clone_and_follow_inferior): Remove.
2413 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2414 * inferior.h (clone_and_follow_inferior): Remove prototype.
2415 * infrun.c (follow_fork_mode_both): Remove.
2416 (follow_fork_mode_kind_names): Remove commented out "both".
2417 (follow_inferior_fork): Remove follow_fork_mode_both support.
2418 * inftarg.c (child_clone_and_follow_inferior): Remove.
2419 (child_post_follow_inferior_by_clone): Remove.
2420 (init_child_ops): Don't set to_clone_and_follow_inferior
2421 or to_post_follow_inferior_by_clone.
2422 * target.c (default_clone_and_follow_inferior): Remove.
2423 (cleanup_target): Don't set to_clone_and_follow_inferior
2424 or to_post_follow_inferior_by_clone.
2425 (find_default_clone_and_follow_inferior): Remove.
2426 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2427 (debug_to_clone_and_follow_inferior): Remove.
2428 (debug_to_post_follow_inferior_by_clone): Remove.
2429 (setup_target_debug): Don't set to_clone_and_follow_inferior
2430 or to_post_follow_inferior_by_clone.
2431 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2432 and to_post_follow_inferior_by_clone.
2433 (child_clone_and_follow_inferior): Remove prototype.
2434 (child_post_follow_inferior_by_clone): Remove prototype.
2435 (target_clone_and_follow_inferior): Remove macro.
2436 (target_post_follow_inferior_by_clone): Remove macro.
2437 (find_default_clone_and_follow_inferior): Remove prototype.
2439 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2441 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2442 inferior_has_vforked, and inferior_has_execd instead of
2443 target_has_forked, target_has_vforked, and target_has_execd.
2444 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2445 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2446 (CHILD_WAIT): Define.
2447 (child_wait): Add prototype.
2448 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2450 (hpux_has_vforked): Likewise, from child_has_vforked.
2451 (hpux_has_execd): Likewise, from child_has_execd.
2452 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2453 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2454 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2455 and hpux_has_syscall_event instead of the target hooks.
2456 * infrun.c (inferior_has_forked, inferior_has_vforked)
2457 (inferior_has_execd): New functions.
2458 * inftarg.c (not_same_real_pid): Remove.
2459 (child_wait): Remove references to not_same_real_pid,
2460 target_has_forked, target_has_vforked, target_has_execd,
2461 and target_has_syscall_event.
2462 (child_has_forked, child_has_vforked, child_has_execd)
2463 (child_has_syscall_event): Remove.
2464 (init_child_ops): Remove references to child_has_forked,
2465 child_has_vforked, child_has_execd, and child_has_syscall_event.
2466 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2467 (hpux_has_vforked): Likewise, from child_has_vforked.
2468 (hpux_has_execd): Likewise, from child_has_execd.
2469 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2470 * target.c (cleanup_target): Remove references to
2471 to_has_forked, to_has_vforked, to_has_execd, and
2472 to_has_syscall_event.
2473 (update_current_target): Likewise.
2474 (setup_target_debug): Likewise.
2475 (debug_to_has_forked): Remove.
2476 (debug_to_has_vforked): Remove.
2477 (debug_to_has_execd): Remove.
2478 (debug_to_has_syscall_event): Remove.
2479 * target.h (struct target_ops): Remove to_has_forked.
2480 to_has_vforked, to_has_execd, and to_has_syscall_event.
2481 (child_has_forked, child_has_vforked, child_has_execd)
2482 (child_has_syscall_event): Remove prototypes.
2483 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2485 (target_has_forked, target_has_vforked, target_has_execd)
2486 (target_has_syscall_event): Remove macros.
2488 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2490 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2491 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2492 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2493 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2494 * target.c (cleanup_target): Remove reference to
2495 to_can_follow_vfork_prior_to_exec.
2496 (update_current_target): Likewise.
2497 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2498 (setup_target_debug): Remove reference to
2499 to_can_follow_vfork_prior_to_exec.
2500 * target.h (struct target_ops): Remove
2501 to_can_follow_vfork_prior_to_exec.
2502 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2503 (target_can_follow_vfork_prior_to_exec): Remove definition.
2504 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2506 * infrun.c (follow_vfork_when_exec): Remove.
2507 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2508 (follow_exec): Likewise.
2509 (handle_inferior_event): Likewise.
2510 (keep_going): Likewise.
2512 2002-11-15 Andrew Cagney <cagney@redhat.com>
2514 * frame.c (generic_unwind_get_saved_register): Make static.
2515 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2516 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2517 defaults to generic_unwind_get_saved_register.
2518 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2519 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2520 * frv-tdep.c (frv_gdbarch_init): Ditto.
2521 * i386-tdep.c (i386_gdbarch_init): Ditto.
2522 * s390-tdep.c (s390_gdbarch_init): Ditto.
2523 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2524 * v850-tdep.c (v850_gdbarch_init): Ditto.
2525 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2526 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2527 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2529 2002-11-15 Andrew Cagney <cagney@redhat.com>
2531 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2534 2002-11-15 Andrew Cagney <cagney@redhat.com>
2536 * frame.h (sigtramp_saved_pc): Delete declaration.
2537 * blockframe.c (sigtramp_saved_pc): Delete function.
2538 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2539 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2540 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2541 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2543 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2545 * frame.c (frame_pc_unwind): New function.
2546 (frame_saved_regs_pc_unwind): New function.
2547 (frame_register_unwind): Pass unwind_cache instead of
2548 register_unwind_cache.
2549 (set_unwind_by_pc): Add unwind_pc parameter, set.
2550 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2551 (get_prev_frame): Ditto.
2552 * frame.h (frame_pc_unwind_ftype): Declare.
2553 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2554 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2555 (frame_pc_unwind): Declare.
2556 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2557 (struct dummy_frame): Add comment mentioning that values are for
2559 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2560 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2561 (generic_file_frame_chain_valid): Ditto.
2562 * stack.c (frame_info): Ditto.
2564 2002-11-15 David Carlton <carlton@math.stanford.edu>
2566 * linespec.c (locate_first_half): New function.
2567 (decode_line_1): Move code into locate_first_half.
2569 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2571 * complaints.h: Add comment explaining how to eliminate a
2572 deprecated_complain call.
2573 * complaints.h: Fix spelling errors.
2575 2002-11-15 David Carlton <carlton@math.stanford.edu>
2577 * printcmd.c: Remove #include "disasm.h".
2579 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2581 * frame.h: Move the most relevant interface functions to the start
2584 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2586 * regcache.h (deprecated_registers): Rename registers.
2587 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2588 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2589 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2590 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2591 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2592 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2593 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2594 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2595 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2596 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2597 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2598 * v850ice.c: Update.
2600 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2602 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2605 2002-11-13 Andrew Cagney <cagney@redhat.com>
2607 * regcache.h (deprecated_read_register_bytes): Rename
2608 read_register_bytes.
2609 (deprecated_write_register_bytes): Rename write_register_bytes.
2610 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2611 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2612 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2613 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2614 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2615 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2616 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2617 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2618 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2619 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2620 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2621 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2622 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2623 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2625 2002-11-13 Jim Blandy <jimb@redhat.com>
2627 * findvar.c (read_var_value): Doc fix.
2629 2002-11-13 Andrew Cagney <cagney@redhat.com>
2631 * regcache.c (struct regcache): Replace passthough_p with
2633 (regcache_xmalloc): Initialize readonly_p.
2634 (build_regcache): Initialize readonly_p.
2635 (regcache_save): New function.
2636 (regcache_restore): New function.
2637 (regcache_cpy): Re-implement using regcache_save and
2639 (regcache_raw_read): Update.
2640 (regcache_cooked_read): When a read-only cache, checked for cached
2641 pseudo register values.
2642 (regcache_raw_write): Assert that the cache is not read-only.
2643 Remove code handling a non-passthrough cache.
2644 * regcache.h (regcache_save): Declare.
2645 (regcache_restore): Declare.
2647 2002-11-13 Andrew Cagney <cagney@redhat.com>
2649 * regcache.c (struct regcache_descr): Add fields
2650 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2651 (init_legacy_regcache_descr): Compute the size of a cooked
2652 register cache and then assign that to sizeof_raw_registers. Set
2653 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2654 (init_legacy_regcache_descr): Ditto.
2656 2002-11-13 Andrew Cagney <cagney@redhat.com>
2658 * regcache.c (register_buffer): Move to near start of file, update
2660 (regcache_raw_read): Use.
2661 (regcache_raw_write): Use.
2662 (struct regcache): Rename raw_registers to registers and
2663 raw_register_valid_p to register_valid_p.
2664 (regcache_xmalloc): Update.
2665 (regcache_xfree): Update.
2666 (register_buffer): Update.
2667 (regcache_cpy): Update.
2668 (regcache_cpy_no_passthrough): Update.
2669 (regcache_valid_p): Update.
2670 (deprecated_grub_regcache_for_registers): Update.
2671 (deprecated_grub_regcache_for_register_valid): Update.
2672 (set_register_cached): Update.
2673 (regcache_raw_write): Update.
2675 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2677 * p-exp.y (name_not_typename): Use copy_name to
2678 set current_type variable for fields of THIS.
2680 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2682 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2683 * monitor.c (init_base_monitor_ops): Likewise.
2684 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2685 * remote-array.c (init_array_ops): Likewise.
2686 * remote-e7000.c (init_e7000_ops): Likewise.
2687 * remote-es.c (init_es1800_ops): Likewise.
2688 (init_es1800_child_ops): Likewise.
2689 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2690 * remote-sim.c (init_gdbsim_ops): Likewise.
2691 * remote-st.c (init_st2000_ops): Likewise.
2692 * sol-thread.c (init_sol_core_ops): Likewise.
2693 (init_sol_thread_ops): Likewise.
2694 * v850ice.c (init_850ice_ops): Likewise.
2695 * win32-nat.c (init_child_ops): Likewise.
2696 * wince.c (init_child_ops): Likewise.
2698 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2700 * utils.c (gdb_realpath): Make rp a constant pointer.
2702 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2704 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2705 a constant buffer; cannonicalize_file_name(); realpath() with a
2706 pathconf() defined buffer, xstrdup().
2708 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2710 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2711 to hang2.C; hang3.c to hang3.C.
2713 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2715 * findvar.c (read_var_value): Reenable TLS code.
2717 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2718 Jim Blandy <jimb@redhat.com>
2720 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2721 * target.c (update_current_target): Add
2722 to_get_thread_local_address.
2723 * target.h (to_get_thread_local_address): Export.
2724 (target_get_thread_local_address): Define.
2725 (target_get_thread_local_address_p): Define.
2726 * thread-db.c: Include solib-svr4.h.
2727 (td_thr_tls_get_addr_p): Define.
2728 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2729 (thread_db_get_thread_local_address): New function.
2730 (init_thread_db_ops): Initialize to_get_thread_local_address.
2731 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2732 * configure: Regenerate.
2733 * config.in: Regenerate.
2735 2002-11-11 David Carlton <carlton@math.stanford.edu>
2737 * linespec.c (set_flags): New function.
2738 (decode_line_1): Move code into set_flags.
2740 2002-11-11 David Carlton <carlton@math.stanford.edu>
2742 * linespec.c (decode_line_1): Move chunks of code to separate
2744 (initialize_defaults): New function.
2745 (decode_indirect): New function.
2747 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2749 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2750 instead of void_code_ptr.
2751 (sigtramp_saved_pc): Ditto.
2753 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2756 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2758 * gdbtypes.h (struct main_type): Move artificial flag out of
2759 loc. New member of ``struct field'' named static_kind. Reduce
2760 overloaded meaning of bitsize.
2761 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2762 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2763 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2765 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2767 (template_to_fixed_record_type, template_to_static_fixed_type)
2768 (to_record_with_fixed_variant_part): Likewise.
2769 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2770 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2771 * dwarfread.c (struct_type, enum_type): Likewise.
2772 * hpread.c (hpread_read_enum_type)
2773 (hpread_read_function_type, hpread_read_doc_function_type)
2774 (hpread_read_struct_type): Likewise.
2775 * mdebugread.c (parse_symbol): Likewise.
2777 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2779 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2780 * stack.c (print_frame_info_base): Update.
2781 (print_frame_info_base, frame_info): Update.
2782 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2783 (sparc_frame_saved_pc): Update.
2784 * ada-lang.c (find_printable_frame): Update.
2785 * breakpoint.c (deprecated_frame_in_dummy): Update.
2787 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2789 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2791 (regmap): Extend to cover all registers.
2792 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2793 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2795 (fetch_register, sore_register): Simplify.
2796 (old_fetch_inferior_registers, old_store_inferior_registers):
2798 (cannot_fetch_register, cannot_store_register): Change
2799 implementation to use regmap array to decide which registers
2800 cannot be fetched/stored. This removes $orig_eax from the
2801 registers that cannot be fetched/stored.
2802 (fetch_inferior_registers): Call fetch_register directly instead
2803 of calling old_fetch_inferior_registers.
2804 (store_inferior_registers): Call store_register directly instead
2805 of calling old_store_inferior_registers.
2806 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2807 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2808 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2810 2002-11-09 Klee Dienes <kdienes@apple.com>
2812 * i387-tdep.c (i387_supply_register): When called with NULL as a
2813 buffer, mark the register as not provided (to mirror the behavior
2814 of supply_register).
2815 (i387_supply_fxsave): Ditto.
2816 (i387_supply_fsave): Ditto (inherits the behavior from
2817 i387_supply_register).
2819 2002-11-09 Klee Dienes <kdienes@apple.com>
2821 * blockframe.c (sigtramp_saved_pc): Use
2822 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2823 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2824 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2826 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2828 * frame.c (get_prev_frame): Test prev_p to identify a previously
2829 unwound frame. Initialize prev_p.
2830 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2833 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2835 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2836 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2837 more comments. Zap dead code.
2839 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2841 * infcmd.c (print_vector_info, print_float_info): Move code that
2842 checks whether the target has any registers and whether there is a
2843 selected frame up, such that it is also used if a target provides
2844 multi-arch definitions of these functions.
2846 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2848 * Makefile.in (DESTDIR): Define.
2849 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2852 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2853 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2855 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2857 * i386-linux-tdep.c: Include "reggroups.h".
2858 (i386_linux_register_reggroup_p): New function.
2859 (i386_linux_init_abi): Set register_reggroup_p to
2860 i386_linux_register_reggroup_p.
2861 * i386-tdep.h (i386_register_reggroup_p): Declare.
2862 * i386-tdep.c: Include "reggroups.h".
2863 (i386_init_reggroups): New function.
2864 (i386_add_reggroups): New function.
2865 (i386_register_reggroup_p): New function.
2866 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2867 (_initialize_i386_tdep): Call i386_init_reggroups.
2868 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2871 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2873 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2874 request that's available in *BSD.
2876 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2878 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2881 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2883 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2884 * dummy-frame.c (find_dummy_frame): Rename
2885 generic_find_dummy_frame, make static. Return the dummy frame
2886 instead of the regcache.
2887 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2888 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2889 (dummy_frame_register_unwind): Rename
2890 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2891 * dummy-frame.h (dummy_frame_register_unwind): Rename
2892 generic_call_dummy_register_unwind.
2894 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2896 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2897 except the inclusion of "i386/tm-i386.h", to...
2898 * config/i386/nm-i386v42mp.h: ...here.
2899 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2901 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2903 * Makefile.in (frame.o): Update dependencies.
2904 * blockframe.c (current_frame, frame_obstack_alloc)
2905 (frame_saved_regs_zalloc, get_current_frame)
2906 (set_current_frame, create_new_frame)
2907 (set_unwind_by_pc, get_next_frame)
2908 (flush_cached_frames, reinit_frame_cache)
2909 (frame_saved_regs_register_unwind)
2910 (deprecated_generic_get_saved_register)
2911 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2912 (_initialize_blockframe): Move frame code from here...
2913 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2914 "annotate.h" and "dummy-frame.h".
2915 (_initialize_frame): New function.
2917 2002-11-08 Jim Blandy <jimb@redhat.com>
2919 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2920 when we finish a function a context.
2921 * buildsym.h (outermost_context_p): New macro.
2922 (Bug analyzed by David Edelsohn.)
2924 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2926 * blockframe.c: Include "dummy-frame.h".
2927 (struct dummy_frame, dummy_frame_stack)
2928 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2929 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2930 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2931 (generic_save_call_dummy_addr, generic_pop_current_frame)
2932 (generic_pop_dummy_frame, generic_fix_call_dummy)
2933 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2934 dummy frame code from here...
2935 * dummy-frame.c: ...to here. New file.
2936 * dummy-frame.h: New file.
2937 (generic_call_dummy_register_unwind): Declare.
2938 (generic_find_dummy_frame): Declare.
2939 * Makefile.in (SFILES): Add dummy-frame.c.
2940 (dummy-frame.o): Specify dependencies.
2941 (dummy_frame_h): Define.
2942 (COMMON_OBS): Add dummy-frame.o.
2943 (blockframe.o): Update dependencies.
2945 2002-11-08 Jim Blandy <jimb@redhat.com>
2947 * dwarf2read.c (read_func_scope): Restore local_symbols and
2948 param_symbols after we finish the function context. (Based on a
2949 patch from David Edelsohn.)
2951 2002-11-08 David Carlton <carlton@math.stanford.edu>
2953 * linespec.c (symbol_found): New function.
2954 (minsym_found): New function.
2955 (decode_line_1): Separate out some code into separate functions.
2957 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2959 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2960 the benefit of the interix target.
2961 * i386-tdep.h (i386_frameless_signal_p): Declare.
2963 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2965 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2966 declaration that snuck in from change below.
2968 2002-11-06 Andrew Cagney <cagney@redhat.com>
2970 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2972 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2973 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2974 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2975 (i386_mxcsr_regnum_p): new function. Use instead of
2977 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2978 (i386_sse_regnum_p): Declare.
2979 (i386_mxcsr_regnum_p): Declare.
2980 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2981 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2982 (IS_FP_REGNUM): Update definition.
2983 (IS_FPU_CTRL_REGNUM): Update definition..
2984 (IS_SSE_REGNUM): Update definition..
2985 * i386v-nat.c (register_u_addr): Update.
2986 * go32-nat.c (fetch_register): Update.
2987 (store_register): Update.
2989 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2991 Preparation work to convert the hppa targets to multiarch partial.
2993 * hppa-tdep.c: Add new functions replacing macro bodies from
2994 config/pa/tm-hppa.h. These function will be used to initialize
2995 the gdbarch structure. Import some comments from tm-hppa.h,
2996 and place them where appropriate, to avoid loosing them when
2997 we cleanup this file.
2998 (hppa_reg_struct_has_addr): New function.
2999 (hppa_inner_than): New function.
3000 (hppa_stack_align): New function.
3001 (hppa_pc_requires_run_before_use): New function.
3002 (hppa_instruction_nullified): New function.
3003 (hppa_register_byte): New function.
3004 (hppa_register_virtual_type): New function.
3005 (hppa_store_struct_return): New function.
3006 (hppa_cannot_store_register): New function.
3007 (hppa_frame_args_address): New function.
3008 (hppa_frame_locals_address): New function.
3009 (hppa_smash_text_address): New function.
3010 (hppa_coerce_float_to_double): New function. Requires the inclusion
3013 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3015 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3016 gdbarch-eligible macro to a call to the new associated function
3017 created in hppa-tdep.c.
3018 (INNER_THAN): Likewise.
3019 (STACK_ALIGN): Likewise.
3020 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3021 (INSTRUCTION_NULLIFIED): Likewise.
3022 (REGISTER_BYTE): Likewise.
3023 (REGISTER_VIRTUAL_TYPE): Likewise.
3024 (STORE_STRUCT_RETURN): Likewise.
3025 (CANNOT_STORE_REGISTER): Likewise.
3026 (FRAME_ARGS_ADDRESS): Likewise.
3027 (FRAME_LOCALS_ADDRESS): Likewise.
3028 (SMASH_TEXT_ADDRESS): Likewise.
3029 (COERCE_FLOAT_TO_DOUBLE): Likewise.
3030 (ABOUT_TO_RETURN): Delete, as no longer used.
3032 2002-11-07 Fernando Nasser <fnasser@redhat.com>
3034 * printcmd.c (disassemble_command): Remove obsolete function.
3035 (_initialize_printcmd): Do not create disassemble command here.
3036 * cli/cli-cmds.c (disassemble_command): New function. Implements
3037 disassemble command.
3038 (init_cli_cmds): Create disassemble command here instead.
3040 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3042 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3044 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3046 * regcache.h (regcache_cooked_read_using_offset_hack)
3047 (regcache_cooked_write_using_offset_hack): Delete declarations.
3048 (register_changed): Delete declaration.
3049 * regcache.c (regcache_cooked_read_using_offset_hack)
3050 (regcache_cooked_write_using_offset_hack): Delete functions.
3051 (cooked_xfer_using_offset_hack): Delete function.
3052 (register_changed): Delete function.
3054 2002-11-07 Jim Blandy <jimb@redhat.com>
3056 * macroscope.c: #include "complaints.h".
3057 (sal_macro_scope): Cope with filenames that appear in the symtabs,
3058 but not in the macro table.
3059 * Makefile.in (macroscope.o): Record dependency.
3061 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3063 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3065 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3067 * regcache.c (deprecated_registers_fetched): Update.
3068 * regcache.h (deprecated_registers_fetched): Rename
3070 * remote-vxsparc.c (vx_read_register): Update.
3071 * remote-vxmips.c (vx_read_register): Update.
3072 * remote-vx68.c (vx_read_register): Update.
3073 * irix5-nat.c (fetch_core_registers): Update.
3074 * mipsm3-nat.c (fetch_inferior_registers): Update.
3075 * sun3-nat.c (fetch_inferior_registers): Update.
3076 * symm-nat.c (fetch_inferior_registers): Update.
3077 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3078 (fetch_core_registers): Update.
3079 (fetch_kcore_registers): Update.
3080 * mips-nat.c (fetch_inferior_registers): Update.
3081 * corelow.c (get_core_registers): Update.
3082 * a68v-nat.c (fetch_inferior_registers): Update.
3084 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3086 Put in place the framework necessary for multiarching the hppa targets.
3087 * hppa-tdep.c (hppa_gdbarch_init): New function.
3088 (hppa_dump_tdep): New function.
3089 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3090 tdep structure dumper.
3091 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3092 until the multi-arching conversion has partially been completed.
3094 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3096 * valops.c (value_assign): Merge lval_register case into
3097 lval_reg_frame_relative. Use frame_register and
3098 regcache_cooked_write instead of get_saved_register and
3099 write_register_bytes. After flushing the register cache, try to
3100 re-select the selected frame.
3102 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3104 * regcache.h (deprecated_register_valid): Rename register_valid.
3105 * regcache.c: Update.
3106 * ia64-aix-nat.c: Update.
3107 * i386gnu-nat.c: Update.
3108 * alpha-nat.c: Update.
3109 * sparc-nat.c: Update.
3110 * lynx-nat.c: Update.
3111 * remote-mips.c: Update.
3113 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3115 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3116 to end of file, to be more consistent with the pratice followed
3119 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3121 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3122 (print_float_info): Print registers in float_reggroup.
3123 (print_vector_info): Print registers in vector_reggroup.
3124 (default_print_registers_info): When all, print registers in
3125 all_reggroup. Otherwize, print registers in general_reggroup.
3126 (registers_info): Rewrite. Add support for register groups.
3129 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3131 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3133 (symtab_symbol_info): Remove eons old ifdeffed out code.
3134 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3137 2002-11-06 Theodore A. Roth <troth@openavr.org>
3139 * c-exp.y: Add missing semi-colons.
3140 * f-exp.y: Add missing semi-colons.
3141 * m2-exp.y: Add missing semi-colons.
3142 * p-exp.y: Add missing semi-colons.
3143 Add empty action to start rule to avoid a type clash error when
3144 building with bison >= 1.50.
3146 2002-11-06 Jim Blandy <jimb@redhat.com>
3148 * macrotab.h (struct macro_source_file): Doc fix.
3150 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3152 * varobj.c (child_exists, cplus_number_of_children): Change
3153 STREQ macro references to strcmp.
3154 (cplus_name_of_child): Change code to handle the fact that
3155 fields are not necessarily contiguous with regards to their
3156 access control. This is a fix for PR gdb/792.
3158 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3160 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3161 * gdbarch.h, gdbarch.c: Regnerate.
3162 * frame.h (frame_register): Declare.
3163 * frame.c (frame_register): New function.
3164 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3165 GET_SAVED_REGISTER, otherwize call
3166 generic_unwind_get_saved_register.
3167 (frame_register_read): Use frame_register instead of
3170 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3172 From Jim Ingham <jingham@apple.com>:
3173 * event-top.c (gdb_disable_readline): New function.
3174 (_initialize_event_loop): Move comment.
3176 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3178 * event-loop.c (start_event_loop): Add comment.
3181 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3183 * infcmd.c (default_print_registers_info): Do not call
3184 PRINT_REGISTER_HOOK.
3186 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3188 * sparc-tdep.c (sparc_print_register_hook): Make static.
3189 (sparc_print_registers_info): New function.
3190 (sparc_do_registers_info): New function.
3191 (sparclet_print_registers_info): New function.
3192 (sparclet_do_registers_info): New function.
3193 (do_sparc_print_registers_info): New function.
3194 (sparc_print_registers): New static function, clone of infcmd.c's
3195 default_print_registers_info.
3196 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3197 (sparclet_do_registers_info): Declare.
3198 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3199 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3201 (sparc_do_registers_info): Declare.
3202 (PRINT_REGISTER_HOOK): Delete macro.
3203 (sparc_print_register_hook): Delete declaration.
3205 2002-11-05 David Carlton <carlton@math.stanford.edu>
3207 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3209 (lookup_symbol_aux_local): New function.
3210 (lookup_symbol_aux_symtabs): New function.
3211 (lookup_symbol_aux_psymtabs): New function.
3213 2002-11-05 David Carlton <carlton@math.stanford.edu>
3215 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3216 previous values of 'objfile' and 'block'.
3218 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3220 * values.c (value_change_enclosing_type): Set
3221 enclosing_type field correctly also for the case where
3222 more memory needs to be allocated.
3224 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3226 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3229 * i387-tdep.c (i387_print_float_info): Replace calls to
3230 register_read and deprecated_read_register_gen with calls to
3231 frame_register_read, and make the necessary adjustments to the
3234 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3236 * gdbarch.sh (register_reggroup_p): Allow default value.
3237 * gdbarch.h, gdbarch.c: Regenerate.
3239 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3241 * regcache.h: Add coment indicating replacements for deprecated
3244 2002-11-02 Andrew Cagney <cagney@redhat.com>
3246 * reggroups.h, reggroups.c: New files.
3247 * regcache.c: Include "reggroups.h".
3248 (enum regcache_dump_what): Add `regcache_dump_groups'.
3249 (regcache_dump): Contract size of the "Type" column. When
3250 specified, dump the register's groups.
3251 (maintenance_print_register_groups): New function.
3252 (_initialize_regcache): Add command `maint print register-groups'.
3253 * Makefile.in (COMMON_OBS): Add reggroups.o
3254 (SFILES): Add reggroups.c.
3255 (reggroups_h): Define.
3256 (regcache.o, gdbarch.o): Update dependencies.
3257 (reggroups.o): Specify dependencies.
3258 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3259 Add opaque declaration for `struct reggroup' in generated .h file.
3260 Include "reggroups.h" in generated .c file.
3261 gdbarch.h, gdbarch.c: Re-generate.
3263 2002-11-02 Andrew Cagney <cagney@redhat.com>
3265 * regcache.h (deprecated_read_register_gen): Rename
3267 (deprecated_write_register_gen): Rename write_register_gen.
3268 * i387-tdep.c: Update.
3269 * x86-64-linux-nat.c: Update
3271 * thread-db.c: Update.
3272 * win32-nat.c: Update.
3273 * mips-tdep.c: Update.
3274 * d10v-tdep.c: Update.
3275 * cris-tdep.c: Update.
3276 * remote-sim.c: Update.
3277 * remote-rdi.c: Update.
3278 * remote-rdp.c: Update.
3281 * blockframe.c: Update.
3282 * x86-64-tdep.c: Update.
3283 * xstormy16-tdep.c: Update.
3284 * sh-tdep.c: Update.
3285 * s390-tdep.c: Update.
3286 * rs6000-tdep.c: Update.
3287 * sparc-tdep.c: Update.
3288 * i386-tdep.c: Update.
3289 * dwarf2cfi.c: Update.
3290 * regcache.c: Update.
3292 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3294 New interix-specific files:
3295 * config/i386/nm-interix.h: New file.
3296 * config/i386/interix.mh: New file.
3297 * config/i386/interix.mt: New file.
3298 * i386-interix-nat.c: New file.
3299 * i386-interix-tdep.c: New file.
3301 2002-11-01 Andrew Cagney <cagney@redhat.com>
3303 * frame.h (deprecated_generic_get_saved_register): Rename
3304 generic_get_saved_register.
3305 * blockframe.c (deprecated_generic_get_saved_register): Update.
3306 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3307 (xstormy16_frame_saved_register): Update.
3308 * sh-tdep.c (sh_gdbarch_init): Update.
3309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3310 * ia64-tdep.c (ia64_get_saved_register): Update.
3311 * cris-tdep.c (cris_gdbarch_init): Update.
3312 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3313 * arm-tdep.c (arm_gdbarch_init): Update.
3315 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3317 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3319 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3321 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3322 trampolines in sigaction.
3324 2002-10-31 Andrew Cagney <cagney@redhat.com>
3326 * h8300-tdep.c: Include "gdb_assert.h".
3327 (h8300_print_register): Add gdbarch, file and frame parameters.
3328 Use frame_read_unsigned_register to read the register's value.
3329 Use fprintf_filtered to display output.
3330 (h8300_print_registers_info): Replace h8300_do_registers_info.
3331 (h8300_gdbarch_init): Set print_registers_info.
3333 2002-10-31 Andrew Cagney <cagney@redhat.com>
3335 * frame.c (frame_read_unsigned_register): New function.
3336 (frame_read_signed_register): New function.
3337 * frame.h (frame_read_unsigned_register): Declare.
3338 (frame_read_signed_register): Declare.
3340 2002-10-31 Andrew Cagney <cagney@redhat.com>
3342 * h8500-tdep.c (h8500_print_registers_info): New static function,
3343 clone of infcmd.c's default_print_registers_info.
3344 (h8500_do_registers_info): New funtion.
3345 (h8500_print_register_hook): Rename print_register_hook, make
3348 * config/h8500/tm-h8500.h: Update copyright.
3349 (DEPRECATED_DO_REGISTERS_INFO): Define.
3350 (h8500_do_registers_info: Declare.
3351 (PRINT_REGISTER_HOOK): Delete macro.
3352 (print_register_hook): Delete function.
3354 2002-10-31 Andrew Cagney <cagney@redhat.com>
3356 * z8k-tdep.c (z8k_print_register_hook): Make static.
3357 (z8k_print_registers_info): New static function, clone of
3358 infcmd.c's default_print_registers_info.
3359 (z8k_do_registers_info): New function. Wrap
3360 z8k_print_registers_info.
3361 * config/z8k/tm-z8k.h: Update copyright.
3362 (PRINT_REGISTER_HOOK): Delete macro.
3363 (z8k_print_register_hook): Delete declaration.
3364 (DEPRECATED_DO_REGISTERS_INFO): Define.
3365 (z8k_do_registers_info): Declare.
3367 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3369 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3370 as this is already provided by value.h, and was actually causing
3371 a compilation error because of a conflict in parameter type
3372 declaration due to a missing const keyword.
3373 (low_text_segment_addres): Fix a compilation warning.
3375 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3377 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3378 registers without a name.
3379 (mips_linux_cannot_store_register): Don't store registers without
3382 2002-10-28 David Carlton <carlton@math.stanford.edu>
3384 * symtab.c (find_addr_symbol): Delete. (It was already commented
3386 * symtab.h: Delete prototype for find_addr_symbol.
3388 2002-10-26 Andrew Cagney <cagney@redhat.com>
3390 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3392 gdbarch.h, gdbarch.c: Re-generate.
3393 * infcmd.c (default_print_registers_info): Update reference.
3394 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3395 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3396 * sh-tdep.c (sh_gdbarch_init): Ditto.
3397 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3398 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3400 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3402 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3403 cfi_init_extra_frame_info.
3404 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3405 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3407 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3408 target where necessary. Add more comments and remove the ones
3409 that don't provide any useful information.
3411 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3412 deprecated_read_register_dummy with
3413 frame_unwind_unsigned_register.
3415 * i386-tdep.c (i386_extract_struct_value_address): Use
3416 regcache_raw_read_unsigned instead of
3417 regcache_cooked_read_unsigned since we know that the register
3418 we're reading isn't a pseudo register. Rename variable 'val' into
3419 the more descriptive 'addr'.
3421 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3422 (x86_64_push_return_address): Add comment.
3423 (x86_64_pop_frame): Make static.
3424 (examine_argument): Clarify comment.
3425 (x86_64_skip_prologue): Make prolog_expact variable static.
3427 * dwarf2cfi.c: Fix some formatting problems.
3428 (context_cpy, read_encoded_pointer): Clarify comments.
3430 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3431 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3432 i386 target back into x86_64_gdbarch_init. Add some comments and
3433 remove meaningless ones.
3435 2002-10-25 Andrew Cagney <cagney@redhat.com>
3437 * complaints.h (struct deprecated_complaint): Rename `struct
3439 * complaints.c (complain): Update.
3440 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3441 incorrect comment indicating that "symfile.h" was being included
3442 for the `struct complaint' definition.
3443 * remote-vx.c: Update.
3444 * objc-lang.c: Update.
3445 * xcoffread.c: Update.
3447 * mdebugread.c: Update.
3448 * stabsread.c: Update.
3449 * dwarf2read.c: Update.
3450 * dwarfread.c: Update.
3451 * elfread.c: Update.
3452 * coffread.c: Update.
3453 * stabsread.h: Update.
3454 * dbxread.c: Update.
3455 * buildsym.c: Update.
3456 * gdbtypes.c: Update.
3457 * macrotab.c: Update.
3459 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3461 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3462 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3463 (x86_64_init_abi): ...new function.
3465 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3466 * i386v-nat.c: Include "i386-tdep.h".
3468 2002-10-25 Andrew Cagney <cagney@redhat.com>
3470 * gdbtypes.c (address_space_name_to_int): Update.
3471 (address_space_int_to_name): Update.
3472 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3473 multi-arch predicate.
3474 (address_class_name_to_type_flags): Ditto.
3475 * gdbarch.h, gdbarch.c: Re-generate.
3477 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3479 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3481 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3483 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3485 * symtab.h (INIT_SAL): Delete macro.
3487 * symtab.c (init_sal): New function.
3489 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3490 to init_sal function call.
3491 (find_sal_from_funcs_and_line): Ditto.
3492 (all_sals_for_line): Ditto.
3493 * breakpoint.c (create_internal_breakpoint): Ditto.
3494 (create_fork_vfork_event_catchpoint): Ditto.
3495 (create_exec_event_catchpoint): Ditto.
3496 (parse_breakpoint_sals): Ditto.
3497 (watch_command_1): Ditto.
3498 (handle_gnu_4_16_catch_command): Ditto.
3499 (clear_command): Ditto.
3500 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3501 * infcmd.c (run_stack_dummy): Ditto.
3502 * infrun.c (process_event_stop_test): Ditto.
3503 (check_sigtramp2): Ditto.
3504 (step_over_function): Ditto.
3505 * linespec.c (decode_line_2): Ditto.
3506 (decode_line_1): Ditto.
3507 * source.c (line_info): Ditto.
3508 * symtab.c (find_pc_sect_line): Ditto.
3510 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3512 * dwarf2cfi.c (struct context)
3513 (struct context_reg): Moved to dwarf2cfi.h
3514 (context_alloc, frame_state_alloc, context_cpy):
3515 Made extern instead of static, removed prototypes.
3516 * dwarf2cfi.h (struct context)
3517 (struct context_reg): New, moved from dwarf2cfi.c
3518 (context_alloc, frame_state_alloc, context_cpy):
3520 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3521 Changed from static to extern.
3522 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3523 (LINUX_SIGCONTEXT_FP_OFFSET)
3524 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3525 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3526 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3527 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3528 set_gdbarch_*() calls now use x86-64 specific functions
3529 instead of DWARF2 CFI ones.
3530 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3531 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3532 (x86_64_init_extra_frame_info): New prototypes.
3534 2002-10-23 David Carlton <carlton@math.stanford.edu>
3536 * linespec.c: #include "parser-defs.h".
3537 Delete prototype for find_template_name_end.
3538 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3540 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3542 * NEWS: add recent mi fixes.
3543 * varobj.c (struct varobj): Add new "updated" flag.
3544 (new_variable): Default "updated" flag to 0.
3545 (varobj_set_value): Set "updated" flag to 1 if value
3547 (varobj_update): Check varobj "updated" flag before
3548 comparing old and refreshed values. Fix for
3551 2002-10-23 David Carlton <carlton@math.stanford.edu>
3553 * parse.c (parse_exp_1): Use BLOCK_START.
3554 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3556 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3558 2002-10-23 David Carlton <carlton@math.stanford.edu>
3560 * symtab.c: Delete cplusplus_hint.
3561 Delete prototype for find_template_name_end.
3563 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3565 * symtab.h: Update comment.
3567 2002-10-23 Michael Snyder <msnyder@redhat.com>
3569 * printcmd.c (address_info): Restore quotes in output.
3570 * valops.c (value_of_local): Restore quotes in error message.
3572 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3574 * symtab.c (symbol_demangled_name): New function.
3575 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3576 turning most of it into a function.
3577 (symbol_demangled_name): Export.
3579 2002-10-23 Michael Snyder <msnyder@redhat.com>
3581 * valops.c (value_of_local): Restore quotes in error message.
3583 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3585 * symtab.c (symbol_init_language_specific): New function.
3586 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3587 turning most of it into a function.
3588 (symbol_init_language_specific): Export.
3590 2002-10-23 David Carlton <carlton@math.stanford.edu>
3592 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3593 (dwarf_attr_name): Ditto.
3594 (dwarf_type_encoding_name): Ditto.
3595 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3596 (process_die): Handle DW_TAG_namespace,
3597 DW_TAG_imported_declaration, DW_TAG_imported_module.
3598 (read_namespace): New function.
3600 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3602 * configure.in: Define NEW_PROC_API on Interix too.
3603 * configure: Regenerate.
3605 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3607 * configure: Regenerate using the proper version of autoconf.
3609 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3611 * findvar.c (read_var_value): Temporarily disable TLS code, until
3612 complete TLS support is added.
3614 2002-10-21 Jim Blandy <jimb@redhat.com>
3615 Elena Zannoni <ezannoni@redhat.com>
3617 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3618 for thread local storage locations.
3619 (struct symbol): Add objfile field.
3620 (SYMBOL_OBJFILE): Define.
3621 * dwarf2read.c (is_thread_local): New static variable.
3622 (new_symbol): If variable is in thread local fill in address class
3623 and objfile appropriately.
3624 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3626 * printcmd.c (address_info): Print the information for thread
3627 local storage variable.
3628 * findvar.c (read_var_value): In case of thread local variable,
3629 defer to the target vector code to compute address.
3631 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3633 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3634 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3636 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3638 * symtab.h (address_class): Rename
3639 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3640 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3641 * printcmd.c (address_info): Ditto.
3642 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3644 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3646 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3647 DBREG_DRX macro to acces debug registers.
3649 * Makefile.in (i386obsd-tdep.o): New target.
3651 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3652 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3654 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3655 * config/i386/obsd.mt: New file.
3656 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3657 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3658 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3659 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3660 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3661 * i386obsd-tdep.c: New file.
3663 2002-10-19 Adam Fedor <fedor@gnu.org>
3665 * objc-exp.y (name_not_typename): Fix invalid comment.
3667 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3669 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3670 to allocate partial syms and macro byte caches.
3672 2002-10-18 David Carlton <carlton@math.stanford.edu>
3674 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3676 2002-10-18 Adam Fedor <fedor@gnu.org>
3678 * stabsread.c (find_name_end): New function.
3679 (define_symbol): Use it.
3681 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3683 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3684 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3685 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3686 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3688 2002-10-17 David Carlton <carlton@math.stanford.edu>
3690 * symfile.h: Add opaque declaration for struct obstack.
3691 Declare obsavestring to take a const char *.
3692 * symfile.c (obsavestring): Make first argument a const char *.
3694 2002-10-16 Adam Fedor <fedor@gnu.org>
3696 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3697 names when matching breakpoints in current file.
3699 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3701 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3702 (read_tag_pointer_type): Add address class support.
3703 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3704 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3706 * gdbarch.h, gdbarch.c: Regenerate.
3707 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3708 (make_type_with_address_space, recursive_type_dump): Add address
3710 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3711 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3712 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3714 2002-10-16 Klee Dienes <kdienes@apple.com>
3716 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3717 to get the last character of a char[] buffer, not
3718 name[sizeof(vptr_name)-1].
3720 2002-10-14 Adam Fedor <fedor@gnu.org>
3722 * symtab.h: New objc_specific struct.
3723 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3724 (SYMBOL_DEMANGLED_NAME): Likewise.
3726 2002-10-14 Adam Fedor <fedor@gnu.org>
3728 * symfile.c (init_filename_language_table): Add ObjC file extension.
3730 2002-10-14 Adam Fedor <fedor@gnu.org>
3732 * utils.c (puts_filtered_tabular): New function.
3733 (fprintf_symbol_filtered): Get ObjC demangled name.
3734 * defs.h (puts_filtered_tabular): Declared.
3736 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3738 * c-lang.h (c_type_print_varspec_prefix): Delete.
3739 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3740 ``need_post_space'' parameter. Adjust all callers.
3742 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3744 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3745 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3746 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3747 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3749 2002-10-13 Adam Fedor <fedor@gnu.org>
3751 * source.c (print_source_lines): Update comments.
3753 2002-10-13 Adam Fedor <fedor@gnu.org>
3755 * valops.c (value_of_local): New function.
3756 (value_of_this): Use it.
3757 * value.h (value_of_local): Declared.
3759 2002-10-13 Adam Fedor <fedor@gnu.org>
3761 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3762 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3764 2002-10-12 Adam Fedor <fedor@gnu.org>
3766 * language.c (binop_result_type): Add language_objc to case.
3767 (integral_type): Likewise.
3768 (character_type): Likewise.
3769 (string_type): Likewise.
3770 (boolean_type): Likewise.
3771 (structured_type): Likewise.
3772 (binop_type_check): Likewise.
3774 2002-10-11 Adam Fedor <fedor@gnu.org>
3776 * printcmd.c (address_info): Print 'self' for ObjC.
3778 2002-10-11 Adam Fedor <fedor@gnu.org>
3780 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3783 2002-10-11 Adam Fedor <fedor@gnu.org>
3785 * language.h (CAST_IS_CONVERSION): Add language_objc.
3787 2002-10-11 Adam Fedor <fedor@gnu.org>
3789 * defs.h (enum language): Add language_objc.
3791 2002-10-11 Klee Dienes <kdienes@apple.com>
3793 * corefile.c (read_memory_typed_address): New function.
3794 * gdbcore.h (read_memory_typed_address): Add prototype.
3795 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3796 to read a value destined for a CORE_ADDR, not read_memory_integer.
3797 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3798 (f77_get_dynamic_lowerbound): Ditto.
3800 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3802 * utils.c (string_to_core_addr): After turning string into
3803 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3804 which will do necessary sign-extension, etc.
3806 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3808 * c-exp.y (THIS): Delete token and grammar rule.
3809 (yylex): Don't return THIS.
3810 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3811 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3812 * demangle.c (cplus_markers): Update comment. Put '$'
3813 first. Remove CPLUS_MARKER.
3814 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3815 * jv-exp.y (THIS): Delete token and grammar rule.
3816 (yylex): Don't return THIS.
3817 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3818 * objc-exp.y (THIS): Delete token and grammar rule.
3819 (yylex): Don't return THIS.
3820 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3821 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3822 (read_member_functions): Likewise for opname.
3823 (read_tilde_fields): Use is_cplus_marker.
3825 * defs.h (CPLUS_MARKER): Don't define.
3826 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3827 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3828 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3829 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3830 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3832 * config/i386/tm-i386v4.h: Delete file.
3833 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3834 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3835 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3836 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3837 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3838 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3839 * config/i386/i386v4.mt (TM_FILE): Likewise.
3840 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3842 2002-10-10 Marko Mlinar <markom@opencores.org>
3844 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3845 accidentially not commited 2002-10-09
3846 * gdbarch.h, gdbarch.c: Re-generate.
3848 2002-10-09 Marko Mlinar <markom@opencores.org>
3850 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3851 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3852 * gdbarch.h, gdbarch.c: Re-generate.
3854 2002-10-08 Petr Sorfa <petrs@caldera.com>
3856 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3858 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3859 so we can work on more than one compilation unit at a time. This
3860 helps prepare GDB to handle inter-CU die references.
3861 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3862 the code to be defined before struct comp_unit_head.
3863 (comp_unit_head): Added new members - offset, cu_head,
3864 begin_die, next and dwarf2_abbrevs.
3865 (dwarf2_abbrevs): Removed single static var; now member of
3866 struct comp_unit_head.
3867 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3869 (psymtab_to_symtab_1): Changed to work with the new
3870 struct comp_unit_head.
3871 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3872 constructs the dwarf2_abbrevs[] inside the cu_header.
3873 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3874 dwarf2_abbrev table to clean up.
3875 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3876 handling of dwarf2_abbrevs inside the cu_header.
3877 (read_partial_die): Now supports the call to the new
3878 dwarf2_lookup_abbrev.
3879 (read_full_die): Now supports the call to the new
3880 dwarf2_lookup_abbrev.
3882 2002-10-06 Christopher Faylor <cgf@redhat.com>
3884 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3885 insure that shell variables, such as "transformed_name" are propagated
3886 to later shell statements in rule.
3888 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3890 * config/i386/nm-i386sco.h: Add protection against
3891 multiple-inclusion. Include "i386/nm-i386v.h".
3892 (REGISTER_U_ADDR): Remove define.
3893 (i386_register_u_addr): Remove prototype.
3895 2002-10-04 Michael Snyder <msnyder@redhat.com>
3897 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3898 before treating it as a single-step event.
3900 2002-10-03 Adam Fedor <fedor@gnu.org>
3902 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3903 (objc_demangle): Remove assignment in if statements, Replace
3905 (add_msglist): Likewise.
3906 (end_msglist): Likewise.
3907 (complare_selectors): Likewise.
3908 (selectors_info): Likewise.
3909 (compare_classes): Likewise.
3910 (classes_info): Likewise.
3911 (print_object_command): Likewise.
3912 (find_objc_msgcall_submethod): Replace PTR with void *.
3913 * objc-lang.h: Remove check for __STDC__.
3915 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3917 * ui-out.h (ui_out_field_fmt_int): New prototype.
3918 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3919 of field width and alignment.
3920 * stack.c (print_frame_info_base): When printing frame level, use
3921 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3924 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3926 * MAINTAINERS: Add self to Write After Approval list.
3928 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3930 * infcmd.c (interrupt_target_command_wrapper): Delete.
3931 (interrupt_target_command): Make non static.
3932 (nofp_registers_info): Make static.
3933 * stack.c (return_command_wrapper): Delete.
3934 (return_command): Make non static.
3936 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3938 * event-top.c (gdb_setup_readline): New function. Code moved from
3939 _initialize_event_loop().
3940 (_initialize_event_loop): Call gdb_setup_readline().
3942 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3944 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3945 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3946 * gdbarch.h, gdbarch.c: Re-generate.
3948 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3951 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3953 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3954 of fill_in_vptr_fieldno.
3956 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3958 * inferior.h (registers_info, stepi_command, nexti_command,
3959 continue_command, interrupt_target_command): Export from infcmd.c.
3960 * frame.h (args_info, selected_frame_level_changed_hook,
3961 return_command): Export from stack.c.
3962 * v850ice.c (stepi_command, nexti_command, continue_command): use
3963 prototypes from inferior.h.
3964 * tracepoint.c (registers_info, args_info, locals_info): Use
3965 prototypes from frame.h and inferior.h.
3966 * Makefile.in (mi-main.o): Add dependency on frame.h.
3968 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3970 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3971 value in register 3 adjusted by ppc_gp0_regnum.
3973 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3975 2002-10-02 Marko Mlinar <markom@opencores.org>
3977 * MAINTAINERS: Add myself to the Write After Approval list.
3979 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3981 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3982 of the section for the N64 ABI, fixed.
3984 * config/mips/tm-irix6.h: Include solib.h.
3986 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3988 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3991 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3993 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3994 and that "mi0" syntax has been removed.
3996 2002-09-30 David Carlton <carlton@math.stanford.edu>
3998 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3999 * ppc-sysv-tdep.c: #include "gdb_string.h".
4000 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4003 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4005 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4006 "vrsave"'s register number.
4008 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4010 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4011 use frame_unwind_signed_register to obtain the PC.
4012 (mips_frame_chain): Handle a generic dummy frame.
4013 (mips_init_extra_frame_info): When a generic dummy frame, don't
4014 re-compute the frame base.
4015 (mips_pop_frame): Handle generic dummy frames.
4016 (mips_gdbarch_init): When generic dummy frames, set
4017 use_generic_dummy_frames, push_dummy_frame to
4018 generic_push_dummy_frame, pc_in_call_dummy to
4019 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4020 generic_save_dummy_frame_tos.
4022 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4024 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
4025 against TOP when TOP was explictly set.
4026 (generic_push_dummy_frame): Set TOP to zero.
4028 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
4030 * event-loop.c (start_event_loop): Rename variable 'result' to
4031 'gdb_result', to avoid conflicts with upcoming intepreters changes.
4033 2002-09-30 Keith Seitz <keiths@redhat.com>
4035 * gdb-events.sh (selected_thread_changed): New event.
4036 * gdb-events.c: Regenerated.
4037 * gdb-events.h: Regenerated.
4039 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
4041 * MAINTAINERS: Add self to Write After Approval list.
4043 2002-09-30 Fernando Nasser <fnasser@redhat.com>
4045 * disasm.c: New file.
4046 * disasm.h: New file.
4047 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4048 (compare_lines): Ditto.
4049 (dump_insns): Ditto.
4050 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4052 (do_assembly_only): Ditto.
4053 (do_disassembly): Renamed to gdb_disassembly and moved to
4054 disasm.c. Sdded uiout argument.
4055 * Makefile.in: Add new files. Reorder SFILES list. Update
4056 dependencies. Include libgdb.a later in the insight executable.
4058 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4060 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4061 bfd/elf64-alpha-fbsd.c.
4063 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4065 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4068 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4070 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4072 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4074 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4075 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4076 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4077 (S_msg_sig_post_reply): Ditto.
4079 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
4081 * sh-tdep.c (sh_use_struct_convention): Use definition according
4083 (sh_push_arguments): Store in register with correct endianess.
4084 (sh_default_store_return_value): Ditto.
4085 (sh_gdbarch_init): Set sizeof long double to 8.
4087 2002-09-27 Mark Kettenis <kettenis@gnu.org>
4089 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4090 Fix some whitespace problems.
4092 2002-09-27 David Carlton <carlton@math.stanford.edu>
4094 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4095 (mcore-tdep.o): Ditto.
4096 (ns32k-tdep.o): Ditto.
4097 (ns32knbsd-tdep.o): Ditto.
4099 (vax-tdep.o): Ditto.
4100 * cris-tdep.c: #include "gdb_string.h"
4101 * mcore-tdep.c: Ditto.
4102 * ns32k-tdep.c: Ditto.
4103 * ns32knbsd-tdep.c: Ditto.
4105 * vax-tdep.c: Ditto.
4107 2002-09-27 David Carlton <carlton@math.stanford.edu>
4109 * config/djgpp/fnchange.lst: Add entries for
4110 gdb/testsuite/gdb.c++/m-static files.
4112 2002-09-27 Jim Wilson <wilson@redhat.com>
4114 * MAINTAINERS: Add myself to the Write After Approval list.
4116 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4118 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4121 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4123 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4126 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4128 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4129 (rs6000_struct_return_address): Delete variable.
4130 (rs6000_store_struct_return): Update.
4131 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4132 deprecated_extract_struct_value_address.
4133 (rs6000_frame_align): New function.
4134 (rs6000_gdbarch_init): Set frame_align.
4136 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4138 From Grace Sainsbury <graces@redhat.com>:
4139 * Makefile.in (gdbtk-main.o): New target.
4140 (gdb.o): New target.
4142 (main.o): Update dependencies.
4143 (gdb$(EXEEXT)): Add gdb.o.
4144 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4145 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4146 (SUBDIR_GDBTK_CLEAN): Set.
4147 (install-gdbtk): Install the insight binary.
4148 (uninstall-gdbtk): New target.
4149 (all-gdbtk, clean-gdbtk): New rule.
4150 * top.c (use_windows): Default to zero.
4151 * main.c: Include "main.h".
4153 (struct captured_main_args): Delete.
4154 (gdb_main): New function.
4158 2002-09-25 Andrew Cagney <cagney@redhat.com>
4160 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4161 (frame_map_regnum_to_name): New function.
4162 (frame_map_name_to_regnum): New function.
4163 * frame.h (frame_map_name_to_regnum): Declare.
4164 (frame_map_regnum_to_name): Declare.
4165 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4166 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4167 * parse.c: Do not include "builtin-regs.h".
4168 (target_map_name_to_register): Delete function.
4169 (write_dollar_variable): Use frame_map_name_to_regnum.
4170 * parser-defs.h (target_map_name_to_register): Delete declaration.
4171 * expprint.c: Include "frame.h".
4172 (print_subexp): Use frame_map_regnum_to_name.
4173 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4174 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4176 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4178 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4179 wasn't saved, and the next innermost frame is a dummy, return the
4180 dummy frame's link register.
4182 2002-09-24 Jim Blandy <jimb@redhat.com>
4184 Fix from Paul Breed:
4185 * main.c (captured_main): Add a `break' after the case for 'b'.
4187 2002-09-24 Keith Seitz <keiths@redhat.com>
4189 * varobj.c (c_type_of_child): Use get_target_type instead
4190 of TYPE_TARGET_TYPE.
4192 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4194 * source.c (get_current_or_default_source_symtab_and_line): Remove
4196 (set_default_source_symtab_and_line): New function. Attempts to
4197 determine a source file to list lines from if one is not currently
4199 (get_current_source_symtab_and_line): Initialize sal.pc and
4201 (set_current_source_symtab_and_line): Mark argument as const.
4202 * source.h: Update declarations and comments.
4203 * linespec.c (decode_line_1): Replace call to removed routine above.
4204 * stack.c (print_frame_info_base): Ditto.
4205 * cli/cli-cmds.c (edit_command): Ditto.
4206 (list_command): Ditto.
4208 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4210 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4211 sal.pc and sal.end fields.
4212 (get_current_or_default_source_symtab_and_line): Ditto.
4213 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4214 so we do not cause a new source symtab to be searched for (reverting an
4215 unintentional change from the 2002-09-20 patch).
4216 * scm-lang.c (scm_unpac): Ditto.
4218 2002-09-21 Andrew Cagney <cagney@redhat.com>
4220 * complaints.c (symfile_explanations): Remove new-line from
4221 ``isolated_message''.
4222 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4223 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4225 2002-09-20 Nick Clifton <nickc@redhat.com>
4227 * NEWS: Announce that V850EA ISA is no longer supported.
4228 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4230 2002-09-20 David Carlton <carlton@math.stanford.edu>
4232 * Makefile.in (c-lang.o): Correct dependencies.
4233 (utils.o): Gather dependencies.
4235 * c-lang.c: #include "gdb_string.h"
4237 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4239 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4240 * cli/cli-cmds.c (list_command): New function. Implements the new
4242 (_init_cli_cmds): Add new command definition.
4243 * gdb.1: Document edit command.
4244 * doc/gdb.texinfo: Document edit command.
4246 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4248 * source.c: Make global variables current_source_symtab and
4249 current_source_line static.
4250 (list_command): Moved to cli/cli-cmds.c.
4251 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4252 (get_first_line_listed): New accessor function.
4253 (get_lines_to_list): New accessor function.
4254 (get_current_source_symtab_and_line): New function. Retrieves the
4255 position in the source code that we consider current.
4256 (get_current_or_default_source_symtab_and_line): New function.
4257 Like the above but attempts to determine a default position if one
4258 is not currently defined.
4259 (set_current_source_symtab_and_line): New function. Sets the source
4260 code position considered current and returns the previously set one.
4261 (clear_current_source_symtab_and_line): Reset stored information about
4262 a current source line.
4263 (_initialize_source): Remove registration for the "list" command and
4265 * source.h: Add declarations for the new functions above.
4266 * symtab.h: Remove declarations for the global variables mentioned
4268 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4269 obtain current source line.
4270 * linespec.c (decode_line_1): Ditto.
4271 * macroscope.c (default_macro_scope): Ditto.
4272 * scm-lang.c (scm_unpac): Ditto.
4273 * stack.c (print_frame_info_base): Ditto.
4274 * symfile.c (clear_symtab_users): Ditto.
4275 * symtab.c (decode_line_spec): Ditto.
4276 * cli/cli-cmds.c (list_command): Moved here from source.c.
4277 (ambiguous_line_spec): Moved here from source.c.
4278 (_init_cli_cmds): Add definition for "list" and its alias.
4279 * Makefile.in: Update dependencies.
4281 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4283 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4284 with what gcc thinks is correct.
4286 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4288 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4289 multiple register push instruction.
4291 2002-09-19 Jim Blandy <jimb@redhat.com>
4293 Add support for distinct host and target character sets.
4294 * charset.c, charset.h: New files.
4295 * c-exp.y: #include "charset.h".
4296 (yylex): Convert character and string literals to the target
4297 character set, before returning them as the semantic value of the
4299 * c-lang.c: #include "charset.h".
4300 (c_emit_char): Use charset-specific methods to recognize
4301 characters with backslash escape forms, to decide which characters
4302 to print literally and which to print using numeric escape
4303 sequences, and to convert target characters to host characters
4305 * utils.c: #include "charset.h".
4306 (no_control_char_error): New function.
4307 (parse_escape): Use charset-specific methods to recognize
4308 backslash escapes, parse `control character' notation, and convert
4309 characters from the host character set to the target character set.
4310 * configure.in: Set the default host character set.
4311 Check where to find iconv, and what its argument types might be.
4312 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4313 * Makefile.in (SFILES): List charset.c.
4314 (COMMON_OBS): List charset.o.
4315 (charset.o): New rule.
4316 (charset_h): New header dependency variable.
4317 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4318 (LIBICONV): New variable, set by configure.
4319 (CLIBS): Include $(LIBICONV) here.
4320 * aclocal.m4, config.in, configure: Regenerated.
4322 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4324 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4327 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4329 * gdb_mbuild.sh: New file.
4331 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4333 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4335 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4337 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4338 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4339 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4340 valops.c, value.h: Revert previous change.
4342 2002-09-18 Michael Snyder <msnyder@redhat.com>
4344 Preliminary support for Objective-C:
4345 * defs.h (language_objc): New enum value.
4346 (puts_filtered_tabular): Declaration only, exported from utils.c.
4347 (skip_quoted): Delete, declared in completer.h.
4348 * c-exp.y: Include completer.h.
4351 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4352 New operator enum values.
4353 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4354 * language.c (binop_result_type): Handle language_objc case.
4355 (integral_type, character_type, string_type, boolean_type,
4356 structured_type, binop_type_check): Ditto.
4357 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4358 (struct objc_specific): Add to general_symbol_info.
4359 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4360 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4361 * parser-defs.h (struct objc_class_str): New struct type.
4362 (start_msglist, end_msglist, add_msglist): Declaration only,
4363 exported from objc-lang.c.
4364 * value.h (value_of_local, value_nsstring,
4365 call_function_by_hand_expecting_type): Exported from valops.c.
4366 * valops.c (find_function_addr): Export.
4367 (call_function_by_hand_expecting_type): New function.
4368 (value_of_local): New function.
4369 * symfile.c (init_filename_language_table): Add ".m" extension
4371 * utils.c (puts_filtered_tabular): New function.
4372 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4373 (set/show demangle): Extend help-string to refer to ObjC.
4374 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4375 * stabsread.c (symbol_reference_defined): Objective-C symbols
4376 may contain colons: make allowances when scanning stabs strings
4378 (objc_find_colon): New function.
4379 * printcmd.c (address_info): If language == objc then print
4380 "self" instead of "this".
4381 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4382 OP_NSSTRING, and OP_SELF.
4383 (prefixify_subexp): Ditto.
4384 * source.c (print_source_lines): Mention objc in comment.
4385 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4388 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4390 * complaints.h: Update copyright.
4391 (struct complaints): Declare.
4392 (struct complaint): Make `message' constant.
4393 (internal_complaint): Declare.
4394 (complaint): Declare.
4395 (complaint_root): Delete declaration.
4396 (symfile_complaints): Delete declaration.
4397 (struct complaints): Add opaque declaration.
4398 (clear_complaints): Add a complaints parameter.
4399 * complaints.c: Update copyright.
4400 (enum complaint_series): Define.
4401 (complaint_root): Delete.
4402 (struct complaints): Define.
4403 (complaint_sentinel, symfile_complaint_book): New variables.
4404 (symfile_explanations, symfile_complaints): New variables.
4406 (get_complaints): New function.
4407 (vcomplaint): New function.
4408 (complaint): New function.
4409 (internal_complaint): New function.
4410 (complain): Call vcomplain with symfile_complaint.
4411 (clear_complaints): Rewrite.
4412 (_initialize_complaints): Use add_setshow_command.
4413 * Makefile.in (complaints.o): Update dependencies.
4414 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4415 to call to clear_complaints.
4416 (new_symfile_objfile, reread_symbols): Ditto.
4417 (oldsyms_complaint): Delete.
4418 (empty_symtab_complaint, unknown_option_complaint): Delete.
4419 (free_named_symtabs): Use complaint instead of complain.
4421 2002-09-18 Michael Snyder <msnyder@redhat.com>
4423 Contributed by Apple Computer, Inc. Merged with current sources
4424 by Adam Fedor <fedor@doc.com> [cagney].
4426 * objc-lang.c: First clean-up round: comments, indentation.
4427 * objc-lang.h: Ditto.
4428 * objc-lang.y: Ditto.
4430 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4432 * maint.c (maintenance_internal_error): Print the parameter as the
4434 (maintenance_internal_warning): New function.
4435 (_initialize_maint_cmds): Add command `maint internal-warning'.
4437 * defs.h (internal_warning, internal_vwarning): Declare.
4438 * utils.c (struct internal_problem): Define.
4439 (internal_vproblem): New function.
4440 (internal_warning): New function.
4441 (internal_vwarning): New function.
4442 (internal_warning_problem, internal_error_problem): New variables.
4443 (internal_verror): Just call internal_vproblem.
4445 2002-09-18 Michael Snyder <msnyder@redhat.com>
4447 * objc-lang.c: New file, support for Objective-C.
4448 Preliminary check-in, not yet integrated into gdb.
4449 * objc-lang.h: New file.
4450 * objc-exp.y: New file.
4452 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4454 * infrun.c (signal_stop_update): Convert definition to ISO C.
4455 (signal_print_update): Ditto.
4456 (signal_pass_update): Ditto.
4457 * inflow.c (terminal_save_ours): Ditto.
4459 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4462 * config/djgpp/fnchange.lst: Handle name clashes between
4463 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4466 * i386-linux-tdep.h: Fix tipo.
4468 2002-09-18 Adam Fedor <fedor@gnu.org>
4470 * MAINTAINERS: Add myself to the Write After Approval list.
4472 2002-09-18 Jim Blandy <jimb@redhat.com>
4474 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4475 texthigh and textlow to reader-specific structs caused
4476 objfile_relocate to miss them. This is fixable, but the work that
4477 the change was supposed to prepare GDB for never got done anyway.
4479 2002-09-18 David Carlton <carlton@math.stanford.edu>
4481 * MAINTAINERS: Alphabetize Write After Approval list.
4483 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4486 * values.c (value_static_field): Call read_var_value.
4488 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4490 * valops.c (hand_function_call): Align the initial stack pointer
4491 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4492 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4494 * mips-tdep.c (mips_frame_align): New function.
4495 (mips_gdbarch_init): Set frame_align.
4496 * gdbarch.sh (FRAME_ALIGN): New method.
4497 * gdbarch.h, gdbarch.c: Re-generate.
4499 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4501 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4504 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4506 * NEWS: Mention that MIPS $fp behavior changed.
4507 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4508 reference to FP_REGNUM.
4509 (mipsnbsd_cannot_store_register): Ditto.
4510 * mips-linux-nat.c: Update copyright.
4511 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4512 (mips_linux_cannot_store_register): Ditto.
4513 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4514 * config/mips/tm-mips.h: Update copyright.
4515 (FP_REGNUM): Delete macro.
4516 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4517 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4518 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4519 (mips_r3041_reg_names, mips_r3051_reg_names)
4520 (mips_r3081_reg_names): Replace "fp" with "".
4523 2002-09-17 Theodore A. Roth <troth@verinet.com>
4525 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4526 generic_read_register_dummy() (PR gdb/703).
4527 (avr_push_return_address): #if 0 out unused vars.
4528 (avr_gdbarch_init): Enable use of avr_push_return_address().
4530 2002-09-17 Michael Snyder <msnyder@redhat.com>
4532 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4533 RTE will take care of it.
4535 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4537 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4538 invalid, return SP_REGNUM.
4540 2002-09-17 Michael Snyder <msnyder@redhat.com>
4542 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4543 point registers without sign extension.
4545 2002-09-17 Andrew Cagney <cagney@redhat.com>
4547 * blockframe.c (deprecated_read_register_dummy): Rename
4548 generic_read_register_dummy.
4549 * frame.c (frame_unwind_signed_register): New function.
4550 (frame_unwind_unsigned_register): New function.
4551 * frame.h (frame_unwind_signed_register): Declare.
4552 (frame_unwind_unsigned_register): Declare.
4553 (deprecated_read_register_dummy): Rename
4554 generic_read_register_dummy.
4556 * h8300-tdep.c (h8300_frame_chain): Update.
4557 (h8300_frame_saved_pc): Update.
4558 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4559 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4560 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4561 (s390_frame_chain): Update.
4562 * v850-tdep.c (v850_find_callers_reg): Update.
4563 (v850_frame_saved_pc): Update.
4564 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4565 (m32r_find_callers_reg): Update.
4566 (m32r_frame_saved_pc): Update.
4567 * sh-tdep.c (sh_find_callers_reg): Update.
4568 (sh64_get_saved_pr): Update.
4569 (sh_init_extra_frame_info): Update.
4570 (sh_init_extra_frame_info): Update.
4571 (sh64_init_extra_frame_info): Update.
4572 (sh64_init_extra_frame_info): Update.
4573 * mcore-tdep.c (mcore_find_callers_reg): Update.
4574 (mcore_frame_saved_pc): Update.
4575 (mcore_init_extra_frame_info): Update.
4576 * i386-tdep.c (i386_frame_saved_pc): Update.
4577 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4578 (ia64_init_extra_frame_info): Update.
4579 (ia64_init_extra_frame_info): Update.
4580 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4581 * cris-tdep.c (cris_init_extra_frame_info): Update.
4582 * avr-tdep.c (avr_frame_chain): Update.
4583 (avr_init_extra_frame_info): Update.
4584 (avr_frame_saved_pc): Update.
4585 * arm-tdep.c (arm_find_callers_reg): Update.
4586 (arm_init_extra_frame_info): Update.
4587 (arm_frame_saved_pc): Update.
4589 2002-09-17 Tom Tromey <tromey@redhat.com>
4591 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4594 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4596 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4597 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4599 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4602 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4604 * osfsolib.c: Remove file, replaced by solib-osf.c.
4605 * Makefile.in: Remove compilation rules for osfsolib.c.
4607 2002-09-16 David Carlton <carlton@math.stanford.edu>
4609 * cp-valprint.c (cp_print_class_method): Correct args to
4610 check_stub_method_group.
4612 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4614 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4615 `set architecture'. Unify naming convention of functions.
4616 (h8300_skip_prologue): Improve prologue analysis.
4617 (h8300_push_arguments): Rewritten to more closely match GCC's
4618 bizarre argument-passing behavior, along with the comment describing
4620 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4621 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4622 sim, remote-e7000.c, remote-hms.c and remote.c
4624 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4626 * i386-tdep.c (gdb_print_insn_i386): Removed.
4627 (i386_print_insn): New function.
4628 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4629 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4632 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4634 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4637 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4639 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4640 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4641 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4643 2002-09-13 Christopher Faylor <cgf@redhat.com>
4645 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4647 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4649 * gdbtypes.c (check_stub_method): Make static.
4650 (check_stub_method_group): New function.
4651 * gdbtypes.h: Update prototypes.
4652 * cp-support.c: New file.
4653 * cp-support.h: New file.
4655 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4656 (update_method_name_from_physname): New function.
4657 (read_member_functions): Correct method names for operators
4658 and v3 constructors/destructors. Separate v2 constructors and
4660 * Makefile.in (stabsread.o): Update dependencies.
4661 (SFILES): Add cp-support.c.
4662 (COMMON_OBS): Add cp-support.o.
4663 (cp_support_h, cp-support.o): Add.
4665 * cp-valprint.c (cp_print_class_method): Call
4666 check_stub_method_group instead of check_stub_method. Remove
4668 * p-valprint.c (pascal_object_print_class_method): Likewise.
4669 * valops.c (search_struct_method): Likewise.
4670 (find_method_list, value_struct_elt_for_reference): Likewise.
4672 2002-09-13 Andrew Cagney <cagney@redhat.com>
4674 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4675 * gdbarch.h, gdbarch.c: Regenerate.
4677 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4679 * frame.c (find_saved_register): Delete function.
4680 * frame.h (find_saved_register): Delete declaration.
4683 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4685 * mips-tdep.c (read_next_frame_reg): Re-hack using
4686 frame_register_unwind.
4688 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4690 * mips-tdep.c (mips_get_saved_register): Re-hack using
4691 frame_register_unwind.
4693 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4695 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4696 vector. Will be useful for Interix.
4697 * gdbarch.h, gdbarch.c: Regenerate.
4699 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4700 name of the malloc function by NAME_OF_MALLOC.
4702 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4704 * value.h (find_function_in_inferior): Add const keyword to
4705 one of the parameters. Allows us to invoke this function with
4707 * valops.c (find_function_in_inferior): Likewise.
4709 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4711 * exec.c (xfer_memory): Fix compilation warning with old versions
4713 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4715 2002-09-12 David Carlton <carlton@math.stanford.edu>
4717 * symtab.h: Run through gdb_indent.h.
4718 Add 2002 to Copyright year list.
4720 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4722 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4724 * MAINTAINERS: Add myself to write after approval list.
4726 2002-09-11 J. Brobecker <brobecker@gnat.com>
4728 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4730 2002-09-11 J. Brobecker <brobecker@gnat.com>
4732 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4735 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4737 * procfs.c (do_detach): Clear current signal, not just fault.
4738 Corrects problem with breakpoint trap signal leaking to detached
4741 2002-09-10 Michael Snyder <msnyder@redhat.com>
4743 * buildsym.c (finish_block): Protect against null pointer.
4745 2002-09-10 Andrew Cagney <cagney@redhat.com>
4747 * infcmd.c (default_print_registers_info): Send all output to
4748 ``file'' instead of ``gdb_stdout''.
4750 2002-09-10 Michael Snyder <msnyder@redhat.com>
4752 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4753 LONGEST, and use signed register read (addresses are sign-
4756 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4758 * event-loop.c (gdb_do_one_event): Make public.
4759 * event-loop.h (gdb_do_one_event): Declare.
4761 2002-09-10 Jeff Law <law@redhat.com>
4763 * infttrace.c (child_resume): Simplify and rework to avoid
4766 2002-09-09 Fred Fish <fnf@intrinsity.com>
4768 * printcmd.c (print_scalar_formatted): "len" is the number of
4769 target bytes, NOT the number of target bits.
4771 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4773 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4774 * top.c (init_main): Set rl_terminal_name.
4776 2002-09-08 Aidan Skinner <aidan@velvet.net>
4778 * ada-lang.c (ada_array_bound, ada_type_match,
4779 _initialize_ada_language): Fix K&R definitions.
4780 * ada-tasks.c (get_current_task): Fix K&R definitions.
4781 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4783 2002-09-07 Christopher Faylor <cgf@redhat.com>
4785 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4788 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4790 * i386-tdep.c (i386_register_virtual_type,
4791 i386_register_convertible, i386_register_convert_to_virtual,
4792 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4793 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4794 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4795 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4796 Don't set push_arguments twice.
4798 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4799 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4800 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4801 sigtramp_end to NULL.
4802 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4804 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4806 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4809 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4810 * gdbarch.h, gdbarch.c: Re-generate.
4811 * blockframe.c (find_pc_sect_partial_function): Convert to use
4812 SIGTRAMP_START_P predicate.
4814 2002-09-05 Michael Snyder <msnyder@redhat.com>
4816 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4817 generic_dummy_frame method and old method. Also distinguish
4818 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4819 (arm_extract_return_value): Use new regcache method.
4821 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4822 adjustment that doesn't conform to the ABI.
4823 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4824 saved regcache, not from current regcache.
4826 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4828 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4831 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4833 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4834 if arm_apcs_32 is false.
4836 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4838 GDB 5.3 branch created.
4840 2002-09-03 Theodore A. Roth <troth@verinet.com>
4842 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4843 generic_unwind_get_saved_register.
4845 2002-09-03 David Carlton <carlton@math.stanford.edu>
4847 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4848 argument (PR gdb/653). Update call to smash_to_method_type.
4849 (read_structure_scope): Update call to dwarf2_add_member_fn.
4851 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4853 * x86-64-linux-tdep.c: Include gdb_string.h
4854 * x86-64-linux-nat.c: Ditto.
4856 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4858 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4859 when YYDEBUG is set to 1.
4860 * c-exp.y: Likewise.
4861 * f-exp.y: Likewise.
4862 * jv-exp.y: Likewise.
4863 * m2-exp.y: Likewise.
4864 * p-exp.y: Likewise.
4866 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4868 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4870 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4871 solib_svr4_fetch_link_map_offsets to
4872 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4873 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4874 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4875 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4876 solib-svr4.o, and solib-legacy.o.
4877 * config/i386/tm-nbsd.h: Include solib.h.
4879 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4881 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4882 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4883 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4884 comment noting that this needs its own target configuration.
4885 * config/i386/nbsd.mt: New file.
4886 * config/i386/nbsdaout.mt: Remove.
4887 * config/i386/nbsdelf.mt: Ditto.
4888 * config/i386/tm-nbsdaout.h: Ditto.
4890 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4892 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4893 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4894 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4896 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4897 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4898 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4900 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4902 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4903 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4904 * i386-tdep.h (i386bsd_init_abi): New prototype.
4905 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4906 function declaration.
4907 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4908 for NetBSD-a.out or NetBSD-ELF.
4909 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4910 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4911 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4912 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4914 (i386nbsd_pc_in_sigtramp): New function.
4915 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4916 i386nbsd_pc_in_sigtramp.
4917 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4918 and i386nbsdelf_init_abi OS ABI handlers.
4919 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4920 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4922 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4924 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4925 registers if the target really has them.
4927 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4929 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4932 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4934 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4936 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4937 (alphanbsd_skip_sigtramp_frame): New functions.
4938 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4939 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4940 to alphanbsd_sigcontext_addr.
4942 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4944 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4946 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4947 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4948 nbsd_pc_in_sigtramp.
4949 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4950 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4951 * nbsd-tdep.c: Include gdb_string.h.
4952 (nbsd_pc_in_sigtramp): New function.
4953 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4954 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4955 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4956 ppcnbsd_pc_in_sigtramp.
4957 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4958 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4959 shnbsd_pc_in_sigtramp.
4960 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4961 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4962 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4964 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4966 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4967 watchpoints to NULL.
4968 (insert_breakpoints): set val field of watchpoints if NULL.
4971 2002-08-29 Jim Blandy <jimb@redhat.com>
4973 * symtab.c (lookup_symbol_aux): In the cases where we find a
4974 minimal symbol of an appropriate name and use its address to
4975 select a symtab to read and search, use `name' (as passed to us)
4976 as the demangled name when searching the symtab's global and
4977 static blocks, not the minsym's name.
4979 2002-08-29 Keith Seitz <keiths@redhat.com>
4981 * stack.c (print_frame_info_base): Always set current_source_symtab
4982 and current_source_line.
4984 2002-08-29 Donn Terry <donnte@microsoft.com>
4986 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4988 2002-08-28 Keith Seitz <keiths@redhat.com>
4990 * stack.c (select_frame): Add FIXME concerning selected-frame
4992 (select_frame_command): Send selected-frame-level-changed
4993 event notification, but only if the level actually changed.
4994 (up_silently_base): Add selected-frame-level-changed event
4996 (down_silently_base): Likewise.
4998 2002-08-28 Andrew Cagney <ac131313@redhat.com>
5000 * Makefile.in: Update dependencies for all gdb/*.c files.
5002 2002-08-27 Tom Tromey <tromey@redhat.com>
5004 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5005 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5006 Update dependencies.
5007 * i387-tdep.c: Include gdb_string.h.
5008 * osabi.c: Likewise.
5009 * i386-linux-nat.c: Likewise.
5010 * lin-lwp.c: Likewise.
5011 * ax-gdb.c: Likewise.
5012 * signals/signals.c: Likewise.
5013 * jv-valprint.c: Likewise.
5014 * p-lang.c: Likewise.
5015 * c-valprint.c: Likewise.
5016 * cp-abi.c: Likewise.
5018 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
5020 * cli/cli-script.h (copy_command_lines): Export.
5021 * breakpoint.c: Include cli/cli-script.h.
5022 * Makefile.in (breakpoint.o): Update dependencies.
5024 2002-08-26 Michael Snyder <msnyder@redhat.com>
5026 * breakpoint.c (insert_breakpoints): Protect all references
5027 to 'process_warning'. Shorten long lines.
5029 2002-08-26 Joel Brobecker <brobecker@gnat.com>
5031 * cli/cli-script.c (copy_command_lines): New function.
5032 * defs.h (copy_command_lines): Export.
5033 * testsuite/gdb.base/commands.exp: New tests for commands
5034 attached to a temporary breakpoint, and for commands that
5035 delete the breakpoint they are attached to.
5037 2002-08-26 Michael Snyder <msnyder@redhat.com>
5039 * breakpoint.c (bpstat_stop_status): Instead of copying the
5040 pointer to the breakpoint commands struct, make a new copy
5041 of the struct and point to that.
5042 (bpstat_clear): Free the commands struct.
5043 (bpstat_clear_actions): Free the commands struct.
5044 (bpstat_do_actions): Free the command actions. Also execute
5045 the local cleanups, instead of deleting them.
5046 (delete_breakpoint): Leave the commands field of the bpstat
5047 chain alone -- it will be freed later.
5049 2002-08-26 Kevin Buettner <kevinb@redhat.com>
5051 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5052 deleted in 2002-08-20 commit. This function is still used by
5055 2002-08-26 Keith Seitz <keiths@redhat.com>
5057 * gdb-events.sh: Add selected-frame-level-changed event.
5058 * gdb-events.c: Regenerated.
5059 * gdb-events.h: Regenerated.
5061 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
5064 * inflow.c (terminal_save_ours): New function to save terminal
5066 * inferior.h (terminal_save_ours): Declare.
5067 * target.c (debug_to_terminal_save_ours): New function.
5068 (cleanup_target): Defaults to_terminal_save_ours.
5069 (update_current_target): Inherit to_terminal_save_ours.
5070 (setup_target_debug): Set to_terminal_save_ours.
5071 * target.h (target_terminal_save_ours): New to save terminal settings.
5072 (target_ops): New member to_terminal_save_ours.
5073 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5074 * hpux-thread.c (init_hpux_thread_ops): Likewise.
5075 * inftarg.c (init_child_ops): Likewise.
5076 * m3-nat.c (init_m3_ops): Likewise.
5077 * procfs.c (init_procfs_ops): Likewise.
5078 * wince.c (init_child_ops): Likewise.
5079 * win32-nat.c (init_child_ops): Likewise.
5080 * sol-thread.c (init_sol_thread_ops): Likewise.
5082 2002-08-26 Mark Kettenis <kettenis@gnu.org>
5084 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5085 use regcache_* functions.
5086 (i386_gdbarch_init): Set store_return_value instead of
5087 deprecated_store_return_value.
5089 * regcache.c (regcache_raw_write_signed,
5090 regcache_raw_write_unsigned): New functions.
5091 * regcache.h (regcache_raw_write_signed,
5092 regcache_raw_write_unsigned): New prototypes.
5094 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5096 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5097 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5098 source file dependencies. Cleanup corresponding generator rules.
5100 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5102 * regcache.h (register_offset_hack): Declare.
5103 (regcache_cooked_read_using_offset_hack): Declare.
5104 (regcache_cooked_write_using_offset_hack): Declare.
5106 * regcache.c (register_offset_hack): New function.
5107 (regcache_cooked_read_using_offset_hack): New function.
5108 (regcache_cooked_write_using_offset_hack): New function.
5109 (regcache_dump): Check that the registers, according to their
5110 offset, are packed hard against each other.
5111 (cooked_xfer_using_offset_hack): New function.
5113 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5115 * regcache.c (struct regcache_descr): Add field register_type.
5116 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5118 (init_regcache_descr): Initialize register_type. Pass the descr
5119 to init_legacy_regcache_descr. Use register_type instead of
5120 REGISTER_VIRTUAL_TYPE.
5121 (register_type): New function.
5122 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5123 * regcache.h (register_type): Declare.
5125 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5127 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5128 instead of deprecated_store_return_value. Fix fallout from
5129 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5131 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5133 * regcache.c (max_register_size): New function.
5134 (init_legacy_regcache_descr): Ensure that max_register_size is
5135 large enough for REGISTER_VIRTUAL_SIZE.
5136 * regcache.h (max_register_size): Declare.
5138 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5140 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5142 (e500_extract_return_value): Change type of valbuf pointer to
5145 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5147 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5150 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5151 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5152 long long) to prevent compiler warning on 64-bit systems.
5154 2002-08-23 Andrew Cagney <cagney@redhat.com>
5156 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5157 (DEPRECATED_STORE_RETURN_VALUE): New method.
5158 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5159 * gdbarch.h, gdbarch.c: Re-generate.
5161 * values.c (set_return_value): Pass current_regcache to
5163 * arch-utils.h (legacy_store_return_value): Declare.
5164 * arch-utils.c (legacy_store_return_value): New function.
5165 (legacy_extract_return_value): Update parameters.
5167 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5169 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5170 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5171 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5172 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5173 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5174 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5175 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5176 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5177 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5178 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5180 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5181 * i386-tdep.c (i386_extract_return_value): Update.
5182 * arch-utils.c (legacy_extract_return_value): Update.
5183 * frv-tdep.c (frv_gdbarch_init): Update.
5184 * cris-tdep.c (cris_gdbarch_init): Update.
5185 * d10v-tdep.c (d10v_gdbarch_init): Update.
5186 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5187 * m68k-tdep.c (m68k_gdbarch_init): Update.
5188 * mcore-tdep.c (mcore_gdbarch_init): Update.
5189 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5190 * s390-tdep.c (s390_gdbarch_init): Update.
5191 * sparc-tdep.c (sparc_gdbarch_init): Update.
5192 * sh-tdep.c (sh_gdbarch_init): Update.
5193 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5194 * v850-tdep.c (v850_gdbarch_init): Update.
5195 * avr-tdep.c (avr_gdbarch_init): Update.
5196 * ia64-tdep.c (ia64_gdbarch_init): Update.
5197 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5198 * vax-tdep.c (vax_gdbarch_init): Update.
5199 * alpha-tdep.c (alpha_gdbarch_init): Update.
5200 * arm-tdep.c (arm_gdbarch_init): Update.
5201 * mips-tdep.c (mips_gdbarch_init): Update.
5202 * i386-tdep.c (i386_gdbarch_init): Update.
5204 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5206 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5207 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5209 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5211 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5214 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5216 * infrun.c (handle_inferior_event): Move a comment outside of a
5217 function call, in order to avoid indent reformatting this part
5218 of the code in an unreadable way.
5220 2002-08-23 Grace Sainsbury <graces@redhat.com>
5222 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5223 when breakpoints fail. Move general breakpoint error messages to
5225 * breakpoint.c (insert_breakpoints): Change warnings when
5226 breakpoints are nto inserted to specify the type. Remove call to
5227 memory_error when hardware breakpoints can't be inserted. Remove
5228 multiple calls to warning so all messages are sent to the user at
5230 (delete_breakpoints): Make insert error messsages more explicit.
5232 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5234 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5235 gdbserver/ChangeLog.
5237 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5239 * i386-tdep.c: Include "objfiles.h".
5240 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5241 skip_trampoline_code.
5242 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5243 (CPLUS_MARKER): Define to '.'.
5245 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5247 (linux_corefile_thread_callback): Increase args->num_notes.
5248 (linux_make_note_section): Initialize thread_args.num_notes, and
5249 use it to determine whether notes for any threads were created.
5251 2002-08-23 Donn Terry <donnte@microsoft.com>
5253 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5254 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5256 (write_with_trace): Conditionalize out the switch branch handling
5257 PCSHOLD if the corresponding macro is not defined. Likewise for
5258 PRSABORT and PRSTOP.
5259 This change will be needed by the Interix port.
5261 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5263 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5264 write_register wherever possible instead of manipulating the
5265 register bytes directly.
5266 Assign VALUE_CONTENTS to a variable and use that.
5267 The GPR numbers are now dependent on the architecture.
5269 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5271 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5273 (skip_prologue): Add support for BookE/e500 instructions.
5274 (e500_extract_return_value): New function.
5275 (frame_get_saved_regs): Add support for saving ev registers and
5277 (e500_store_return_value): New function.
5278 (rs6000_gdbarch_init): Move up default intializations of
5279 deprecated_extract_return_value and store_return_value. Overwrite
5280 init of store_return_value with e500 specific version.
5281 Set extract_return_value for e500.
5283 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5285 * blockframe.c (generic_call_dummy_register_unwind): Use
5286 regcache_cooked_read to catch cases in which the variable is
5287 stored in a pseudo register.
5289 2002-08-22 Andrew Cagney <cagney@redhat.com>
5291 * NEWS: Mention that the i960 has been made obsolete.
5292 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5294 (remote-nrom.o): Obsolete target.
5295 (remote-nindy.o, i960-tdep.o): Ditto.
5296 * remote-nrom.c: Make file obsolete.
5297 * remote-nindy.c, remote-vx960.c: Ditto.
5298 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5299 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5300 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5301 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5302 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5303 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5304 i960-*-vxworks* obsolete.
5305 * MAINTAINERS: Note that the i960 is obsolete.
5307 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5309 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5310 detach to allow reinitialization.
5312 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5314 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5317 2002-08-22 Jim Blandy <jimb@redhat.com>
5319 * coffread.c (coff_symfile_read): Don't try to read the line
5320 number table from disk if the image file doesn't have a symbol
5321 table; we'll never actually look at the info anyway, and Windows
5322 ships DLL's with bogus file offsets for the line number data.
5324 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5326 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5329 2002-08-21 Michael Snyder <msnyder@redhat.com>
5331 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5332 (MSYMBOL_SIZE): Replace macro with function.
5333 (DEFAULT_MIPS_TYPE): Delete unused macro.
5334 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5335 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5337 2002-08-21 Jim Blandy <jimb@redhat.com>
5339 * valops.c (value_cast): Simplify and correct logic for doing a
5340 static cast from a pointer to a base class to a pointer to a
5343 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5345 * infcmd.c (default_print_registers_info): Replace
5347 (registers_info): Use gdbarch_print_registers_info instead of
5349 * inferior.h (default_print_registers_info): Replace
5351 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5352 (DO_REGISTERS_INFO): Change to a predicate function.
5353 * gdbarch.h, gdbarch.c: Regenerate.
5355 2002-08-21 Keith Seitz <keiths@redhat.com>
5357 * gdb-events.sh: Add target-changed event.
5358 * gdb-events.c: Regenerated.
5359 * gdb-events.c: Regenerated.
5360 * valops.c (value_assign): Add target-changed event notification
5361 to inlval_register, lval_memory, and lval_reg_frame_relative.
5363 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5365 * NEWS: Add an entry regarding the improvement of the next/step
5366 operation on Alpha Tru64 multi-processor machines.
5368 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5370 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5372 * Makefile.in: Update all _h macro definitions.
5373 * Makefile.in (install-gdbtk): Move to install section.
5374 (rdi-share/libangsd.a): Move to end of file.
5376 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5378 * frame.c (frame_register_unwind): When a register, set addrp to
5379 the register's byte.
5381 2002-08-20 Michael Snyder <msnyder@redhat.com>
5383 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5384 used locally, so move them from the target machine header to here.
5385 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5386 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5388 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5390 2002-08-20 Andrew Cagney <cagney@redhat.com>
5392 * NEWS: Mention that the Apollo line was made obsolete.
5393 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5394 m68*-hp-hpux* obsolete.
5395 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5396 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5397 * buildsym.c (make_blockvector): Make static.
5398 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5399 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5400 (ALLDEPFILES): Remove dstread.c.
5401 (dstread.o): Obsolete make rule.
5402 * dstread.c: Makefile obsolete.
5404 * config/m68k/hp300hpux.mt: Ditto.
5405 * config/m68k/hp300hpux.mh: Ditto.
5406 * config/m68k/hp300bsd.mt: Ditto.
5407 * config/m68k/hp300bsd.mh: Ditto.
5408 * config/m68k/apollo68b.mt: Ditto.
5409 * config/m68k/apollo68v.mh: Ditto.
5410 * config/m68k/apollo68b.mh: Ditto.
5412 2002-08-20 Michael Snyder <msnyder@redhat.com>
5414 * mips-tdep.c (mips_in_return_stub): Make static.
5415 (mips_gdbarch_init): Set in_solib_return_trampoline.
5416 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5418 2002-08-20 Michael Snyder <msnyder@redhat.com>
5420 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5421 * gdbarch.c, gdbarch.h: Regenerate.
5422 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5424 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5426 2002-08-20 Michael Snyder <msnyder@redhat.com>
5428 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5429 (mips_gdbarch_init): Set skip_trampoline_code,
5430 in_solib_call_trampoline.
5431 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5432 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5434 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5436 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5438 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5439 vector type for ev registers.
5440 (e500_pseudo_register_read): New function.
5441 (e500_pseudo_register_write): New function.
5442 (e500_dwarf2_reg_to_regnum): New function.
5443 (PPC_UISA_NOFP_SPRS): New macro.
5444 (PPC_EV_REGS): New macro.
5445 (PPC_GPRS_PSEUDO_REGS): New macro.
5446 (registers_e500): New register set for e500.
5447 (variants): Add e500 variant.
5448 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5449 before setting architectural dependent variations. Initialize ev
5450 registers numbers. Add case for e500 architecture. Set the
5451 number of pseudo registers.
5453 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5455 * rs6000-tdep.c: Clean up comments.
5457 2002-08-20 Andrew Cagney <cagney@redhat.com>
5459 * h8300-tdep.c: Re-indent file.
5461 2002-08-20 Jim Blandy <jimb@redhat.com>
5463 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5466 2002-08-20 Keith Seitz <keiths@redhat.com>
5468 * breakpoints.c (watch_command_1): Use internal breakpoint
5469 when setting a watchpoint_scope breakpoint.
5471 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5473 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5474 (build_builtin_type_vec64i): Ditto.
5475 (build_builtin_type_vec128): Ditto.
5476 (build_builtin_type_vec128i): Ditto.
5478 2002-08-19 Michael Snyder <msnyder@redhat.com>
5480 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5481 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5482 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5483 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5484 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5485 CALL_DUMMY_ADDRESS): Delete.
5486 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5487 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5488 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5489 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5490 push_return_address.
5491 (mips_register_raw_size, mips_eabi_use_struct_convention,
5492 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5493 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5494 mips_init_extra_frame_info, mips_eabi_push_arguments,
5495 mips_n32n64_push_arguments, mips_push_return_address,
5496 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5497 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5499 2002-08-19 Michael Snyder <msnyder@redhat.com>
5501 * mips-tdep.c (mips_frame_num_args): New function.
5502 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5503 frame_saved_pc, frame_args_address, frame_locals_address,
5504 frame_num_args, and frame_args_skip.
5505 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5506 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5507 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5508 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5510 2002-08-20 Michael Snyder <msnyder@redhat.com>
5512 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5513 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5514 * mips-tdep.c (mips_store_struct_return): New function.
5515 (mips_extract_struct_value_address): New function.
5516 (mips_gdbarch_init): Set store_struct_return and
5517 extract_struct_value_address.
5519 2002-08-20 David Carlton <carlton@math.stanford.edu>
5521 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5522 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5523 (read_file_scope): Check that line_header is nonzero before
5524 decoding macro information.
5526 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5528 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5529 flag the general-purpose registers as floating-point on targets
5530 that don't support the floating-point registers.
5532 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5534 * rs6000-tdep.c (altivec_register_p): Delete.
5535 (rs6000_do_altivec_registers): Delete.
5536 (rs6000_altivec_registers_info): Delete.
5537 (rs6000_do_registers_info): Delete.
5538 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5539 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5541 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5543 * infcmd.c (do_registers_info): Print vector registers in hex
5545 (print_vector_info): Check that printing registers
5547 (print_float_info): Ditto.
5549 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5551 * mips-tdep.c (mips_gdbarch_init): Update.
5552 (mips_o32_extract_return_value): Rewrite.
5553 (mips_o32_store_return_value): Rewrite.
5554 (mips_o32_xfer_return_value): New function.
5555 (mips_xfer_register): Tweak debug print message. Allow for
5556 buf_offset when dumping the value transfered.
5558 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5560 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5561 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5562 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5563 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5564 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5566 2002-08-14 Michael Snyder <msnyder@redhat.com>
5568 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5570 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5572 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5574 (P): New macro to define a register as a pseudo register.
5575 (R, R4, R8, R16, FR32, R64, R0): Updated.
5576 (struct variant): Add new fields for number of pseudo registers
5577 and number of total registers.
5578 (tot_num_registers): New macro replacing....
5579 (num_registers): ...deleted macro.
5580 (num_registers): New function.
5581 (num_pseudo_registers): New function.
5582 (variants): Update all variants to intialize new fields correctly.
5583 Postpone initialization of number of pseudo regs and real regs.
5584 (init_variants): New function.
5585 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5588 2002-08-19 David Carlton <carlton@math.stanford.edu>
5590 * valops.c (search_struct_field): Change error message to treat
5591 return value of 0 from value_static_field as meaning that field is
5593 (value_struct_elt_for_reference): Ditto.
5594 * values.c (value_static_field): Treat an unresolved location the
5595 same as a nonexistent symbol. Fix PR gdb/635.
5596 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5597 enclosed. Fix PR gdb/574.
5598 * MAINTAINERS: Add self to Write After Approval list.
5600 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5602 * mips-tdep.c (mips_xfer_register): New function.
5603 (mips_n32n64_extract_return_value): Rewrite.
5604 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5605 instead of deprecated_extract_return_value.
5607 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5609 * rs6000-tdep.c (TDEP): Delete macro.
5610 (branch_dest): Replace use of TDEP macro with its body.
5611 (rs6000_pop_frame): Ditto.
5612 (rs6000_push_arguments): Ditto.
5613 (rs6000_skip_trampoline_code): Ditto.
5614 (rs6000_frame_saved_pc): Ditto.
5615 (rs6000_frame_chain): Ditto.
5616 (rs6000_register_name): Ditto.
5617 (rs6000_register_byte): Ditto.
5618 (rs6000_register_raw_size): Ditto.
5619 (rs6000_register_virtual_type): Ditto.
5620 (rs6000_register_convertible): Ditto.
5621 (rs6000_convert_from_func_ptr_addr): Ditto.
5623 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5625 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5627 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5628 MIPS_LINUX_JB_ELEMENT_SIZE.
5629 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5630 for MAX_REGISTER_RAW_SIZE arrays.
5631 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5632 MIPS_LINUX_JB_ELEMENT_SIZE.
5634 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5636 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5638 2002-08-19 Aidan Skinner <aidan@velvet.net>
5640 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5641 ada-valprint.c ada-tasks.c.
5642 (YYFILES): Add ada-exp.y.
5643 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5644 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5645 (ada-exp.tab.o): New target.
5647 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5649 * regcache.c (regcache_xfer_part): New function.
5650 (regcache_raw_read_part): New function.
5651 (regcache_raw_write_part): New function.
5652 (regcache_cooked_read_part): New function.
5653 (regcache_cooked_write_part): New function.
5654 * regcache.h (regcache_raw_read_part): Declare.
5655 (regcache_raw_write_part): Declare.
5656 (regcache_cooked_read_part): Declare.
5657 (regcache_cooked_write_part): Declare.
5659 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5661 * remote.c (remote_open_1): Add async_p.
5662 (remote_async_open_1): Delete.
5663 (open_remote_target): Delete.
5664 (remote_open, extended_remote_open): Update calls to remote_open_1.
5665 (remote_async_open, extended_remote_async_open): Call
5666 remote_open_1 instead of remote_async_open_1.
5668 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5670 * blockframe.c: Fix a few coding standard violations.
5672 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5674 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5676 * config/i386/tm-i386sco5.h: ... here. File removed.
5677 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5679 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5680 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5681 (TM_FILE): Set to tm-i386.h.
5682 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5683 * config/i386/tm-i386v.h: Remove file.
5684 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5685 instead of "i386/tm-i386v.h".
5686 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5687 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5689 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5690 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5693 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5695 * config/i386/nm-i386v.h: Add protection against
5697 (i386_register_u_addr): Remove prototype.
5698 (register_u_addr): New prototype.
5699 (REGISTER_U_ADDR): Redefine accordingly.
5700 * i386v-nat.c: Improve several comments.
5701 (i386_register_u_addr): Change signature and rename to
5702 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5705 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5707 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5708 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5709 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5710 deprecated_extract_return_value.
5711 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5712 rename mips_o32o64_push_arguments.
5713 (mips_gdbarch_init): Update.
5714 (mips_extract_return_value): Delete.
5715 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5716 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5717 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5718 (mips_n32n64_extract_return_value): Clone
5719 mips_extract_return_value.
5720 (mips_store_return_value): Delete.
5721 (mips_o32_store_return_value): Clone mips_store_return_value.
5722 (mips_o64_store_return_value): Clone mips_store_return_value.
5723 (mips_eabi_store_return_value): Clone mips_store_return_value.
5724 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5726 2002-08-18 Aidan Skinner <aidan@velvet.net>
5728 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5729 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5731 2002-08-18 Aidan Skinner <aidan@velvet.net>
5733 * ada-lang.c: Run through gdb_indent.sh.
5734 * ada-lang.h: Run through gdb_indent.sh.
5735 * ada-tasks.c: Run through gdb_indent.sh.
5736 * ada-typeprint.c: Run through gdb_indent.sh.
5737 * ada-valprint.c: Run through gdb_indent.sh.
5739 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5741 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5744 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5746 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5748 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5749 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5751 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5752 write_register_gen instead of write_register_bytes.
5754 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5755 i[3456]-*-osf1mk* configurations have been made obsolete.
5756 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5757 i[3456]86-*-osf1mk* hosts obsolete.
5758 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5760 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5761 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5762 config/i386/i386m3.mt, config/i386/nm-m3.h,
5763 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5764 config/i386/i386mk.mh, config/i386/i386mk.mt,
5765 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5767 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5768 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5769 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5771 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5773 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5774 (hppa_value_returned_from_stack): Declare.
5775 (hppa_extract_return_value): Declare.
5776 * config/pa/hppa.mt: New file.
5777 * configure.tgt: Recognize hppa*-*-*.
5778 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5780 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5782 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5785 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5787 * top.c (gdb_rl_operate_and_get_next): Make sure
5788 operate-and-get-next functions correctly even when the history
5789 list is completely filled.
5791 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5793 * MAINTAINERS (Target Instruction Set Architectures): Rename
5794 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5795 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5796 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5797 already listed under Host/Native.
5799 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5800 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5803 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5805 * config/ia64/ia64.mt: New file.
5806 * config/alpha/alpha.mt: New file.
5807 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5808 ia64-linux-gnu. Mention that ia64-elf is broken.
5809 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5811 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5813 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5814 generic_func_frame_valid instead of func_frame_valid.
5816 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5818 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5819 procfs appears to be broken when debugging on multi-processor
5820 machines. So enable software single stepping in order to avoid
5821 using the procfs interface to do next/step operations, using
5822 internal breakpoints instead.
5824 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5825 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5826 make this pc address equal to the value it would have if the
5827 system stepping capability was used. Also set a new flag used
5828 to ensure that we don't readjust the PC one more time later.
5830 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5831 address by DECR_PC_AFTER_BREAK when software single step is
5832 in use for this architecture, as this has already been taken
5833 care of in handle_inferior_event().
5835 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5837 * infrun.c (handle_inferior_event): Minor reformatting, to make
5838 a rather long condition expression easier to read.
5840 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5842 * Makefile.in (gdbtk.o): Move to end of file.
5843 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5844 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5845 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5846 (gdbtk-wrapper.o, gdbres.o): Ditto.
5848 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5850 * Makefile.in (copying.o): Separate out compile rule.
5851 (hpux-thread.o, procfs.o, signals.o): Ditto.
5852 (v850ice.o, z8k-tdep.o): Ditto.
5853 (tui-file.o): Move to TUI section.
5854 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5855 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5857 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5859 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5860 skip_trampoline_code, for better namespace-proofing.
5862 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5864 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5866 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5868 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5870 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5871 signal, check whether we hit a breakpoint before checking for a
5872 single step breakpoint. Otherwise, GDB fails to notice that a
5873 breakpoint has been hit when stepping onto a breakpoint.
5875 2002-08-16 Keith Seitz <keiths@redhat.com>
5877 * gdb-events.sh (clear_gdb_event_hooks): New function.
5878 * gdb-events.c: Regenerate.
5879 * gdb-events.h: Regenerate.
5881 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5883 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5884 not_a_sw_breakpoint.
5885 * breakpoint.h (bpstat_stop_status): Add parameter names.
5887 2002-08-16 Grace Sainsbury <graces@redhat.com>
5889 * remote.c (remote_insert_hw_breakpoint)
5890 (remote_remove_hw_breakpoint): Fix calculation of length field
5893 2002-08-15 Michael Snyder <msnyder@redhat.com>
5895 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5896 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5897 (supply_fpregset): Ditto.
5899 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5900 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5901 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5902 (TARGET_READ_SP): Delete.
5903 (DO_REGISTERS_INFO): Delete.
5904 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5906 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5907 from macros to functions.
5909 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5910 (mips_register_convertible, mips_register_convert_to_virtual,
5911 mips_register_convert_to_raw): Make static.
5912 (mips_read_sp): New function.
5913 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5914 (mips_do_registers_info): Make static.
5915 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5916 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5917 (mips_register_convert_from_type, mips_register_convert_to_type):
5919 (mips_gdbarch_init): Set up function_start_offset,
5920 register_virtual_size, pc_in_sigtramp.
5922 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5924 * infcmd.c (vector_info): New function.
5925 (_initialize_infcmd): Add command "info vector".
5926 (print_vector_info): New function.
5928 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5929 * gdbarch.h, gdbarch.c: Regenerate.
5931 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5933 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5934 ``print_all''. Only print vector registers when ``print_all''.
5936 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5938 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5939 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5941 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5942 Add `args' parameter.
5943 * gdbarch.h, gdbarch.c: Regenerate.
5945 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5947 * infcmd.c (float_info): Call print_float_info.
5948 (print_float_info): New function. By default, print the
5949 floating-point registers.
5951 * arch-utils.h (default_print_float_info): Delete declaration.
5952 * arch-utils.c (default_print_float_info): Delete function.
5954 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5956 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5959 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5962 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5963 * configure.host: Make i[3456]86-*-aix host obsolete.
5964 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5965 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5966 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5967 config/i386/xm-i386aix.h: Make files obsolete.
5968 * i386aix-nat.c: Make file obsolete.
5969 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5970 (i386aix-nat.o): Make target obsolete.
5972 * config/i386/nm-gnu.h: Removed.
5973 * config/i386/nm-i386gnu.h: New file.
5974 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5975 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5977 * config/i386/tm-i386gnu.h: ... here. Removed.
5978 * config/i386/xm-i386gnu.h: Removed.
5979 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5980 (NAT_FILE): Set to nm-i386gnu.h.
5981 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5982 * i386-tdep.c: New file.
5983 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5984 (i386gnu-tdep.o): Specify dependencies.
5986 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5988 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5989 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5990 Adjust a few comments to reflect reality a bit closer.
5991 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5992 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5993 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5994 target_insert_watchpoint, target_remove_watchpoint):
5996 * config/i386/nm-i386sco5.h: ... here.
5997 (kernel_u_size): Add prototype. Improve a few comments and add
5998 protection against multiple inclusion.
6000 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6003 * uw-thread.c (SP_ARG0): Define if not already defined.
6004 * config/i386/tm-i386.h (SO_ARG0): Remove define.
6006 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6008 * config/i386/tm-i386.h: Don't include "regcache.h".
6010 * i387-tdep.h (i387_print_float_info): New prototype.
6011 * i387-tdep.c (print_i387_value, print_i387_ext,
6012 print_i387_status_word, print_i387_control_word): Add `struct
6013 ui_file *' argument and use it for output.
6014 (i387_print_float_info): Renamed from i387_float_info. Add
6015 `struct gdbarch *' and `struct ui_file *' arguments and use the
6017 * i386-tdep.c: Include "i387-tdep.h".
6018 (i386_gdbarch_init): Set print_float_info.
6019 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6020 (FLOAT_INFO): Remove define.
6022 2002-08-13 Michael Snyder <msnyder@redhat.com>
6024 * mips-tdep.c (mips_push_arguments): Rename to
6025 mips_eabi_push_arguments, and tune for EABI.
6026 (MIPS_REGS_HAVE_HOME_P): Delete.
6027 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6028 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6029 Delete references to mips_regs_have_home_p.
6031 2002-08-14 Keith Seitz <keiths@redhat.com>
6033 * Makefile.in (install-gdbtk): Create insight plugin directory.
6034 Install plugins.tcl file.
6036 2002-08-14 Keith Seitz <keiths@redhat.com>
6038 * configure.in: Move SUBDIRS to near top of the file so that
6039 --enable options may add things to it.
6040 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6041 * configure: Regenerate.
6043 2002-08-13 Michael Snyder <msnyder@redhat.com>
6045 * mips-tdep.c (mips_o32o64_push_arguments): New function,
6046 cloned from mips_push_arguments, tuned for o32/o64 ABI.
6047 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6049 2002-08-13 Andrew Cagney <ac131313@redhat.com>
6051 * vax-tdep.c (vax_get_saved_register): Delete function.
6052 (vax_gdbarch_init): Update.
6053 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6054 (ns32k_gdbarch_init): Update.
6055 * alpha-tdep.c (alpha_get_saved_register): Delete function.
6056 (alpha_gdbarch_init): Update.
6058 2002-08-13 Andrew Cagney <cagney@redhat.com>
6060 * regcache.c (init_regcache_descr): Overallocate the
6061 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6062 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6064 (set_register_cached): Add range checking assertions. Use
6067 2002-08-13 Mark Kettenis <kettenis@gnu.org>
6069 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6070 numbers for MMX registers.
6072 2002-08-13 Andrew Cagney <cagney@redhat.com>
6074 * i386-tdep.c (i386_gdbarch_init): Use
6075 generic_unwind_get_saved_register.
6077 2002-08-13 Kevin Buettner <kevinb@redhat.com>
6079 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6080 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6082 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6083 Delete. Add comment regarding this now-deleted target method.
6085 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6087 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6088 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6089 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6090 real PC and the page number (if it's within the memory bank window).
6091 (m68hc11_pseudo_register_write): Likewise when saving.
6092 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6093 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6094 (m68hc11_register_raw_size): And use 32-bit for it.
6095 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6096 16K memory bank is used by the prog; also use the virtual pc.
6098 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6100 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6101 (m68hc11_gdbarch_init): Install it in gdbarch.
6102 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6103 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6104 (MSYMBOL_SIZE): New for documentation.
6105 (insn_return_kind): Enum to specify how a function returns.
6106 (frame_extra_info): Cleanup and record the return mode.
6107 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6108 register in address computation.
6109 (m68hc11_get_return_insn): New to obtain the return instruction used
6111 (m68hc11_frame_init_saved_regs): Take into account the return
6112 instruction used by the function for far and interrupt functions.
6113 (m68hc11_init_extra_frame_info): Take into account page register.
6114 (m68hc11_frame_args_address): Adjust according to the return mode.
6115 (show_regs): Print page register only when it's used.
6117 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6119 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6120 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6121 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6123 (m68hc11_register_raw_size): Likewise.
6125 2002-08-13 Andrew Cagney <cagney@redhat.com>
6127 * i386-tdep.c (i386_register_name): Handle mmx registers.
6128 (mmx_regnum_p): New function.
6129 (i386_mmx_names): New array.
6130 (mmx_num_regs): New variable.
6131 (i386_pseudo_register_read): New function.
6132 (i386_pseudo_register_write): New function.
6133 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6135 * regcache.c (regcache_raw_read_unsigned): New function.
6136 (regcache_raw_read_signed): New function.
6137 * regcache.h (regcache_raw_read_unsigned): Declare.
6138 (regcache_raw_read_signed): Declare.
6140 2002-08-13 Andrew Cagney <cagney@redhat.com>
6142 * regcache.c (regcache_raw_read_as_address): Delete function.
6143 (regcache_cooked_read_signed): New function.
6144 (regcache_cooked_read_unsigned): New function.
6145 * regcache.h (regcache_cooked_read_signed): Declare.
6146 (regcache_cooked_read_unsigned): Declare.
6147 (regcache_raw_read_as_address): Delete declaration.
6149 * blockframe.c (generic_read_register_dummy): Use
6150 regcache_cooked_read_unsigned.
6151 * i386-tdep.c (i386_extract_struct_value_address): Use
6152 regcache_cooked_read_unsigned.
6154 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6156 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6157 double sizes according to ELF ABI flags.
6158 (gdbarch_tdep): Record elf_flags.
6160 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6162 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6163 (m6812_prolog): They can appear in 68HC12 function prologue.
6164 (m68hc11_frame_chain): Cleanup.
6166 2002-08-12 Andrew Cagney <cagney@redhat.com>
6168 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6170 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6171 (i386_linux_register_raw_size): Delete function.
6172 (i386_linux_init_abi): Update.
6173 * i386-tdep.c (i386_register_raw_size): Delete function.
6174 (i386_register_byte): Delete function.
6175 (i386_gdbarch_init): Update.
6176 (i386_register_size): Delete array.
6177 (i386_register_offset): Delete array.
6179 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6180 (REGISTER_RAW_SIZE): Delete macro.
6181 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6182 (REGISTER_BYTE): Delete macro.
6184 2002-08-11 Aidan Skinner <aidan@velvet.net>
6186 * ada-lang.c (ada_lookup_partial_symbol)
6187 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6188 prototype names so that grep ^func works properly.
6190 * ada-lang.c (ada_array_element_type)
6191 (ada_lookup_partial_symbol): Fix typos in parameter list.
6193 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6194 Fix prototype names so that grep ^func works properly.
6196 2002-08-10 Andrew Cagney <cagney@redhat.com>
6197 Elena Zannoni <ezannoni@redhat.com>
6198 Martin M. Hunt <hunt@redhat.com>
6200 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6201 (build_builtin_type_vec128i): Set the vector bit.
6202 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6203 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6204 (build_builtin_type_vec64): New function.
6205 (build_builtin_type_vec64i): New function.
6206 (build_gdbtypes): Initialize builtin_type_vec64 and
6207 builtin_type_vec64i.
6209 2002-08-09 Andrew Cagney <cagney@redhat.com>
6211 * regcache.c (regcache_dump): Compare the register offset
6213 * arch-utils.c (generic_register_byte): New function.
6214 * arch-utils.h (generic_register_byte): Declare.
6215 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6216 * gdbarch.h, gdbarch.c: Regenerate.
6218 2002-08-09 Andrew Cagney <cagney@redhat.com>
6220 * regcache.c: Include "gdbcmd.h"
6221 (_initialize_regcache): Add commands "maintenance print
6222 registers", "maintenance print raw-registers" and "maintenance
6223 print cooked-registers".
6224 (enum regcache_dump_what): Define.
6225 (dump_endian_bytes): New function.
6226 (regcache_dump): New function.
6227 (regcache_print): New function.
6228 (maintenance_print_registers): New function.
6229 (maintenance_print_raw_registers): New function.
6230 (maintenance_print_cooked_registers): New function.
6231 * Makefile.in (regcache.o): Update dependencies.
6233 2002-08-09 Michael Snyder <msnyder@redhat.com>
6235 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6236 (mips_push_arguments): Correct some comments. Use paddr_nz
6237 for printing addresses in debug output. Replace static
6238 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6239 (mips_n32n64_push_arguments): New function, cloned from
6240 mips_push_arguments and tuned for the n32/n64 ABI.
6241 (mips_push_register): Buffer needs dynamic allocation.
6242 (mips_print_register): Ditto.
6243 (do_gp_register_row): Ditto.
6244 (mips_store_return_value): Ditto.
6245 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6247 2002-08-09 Don Howard <dhoward@redhat.com>
6249 * memattr.c (mem_info_command): Print special case of upper bound
6250 as max CORE_ADDR + 1.
6252 2002-08-08 Michael Snyder <msnyder@redhat.com>
6254 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6255 returns structs by ref if they're too big to fit in two registers.
6257 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6259 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6261 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6262 mips_find_saved_regs().
6263 (mips_pop_frame): Likewise.
6265 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6267 * blockframe.c (frame_saved_regs_register_unwind): Revise
6268 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6271 2002-08-09 Grace Sainsbury <graces@redhat.com>
6273 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6274 T-packets; the 'a' is not taken as a register number.
6275 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6276 (remote_stopped_data_address): New functions; add to target
6278 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6279 prototypes to match other implementations of this
6280 function. replace integer argument with pointer -- the length
6281 field in the Z-packet is the length of what is pointed to or 1 if
6282 pointer is null. Add to target vector.
6283 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6287 * remote.c (remote_wait): Add support to extract optional
6288 watchpoint information from T-packet. Ignore unrecognized
6289 optional info in T-packet.
6290 (remote_async_wait): Ditto.
6292 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6294 * cli/cli-dump.c: Change fopen modes to use binary open modes
6295 as defined in include/fopen-bin.h throughout.
6297 2002-08-08 Michael Snyder <msnyder@redhat.com>
6299 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6301 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6303 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6304 assertion failure by returning early after a warning.
6306 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6308 * mips-tdep.c (mips_find_saved_regs): Make static.
6309 (mips_frame_init_saved_regs): New function.
6310 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6311 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6312 (mips_find_saved_regs): Delete declaration.
6314 2002-08-08 Grace Sainsbury <graces@redhat.com>
6316 * remote.c (remote_wait, remote_async_wait): Change
6317 thread_num from int to ULONGEST.
6318 (unpack_varlen_hex): Change result parameter from
6319 int * to ULONGEST *.
6321 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6323 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6324 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6326 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6328 2002-08-08 Andrew Cagney <cagney@redhat.com>
6330 * gcore.c (override_derive_stack_segment): Delete variable.
6331 (preempt_derive_stack_segment): Delete function.
6332 (derive_stack_segment): Delete function.
6333 (default_derive_stack_segment): Renamed to derive_stack_segment.
6334 (override_derive_heap_segment): Delete variable.
6335 (preempt_derive_heap_segment): Delete function.
6336 (derive_heap_segment): Delete function.
6337 (default_derive_heap_segment): Rename to derive_heap_segment.
6339 2002-08-06 Michael Snyder <msnyder@redhat.com>
6341 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6342 * mips-tdep.c (mips_EABI_use_struct_convention,
6343 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6344 New functions. (mips_use_struct_convention): Delete.
6345 (mips_gdbarch_init): set use_gdbarch_convention.
6347 2002-08-06 Michael Snyder <msnyder@redhat.com>
6349 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6350 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6351 mips_o32_reg_struct_has_addr): New functions.
6352 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6354 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6356 * regcache.c (pseudo_register): Delete function.
6357 (fetch_register): Delete function.
6358 (store_register): Delete function.
6359 (regcache_raw_read, legacy_read_register_gen): Use
6360 target_fetch_registers instead of fetch_register.
6361 (legacy_write_register_gen, regcache_raw_write): Use
6362 target_store_register instead of store_register.
6363 (write_register_bytes): Ditto.
6365 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6366 (STORE_PSEUDO_REGISTER): Delete.
6367 * gdbarch.h, gdbarch.c: Regenerate.
6369 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6371 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6372 write dump file binary.
6374 2002-08-05 Michael Snyder <msnyder@redhat.com>
6376 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6377 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6378 (mips_gdbarch_init): Set N32 target to be mips64.
6380 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6382 * frame.c (find_saved_register): Break out of loop once saved
6383 register address is found. Don't mention sparc in loop comment
6386 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6388 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6389 mips_default_saved_regsize to 8.
6391 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6393 * gcore.c: Do not include <sys/procfs.h>.
6394 * Makefile.in (gcore.o): Update dependencies.
6396 2002-08-06 Andrew Cagney <cagney@redhat.com>
6398 * configure.tgt: Make arc-*-* obsolete.
6399 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6400 * MAINTAINERS: Make arc-elf obsolete.
6401 * arc-tdep.c: Make file obsolete.
6402 * config/arc/arc.mt: Ditto.
6403 * config/arc/tm-arc.h: Ditto.
6405 2002-08-05 Theodore A. Roth <troth@verinet.com>
6407 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6409 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6411 * mcore-tdep.c (mcore_gdbarch_init): Use
6412 generic_unwind_get_saved_register instead of
6413 generic_get_saved_register.
6414 * v850-tdep.c (v850_gdbarch_init): Ditto.
6415 * frv-tdep.c (frv_gdbarch_init): Ditto.
6416 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6417 * s390-tdep.c (s390_gdbarch_init): Ditto.
6418 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6419 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6420 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6422 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6424 * objfiles.h: Add missing #include "symfile.h"
6426 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6428 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6430 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6431 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6434 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6436 * NEWS: Cleanup and nitpick.
6438 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6440 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6442 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6444 * Makefile.in (gdbtk-bp.o): Update dependencies.
6445 (gdbtk-register.o): Ditto.
6446 (gdbtk-varobj.o): Ditto.
6448 2002-08-03 Andrew Cagney <cagney@redhat.com>
6450 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6451 m68hc11_fetch_pseudo_register.
6452 (m68hc11_pseudo_register_write): Replace
6453 m68hc11_store_pseudo_register.
6454 (m68hc11_gdbarch_init): Update.
6456 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6458 * gdbarch.sh: Include "gdb_string.h".
6459 * gdbarch.c: Regenerate.
6461 * regcache.c: Include "gdb_string.h".
6462 * ax-general.c: Ditto.
6464 * std-regs.c: Ditto.
6465 * fbsd-proc.c: Ditto.
6468 * Makefile.in (regcache.o): Update dependencies.
6469 (thread.o, gdbarch.o): Ditto.
6470 (ax-general.o, gdbarch.o): Ditto.
6471 (varobj.o, std-regs.o): Ditto.
6472 (fbsd-proc.o): Specify dependencies.
6474 2002-08-02 Andrew Cagney <cagney@redhat.com>
6476 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6478 (regcache_cooked_write): Ditto.
6480 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6482 * regcache.c (regcache_cooked_read): New function.
6483 (regcache_cooked_write): New function.
6484 (read_register_gen): Rewrite using regcache_cooked_read.
6485 (write_register_gen): Rewrite using regcache_cooked_write.
6487 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6490 2002-08-02 Andrew Cagney <cagney@redhat.com>
6492 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6493 Replace the architecture methods register_read and register_write.
6494 * gdbarch.h, gdbarch.c: Regenerate.
6495 * regcache.c (init_regcache_descr): Update.
6496 (read_register_gen): Update.
6497 (write_register_gen): Update.
6498 (supply_register): Update comment.
6500 * sh-tdep.c (sh_gdbarch_init): Update.
6501 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6502 `regcache' and `gdbarch' parameters. Make `buffer' a void
6503 pointer. Update code.
6504 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6505 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6506 void pointer. Update code.
6507 (sh64_register_write): Delete.
6508 (sh4_register_read): Delete.
6509 (sh64_register_read): Delete.
6510 (sh4_register_write): Delete.
6511 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6512 void pointer, `to' parameter a void pointer.
6513 (sh_sh64_register_convert_to_raw): Ditto.
6515 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6517 * mips-tdep.c (mips_register_virtual_type): Use architecture
6518 invariant return values.
6520 2002-08-01 Andrew Cagney <cagney@redhat.com>
6522 * linux-proc.c: Include "gdb_string.h".
6523 * Makefile.in (linux-proc.o): Update dependency list.
6525 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6527 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6530 2002-08-01 Grace Sainsbury <graces@redhat.com>
6532 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6533 to_insert_watchpoint, to_remove_watchpoint,
6534 to_stopped_by_watchpoint, to_stopped_data_address,
6535 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6536 target vecctor. Define their corresponding macros so they call
6539 * target.c: Add default and debug versions of for
6540 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6541 to_insert_watchpoint, to_remove_watchpoint,
6542 to_stopped_by_watchpoint, to_stopped_data_address,
6543 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6545 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6547 * mips-tdep.c (mips_register_virtual_type): New function.
6548 (mips_gdbarch_init): Register mips_register_virtual_type()
6549 with gdbarch machinery.
6550 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6551 this file instead of tm-bigmips.h.
6552 (MIPS_REGSIZE): Delete this macro.
6553 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6554 multiarch version in mips-tdep.c will be found.
6556 2002-08-01 Andrew Cagney <cagney@redhat.com>
6558 * NEWS: Menion that CHILL has been made obsolete.
6560 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6561 * stabsread.c (read_range_type): Ditto.
6562 * gdbtypes.h: Ditto.
6563 * language.c (binop_type_check): Ditto.
6564 (binop_result_type): Ditto.
6565 (integral_type): Ditto.
6566 (character_type): Ditto.
6567 (string_type): Ditto.
6568 (boolean_type): Ditto.
6569 (structured_type): Ditto.
6570 (lang_bool_type): Ditto.
6571 (binop_type_check): Ditto.
6572 * language.h (_LANG_chill): Ditto.
6573 * dwarfread.c (set_cu_language): Ditto.
6574 * dwarfread.c (CHILL_PRODUCER): Ditto.
6575 * dwarfread.c (handle_producer): Ditto.
6576 * expression.h (enum exp_opcode): Ditto.
6577 * eval.c: Ditto for comments.
6578 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6579 * expprint.c (print_subexp): Ditto.
6580 (print_subexp): Ditto.
6581 * valops.c (value_cast): Ditto.
6582 (search_struct_field): Ditto.
6583 * value.h (COERCE_VARYING_ARRAY): Ditto.
6584 * symfile.c (init_filename_language_table): Ditto.
6585 (add_psymbol_with_dem_name_to_list): Ditto.
6586 * valarith.c (value_binop): Ditto.
6588 * valops.c (value_slice): Ditto.
6589 * symtab.h (union language_specific): Ditto.
6590 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6591 (SYMBOL_DEMANGLED_NAME): Ditto.
6592 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6593 * defs.h (enum language): Ditto.
6594 * symtab.c (got_symtab): Ditto.
6595 * utils.c (fprintf_symbol_filtered): Ditto.
6597 * ch-typeprint.c: Make file obsolete.
6598 * ch-valprint.c: Make file obsolete.
6599 * ch-lang.h: Make file obsolete.
6600 * ch-exp.c: Make file obsolete.
6601 * ch-lang.c: Make file obsolete.
6603 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6605 (TARGET_FLAGS_TO_PASS): Ditto.
6606 (CHILLFLAGS): Obsolete.
6608 (CHILL_FOR_TARGET): Obsolete.
6609 (CHILL_LIB): Obsolete.
6610 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6612 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6613 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6615 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6618 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6620 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6621 This does not change anything at the moment, but will be helpful
6622 later when full Ada support is integrated.
6624 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6626 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6629 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6631 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6632 and save it in a local variable. Use variable in later test.
6634 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6636 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6637 test. (Thanks to Daniel Jacobowitz.)
6639 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6641 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6642 (mips_abi_strings): Add "n64".
6643 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6645 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6647 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6648 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6650 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6652 * utils.c (host_pointer_to_address, address_to_host_pointer):
6653 Use gdb_assert() instead of explicit call to internal_error().
6655 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6657 * Makefile.in (rs6000-nat.o): Update dependencies.
6659 From Nicholas Duffek:
6660 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6661 (aix-thread.o): New rule.
6662 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6663 * config/powerpc/aix432.mh: New file.
6665 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6667 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6668 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6669 (fetch_core_registers, ppc_linux_supply_gregset)
6670 (ppc_linux_supply_fpregset): New functions.
6671 (ppc_linux_regset_core_fns): New.
6672 (_initialize_ppc_linux_tdep): Call add_core_fns.
6673 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6674 and ppc_linux_supply_gregset.
6675 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6676 (supply_fpregset): Call ppc_linux_supply_fpregset.
6677 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6679 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6681 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6683 * symtab.c (lookup_symbol): Demangle before lowercasing.
6685 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6687 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6689 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6690 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6691 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6692 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6694 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6695 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6696 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6697 (avr-tdep.o, mon960-rom.o): Ditto.
6698 (aout_stabs_gnu_h): Define.
6699 (symtab_h): Remove $(gdb_obstack_h).
6701 2002-07-30 Jim Blandy <jimb@redhat.com>
6703 Patch from David Carlton <carlton@math.stanford.edu>:
6704 * gdbinit.in: Move the `dir' commands that add GDB's own source
6705 directory to the search path to the end, so that the `gdb' source
6706 directory will be searched first.
6708 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6710 * gdb_obstack.h: New file.
6711 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6712 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6713 * objfiles.h: Include "gdb_obstack.h".
6714 * Makefile.in (gdb_obstack_h): Define.
6715 (symtab_h): Add $(gdb_obstack_h).
6716 (objfiles_h): Add $(gdb_obstack_h).
6718 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6719 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6720 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6721 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6722 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6723 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6724 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6725 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6727 * Makefile.in (bcache.o): Update dependencies.
6728 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6729 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6730 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6731 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6732 (stabsread.o, symfile.o, symmisc.o): Ditto.
6733 (symtab.o, typeprint.o, macroexp.o): Ditto.
6734 (macrotab.o, mdebugread.o): Ditto.
6735 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6736 (coff_ecoff_h, aout_aout64_h): Define.
6737 (aout_stabs_gnu_h, libaout_h): Define.
6739 2002-07-29 Andrew Cagney <cagney@redhat.com>
6741 * regcache.c (struct regcache_descr): Rename nr_registers to
6742 nr_cooked_registers. Revise comments describing the structure
6744 (init_regcache_descr): Update.
6745 (init_legacy_regcache_descr): Update.
6746 (read_register_gen, write_register_gen): When a cooked register in
6747 the raw register range, directly access the value from the raw
6750 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6752 * z8k-tdep.c: Do not include "obstack.h".
6753 * h8300-tdep.c, h8500-tdep.c: Ditto.
6754 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6755 * valprint.c, v850-tdep.c: Ditto.
6756 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6757 * mn10200-tdep.c: Ditto.
6759 * Makefile.in (z8k-tdep.o): Update dependencies.
6760 (m68hc11-tdep.o, valprint.o): Ditto.
6761 (v850-tdep.o, d10v-tdep.o): Ditto.
6762 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6763 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6764 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6765 (sh_opc_h, gdb_sim_sh_h): Define.
6766 (elf_sh_h, elf_bfd_h): Define.
6767 (opcode_m68hc11_h): Define.
6768 (OPCODES_SRC, OPCODES_DIR): define.
6769 (OPCODES): Use $(OPCODES_DIR).
6770 (gdb_sim_d10v_h): Rename sim_d10v_h.
6771 (gdb_sim_arm_h): Rename sim_arm_h.
6773 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6775 * utils.c (host_pointer_to_address, address_to_host_pointer):
6776 Change internal_error() message to indicate function responsible
6779 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6781 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6782 calls to local_hex_string_custom().
6784 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6786 * irix5-nat.c: Move IRIX shared library support from here...
6787 * solib-irix.c: ...to here. Revised substantially to work with
6788 generic solib framework.
6790 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6791 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6792 * mips-irix-tdep.c: New file.
6794 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6795 (mips-irix-tdep.o, solib-irix.o): New rules.
6796 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6798 * config/mips/irix6.mt (TDEPFILES): Likewise.
6799 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6801 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6803 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6804 disabled (via ``#if 0'') includes.
6806 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6808 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6809 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6810 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6811 Add support for the fpscr register.
6812 * rs6000-nat.c (regmap, fetch_inferior_registers)
6813 (store_inferior_registers, fetch_core_registers): Likewise.
6815 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6817 * rs6000-nat.c (language.h): Include.
6818 (special_regs): Delete this array.
6819 (regmap): New function.
6820 (fetch_register, store_register): Use regmap() to map gdb
6821 register numbers to ptrace register numbers. Also, use
6822 outputs from regmap() to make decisions regarding type of
6823 ptrace() call to make. In particular, don't compare against
6824 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6825 (fetch_inferior_registers, store_inferior_registers): Where
6826 possible, obtain register numbers from tdep struct. Don't
6827 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6828 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6829 (LAST_UISA_SP_REGNUM): Delete.
6831 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6833 * rs6000-nat.c (ppc-tdep.h): Include.
6834 (fetch_registers, store_register, fetch_core_registers): Don't
6835 access registers[] directly. Instead, use supply_register() or
6836 regcache_collect() as appropriate.
6837 (find_toc_address): Format hex address with local_hex_string().
6839 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6841 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6844 2002-07-24 Tom Tromey <tromey@redhat.com>
6846 * jv-exp.y: Marked all strings with _().
6847 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6849 (MethodInvocation, CastExpression, parse_number, yyerror,
6850 java_type_from_name, push_expression_name, yylex): Typo fixes.
6852 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6854 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6855 (tee_file_flush, tee_file_write, tee_file_fputs)
6856 (tee_file_isatty): New.
6857 * ui-file.h (tee_file_new): Add prototype.
6859 2002-07-24 Aidan Skinner <aidan@velvet.net>
6861 * ada-lang.c: Change k&r style function definitions to prototyped
6863 * ada-typeprint.c: Change k&r style function definitions to prototyped
6865 * ada-valprint.c: Change k&r style function definitions to prototyped
6868 2002-07-24 Andrew Cagney <cagney@redhat.com>
6870 * README: Remove reference to remote-bug.
6871 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6873 (m88k-nat.o): Delete rule.
6874 (m88k-tdep.o): Delete rule.
6875 (remote-bug.o): Delete rule.
6876 * MAINTAINERS: Mark as obsolete.
6877 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6878 * m88k-tdep.c: Make file obsolete.
6879 * config/m88k/m88k.mh: Ditto.
6880 * config/m88k/delta88v4.mh: Ditto.
6881 * config/m88k/delta88v4.mt: Ditto.
6882 * config/m88k/delta88.mt: Ditto.
6883 * config/m88k/delta88.mh: Ditto.
6884 * remote-bug.c: Ditto.
6885 * config/m88k/tm-delta88.h: Ditto.
6886 * config/m88k/nm-delta88v4.h: Ditto.
6887 * config/m88k/xm-delta88.h: Ditto.
6888 * config/m88k/xm-dgux.h: Ditto.
6889 * config/m88k/tm-m88k.h: Ditto.
6890 * config/m88k/nm-m88k.h: Ditto.
6891 * config/m88k/tm-delta88v4.h: Ditto.
6892 * m88k-nat.c: Ditto.
6893 * cxux-nat.c: Ditto.
6894 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6895 and m88*-*-* obsolete.
6896 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6899 2002-07-24 Andrew Cagney <cagney@redhat.com>
6901 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6902 constant. Same for local pointer variables.
6903 (extract_signed_integer): Ditto.
6904 * defs.h (extract_unsigned_integer): Update.
6905 (extract_signed_integer): Update.
6907 2002-07-24 Andrew Cagney <cagney@redhat.com>
6909 * regcache.c (regcache_raw_write): Change buf parameter to a
6910 constant void pointer.
6911 (regcache_raw_read): Change buf parameter to a void pointer.
6912 (legacy_write_register_gen): Change myaddr parameter a constant
6914 (supply_register): Change val parameter to a const void pointer.
6915 * regcache.h (regcache_raw_write): Update declaration.
6916 (regcache_raw_read): Update declaration.
6917 (supply_register): Update declaration.
6919 2002-07-24 Tom Tromey <tromey@redhat.com>
6921 * defs.h (gdb_readline_wrapper): Declare.
6922 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6923 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6924 * top.c (gdb_readline_wrapper): New function.
6925 (command_line_input): Use it.
6927 2002-07-24 Andrew Cagney <cagney@redhat.com>
6929 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6930 regcache_read and regcache_write.
6931 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6932 * regcache.c: Update.
6933 * sh-tdep.c (sh64_push_arguments): Update comment.
6934 (sh_pseudo_register_read): Update.
6935 (sh_pseudo_register_write): Update.
6936 (sh4_register_read): Update.
6937 (sh4_register_write): Update.
6938 (sh64_pseudo_register_read): Update.
6939 (sh64_pseudo_register_write): Update.
6940 (sh64_register_read): Update.
6941 (sh64_register_write): Update.
6942 * i386-tdep.c (i386_extract_return_value): Update.
6943 (i386_extract_struct_value_address): Update.
6944 (i386_extract_return_value): Update.
6945 * blockframe.c (generic_read_register_dummy): Update.
6946 (generic_call_dummy_register_unwind): Update
6947 * infrun.c (write_inferior_status_register): Update.
6949 2002-07-23 Jim Blandy <jimb@redhat.com>
6951 * parser-defs.h (expression_context_pc): Make this extern.
6952 (Thanks to Michael Snyder.)
6954 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6956 GDB 5.2.1 released from 5.2 branch.
6957 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6958 * README: Update to mention 5.2.1.
6960 2002-07-23 Mark Salter <msalter@redhat.com>
6962 * remote.c (remote_read_bytes): Fix check for error.
6964 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6966 * aix-thread.c (language.h): Include.
6967 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6968 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6969 Print newlines at end of debug messages.
6970 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6971 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6973 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6975 * aix-thread.c (ppc-tdep.h): Include.
6976 (special_register_p): New function.
6977 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6978 (store_regs_user_thread): Use register number information from
6979 gdbarch_tdep struct instead of hardcoded offsets relative to
6980 FIRST_UISA_SP_REGNUM.
6981 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6982 special_register_p() instead of using FPLAST_REGNUM and
6983 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6984 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6985 will be MQ's register number.
6987 2002-07-22 Michael Snyder <msnyder@redhat.com>
6989 * aix-thread.c (ops): Rename to aix_thread_ops.
6990 (base_ops): Rename to base_target.
6991 (ops_attach): Rename to aix_thread_attach.
6992 (ops_detach): Rename to aix_thread_detach.
6993 (ops_resume): Rename to aix_thread_detach.
6994 (ops_wait): Rename to aix_thread_wait.
6995 (ops_kill): Rename to aix_thread_kill.
6996 (init_ops): Rename to init_aix_thread_ops.
6997 (ops_fetch_register): Rename to aix_thread_fetch_register.
6998 (ops_store_register): Rename to aix_thread_store_register.
6999 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7000 (ops_thread_alive): Rename to aix_thread_thread_alive.
7001 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7002 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
7003 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7004 (fetch_regs_lib): Rename to fetch_regs_user_thread.
7005 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7006 (store_regs_lib): Rename to store_regs_user_thread.
7007 (store_regs_kern): Rename to store_regs_kernel_thread.
7009 2002-07-22 Michael Snyder <msnyder@redhat.com>
7011 * aix-thread.c (ops_prepare_to_store): Eliminate.
7012 (init_ops): Don't initialize ops.prepare_to_store.
7013 (store_regs_kern): Pre-fetch register buffers from child,
7014 because some registers may not be in the cache. Copy
7015 regs from register cache only if they are cached.
7016 (store_regs_lib): Copy regs from register cache only
7018 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7019 fill_gprs64): Ditto.
7021 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7023 * aix-thread.c (gdb_assert.h): Include.
7024 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7025 register sizes (from register cache) match size of buffer holding
7027 (fill_sprs32): Change parameter types to match those in the ptrace()
7029 (store_regs_lib): Likewise, but for 32-bit temporary variables.
7030 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7032 2002-07-22 Michael Snyder <msnyder@redhat.com>
7034 * aix-thread.c (supply_sprs64): Cosmetic change.
7035 (supply_sprs32): Cosmetic change.
7036 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7037 (fill_sprs64): Use regcache_collect instead of read_register.
7038 (store_regs_lib): Use regcache_collect instead of
7039 read_register. Use fill_sprs32 instead of fill_sprs64,
7040 if debugging a 32-bit architecture.
7041 (store_regs_kern): Use fill_gprs64 etc. to pull the values
7042 out of the register cache, instead of passing a pointer into
7043 the register cache directly to ptrace. Use regcache_collect
7044 insteaad of read_register.
7045 (ops_prepare_to_store): Use target_read_registers instead
7046 of read_register_bytes.
7048 2002-07-20 Aidan Skinner <aidan@velvet.net>
7050 * MAINTAINERS: Add self under write after approval.
7052 2002-07-20 Aidan Skinner <aidan@velvet.net>
7054 * ada-tasks.c: Change k&r style function definitions to prototyped
7057 2002-07-19 Andrew Cagney <ac131313@redhat.com>
7059 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7060 * x86-64-tdep.c: Include "objfiles.h".
7061 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7062 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7064 2002-07-17 Michal Ludvig <michal@suse.cz>
7066 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7067 (update_context): Initialise cfa variable.
7069 2002-07-17 Michael Snyder <msnyder@redhat.com>
7071 * aix-thread.c: Shorten some long lines.
7072 Bring comments into line with code spec.
7074 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7076 * infrun.c: Re-indent using gdb_indent.sh.
7078 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7080 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7081 Leave the indentation temporarily untouched, to minimize the diffs.
7083 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
7085 * stabsread.c: Make os9k sections of the code obsolete,
7087 * stabsread.h: Make os9k sections of the code obsolete.
7089 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7091 * linux-low.c (regsets_store_inferior_registers): Add free()
7092 at the end of a loop to prevent memory leak.
7093 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7094 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7095 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7097 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7099 2002-07-17 Jim Blandy <jimb@redhat.com>
7101 * macrocmd.c (info_macro_command): Remove newline from error
7104 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7106 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7107 (sh_gdbarch_init): Use it for sh-dsp.
7109 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7111 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7112 64-bit DWARF2 format.
7114 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7116 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7117 <sys/proc.h> when not available.
7119 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7121 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7122 * stabsread.c: Make os9k sections of the code obsolete.
7123 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7124 * config/i386/i386os9k.mt: Make file obsolete.
7125 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7126 (COMMON_OBS): Remove os9kread.o
7127 (SFILES): Remove os9kread.c.
7128 (os9kread.o, remote-os9k.o): Make target obsolete.
7129 * remote-os9k.c: Make file obsolete.
7130 * os9kread.c: Make file obsolete.
7133 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7135 * NEWS: Mention that the FR30 has been made obsolete.
7136 * fr30-tdep.c: Make file obsolete.
7137 * config/fr30/tm-fr30.h: Ditto.
7138 * config/fr30/fr30.mt: Ditto.
7139 * configure.tgt: Make fr30-*-elf obsolete.
7140 * MAINTAINERS: Make fr30-elf obsolete.
7142 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7144 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7145 found is not inside a section.
7147 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7149 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7151 (pdc_realloc): Use xrealloc() instead of realloc().
7153 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7155 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7156 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7157 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7160 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7162 * aix-thread.c (ptrace_check): Eliminate goto.
7163 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7166 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7168 * aix-thread.c (gdbcmd.h): Include.
7169 (DEBUG, DBG, DBG2, dbg): Eliminate.
7170 (debug_aix_thread): New static global.
7171 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7172 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7173 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7174 invocations to DBG and DBG2 macros to test against
7175 ``debug_aix_thread'' and call fprintf_unfiltered().
7176 (_initialize_aix_thread): Add new command "set debug aix-thread".
7178 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7180 From Gerhard Tonn <TON@de.ibm.com>:
7181 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7182 instead of supply_register.
7184 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7186 * dwarf2cfi.c: Include "gdb_assert.h".
7187 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7189 (update_context): Do not use __func__. Add missing ``break''.
7190 (update_context): Do not use __func__.
7192 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7194 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7195 and its setting. Set gdbarch instruction printing functions
7196 directly. For non-rs6000 case use new function
7197 gdb_print_insn_powerpc.
7198 (gdb_print_insn_powerpc): New function.
7200 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7202 * NEWS: Mention that the d30v has been marked obsolete.
7203 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7204 * configure.tgt: Mark d30v-*-* as obsolete.
7205 * d30v-tdep.c: Mark file as obsolete.
7206 * config/d30v/d30v.mt: Ditto.
7207 * config/d30v/tm-d30v.h: Ditto.
7209 2002-07-13 Aidan Skinner <aidan@velvet.net>
7211 * ada-tasks.c (add_task_entry): replace calls to
7212 malloc() with xmalloc
7213 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7215 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7216 ada_finish_decode_line_1, all_sals_for_line
7217 ada_breakpoint_rewrite): replace calls to free() with xfree()
7219 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7221 From Nicholas Duffek (with minor changes by Martin Hunt,
7222 Louis Hamilton, and Kevin Buettner):
7223 * aix-thread.c: New file.
7225 2002-07-12 Petr Sorfa <petrs@caldera.com>
7227 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7228 complaint for invalid attribute class or form.
7229 (read_func_scope): DW_AT_frame_base
7230 better handling of DW_AT_block*.
7231 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7232 better handling of DW_AT_block*.
7233 (read_common_block): DW_AT_location
7234 better handling of DW_AT_block*.
7235 (read_partial_die): DW_AT_location better handling
7237 (new_symbol): DW_AT_external better handling of
7238 DW_AT_block*. Proper initialization of variable
7240 (attr_form_is_block): New function that returns true
7241 if the attribute's form is of DW_FORM_block*.
7243 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7245 * valops.c (find_method_list): Remove comment about
7246 removed STATIC_MEMFUNCP argument.
7247 (value_find_oload_method_list): Likewise.
7249 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7251 From Nicholas Duffek:
7252 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7253 target_new_objfile_hook.
7255 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7257 From Nicholas Duffek:
7258 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7261 2002-07-12 Andrew Cagney <cagney@redhat.com>
7263 * MAINTAINERS: Mention --enable-sim-build-warnings.
7264 (m68hc11-elf): Disable sim build warnings.
7265 (m32r-elf): Mark as broken obsolete candidate.
7266 (x86_64-linux-gnu): Mark as buildable with -Werror.
7267 (arm-elf): Change -w to ``,'' which enables warnings but not
7270 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7272 * bcache.h: Update copyright.
7273 (struct bstring, struct bcache): Move definition to "bcache.c".
7274 Replaced by opaque declaration.
7275 (bcache_xfree): Replace free_bcache.
7276 (bcache_xmalloc, bcache_memory_used): Declare.
7278 * bcache.c: Update copyright.
7279 (struct bstring, struct bcache): Moved to here from "bcache.h".
7281 (bcache_xmalloc, bcache_memory_used): New functions.
7282 (bcache_xfree): Replace function free_bcache.
7284 * Makefile.in (objfiles.o): Add $(bcache_h).
7285 (objfiles_h): Remove $(bcache_h).
7286 (symfile.o): Add $(bcache_h).
7288 * symmisc.c: Update copyright.
7289 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7290 (print_objfile_statistics): Use bcache_memory_used.
7292 * symfile.c: Include "bcache.h".
7293 (reread_symbols): Use bcache_xfree.
7294 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7295 (add_psymbol_to_list): Pass psymbol_cache by value.
7296 (add_psymbol_with_dem_name_to_list): Ditto.
7298 * objfiles.h: Update copyright.
7299 (struct bcache): Declare opaque. Do not include "bcache.h".
7300 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7302 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7304 * objfiles.c: Include "bcache.h". Update copyright.
7305 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7307 (free_objfile): Use bcache_xfree.
7309 2002-07-11 Grace Sainsbury <graces@redhat.com>
7311 * monitor.c (monitor_fetch_register): Make name a constant.
7312 (monitor_store_register): Same.
7314 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7316 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7317 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7318 (finish_block) For non-function blocks, hash the symbol table. For
7319 function blocks, mark the symbol table as unhashed.
7320 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7321 (msymbol_hash_iw): Likewise.
7322 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7324 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7325 (lookup_minimal_symbol): Likewise for both.
7326 * symtab.h (struct block): Add `hashtable' flag. Comment the
7328 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7329 (ALL_BLOCK_SYMBOLS): Update.
7330 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7331 (struct symbol): Add `hash_next' pointer.
7332 * symtab.c (lookup_block_symbol): Search using the hash table when
7334 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7335 (search_symbols, find_addr_symbol): Likewise.
7337 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7338 (read_dst_symtab): Likewise.
7339 * jv-lang.c (get_java_class_symtab): Likewise.
7340 * mdebugread.c: Include "gdb_assert.h".
7341 (shrink_block): Assert that the block being modified is not hashed.
7342 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7343 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7345 (dump_symtab): Recognize hashed blocks.
7346 * printcmd.c (print_frame_args): Assert that function blocks do not
7347 have hashed symbol tables.
7348 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7349 (fill_in_ada_prototype, debug_print_block): Likewise.
7350 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7352 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7354 * stack.c (print_frame): Use result of frame_address_in_block()
7355 instead of fi->pc when evaluating symbols.
7356 (backtrace_command_1): Ditto.
7358 2002-07-11 Andrew Cagney <cagney@redhat.com>
7360 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7363 * arm-tdep.c (arm_register_name): Make return type constant.
7365 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7367 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7369 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7370 * s390-tdep.c (s390_fp_regnum): Ditto.
7371 (s390_read_fp): Ditto.
7372 (s390_pop_frame): Ditto.
7373 (_initialize_s390_tdep): Ditto.
7374 * remote.c (get_remote_state): Ditto.
7375 * procfs.c (mappingflags): Ditto.
7376 * memattr.c (_initialize_mem): Ditto.
7377 * mcore-tdep.c (mcore_pop_frame): Ditto.
7378 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7379 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7380 * language.c (set_case_str): Ditto.
7381 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7382 * frv-tdep.c (new_variant): Ditto.
7383 (frv_stopped_data_address): Ditto.
7384 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7385 (context_alloc): Ditto.
7386 (frame_state_alloc): Ditto.
7387 (unwind_tmp_obstack_init): Ditto.
7388 (unwind_tmp_obstack_free): Ditto.
7389 (cfi_read_fp): Ditto.
7390 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7391 (cris_pop_frame): Ditto.
7392 * c-lang.c (scanning_macro_expansion): Ditto.
7393 (finished_macro_expansion): Ditto.
7394 (c_preprocess_and_parse): Ditto.
7395 * gdbarch.sh: Ditto.
7396 * gdbarch.h, gdbarch.c: Regenerate.
7397 * config/mn10200/tm-mn10200.h: Adjust indentation.
7398 * target.c: Adjust indentation.
7399 * symtab.h: Adjust indentation.
7400 * stabsread.h: Adjust indentation.
7401 * remote-es.c: Adjust indentation.
7402 * os9kread.c: Adjust indentation.
7404 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7406 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7407 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7409 2002-07-10 Grace Sainsbury <graces@redhat.com>
7411 * NEWS: Mention m68k, mcore multi-arching.
7412 * MAINTAINERS: Change status of m68k, mcore to reflect
7415 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7417 * valops.c (find_overload_match): Free oload_syms.
7419 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7421 Define HAVE_SYS_PROC_H if sys/proc.h exists
7422 * configure.in: Add check for sys/proc.h
7423 * config.in: Regenerate.
7424 * configure: Regenerate.
7426 2002-07-09 Grace Sainsbury <graces@redhat.com>
7428 * config/m68k/tm-m68k.h: Remove macros wrapped in
7429 #if !GDB_MULTI_ARCH.
7431 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7433 * config.in, configure: Regenerate.
7435 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7437 * dwarf2cfi.c: Include "gcore.h".
7438 (execute_stack_op): Fix implementation of the
7439 DW_OP_deref and DW_OP_deref_size operators by letting do their
7440 lookup in the target.
7442 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7444 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7445 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7448 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7450 Fix PR gdb/595, gdb/602
7451 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7452 Don't call value_cast, just read the vtable pointer; update comments
7455 2002-07-05 Grace Sainsbury <graces@redhat.com>
7457 * config/mcore/tm-mcore.h: Remove file.
7458 * config/mcore/mcore.mt: Remove definition of TM_FILE
7459 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7461 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7463 * i386bsd-tdep.c: Include "gdb_string.h".
7465 2002-07-04 Grace Sainsbury <graces@redhat.com>
7467 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7468 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7470 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7471 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7472 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7473 (RETVAL_REGNUM): Move macros from tm-mcore.h
7474 (mcore_reg_struct_has_addr): New function.
7475 (mcore_gdbarch_init): Added initializations for the macros removed
7478 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7480 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7481 traditonal string branding within the ELF header.
7483 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7485 * symtab.c (remove_params): New function.
7486 (make_symbol_overload_list): Use it instead of cplus_demangle.
7487 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7489 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7491 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7493 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7495 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7496 and tdep->sigtramp_end.
7497 * i386obsd-nat.c: New file.
7498 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7500 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7501 Don't call get_current_frame().
7503 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7505 * i386-nat.c (child_post_startup_inferior): New function
7506 calling i386_cleanup_dregs if
7507 I386_USE_GENERIC_WATCHPOINTS is defined.
7508 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7509 conditional to acknowledge that i386-nat.c has its
7510 own child_post_startup_inferior function.
7512 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7514 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7515 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7516 instead of MAX_REGISTER_RAW_SIZE.
7517 (i386_extract_return_value, i386_extract_struct_value_address):
7518 Convert to use regcache.
7519 (i386_gdbarch_init): Set max_register_raw_size and
7520 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7521 Set extract_return_value and extract_struct_value_address instead
7522 of their deprecated variants.
7524 Convert i386 target to generic dummy frames.
7525 * i386-tdep.c: Include "symfile.h".
7526 (i386_frameless_signal_p): Consider a function to be frameless if
7527 the pc points at the first instruction of the function.
7528 (i386_frame_chain): Handle (generic) call dummies.
7529 (i386_frame_saved_pc): Likewise.
7530 (i386_frame_init_saved_regs): Remove code dealing with call
7531 dummies on the stack.
7532 (i386_push_dummy_frame): Removed.
7533 (i386_call_dummy_words): Removed.
7534 (i386_fix_call_dummy): Removed.
7535 (i386_push_return_address): New function.
7536 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7537 parameter, and don't call get_current_frame.
7538 (i386_pop_frame): New function.
7539 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7540 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7541 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7542 call_dummy_length to 0, set call_dummy_words to NULL, set
7543 sizeof_call_dummy_words to 0, set fix_call_dummy to
7544 generic_fix_call_dummy, set pc_in_call_dummy to
7545 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7546 generic_push_dummy_frame, set push_return_address to
7547 i386_push_return_address and set frame_chain_valid to
7548 generic_file_frame_chain_valid.
7550 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7552 * gdbarch.sh (struct regcache): Add opaque declaration.
7553 (EXTRACT_RETURN_VALUE): New architecture method.
7554 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7555 * gdbarch.h, gdbarch.c: Regenerate.
7556 * arch-utils.c (legacy_extract_return_value): New function.
7557 * arch-utils.h (legacy_extract_return_value): Declare.
7558 * values.c (value_being_returned): Re-enable code handling
7559 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7560 deprecated_grub_regcache_for_registers call to block handling
7561 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7562 (EXTRACT_RETURN_VALUE): Do not define.
7564 2002-07-03 Grace Sainsbury <graces@redhat.com>
7566 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7567 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7568 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7569 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7570 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7571 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7572 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7573 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7574 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7575 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7576 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7577 argument so the function fits the prototype in the architecture
7579 (mcore_pop_frame): Remove argument so the function fits the
7580 prototype. Use get_current_frame instead of the argument.
7581 (mcore_push_arguments): Change type of struct_return so the
7582 function can be used in the architecture vector.
7583 (mcore_store_struct_return): Add.
7584 (mcore_frame_init_saved_regs): Add.
7585 (mcore_gdbarch_init): Add function calls to replace the macros
7586 removed from tm-mcore.h
7588 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7590 * infcmd.c (print_return_value): Remove compatibility code calling
7591 deprecated_grub_regcache_for_registers.
7593 * values.c: Include "regcache.h".
7594 (value_being_returned): Update. Use
7595 deprecated_grub_regcache_for_registers to extract the register
7597 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7598 ``struct regcache''.
7599 * Makefile.in (values.o): Add dependency on $(regcache_h).
7601 * inferior.h (run_stack_dummy): Change type of second parameter to
7602 a ``struct regcache''.
7603 * valops.c (hand_function_call): Change type of retbuf to ``struct
7604 regcache''. Allocate using regcache_xmalloc, clean using
7605 make_cleanup_regcache_xfree.
7606 * infcmd.c (run_stack_dummy): Update. Use
7607 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7609 * regcache.c (do_regcache_xfree): New function.
7610 (make_cleanup_regcache_xfree): New function.
7611 * regcache.h (make_cleanup_regcache_xfree): Declare.
7613 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7615 * event-top.c (command_line_handler): Don't read past
7616 beginning of buffer.
7618 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7620 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7622 (varobj_create): Store frame_id for root.
7623 (varobj_gen_name): Use xasprintf.
7624 (varobj_update): Save and restore frame using get_frame_id() and
7626 (create_child): Use xasprintf.
7627 (new_root_variable): Initialize frame_id.
7628 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7629 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7630 to prevent memory leak.
7632 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7634 * valops.c (hand_function_call): Move declaration of retbuf to
7635 start of function, allocate using malloc, add a cleanup but before
7636 the inf_status cleanup, cleanup the buffer. Rename local variable
7637 old_chain to inf_status_cleanup.
7639 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7641 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7643 * cli/cli-decode.c (cmd_func_p): New function.
7644 (cmd_func): New function.
7646 * command.h: Add cmd_func() and cmd_func_p().
7648 2002-07-03 Grace Sainsbury <graces@redhat.com>
7650 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7651 (REGISTER_SIZE): Remove.
7652 (MAX_REGISTER_RAW_SIZE): Remove.
7653 (REGISTER_VIRTUAL_TYPE): Remove.
7654 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7655 (REGISTER_NAME): Remove.
7656 (USE_GENERIC_DUMMY_FRAMES): Remove.
7657 (CALL_DUMMY): Remove.
7658 (CALL_DUMMY_START_OFFSET): Remove.
7659 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7660 (CALL_DUMMY_LOCATION): Remove.
7661 (FIX_CALL_DUMMY): Remove.
7662 (CALL_DUMMY_ADDRESS): Remove.
7663 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7664 (SAVE_DUMMY_FRAME_TOS): Remove.
7665 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7666 (mcore_register_virtual_type): New function.
7667 (mcore_register_byte): New function.
7668 (mcore_register_size): New function.
7669 (mcore_register_name): New function.
7670 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7671 macros removed from tm-mcore.h.
7672 (mcore_dump_tdep): Add.
7673 (_initialize_mcore_tdep): Add gdbarch_register call.
7675 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7677 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7678 frameless_look_for_prologue, such that we actually call this
7681 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7683 * frame.h (frame_address_in_block): New function.
7685 * blockframe.c (frame_address_in_block): New function extracted
7686 from get_frame_block().
7687 (get_frame_block): Use frame_address_in_block().
7688 (block_innermost_frame): Use frame_address_in_block() to match
7689 the frame pc address against the block boundaries rather than
7690 the frame pc directly. This prevents a failure when a frame pc
7691 is actually a return-address pointing immediately after the end
7694 2002-07-02 Grace Sainsbury <graces@redhat.com>
7696 * MAINTAINERS: Add self under write after approval.
7698 2002-07-02 Grace Sainsbury <graces@redhat.com>
7700 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7701 used in architecture vector. The default is
7702 m68k_local_breakpoint_from_pc.
7703 (m68k_local_breakpoint_from_pc): Add.
7704 (enum): Add register numbers from tm-m68k.h.
7705 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7707 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7708 GDB_MULTI_ARCH_PARTIAL.
7709 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7710 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7712 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7713 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7714 to enum in m68k-tdep.c
7716 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7718 * solib-osf.c (open_map): Compute the list of shared libraries
7719 loaded by the inferior, rather than the list of libraries loaded
7720 by GDB itself. Otherwise, GDB ends up reading the symbols from
7721 the wrong shared libraries...
7723 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7725 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7726 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7728 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7730 (FRAMELESS_SIGNAL): Remove function.
7731 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7732 i386_linux_saved_pc_after_call): Removed.
7733 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7734 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7735 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7737 * i386-tdep.c (i386_frameless_signal_p): New function.
7738 (i386_frame_chain): Deal with frameless signals.
7739 (i386_sigtramp_saved_sp): New function.
7740 (i386_frame_saved_pc): Deal with frameless signals.
7741 (i386_saved_pc_after_call): Make sure the correct value is
7742 returned just after entry into a sigtramp.
7743 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7744 i386fbsd4_sc_sp_offset): New variables.
7745 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7746 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7747 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7748 similiar to what we already did for sc_pc_offset.
7749 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7752 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7754 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7756 * config/i386/tm-x86-64linux.h: New.
7757 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7759 * config/i386/nm-x86-64.h: Rename to ...
7760 * config/i386/nm-x86-64linux.h: ... this one.
7761 * config/i386/x86-64linux.mh: Reflect the above change.
7763 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7765 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7766 with sigcontext_addr. Add sc_sp_offset.
7767 (i386bsd_sigtramp_saved_pc): Remove prototype.
7768 (i386bsd_sicontext_addr): Add prototype.
7769 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7770 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7771 (i386_svr4_sigtramp_saved_pc): Removed.
7772 (i386_svr4_sigcontext_addr): New function.
7773 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7774 Initialize tdep->sigcontext_addr instead. Initialize
7775 tdep->sc_pc_offset and tdep->sc_sp_offset.
7776 (i386_gdbarch_init): Likewise.
7777 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7779 (i386bsd_sigtramp_saved_pc): Remove function.
7780 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7781 Initialize tdep->sigcontext_addr instead. Initialize
7783 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7784 of tdep->sigtramp_saved_pc.
7785 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7786 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7789 * i386-tdep.c (i386_frameless_function_invocation,
7790 i386_frame_num_args, i386_frame_init_saved_regs,
7791 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7792 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7793 i386_extract_return_value, i386_store_return_value,
7794 i386_extract_struct_value_address, i386_register_virtual_type,
7795 i386_register_convertible, i386_register_convert_to_virtual,
7796 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7797 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7800 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7802 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7804 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7805 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7806 this macro. Include "value.h".
7808 2002-06-30 Aidan Skinner <aidan@velvet.net>
7810 * ada-exp.tab.c: remove as it's a generated file
7811 * ada-lex.c: remove as it's a generated file
7813 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7815 * config/i386/tm-i386.h (struct frame_info, struct
7816 frame_saved_regs, struct value, struct type): Remove forward
7819 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7820 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7821 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7822 (FILL_FPXREGSET): Define.
7824 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7826 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7827 i[3456]86-*-netbsd* case.
7828 * config/i386/tm-obsd.h: Removed.
7829 * config/i386/obsd.mt: Removed.
7830 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7832 (MH_CFLAGS): Add -DYYDEBUG=0.
7834 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7835 i386nbsd_sc_pc_offset on OpenBSD too.
7837 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7838 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7839 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7841 * i386bsd-tdep.c: Include "arch-utils.h".
7842 (i386bsd_aout_in_solib_call_trampoline): New function.
7843 (i386bsd_init_abi): Set in_solib_call_trampoline to
7844 i386bsd_aout_in_solib_call_trampoline.
7845 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7846 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7848 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7850 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7851 (struct obstack, struct bcache): Add opaque declarations.
7852 * Makefile.in (macrotab_h): Update
7854 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7856 * blockframe.c (generic_find_dummy_frame): Change return type to
7857 ``struct regcache''.
7858 (struct dummy_frame): Replace field ``registers'' with regcache, a
7859 struct regcache object.
7860 (generic_find_dummy_frame): Update.
7861 (generic_push_dummy_frame): Update. Use regcache_xfree,
7862 regcache_xmalloc and regcache_cpy.
7863 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7865 (deprecated_generic_find_dummy_frame): Update.
7866 (generic_read_register_dummy): Update. Use
7867 regcache_read_as_address.
7868 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7869 (generic_get_saved_register): Update. Use regcache_read.
7871 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7873 * Makefile.in (objfiles_h): Add $(bcache_h).
7874 * objfiles.h: Include "bcache.h".
7876 * Makefile.in (symtab_h): Remove $(bcache_h).
7877 * symtab.h: Do not include "bcache.h".
7879 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7881 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7882 generic_func_frame_chain_valid.
7884 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7886 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7887 * config/i386/tm-fbsd.h: Likewise.
7889 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7891 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7892 generic_unwind_get_saved_register.
7894 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7896 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7897 * regcache.c (supply_register): Add missing argument to
7898 register_buffer call.
7900 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7902 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7903 Solaris /bin/grep does not not like it. From Peter Schauer.
7905 2002-06-26 Tom Tromey <tromey@redhat.com>
7907 * command.h (add_setshow_cmd): Declare.
7908 (add_setshow_cmd_full): Declare.
7909 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7910 returns void. Use add_setshow_cmd_full.
7911 (add_setshow_cmd_full): New function.
7912 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7913 (add_setshow_boolean_cmd): Likewise.
7915 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7917 * config/vax/tm-vax.h: Protect from multiple inclusion.
7918 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7919 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7920 * config/vax/tm-vaxbsd.h: ...here. New file.
7921 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7923 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7925 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7926 (BELIEVE_PCC_PROMOTION): Remove.
7927 (AP_REGNUM): Move to...
7928 * config/vax/nm-vax.h: ...here.
7929 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7930 (vax_breakpoint_from_pc): New function.
7931 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7932 and gdbarch_believe_pcc_promotion.
7934 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7936 * Makefile.in (vax_tdep_h): Define.
7937 (vax-tdep.o): Use $(vax_tdep_h).
7938 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7939 (vax_dump_tdep): New function.
7940 (_initialize_vax_tdep): Register vax_dump_tdep.
7941 * vax-tdep.h: Include osabi.h.
7942 (struct gdbarch_tdep): New.
7944 2002-06-26 Andrew Cagney <cagney@redhat.com>
7946 * frame.h (deprecated_generic_find_dummy_frame): Rename
7947 generic_find_dummy_frame.
7948 * blockframe.c (generic_find_dummy_frame): Make static.
7949 (deprecated_generic_find_dummy_frame): New function.
7950 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7951 generic_find_dummy_frame with deprecated_find_dummy_frame.
7952 (sh64_nofp_frame_init_saved_regs): Ditto.
7953 (sh_fp_frame_init_saved_regs): Ditto.
7954 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7955 (s390_frame_chain): Ditto.
7956 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7958 2002-06-26 Grace Sainsbury <graces@redhat.com>
7960 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7961 gdbarch vector are at the top.
7963 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7964 (FRAME_ARGS_ADDRESS): Remove.
7965 (FRAME_LOCALS_ADDRESS): Remove.
7966 (FRAME_NUM_ARGS): Remove.
7967 (FRAME_ARGS_SKIP): Remove.
7968 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7969 (m68k_gdbarch_init): Add gdbarch initializations for macros
7970 undefined in tm-m68k.h
7972 2002-06-26 Grace Sainsbury <graces@redhat.com>
7974 * monitor.h: Add the function regname to monitor_ops
7975 structure. This way NUM_REGS does not have to be a constant.
7976 * monitor.c (monitor_fetch_register): Added support for regname
7977 function. The function is called if the array regnames is NULL.
7978 (monitor_store_register): Same.
7979 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7981 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7982 cpu32bug_cmds.regname to point to new function.
7983 * abug-rom.c (abug_regname): Same as above.
7984 (init_abug_cmds): Same.
7985 * dbug-rom.c (dbug_regname): Same as above.
7986 (init_dbug_cmds): Same.
7987 * remote-est.c (est_regname): Same.
7988 (init_est_cmds): Same.
7989 * rom68k-rom.c (rom68k_regname): Same.
7990 (init_rom68k_cmds): Same.
7992 2002-06-25 Tom Tromey <tromey@redhat.com>
7994 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7996 2002-06-25 Andrew Cagney <cagney@redhat.com>
7998 * infrun.c (stop_registers): Change variable's type to ``struct
8000 (xmalloc_inferior_status): Delete function.
8001 (free_inferior_status): Delete function.
8002 (normal_stop): Use regcache_cpy.
8003 (struct inferior_status): Change type of fields ``stop_registers''
8004 and ``registers'' to ``struct regcache''.
8005 (write_inferior_status_register): Use regcache_write.
8006 (save_inferior_status): Instead of calling
8007 xmalloc_inferior_status, allocate the inf_status buffer directly.
8008 Use regcache_dup_no_passthrough and regcache_dup to save the
8010 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8011 Replace the stop_registers regcache instead of overriding it. Use
8012 regcache_xfree. Instead of calling free_inferior_status, xfree
8013 the buffer directly.
8014 (discard_inferior_status): Use regcache_xfree. Instead of calling
8015 free_inferior_status, xfree the buffer directly.
8016 (build_infrun): Use regcache_xmalloc.
8017 (_initialize_infrun): Delete redundant call to build_infrun.
8019 * Makefile.in (infcmd.o): Add $(regcache_h).
8021 * infcmd.c: Include "regcache.h".
8022 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8023 obtain the address of `stop_registers' register buffer.
8024 (print_return_value): Ditto.
8026 * inferior.h (struct regcache): Add opaque declaration.
8027 (stop_registers): Change variable's declared type to ``struct
8030 2002-06-24 Tom Tromey <tromey@redhat.com>
8032 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8033 * target.c (initialize_targets): Fixed typo in
8034 trust-readonly-sections `show' documentation.
8036 * main.c: Marked all strings with _().
8038 2002-06-24 Don Howard <dhoward@redhat.com>
8040 * memattr.c (create_mem_region): Treat hi == 0 as a special case
8041 that means max CORE_ADDR+1.
8042 (lookup_mem_region): Ditto.
8043 (mem_info_command): Ditto.
8045 2002-06-24 Grace Sainsbury <graces@redhat.com>
8047 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8048 (REGISTER_BYTES_OK): Remove.
8049 (REGISTER_BYTES): Remove.
8050 (STORE_STRUCT_RETURN): Remove.
8051 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8052 (STORE_RETURN_VALUE): Remove.
8053 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8054 (FRAME_CHAIN): Remove.
8055 (FRAMELESS_FUNCTION_INVOCATION): Remove.
8056 (FRAME_SAVED_PC): Remove.
8057 * m68k-tdep.c (m68k_register_bytes_ok):Add.
8058 (m68k_store_struct_return): Add.
8059 (m68k_deprecated_extract_return_value): Add.
8060 (m68k_deprecated_extract_struct_value_address): Add.
8061 (m68k_store_return_value): Add.
8062 (m68k_frame_chain): Add.
8063 (m68k_frameless_function_invocation): Add.
8064 (m68k_frame_saved_pc): Add.
8065 (m68k_gdbarch_init): added set_gdbarch calls for new
8066 functions and deleted macros.
8068 2002-06-23 Tom Tromey <tromey@redhat.com>
8070 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8071 (ALLDEPFILES): Likewise.
8072 (udiheaders): Removed.
8073 (udip2soc.o): Likewise.
8074 (udi2go32.o): Likewise.
8076 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8078 2002-06-22 Andrew Cagney <ac131313@redhat.com>
8080 * infrun.c (_initialize_infrun): Delete unnecessary call to
8083 * regcache.h: Update comments describing the regcache_cpy family
8085 (regcache_save, regcache_restore): Delete declaration.
8086 (regcache_save_no_passthrough): Delete declaration.
8087 (regcache_restore_no_passthrough): Delete declaration.
8088 * regcache.c (regcache_save): Delete function.
8089 (regcache_save_no_passthrough): Delete function.
8090 (regcache_restore): Delete function.
8091 (regcache_restore_no_passthrough): Delete function.
8093 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8095 * config/m68k/tm-m68k.h: Fix typo.
8096 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8097 (m68k_frame_init_saved_regs): Declare.
8099 2002-06-21 Jim Blandy <jimb@redhat.com>
8101 Remove some vestiges of Harris 88k support.
8102 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8103 register numbering quirk.
8104 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8105 odd symbols occurring in Harris 88k ELF targets.
8107 2002-06-21 Tom Tromey <tromey@redhat.com>
8109 * gdb_locale.h: New file.
8110 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8111 (defs_h): Added gdb_locale.h.
8112 * configure, config.in: Rebuilt.
8113 * configure.in (PACKAGE): Define.
8114 * defs.h: Include gdb_locale.h.
8115 * main.c (captured_main): Call setlocale, bindtextdomain,
8118 2002-06-21 Dave Brolley <brolley@redhat.com>
8120 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8121 * config/frv/frv.mt: New file.
8122 * config/frv/tm-frv.h: New file.
8123 * configure.tgt: Support frv-*-*.
8124 * Makefile.in (frv-tdep.o): New target.
8125 * frv-tdep.c: New file.
8126 * NEWS: Mention frv.
8128 2002-06-21 Dave Brolley <brolley@redhat.com>
8130 * MAINTAINERS: Add self to "Write After Approval" list.
8132 2002-06-21 Grace Sainsbury <graces@redhat.com>
8134 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8135 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8136 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8137 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8138 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8140 * m68k-tdep.c: Include arch-utils.h
8141 (m68k_register_raw_size): Add.
8142 (m68k_register_virtual_size): Add.
8143 (m68k_register_virtual_type): Add.
8144 (m68k_register_name): Add.
8145 (m68k_stack_align): Add.
8146 (m68k_register_byte): Add.
8147 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8150 2002-06-21 Grace Sainsbury <graces@redhat.com>
8152 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8153 m68k_find_saved_regs.
8154 (m68k_pop_frame): Removed saved_regs structure, and replaced
8155 references to it with frame->saved_regs.
8156 (m68k_gdbarch_init): Added function calls to initialize the
8158 (m68k_fix_call_dummy): Add.
8159 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8160 (CALL_DUMMY): Remove.
8161 (CALL_DUMMY_LENGTH): Remove.
8162 (CALL_DUMMY_START_OFFSET): Remove.
8163 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8164 (FIX_CALL_DUMMY): Remove.
8165 (PUSH_DUMMY_FRAME): Remove.
8166 (POP_FRAME): Remove.
8168 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8170 * parse.c (parse_fprintf): New function used to avoid calls to
8171 fprintf in bison parser generated debug code.
8172 * parser-defs.h: Declaration of new parse_fprintf function.
8173 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8174 Set YYDEBUG to 1 by default.
8175 Set YYFPRINTF as parse_fprintf.
8177 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8179 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8181 (pointer_encoding, enum ptr_encoding): New.
8182 (execute_cfa_program): Take care about pointer encoding.
8183 (dwarf2_build_frame_info): Only call parse_frame_info for
8184 .debug_frame and .eh_frame.
8185 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8186 fixed augmentation handling, added relative addressing,
8187 ignore duplicate FDEs. Added comments.
8188 * dwarf2cfi.c: Reindented.
8190 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8192 * event-top.c (command_handler): Don't use space_at_cmd_start
8193 unless there is sbrk() on the host. Assign time and space data
8194 to union fields of the appropriate length.
8196 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8198 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8199 x86_64_register_name. Return type changed to 'const char *'.
8200 (x86_64_register_name2nr): Rename to x86_64_register_number.
8201 (x86_64_gdbarch_init): Update to reflect the change.
8202 * x86-64-tdep.h: Ditto.
8203 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8204 (supply_fpregset): Ditto.
8206 2002-06-19 Andrew Cagney <cagney@redhat.com>
8208 * regcache.h: Update copyright.
8209 (struct regcache, struct gdbarch): Add opaque declarations.
8210 (current_regcache): Declare global variable.
8211 (regcache_read, regcache_write): Add gdbarch parameter.
8212 (regcache_save, regcache_save_no_passthrough)
8213 (regcache_restore, regcache_restore_no_passthrough)
8214 (regcache_dup, regcache_dup_no_passthrough)
8215 (regcache_cpy, regcache_cpy_no_passthrough)
8216 (deprecated_grub_regcache_for_registers)
8217 (deprecated_grub_regcache_for_register_valid)
8218 (regcache_valid_p): Add function declarations.
8220 * regcache.c: Update copyright.
8221 (regcache_descr_handle): New global variable.
8222 (struct regcache_descr): Define.
8223 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8224 (regcache_descr, xfree_regcache_descr): New functions.
8225 (struct regcache): Define.
8226 (regcache_xmalloc, regcache_xfree): New functions.
8227 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8228 (regcache_dup, regcache_dup_no_passthrough): New functions.
8229 (regcache_valid_p, regcache_read_as_address): New functions.
8230 (deprecated_grub_regcache_for_registers): New function.
8231 (deprecated_grub_regcache_for_register_valid): New function.
8232 (current_regcache): New global variable.
8233 (register_buffer): Add regcache parameter. Update calls.
8234 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8235 (read_register_gen, write_register_gen): Update register_buffer
8236 call. Test for legacy_p instead of gdbarch_register_read_p or
8237 gdbarch_register_write_p.
8238 (regcache_collect): Update register_buffer call.
8239 (build_regcache): Rewrite. Use deprecated grub functions.
8240 (regcache_save, regcache_save_no_passthrough): New functions.
8241 (regcache_restore, regcache_restore_no_passthrough): New
8243 (_initialize_regcache): Create the regcache_data_handle. Swap
8244 current_regcache global variable.
8246 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8247 parameter to regcache_read and regcache_write calls.
8248 (sh4_register_read): Ditto.
8249 (sh64_pseudo_register_read): Ditto.
8250 (sh64_register_read): Ditto.
8251 (sh_pseudo_register_write): Ditto.
8252 (sh4_register_write): Ditto.
8253 (sh64_pseudo_register_write): Ditto.
8254 (sh64_register_write): Ditto.
8256 * defs.h (XCALLOC): Define.
8258 2002-06-19 Grace Sainsbury <graces@redhat.com>
8260 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8261 * m68k-tdep.c (m68k_gdbarch_init): Added.
8262 (m68k_dump_tdep): Added.
8264 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8266 * ada-lang.c (fill_in_ada_prototype): Update comment.
8268 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8270 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8272 (mips_abi_string, mips_abi_strings): New.
8273 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8274 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8275 tdep->mips_abi_string. Honor mips_abi_string. Default to
8276 O32 if no ABI is found.
8277 (mips_dump_tdep): Use mips_abi_strings.
8278 (mips_abi_update): New function.
8279 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8280 ``set mips abi'' and ``show mips abi''. Check the size of
8283 2002-06-19 Andrew Cagney <cagney@redhat.com>
8285 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8288 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8290 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8291 current frame using only the first stack size adjustment. All
8292 subsequent size adjustments are not considered to be part of
8293 the "static" part of the current frame.
8294 Compute the address of the saved registers relative to the
8295 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8296 in use in this frame.
8298 2002-06-18 Don Howard <dhoward@redhat.com>
8300 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8301 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8302 suggesting this solution.
8304 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8306 * config/romp/xm-rtbsd.h: Delete file.
8307 * config/romp/rtbsd.mh: Delete file.
8309 2002-06-18 Keith Seitz <keiths@redhat.com>
8311 * breakpoint.c (condition_command): Post breakpoint_modify
8312 when a condition is added to an existing breakpoint.
8313 (commands_command): Likewise for commands.
8314 (set_ignore_count): Likewise for ignore counts.
8315 If no tty, do not simply return, still need to send event
8317 (ignore_command): Only print a newline if the command came
8319 Don't call breakpoints_changed, since this is now properly
8320 handled by set_ignore_count.
8322 2002-06-18 Andrew Cagney <cagney@redhat.com>
8324 * MAINTAINERS: Note that cris-elf target can be compiled with
8326 * cris-tdep.c (cris_register_name): Make return type constant.
8327 (cris_breakpoint_from_pc): Ditto.
8329 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8331 * frame.h (struct frame_info): Change type of context to
8334 2002-06-17 Andrew Cagney <cagney@redhat.com>
8336 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8338 * gdbarch.h, gdbarch.c: Regenerate.
8339 * config/mips/tm-mips.h (mips_register_name): Update.
8340 * i386-tdep.h (i386_register_name): Update.
8341 * mips-tdep.c (mips_register_name): Update
8342 * alpha-tdep.c (alpha_register_name): Update.
8343 * arch-utils.c (legacy_register_name): Update.
8344 * arch-utils.h (legacy_register_name): Update.
8345 * avr-tdep.c (avr_register_name): Update.
8346 * ia64-tdep.c (ia64_register_name): Update.
8347 * i386-tdep.c (i386_register_name): Update.
8348 * sparc-tdep.c (sparc32_register_name): Update.
8349 (sparc64_register_name): Update.
8350 (sparclite_register_name): Update.
8351 (sparclet_register_name): Update.
8352 * sh-tdep.c (sh_generic_register_name): Update.
8353 (sh_sh_register_name): Update.
8354 (sh_sh3_register_name): Update.
8355 (sh_sh3e_register_name): Update.
8356 (sh_sh_dsp_register_name): Update.
8357 (sh_sh3_dsp_register_name): Update.
8358 (sh_sh4_register_name): Update.
8359 (sh_sh64_register_name): Update.
8360 * s390-tdep.c (s390_register_name): Update.
8361 * rs6000-tdep.c (rs6000_register_name): Update.
8362 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8363 (ns32k_register_name_32382): Update.
8364 * d10v-tdep.c (d10v_ts2_register_name): Update.
8365 (d10v_ts3_register_name): Update.
8366 * xstormy16-tdep.c (xstormy16_register_name): Update.
8367 * vax-tdep.c (vax_register_name): Update.
8368 * v850-tdep.c (v850_register_name): Update.
8369 * m68hc11-tdep.c (m68hc11_register_name): Update.
8370 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8371 (am33_register_name): Update.
8373 2002-06-17 Grace Sainsbury <graces@redhat.com>
8375 * m68k-tdep.c: Reindented.
8377 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8379 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8380 list of predefined types.
8382 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8384 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8385 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8386 REGISTER_CONVERT_TO_RAW): Remove defines.
8387 (i386_register_virtual_type, i386_register_convertible,
8388 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8390 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8391 macros mentioned above.
8393 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8394 (i386lynx_saved_pc_after_call): Remove prototype.
8395 * i386ly-tdep.c: Include "i386-tdep.h".
8396 (i386lynx_saved_pc_after_call): Make static. Use
8397 read_memory_nobpt instead of read_memory. Use
8398 read_memory_unsigned_integer instead of read_memory_integer.
8399 (i386lynx_init_abi): New function.
8400 (i386lynx_coff_osabi_sniffer): New function.
8401 (_initialize_i386bsd_tdep): New function.
8403 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8404 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8405 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8406 (i386_fix_call_dummy): Remove prototype.
8407 * i386-tdep.c (i386_call_dummy_words): New variable.
8408 (i386_gdbarch_init): Adjust for removal of the
8409 macros mentioned above.
8411 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8413 * command.h (add_setshow_auto_boolean_cmd): Replace
8414 add_set_auto_boolean_cmd.
8415 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8416 add_set_auto_boolean_cmd.
8417 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8418 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8419 mask-address'' command.
8420 (show_mask_address): Add cmd parameter.
8421 * remote.c (add_packet_config_cmd): Update. Change type of
8422 set_func and show_func to cmd_sfunc_ftype.
8423 (_initialize_remote): Update `set remote Z-packet'
8424 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8425 (show_remote_protocol_e_packet_cmd): Ditto.
8426 (show_remote_protocol_E_packet_cmd): Ditto.
8427 (show_remote_protocol_P_packet_cmd): Ditto.
8428 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8429 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8430 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8431 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8432 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8433 (show_remote_protocol_Z_packet_cmd): Ditto.
8434 (show_remote_protocol_binary_download_cmd): Ditto.
8435 (show_remote_cmd): Pass NULL to all of above.
8437 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8439 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8440 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8441 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8442 POP_FRAME): Remove defines.
8443 (i386_push_arguments, i386_store_struct_return,
8444 i386_extract_return_value, i386_store_return_value,
8445 i386_extract_struct_value_address, i386_push_dummy_frame,
8446 i386_pop_frame): Renove prototypes.
8447 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8448 macros mentioned above.
8450 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8452 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8453 add_set_boolean_cmd.
8454 (add_setshow_cmd): New function.
8455 * command.h (add_setshow_boolean_cmd): Replace
8456 add_set_boolean_cmd.
8457 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8458 and ``set rdiromatzero''.
8459 * maint.c (_initialize_maint_cmds): Update commented out code.
8460 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8461 * target.c (initialize_targets): Update `set
8462 trust-readonly-sections'.
8463 * remote.c (_initialize_remote): Update `set remotebreak'.
8465 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8467 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8468 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8469 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8470 fit into multi-arch framework.
8471 (i386_breakpoint_from_pc): New function.
8472 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8475 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8476 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8477 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8478 (i386_frameless_function_invocation, i386_frame_num_args,
8479 i386_frame_init_saved_regs): Remove prototypes.
8480 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8481 macros mentioned above.
8483 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8485 * cli/cli-decode.c (set_cmd_cfunc): Update.
8486 (set_cmd_sfunc): Update.
8487 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8488 (set_cmd_sfunc, set_cmd_cfunc): Update.
8489 * cli/cli-decode.h: Update.
8491 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8493 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8494 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8496 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8498 * defs.h (auto_boolean): Declare enum.
8499 * command.h (cmd_auto_boolean): Delete enum.
8500 * mips-tdep.c (mask_address_var): Update.
8501 (mips_mask_address_p): Update.
8502 (show_mask_address): Update.
8503 * remote.c (struct packet_config): Update.
8504 (update_packet_config): Update.
8505 (show_packet_config_cmd): Update.
8506 (packet_ok): Update.
8507 (add_packet_config_cmd): Update.
8508 (_initialize_remote):
8509 * command.h: Update.
8510 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8511 (do_setshow_command): Update.
8512 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8513 * cli/cli-decode.h: Update.
8515 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8517 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8518 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8519 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8520 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8521 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8522 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8524 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8525 list of DJGPP COFF targets.
8527 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8528 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8529 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8530 (FP0_REGNUM): Remove define.
8531 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8532 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8533 (i386_register_virtual_size): Remove protoype.
8534 * i386-tdep.c (i386_register_virtual_size): Removed.
8535 (i386_extract_return_value, i386_store_return_value): Use
8536 FP0_REGNUM instead of NUM_FREGS to determine whether the
8537 floating-point registers are available.
8538 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8539 Adjust for removal of macros mentioned above.
8541 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8543 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8545 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8547 (supply_gregset, fill_gregset): Remove use of register keyword and
8548 remove declaration for regmap. Use I386_NUM_GREGS instead of
8549 NUM_REGS and NUM_FREGS.
8550 (FPREGSET_FSAVE_OFFSET): Remove.
8551 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8552 NUM_FREGS to determine whether the floating-point registers are
8555 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8556 gnu_store_registers): Replace usage of NUM_GREGS with
8559 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8560 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8561 usage of NUM_GREGS with I386_NUM_GREGS.
8563 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8565 * i386bsd-nat.c: Include "i386-tdep.h".
8566 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8569 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8570 and associated comment. They no longer make any sense, since we
8571 don't use this file anymore on Linux.
8573 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8574 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8575 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8576 elements in these arrays.
8577 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8580 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8582 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8583 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8585 2002-06-14 Andrew Cagney <cagney@redhat.com>
8587 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8588 EXTRACT_RETURN_VALUE.
8589 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8590 EXTRACT_STRUCT_VALUE_ADDRESS.
8591 * gdbarch.h, gdbarch.c: Regenerate.
8593 * values.c (value_being_returned): Handle
8594 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8595 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8597 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8598 * arm-tdep.c (arm_gdbarch_init): Update.
8599 * avr-tdep.c (avr_gdbarch_init): Update.
8600 * cris-tdep.c (cris_gdbarch_init): Update.
8601 * d10v-tdep.c (d10v_gdbarch_init): Update.
8602 * ia64-tdep.c (ia64_gdbarch_init): Update.
8603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8604 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8605 * s390-tdep.c (s390_gdbarch_init): Update.
8606 * sh-tdep.c (sh_gdbarch_init): Update.
8607 * s390-tdep.c (s390_gdbarch_init): Update.
8608 * sparc-tdep.c (sparc_gdbarch_init): Update.
8609 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8610 * v850-tdep.c (v850_gdbarch_init): Update.
8611 * vax-tdep.c (vax_gdbarch_init): Update.
8612 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8613 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8615 * config/arc/tm-arc.h: Update.
8616 * config/d30v/tm-d30v.h: Update.
8617 * config/fr30/tm-fr30.h: Update.
8618 * config/h8300/tm-h8300.h: Update.
8619 * config/h8500/tm-h8500.h: Update.
8620 * config/i386/tm-i386.h: Update.
8621 * config/i386/tm-ptx.h: Update.
8622 * config/i386/tm-symmetry.h: Update.
8623 * config/i960/tm-i960.h: Update.
8624 * config/m32r/tm-m32r.h: Update.
8625 * config/m68k/tm-delta68.h: Update.
8626 * config/m68k/tm-linux.h: Update.
8627 * config/m68k/tm-m68k.h: Update.
8628 * config/m88k/tm-m88k.h: Update.
8629 * config/mcore/tm-mcore.h: Update.
8630 * config/mips/tm-mips.h: Update.
8631 * config/mn10200/tm-mn10200.h: Update.
8632 * config/pa/tm-hppa.h: Update.
8633 * config/pa/tm-hppa64.h: Update.
8634 * config/sparc/tm-sp64.h: Update.
8635 * config/sparc/tm-sparc.h: Update.
8636 * config/sparc/tm-sparclet.h: Update.
8637 * config/z8k/tm-z8k.h: Update.
8639 2002-06-14 Andrew Cagney <cagney@redhat.com>
8641 * Makefile.in (i386_linux_tdep_h): Define.
8642 (i386_tdep_h, i387_tdep_h): Define.
8643 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8644 $(i386_tdep_h) and $(i387_tdep_h).
8645 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8647 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8649 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8650 Already covered by the default.
8652 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8653 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8654 (i386_gdbarch_init): Initialize long_double_format and long_double
8657 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8658 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8660 * config/i386/i386sol2.mh: ... here.
8661 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8662 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8663 (SIGCONTEXT_PC_OFFSET): Remove define.
8664 (IN_SIGTRAMP): Remove define.
8665 * i386-sol2-tdep.c: New file.
8667 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8668 * config/i386/tm-i386nw.h: Removed.
8670 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8671 USE_STRUCT_CONVENTION): Remove defines.
8672 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8673 (get_longjmp_target): Remove prototype.
8674 (IN_SIGTRAMP): Remove define.
8675 (i386bsd_in_sigtramp): Remove prototype.
8676 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8677 function. Update comment accordingly
8678 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8679 (FRAME_SAVED_PC): Remove define.
8680 (i386bsd_frame_saved_pc): Remove prototype.
8681 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8682 GET_LONGJMP_TARGET): Remove defines.
8683 (get_longjmp_target): Remove prototype.
8684 (IN_SIGTRAMP): Remove define.
8685 (i386bsd_in_sigtramp): Remove prototype.
8686 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8687 function. Update comment accordingly
8688 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8689 (FRAME_SAVED_PC): Remove define.
8690 (i386bsd_frame_saved_pc): Remove prototype.
8691 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8693 (USE_STRUCT_CONVENTION): Remove prototype.
8694 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8696 (_initialize_i386bsd_nat): Revise logic to determine some
8697 constants at compile time when compiling a native GDB. Warn if
8698 things don't match up with what we expect.
8699 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8701 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8702 to use date stored in `struct gdbarch_tdep'.
8703 (i386bsd_sigcontext_offset): Remove varaible.
8704 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8705 stored in `struct gdbarch_tdep'.
8706 (i386bsd_frame_saved_pc): Make static.
8707 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8708 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8709 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8710 i386fbsd4_sc_pc_offset): New variables.
8711 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8712 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8714 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8716 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8717 Modify the value of i386fbsd_sigtramp_start and
8718 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8719 i386fbsd_sigtramp_end.
8720 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8723 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8724 define to i386-linux-tdep.h.
8725 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8726 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8728 (i386_linux_register_name, i386_linux_register_byte,
8729 i386_linux_register_raw_size): Remove prototypes.
8730 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8731 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8732 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8733 TARGET_WRITE_PC): Remove defines.
8734 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8735 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8736 i386_linux_write_pc): Remove prototypes.
8737 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8738 (get_longjmp_target): Remove prototype.
8739 * i386-linux-tdep.h: New file.
8740 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8741 * i386-linux-tdep.c: Include "i386-tdep.h" and
8742 "i386-linux-tdep.h".
8743 (i386_linux_register_name, i386_linux_register_byte,
8744 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8745 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8747 (i386_linux_init_abi): New function.
8748 (_initialize_i386_linux_tdep): New function.
8750 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8751 (i386_saved_pc_after_call): Remove prototype.
8752 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8753 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8754 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8755 (i386_register_name, i386_stab_reg_to_regnum,
8756 i386_dwarf_reg_to_regnum): Remove prototypes.
8757 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8758 SIZEOF_SSE_REGS): Remove defines.
8759 (REGISTER_BYTES): Remove define.
8760 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8761 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8762 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8763 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8764 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8765 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8766 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8767 (get_longjmp_target): Remove prototype.
8768 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8769 (sigtramp_saved_pc): Remove define.
8770 (i386v4_sigtramp_saved_pc): Remove prototype.
8771 * config/i386/tm-go32.h (FRAME_CHAIN,
8772 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8773 (i386go32_frame_saved_pc): Remove prototype.
8774 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8775 (get_longjmp_target): Remove prototype.
8776 * i386-tdep.h: Include "osabi.h".
8777 (enum i386_abi): Removed.
8778 (enum struct_return): New enum.
8779 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8780 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8781 sc_pc_offset members.
8782 (i386_gdbarch_register_os_abi): Remove prototype.
8783 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8784 I386_SSE_NUM_REGS): New defines.
8785 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8786 I386_SSE_SIZEOF_REGS): New defines.
8787 (i386_register_name, i386_register_byte, i386_register_raw_size):
8789 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8790 (i386bsd_sigtramp_saved_pc): New prototype.
8791 * i386-tdep.c: Don't include "elf-bfd.h".
8792 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8793 i386_frame_chain, i386_saved_pc_after_call): Make static.
8794 (i386_frame_saved_pc): Rewrite to call architecture dependent
8795 function to deal with signal handlers. Make static.
8796 (i386go32_frame_saved_pc): Removed.
8797 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8799 (i386_get_longjmp_target): New function.
8800 (default_struct_convention, pcc_struct_convention,
8801 reg_struct_convention, valid_conventions, struct_convention): New
8803 (i386_use_struct_convention): New function.
8804 (i386v4_sigtramp_saved_pc): Renamed to
8805 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8806 (i386_pc_in_sigtramp): New function.
8807 (i386_abi_names): Removed.
8808 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8809 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8811 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8812 i386_gdbarch_register_os_abi): Removed.
8813 (struct i386_abi_handler): Removed.
8814 (i386_abi_handler_list): Removed.
8815 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8817 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8818 i386_nw_init_abi): New functions.
8819 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8820 Use set_gdbarch_xxx() calls instead of relying on macros for a
8822 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8823 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8824 Register the various architecture variants defined in this file.
8826 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8828 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8829 (struct main_type): Remove arg_types member. Update comments for
8831 (TYPE_ARG_TYPES): Remove.
8832 (TYPE_FN_FIELD_ARGS): Update.
8833 (smash_to_method_type): Update prototype.
8835 * c-typeprint.c (cp_type_print_method_args): Take method type
8836 instead of argument list. Use new argument layout. Simplify.
8837 (c_type_print_args): Use new argument layout. Simplify.
8838 (c_type_print_base): Update call to cp_type_print_method_args.
8839 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8840 argument; use die->type instead. Update call to
8841 smash_to_method_type.
8842 (read_structure_scope): Update call to dwarf2_add_member_fn.
8843 * gdbtypes.c (allocate_stub_method): Update comment.
8844 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8845 Use new argument layout.
8846 (check_stub_method): Use new argument layout. Don't count
8847 void as an argument.
8848 (print_arg_types): Update comments. Use new argument layout.
8849 (recursive_dump_type): Don't print arg_types member.
8850 * hpread.c (hpread_read_struct_type): Use new argument layout.
8851 (fixup_class_method_type): Likewise.
8852 (hpread_type_lookup): Likewise.
8853 * stabsread.c (read_type): Update calls to read_args and
8854 smash_to_method_type.
8855 (read_args): Use new argument layout. Simplify.
8856 * valops.c (typecmp): Use new argument layout. Update parameters
8857 and comments. Simplify.
8858 (hand_function_call): Use new argument layout.
8859 (search_struct_method): Update call to typecmp.
8860 (find_overload_match): Use new argument layout.
8862 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8864 * NEWS: Mention multithreaded debug support for gdbserver.
8866 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8868 * MAINTAINERS: Mention NEWS.
8870 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8872 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8873 (struct mips_objfile_private, compare_pdr_entries): New.
8874 (non_heuristic_proc_desc): Read the ".pdr" section if it
8877 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8879 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8880 (arm_debug): New static variable.
8881 (_initialize_arm_tdep): Add ``set debug arm'' command.
8883 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8885 * Makefile.in (sim_arm_h): Define.
8886 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8887 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8888 (arm_register_sim_regno): New function, map an internal REGNUM
8889 onto a simulator register number.
8890 (arm_gdbarch_init): Set register_sim_regno.
8892 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8894 * MAINTAINERS: Add self.
8896 2002-06-11 Jim Blandy <jimb@redhat.com>
8898 * source.c (source_info): Mention whether the symtab has
8899 information about preprocessor macros.
8901 Call the command `info macro', not `show macro'.
8902 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8904 (_initialize_macrocmd): Register `info_macro_command' in
8905 `infolist', not `showlist'.
8907 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8909 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8910 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8911 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8912 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8913 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8915 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8916 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8917 (_initialize_mips_tdep): Remove dead code.
8918 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8919 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8920 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8921 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8922 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8923 MIPS_LAST_FP_ARG_REGNUM): Remove.
8925 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8927 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8928 (unwind_tmp_obstack_free, parse_frame_info)
8929 (update_context, cfi_read_fp, cfi_write_fp)
8930 (cfi_frame_chain, cfi_init_extra_frame_info)
8931 (cfi_virtual_frame_pointer): Use the above function.
8932 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8934 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8936 * v850-tdep.c (v850_type_is_scalar): New function.
8937 (v850_use_struct_convention): Match current gcc implementation
8938 as close as possible.
8939 (v850_push_arguments): Fix stack_offset handling. Don't write
8940 struct_addr into register. This is done by v850_store_struct_return.
8941 (v850_extract_return_value): Care for structs.
8942 (v850_store_return_value): Ditto.
8943 (v850_store_struct_return): Actually write address.
8945 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8947 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8948 without debug information too.
8950 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8952 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8953 Make multi-arch pure.
8954 * gdbarch.h, gdbarch.c: Re-generate.
8955 * arm-tdep.c (arm_print_float_info): Update.
8956 * arch-utils.h (default_print_float_info): Update.
8957 * arch-utils.c (default_print_float_info): Update.
8958 * infcmd.c (float_info): Update call.
8960 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8962 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8963 the front of the initialize list.
8965 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8967 * infrun.c (struct inferior_status): Replace fields
8968 selected_frame_address and selected_level with field
8970 (save_inferior_status): Update. Use get_frame_id.
8971 (struct restore_selected_frame_args): Delete.
8972 (restore_selected_frame): Update. Use frame_find_by_id.
8973 (restore_inferior_status): Update.
8975 * breakpoint.h (struct breakpoint): Change type of
8976 watchpoint_frame to frame_id.
8977 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8978 call to get_current_frame.
8979 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8981 (watchpoint_check): Use frame_find_by_id.
8983 * frame.h (record_selected_frame): Delete declaration.
8984 * stack.c (record_selected_frame): Delete function.
8986 * frame.h (struct frame_id): Define.
8987 (get_frame_id): Declare.
8988 (frame_find_by_id): Declare.
8989 * frame.c (frame_find_by_id): New function.
8990 (get_frame_id): New function.
8992 2002-06-10 Andrey Volkov <avolkov@transas.com>
8994 * ser-e7kpc.c: Fix duplicated define and call of
8995 _initialize_ser_e7000pc
8997 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8999 * signals/signals.c (target_signal_from_host): Fix #ifdef
9001 (do_target_signal_to_host): Likewise.
9003 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9005 * mips-tdep.c (mips_find_abi_section): New function.
9006 (mips_gdbarch_init): Call it.
9008 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9010 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9011 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
9012 after Andrew's 2002-06-08 gdbarch change.
9014 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9016 * i386-linux-nat.c (suppy_gregset): Don't supply
9017 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9019 (fill_gregset): Don't fetch it under the same circumstances.
9021 2002-06-09 Andrew Cagney <cagney@redhat.com>
9023 * Makefile.in (callback_h): Define.
9024 (remote_sim_h): Update path to remote-sim.h.
9025 (remote-rdp.o): Add $(callback_h).
9026 (remote-sim.o): Use $(callback_h).
9027 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9028 * remote-rdp.c: Include "gdb/callback.h".
9030 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9032 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9033 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9035 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9037 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9038 * rdi-share/serpardr.c: Ditto.
9039 * rdi-share/unixcomm.c: Ditto.
9040 * rdi-share/serdrv.c: Ditto.
9041 * rdi-share/hostchan.h: Ditto.
9042 * rdi-share/hostchan.c: Ditto.
9043 * rdi-share/host.h: Ditto.
9044 * rdi-share/devsw.c: Ditto.
9046 * objfiles.h: Change type of obj_private to void pointer.
9047 * pa64solib.c: Update copyright. Don't include "assert.h", use
9048 strcmp instead of STREQ, use LONGEST, do not use PTR
9049 * somsolib.c: Ditto.
9051 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9052 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9053 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9055 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9057 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9058 (default_get_saved_register): Delete function.
9059 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9060 generic_unwind_get_saved_register.
9061 * gdbarch.h, gdbarch.c: Re-generate.
9063 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9065 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9066 generic_func_frame_chain_valid.
9067 * gdbarch.h, gdbarch.c: Re-generate.
9068 * blockframe.c (generic_func_frame_chain_valid): Only check
9069 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
9070 passing FP to PC_IN_CALL_DUMMY.
9073 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9075 * gdbarch.sh (struct gdbarch_data): Add field init_p.
9076 (register_gdbarch_data): Initialize init_p.
9077 (gdbarch_data): Initialize data pointer using the init function.
9078 (init_gdbarch_data): Delete function.
9079 (gdbarch_update_p): Update.
9080 (initialize_non_multiarch): Update.
9081 (struct gdbarch): Add field initialized_p.
9082 * gdbarch.h, gdbarch.c: Re-generate.
9084 2002-06-07 Michal Ludvig <mludvig@suse.cz>
9086 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9087 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9088 better do the things actually here.
9089 * x86-64-tdep.c (x86_64_register_name2nr): New.
9090 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9091 (x86_64_gdbarch_init): Respect the above change.
9092 * x86-64-tdep.h (x86_64_register_name2nr)
9093 (x86_64_register_nr2name): Add prototypes.
9094 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9096 2002-06-06 Michael Snyder <msnyder@redhat.com>
9098 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9099 Delete extra braces and re-indent.
9100 (d10v_store_return_value): Char return values
9101 must be shifted over by one byte in R0.
9102 (d10v_extract_return_value): Delete extra braces, re-indent.
9104 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9106 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9107 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9108 (d10v_integer_to_address): Rewrite.
9109 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9110 the d10v specific functions which take care of converting to the
9113 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9115 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9116 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9118 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9120 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9122 * config/tm-linux.h: Ditto.
9123 * config/alpha/tm-alphalinux.h: Ditto.
9124 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9125 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9126 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9127 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9128 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9129 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9130 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9131 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9132 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9133 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9134 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9135 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9136 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9137 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9138 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9139 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9140 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9141 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9142 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9143 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9144 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9145 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9146 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9147 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9148 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9149 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9150 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9151 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9152 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9153 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9154 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9155 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9156 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9157 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9158 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9159 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9160 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9162 2002-05-04 Aidan Skinner <aidan@velvet.net>
9164 * ada-exp.tab.c: New file
9165 * ada-exp.y: New file
9166 * ada-lang.c: New file
9167 * ada-lang.h: New file
9168 * ada-lex.c: New file
9169 * ada-lex.l: New file
9170 * ada-tasks.c: New file
9171 * ada-typeprint.c: New file
9172 * ada-valprint.c: New file
9174 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9176 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9177 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9179 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9181 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9182 insetead of ppc-linux-tdep.o.
9183 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9184 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9186 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9188 2002-05-07 Christian Groessler <chris@groessler.org>
9189 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9190 bit register contents for little endian hosts.
9192 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9194 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9197 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9199 * gdbarch.h: Regenerate.
9201 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9203 * MAINTAINERS: Add everyone to write-after-approval list.
9205 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9207 * stack.c (frame_info): Use frame_register_unwind instead of
9208 saved_regs. Mention when the SP is on the stack or in a register.
9210 * frame.h (frame_register_unwind_ftype): Define. Document.
9211 (struct frame_info): Add field register_unwind and
9212 register_unwind_cache.
9213 (frame_register_unwind): Declare.
9214 (generic_unwind_get_saved_register): Declare.
9216 * frame.c (frame_register_unwind): New function.
9217 (generic_unwind_get_saved_register): New function.
9219 * blockframe.c (generic_call_dummy_register_unwind): New function.
9220 (frame_saved_regs_register_unwind): New function.
9221 (set_unwind_by_pc): New function.
9222 (create_new_frame): New function.
9223 (get_prev_frame): New function.
9225 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9227 * a29k-share/: Delete directory.
9228 * remote-vx29k.c: Delete file.
9230 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9232 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9233 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9235 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9237 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9238 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9241 (sparcnbsd-tdep.o): New dependency lists.
9242 * NEWS: Note new UltraSPARC NetBSD native configuration.
9243 * configure.host (sparc64-*-netbsd*): New host.
9244 * configure.tgt (sparc-*-netbsdelf*)
9245 (sparc-*-netbsd*): Set gdb_target to nbsd.
9246 (sparc64-*-netbsd*): New target.
9247 * sparc64nbsd-nat.c: New file.
9248 * sparcnbsd-nat.c: New file.
9249 * sparcnbsd-tdep.c: New file.
9250 * sparcnbsd-tdep.h: New file.
9251 * config/sparc/nbsd.mt: New file.
9252 * config/sparc/nbsd64.mh: New file.
9253 * config/sparc/nbsd64.mt: New file.
9254 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9255 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9257 * config/sparc/nbsdaout.mt: Remove.
9258 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9259 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9261 * config/sparc/nbsdelf.mt: Remove.
9262 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9263 sparc-nat.c compatiblity defines.
9264 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9265 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9266 * config/sparc/tm-nbsd64.h: New file.
9267 * config/sparc/tm-nbsdaout.h: Remove.
9268 * config/sparc/xm-nbsd.h: Remove.
9270 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9272 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9273 * sparc-tdep.c: Include osabi.h.
9274 (gdbarch_tdep): Add osabi member.
9275 (_initialize_sparc_tdep): Use gdbarch_register.
9276 (sparc_gdbarch_init): Use generic OS ABI framework.
9277 (sparc_dump_tdep): New function.
9279 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9281 * corefile.c (do_captured_read_memory_integer): Return non-zero
9283 (safe_read_memory_integer): Copy result of memory read when
9284 status is non-zero. Also, add comments.
9286 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9288 * Makefile.in (ppc_tdep_h): Define.
9291 (rs6000-tdep.o): Use $(ppc_tdep_h).
9294 (ppcnbsd-tdep.o): New dependency lists.
9295 * ppc-tdep.h: Use generic OS ABI framework.
9296 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9297 (ppc_linux_init_abi): New functions.
9298 (ppc_sysv_abi_broken_use_struct_convention)
9299 (ppc_sysv_abi_use_struct_convention)
9300 (ppc_sysv_abi_push_arguments): Move to...
9301 * ppc-sysv-tdep.c: ...here.
9302 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9303 * rs6000-tdep.c (process_note_abi_tag_sections)
9304 (get_elfosabi): Remove.
9305 (rs6000_gdbarch_init): Use generic OS ABI framework.
9306 (rs6000_dump_tdep): New function.
9307 (_initialize_rs6000_tdep): Use gdbarch_register.
9308 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9309 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9310 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9311 of ppc-linux-tdep.o.
9312 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9313 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9314 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9315 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9316 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9317 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9319 2002-05-29 Jim Blandy <jimb@redhat.com>
9321 * macroscope.c (default_macro_scope): Put `void' in empty argument
9324 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9326 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9327 * arch-utils.c: Include "sim-regno.h".
9328 * gdbarch.sh: Don't include "sim-regno.h".
9329 * gdbarch.h, gdbarch.c: Regenerate.
9330 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9332 * arch-utils.h (legacy_register_sim_regno): To here.
9333 * remote-sim.c (legacy_register_sim_regno): Move function from
9335 * arch-utils.c (legacy_register_sim_regno): To here.
9337 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9339 * sim-regno.h: New file.
9340 * Makefile.in (sim_regno_h): Define.
9341 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9342 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9343 (legacy_register_sim_regno): New function.
9344 (one2one_register_sim_regno): New function.
9345 (gdbsim_fetch_register): Rewrite.
9346 (gdbsim_store_register): Only store a register when
9347 REGISTER_SIM_REGNO is valid.
9348 * d10v-tdep.c: Include "sim-regno.h".
9349 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9350 (d10v_ts3_register_sim_regno): Ditto.
9351 * gdbarch.sh: Include "sim-regno.h".
9352 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9353 * gdbarch.h, gdbarch.c: Regenerate.
9354 * arch-utils.h (default_register_sim_regno): Delete declaration.
9355 * arch-utils.c (default_register_sim_regno): Delete function.
9357 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9359 * ppcnbsd-nat.c: Rewrite.
9360 * ppcnbsd-tdep.c: New file.
9361 * ppcnbsd-tdep.h: New file.
9362 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9363 solib.o, and solib-svr4.o.
9364 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9365 nbsd-tdep.o, and corelow.o.
9367 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9369 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9370 `tr' and `sed'. Mention that `broken' targets are not expected to
9373 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9375 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9376 Let PC point right after the prologue before looking up symbols.
9378 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9380 * i386-tdep.c (i386_register_virtual_type): Return
9381 builtin_type_vec128i for SSE registers.
9383 * gdbtypes.h (builtin_type_vec128i): Declare.
9385 * gdbtypes.c (build_builtin_type_vec128i): New function.
9386 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9387 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9388 (build_gdbtypes): Initialize new builtin vector types.
9389 (_initialize_gdbtypes): Register new vector types with gdbarch.
9391 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9393 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9394 since it has been multi-arch'd.
9395 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9396 Move Alpha and VAX multi-arch news entries to same section
9397 as other multi-arch news.
9399 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9401 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9402 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9403 static. Rename some register numbers to put them in ns32k-tdep
9405 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9406 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9408 (_initialize_ns32k_tdep): Use gdbarch_register.
9409 * ns32k-tdep.h: New file.
9410 * ns32knbsd-tdep.c: New file.
9411 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9412 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9413 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9414 REGISTER_BYTES, REGISTER_BYTE): Remove.
9415 * config/ns32k/tm-ns32k.h: New file.
9416 * config/ns32k/tm-umax.h: Remove.
9418 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9420 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9421 ns32k_store_struct_return, ns32k_extract_return_value,
9422 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9424 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9425 ns32k_saved_pc_after_call.
9426 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9427 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9428 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9429 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9430 ns32k_extract_struct_value_address.
9432 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9434 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9435 ns32k_fix_call_dummy): New.
9436 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9437 ns32k_call_dummy_words.
9438 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9439 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9440 CALL_DUMMY_NARGS): Remove.
9441 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9443 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9445 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9446 ns32k_frame_saved_pc, ns32k_frame_args_address,
9447 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9448 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9449 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9450 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9451 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9452 (BREAKPOINT): Remove..
9453 (FRAME_CHAIN): Define as ns32k_frame_chain.
9454 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9455 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9456 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9457 (FRAME_FIND_SAVED_REGS): Remove.
9458 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9459 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9460 (POP_FRAME): Define as ns32k_pop_frame.
9462 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9464 * ns32k-tdep.c (ns32k_register_byte_32082,
9465 ns32k_register_byte_32382, ns32k_register_raw_size,
9466 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9468 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9469 ns32k_register_byte_32382.
9470 * config/ns32k/tm-umax.h: Update copyright years.
9471 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9472 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9473 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9474 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9475 (ns32k_get_enter_addr): Fix prototype.
9477 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9479 * ns32k-tdep.c: Update copyright years.
9480 (ns32k_register_name_32082): New function.
9481 (ns32k_register_name_32382): Ditto.
9482 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9483 (REGISTER_NAME): Define as ns32k_register_name_32382.
9484 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9485 (REGISTER_NAME): Define as ns32k_register_name_32082.
9487 2002-05-24 Jim Blandy <jimb@redhat.com>
9489 * dwarf2read.c (free_line_header): Use xfree, not free.
9491 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9493 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9494 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9496 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9498 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9500 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9502 From Ross Alexander at NEC Europe:
9503 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9505 2002-05-23 Michael Snyder <msnyder@redhat.com>
9507 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9508 for input, rather than parse_and_eval_address.
9510 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9512 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9513 * Makefile.in (sim_d10v_h): Update definition.
9515 2002-05-24 Andrew Cagney <cagney@redhat.com>
9517 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9518 change `2002-05-22 Michael Snyder' below.
9519 (d10v_push_arguments): Ditto.
9520 (d10v_extract_return_value): Ditto.
9522 2002-05-23 Jim Blandy <jimb@redhat.com>
9524 * macrotab.c (check_for_redefinition): Don't complain if the new
9525 definition is the same as the previous one. Take more arguments
9526 to allow the comparison.
9527 (macro_define_object, macro_define_function): Pass more arguments
9528 to check_for_redefinition.
9530 2002-05-22 Michael Snyder <msnyder@redhat.com>
9532 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9533 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9534 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9535 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9536 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9537 Add a temp variable to save a call (and a memory read).
9538 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9539 if possible (so that PC_IN_CALL_DUMMY will work).
9541 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9543 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9545 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9547 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9549 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9550 (dwarf2_build_frame_info): Add offset to fde->initial_location
9551 so that frames of shared libraries are mapped correctly.
9552 (execute_stack_op): Change type of 'result' from ULONGEST to
9555 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9557 * config/alpha/tm-nbsd.h: Include solib.h.
9559 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9561 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9562 assumptions about the host's byte order.
9564 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9566 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9568 * alphanbsd-tdep.c: Include solib-svr4.h.
9569 * shnbsd-tdep.c: Ditto.
9571 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9573 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9574 nbsd-tdep.h to dependency list.
9575 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9576 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9577 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9578 nbsdaout.mh and nbsdelf.mh consistently.
9579 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9580 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9581 nbsdaout.mt and nbsdelf.mh consistently.
9582 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9583 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9584 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9585 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9586 a.out shared library stuff from here...
9587 * config/nm-nbsdaout.h: ...to here.
9588 * config/tm-nbsd.h: Remove.
9589 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9590 * config/arm/nbsd.mh: Remove.
9591 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9593 * config/arm/nbsdaout.mh: New file.
9594 * config/arm/nbsdelf.mh: New file.
9595 * config/arm/nm-nbsdaout.h: New file.
9596 * config/i386/nbsd.mh: Remove.
9597 * config/i386/nbsd.mt: Remove.
9598 * config/i386/nbsdaout.mh: New file.
9599 * config/i386/nbsdaout.mt: New file.
9600 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9601 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9602 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9603 i386_register_u_addr): Remove.
9604 * config/i386/nm-nbsdaout.h: New file.
9605 * config/i386/nm-nbsdelf.h: Remove.
9606 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9607 (USE_STRUCT_CONVENTION): Remove.
9608 * config/i386/tm-nbsdaout.h: New file.
9609 * config/i386/tm-nbsdelf.h: Remove.
9610 * config/m68k/nbsd.mh: Remove.
9611 * config/m68k/nbsd.mt: Remove.
9612 * config/m68k/nbsdaout.mh: New file.
9613 * config/m68k/nbsdaout.mt: New file.
9614 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9615 * config/m68k/nm-nbsdaout.h: New file.
9616 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9617 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9618 * config/ns32k/nbsd.mh: Remove.
9619 * config/ns32k/nbsd.mt: Remove.
9620 * config/ns32k/nbsdaout.mh: New file.
9621 * config/ns32k/nbsdaout.mt: New file.
9622 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9623 * config/ns32k/nm-nbsdaout.h: New file.
9624 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9625 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9626 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9627 (SVR4_SHARED_LIBS): Remove.
9628 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9629 * config/sparc/nbsd.mh: Remove.
9630 * config/sparc/nbsd.mt: Remove.
9631 * config/sparc/nbsdaout.mh: New file.
9632 * config/sparc/nbsdaout.mt: New file.
9633 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9634 * config/sparc/nbsdelf.mt: New file.
9635 * config/sparc/nm-nbsdaout.h: New file.
9636 * config/sparc/nm-nbsdelf.h: Remove.
9637 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9638 * config/sparc/tm-nbsdaout.h: New file.
9640 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9642 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9644 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9646 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9648 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9650 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9652 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9654 * NEWS: Note new MIPS NetBSD native configuration.
9655 * configure.host (mips*-*-netbsd*): New host.
9656 * configure.tgt (mips*-*-netbsd*): New target.
9657 * mipsnbsd-nat.c: New file.
9658 * mipsnbsd-tdep.c: New file.
9659 * mipsnbsd-tdep.h: New file.
9660 * config/mips/nbsd.mh: New file.
9661 * config/mips/nbsd.mt: New file.
9662 * config/mips/nm-nbsd.h: New file.
9663 * config/mips/tm-nbsd.h: New file.
9665 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9667 * Makefile.in (SFILES): Add osabi.c.
9668 (COMMON_OBS): Add osabi.o.
9669 (osabi.o): New dependency list.
9670 * osabi.c: New file.
9671 * osabi.h: New file.
9672 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9674 * Makefile.in (alpha_tdep_h): Define and use instead of
9676 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9677 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9679 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9680 * alpha-tdep.h: Include osabi.h.
9681 (alpha_abi): Remove.
9682 (gdbarch_tdep): Use generic OS ABI framework.
9683 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9684 gdbarch_register_osabi.
9685 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9686 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9687 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9689 * Makefile.in (sh_tdep_h): Add osabi.h.
9690 * sh-tdep.h (sh_osabi): Remove.
9691 (gdbarch_tdep): Use generic OS ABI framework.
9692 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9693 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9694 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9695 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9697 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9698 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9699 gdbarch_register_osabi.
9700 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9701 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9702 (get_elfosabi): Rename to...
9703 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9704 ABI framework support routines.
9705 (arm_gdbarch_init): Use generic OS ABI framework.
9706 (arm_dump_tdep): Likewise.
9707 (_initialize_arm_tdep): Likewise.
9708 * arm-tdep.h: Include osabi.h.
9710 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9712 (arm_gdbarch_register_os_abi): Remove prototype.
9713 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9714 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9716 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9717 * mips-tdep.c: Include osabi.h.
9718 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9721 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9723 * h8300-tdep.c: Fix formatting.
9725 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9727 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9728 printing vector registers.
9730 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9732 From Fernando Nasser:
9733 * remote.c (remote_async_open_1): Re-throw the exception when the
9735 (remote_cisco_open): Ditto.
9736 (remote_open_1): Ditto.
9738 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9740 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9741 (remote_start_remote): Add uiout parameter. Pass through to
9742 remote_start_remote_dummy.
9743 (remote_open_1): Use catch_exception instead of catch_errors.
9744 (remote_async_open_1): Ditto.
9745 (remote_cisco_open): Ditto.
9747 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9749 * remote.c (remote_start_remote): Replace PTR with void pointer.
9750 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9753 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9755 * gdb_indent.sh: Allow the script to be run in the sim directory.
9757 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9759 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9760 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9762 * corelow.c (core_open): Only call set_gdbarch_from_file if
9765 2002-05-17 Andrey Volkov <avolkov@transas.com>
9767 * h8300-tdep.c: Add support of EXR register
9768 * config/h8300/tm-h8300.h: Ditto.
9770 2002-05-17 Andrey Volkov <avolkov@transas.com>
9772 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9774 2002-05-17 Andrey Volkov <avolkov@transas.com>
9776 * h8300-tdep.c: Change literal regnums to REGNO.
9778 2002-05-17 Jim Blandy <jimb@redhat.com>
9780 * NEWS: Note addition of macro support.
9782 Expand preprocessor macros in C expressions.
9783 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9784 (scan_macro_expansion, scanning_macro_expansion,
9785 finished_macro_expansion): New function declarations.
9786 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9787 variable declarations.
9788 * parser-defs.h (expression_context_pc): New declaration.
9789 * parse.c (expression_context_pc): New variable.
9790 (parse_exp_1): Set expression_context_pc, as well as
9791 expression_context_block.
9792 * c-exp.y (yylex): If we're not already reading the result of a
9793 macro expansion, try to macro-expand the next token. When we're
9794 done scanning a macro expansion, switch back to the mainline text.
9795 Commas and `if's in a macro's expansion don't terminate the input.
9796 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9797 (macro_original_text, macro_expanded_text,
9798 expression_macro_lookup_func, expression_macro_lookup_baton): New
9800 (scan_macro_expansion, scanning_macro_expansion,
9801 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9802 c_preprocess_and_parse): New functions.
9803 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9804 c_preprocess_and_parse, instead of c_parse.
9805 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9806 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9808 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9810 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9811 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9812 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9814 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9816 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9818 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9820 * Makefile.in (sh_tdep_h): Define and use.
9821 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9822 register enum): Move to...
9823 * * sh-tdep.h: ...here.
9824 * sh-tdep.c: Include sh-tdep.h.
9825 * sh3-rom.c: Likewise.
9826 * shnbsd-tdep.c: Likewise.
9828 2002-05-16 Michael Snyder <msnyder@redhat.com>
9830 * arm-tdep.c: Spelling fix in comment.
9832 2002-05-16 Jim Blandy <jimb@redhat.com>
9834 Add commands for manually expanding macros and showing their
9836 * macrocmd.c, macroscope.c, macroscope.h: New files.
9837 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9838 (macroscope_h): New variable.
9839 (HFILES_NO_SRCDIR): Add macroscope.h.
9840 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9841 (macroscope.o, macrocmd.o): New rules.
9843 Teach the Dwarf 2 reader to read macro information.
9844 * dwarf2read.c: #include "macrotab.h".
9845 (dwarf_macinfo_buffer): New variable.
9846 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9848 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9849 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9850 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9851 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9852 dwarf2_macro_spaces_in_definition): New complaints.
9853 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9854 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9855 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9856 the partial symbol table.
9857 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9858 from what's recorded in the partial symbol table.
9859 (read_file_scope): If the compilation unit has a
9860 `DW_AT_macro_info' attribute, read its macro information.
9861 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9863 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9866 * ser-tcp.c: Don't include <netinet/udp.h>.
9868 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9870 * MAINTAINERS: Update my email address.
9872 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9874 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9875 include file of the same name.
9877 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9879 * configure.tgt: Mark v850 as multi-arched.
9880 * config/v850/tm-v850.h: Remove file.
9881 * config/v850/v850.mt: Eliminate TM_FILE.
9883 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9885 * v850-tdep.c: Full multi-arch.
9886 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9887 Define GDB_MULTI_ARCH to 2.
9889 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9891 * p-exp.y (current_type): New static variable.
9892 Carries the type of the expression at the position that is parsed.
9893 (push_current_type, pop_current_type): Two new functions. Used
9894 to store/restore current_type in expression on specific tokens.
9895 (search_field): New static variable. Set to one after parsing a point
9896 as at that point only a FIELDNAME token should be searched.
9897 (FIELDNAME): New token. After a point only a token belonging to
9898 current_type type definition is allowed.
9899 (all over token rules): reset and change current_type according
9901 (exp '[' rule): insert implicit array index field if
9902 exp is a pascal string type.
9904 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9906 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9907 frame info. Use frame_info's saved_regs instead of matching member
9908 in extra_frame_info throughout.
9909 (v850_frame_init_saved_regs): New function.
9910 (v850_init_extra_frame_info): Move most functionality into
9911 v850_frame_init_saved_regs().
9912 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9913 (v850_frame_find_saved_regs): Remove declaration.
9914 (FRAME_FIND_SAVED_REGS): Remove definition.
9915 (v850_frame_init_saved_regs): Add declaration.
9916 (FRAME_INIT_SAVED_REGS): Add definition.
9918 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9920 * v850-tdep.c: Begin multi-arch'ing v850.
9921 (v850_target_architecture_hook): Remove function.
9922 (v850_gdbarch_init): New function. Add code previously in
9923 v850_target_architecture_hook().
9924 (_initialize_v850_tdep): Don't set target_architecture_hook.
9925 Call register_gdbarch_init() instead.
9927 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9929 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9930 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9931 (fixup_class_method_type): Likewise.
9933 2002-05-15 Jim Blandy <jimb@redhat.com>
9935 Add macro structures to GDB's symbol tables. Nobody puts anything
9937 * symtab.h (struct symtab): New member: `macro_table'.
9938 * buildsym.h (pending_macros): New global variable.
9939 * buildsym.c: #include "macrotab.h".
9940 (buildsym_init): Initialize `pending_macros'.
9941 (end_symtab): If we found macro information while reading a CU's
9942 debugging info, do build a symtab structure for it. Make the
9943 symtab point to the macro information, and clear the
9944 `pending_macros' pointer which held it while we were reading the
9946 (really_free_pendings): Free any pending macro table.
9947 * objfiles.h (struct objfile): New member: `macro_cache'.
9948 * objfiles.c (allocate_objfile): Set allocate and free functions
9949 for the macro cache's objstack.
9950 (free_objfile): Empty the macro cache's obstack.
9951 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9952 set new allocate and free functions for it.
9953 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9954 free functions for the macro cache's objstack. (Why is this
9955 function building its own objfile?)
9956 * symmisc.c (print_objfile_statistics): Print statistics on the
9958 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9960 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9962 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9963 (REGISTER_U_ADDR): Delete definition.
9964 (arm_register_u_addr): Delete declaration.
9966 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9968 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9969 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9971 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9973 * regcache.c (register_valid): Revise comments refering to "Not
9974 available" and "unavailable".
9975 * frame.c (frame_register_read): Ditto.
9976 * findvar.c (value_of_register): Ditto.
9978 2002-05-15 Andrew Cagney <cagney@redhat.com>
9980 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9981 (remote-sim.o): Update dependencies.
9982 (d10v-tdep.o): Specify dependencies.
9983 (sim_d10v_h): Define.
9985 2002-05-14 Jim Blandy <jimb@redhat.com>
9987 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9988 * macrotab.c (macro_lookup_inclusion, find_definition,
9989 new_macro_table): Same.
9991 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9992 not `! strcmp ()'. This is a dubious improvement.
9993 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9995 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9996 although it's not necessary, to avoid a warning.
9998 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10000 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10001 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10002 TYPE_INSTANCE_FLAGS.
10003 (struct main_type): New.
10004 (struct type): Move most members to struct main_type. Change
10005 cv_type and as_type to new type_chain member. Add instance_flags.
10006 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10007 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10008 (finish_cv_type): Remove prototype.
10009 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
10011 (alloc_type_instance): New function.
10012 (smash_type): New function.
10013 (make_pointer_type, make_reference_type, make_function_type)
10014 (smash_to_member_type, smash_to_method_type): Call smash_type.
10015 (make_qualified_type): New function.
10016 (make_type_with_address_space): Call make_qualified_type.
10017 (make_cv_type): Likewise.
10018 (finish_cv_type): Remove unnecessary function.
10019 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
10020 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10021 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10022 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10023 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10024 * hpread.c (hpread_read_struct_type): Likewise.
10025 * stabsread.c (read_struct_type): Likewise.
10027 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
10029 * configure.tgt: Add a catch all sh* target, for cases like
10030 sh[2,3,4]-elf and sh-hms.
10032 2002-05-14 Keith Seitz <keiths@redhat.com>
10034 * event-loop.c (create_file_handler): Don't do anything but
10035 update data when we are given a fd which we are already
10038 2002-05-14 Michal Ludvig <mludvig@suse.cz>
10040 * dwarf2cfi.c (context_cpy): Copy registers correctly.
10041 (update_context): Use __func__ in warnings.
10043 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10045 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
10046 and tcp_close to net_open and net_close.
10047 (net_open): Accept "udp:" and "tcp:" specifications. Connect
10048 using UDP if requested. Don't try to disable Nagle on UDP
10050 * remote.c (remote_serial_open): New function. Warn about UDP.
10051 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10053 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10055 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10057 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10059 * configure.tgt: Remove sh-hms target.
10060 * MAINTAINERS: Don't list sh-hms as a separate target.
10062 2002-05-13 Jim Blandy <jimb@redhat.com>
10064 Add first preprocessor macro-expansion files.
10065 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10066 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10067 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10068 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10069 (COMMON_OBS): Add macrotab.o, macroexp.o.
10070 (macroexp.o, macrotab.o): New rules.
10072 2002-05-13 Andrew Cagney <ac131313@redhat.com>
10074 * config/m88k/tm-m88k.h: Update copyright.
10075 (m88k_target_write_pc): Declare
10076 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10077 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10078 (SHIFT_INST_REGS): Update definition.
10079 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10080 using old definition of TARGET_WRITE_PC.
10081 * regcache.c (generic_target_write_pc): Delete code handling
10083 * gdbarch.sh (NNPC_REGNUM): Delete.
10084 * gdbarch.h, gdbarch.c: Regenerate.
10086 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
10088 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10089 builtin reg number.
10091 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10093 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10094 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10095 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10097 * c-typeprint.c (cp_type_print_method_args): Likewise.
10098 (c_type_print_args): Likewise.
10099 * d10v-tdep.c (d10v_push_arguments): Likewise.
10100 (d10v_extract_return_value): Likewise.
10101 * expprint.c (print_subexp): Likewise.
10102 * gdbtypes.c (lookup_primitive_typename): Likewise.
10103 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10104 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10105 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10106 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10107 (TYPE_VECTOR): Likewise.
10108 * hpread.c (hpread_read_struct_type)
10109 (fix_static_member_physnames, fixup_class_method_type)
10110 (hpread_type_lookup): Likewise.
10111 * mdebugread.c (parse_symbol, parse_type): Likewise.
10112 * p-lang.c (is_pascal_string_type): Likewise.
10113 * valops.c (hand_function_call): Likewise.
10114 * x86-64-tdep.c (classify_argument): Likewise.
10116 * hpread.c (hpread_read_function_type)
10117 (hpread_read_doc_function_type): Call replace_type.
10118 * dstread.c (create_new_type): Delete.
10119 (decode_dst_structure, process_dst_function): Call alloc_type.
10120 Use type access macros.
10122 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10124 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10125 the're not supported by the current architecture.
10126 (i387_fill_fxsave): Likewise.
10128 2002-05-12 Fred Fish <fnf@redhat.com>
10130 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10131 sect_index_xxx members to index the first slot in section_offsets
10132 if all of the section_offsets are zero.
10134 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10136 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10137 checked in with last change.
10139 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10141 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10142 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10145 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10147 * Makefile.in: Update dependencies.
10149 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10151 * language.c (local_hex_string_custom): Simplify. Do not depend
10152 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10154 * memattr.c (mem_info_command): Replace calls to
10155 longest_local_hex_string and longest_local_hex_string_custom.
10156 * buildsym.c (make_blockvector): Ditto.
10157 * solib.c (info_sharedlibrary_command): Ditto.
10158 * tracepoint.c (tracepoints_info): Ditto.
10159 * symtab.c (print_msymbol_info): Ditto.
10161 * language.c (local_hex_string): Delete.
10162 (local_hex_string_custom): Delete.
10163 (longest_local_hex_string): Rename to local_hex_string.
10164 (longest_local_hex_string_custom): Rename to
10165 local_hex_string_custom.
10166 * language.h (local_hex_string): Change parameter type to LONGEST.
10167 (local_hex_string_custom): Ditto.
10168 (longest_local_hex_string): Delete declaration.
10169 (longest_local_hex_string_custom): Ditto.
10171 * solib.c: Update copyright.
10172 * memattr.c: Update copyright.
10174 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10176 * arch-utils.h (legacy_register_to_value): Declare.
10177 (legacy_value_to_register): Declare.
10178 (legacy_convert_register_p): Declare.
10179 * arch-utils.c (legacy_register_to_value): New function.
10180 (legacy_value_to_register): New function.
10181 (legacy_convert_register_p): New function.
10183 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10184 (VALUE_TO_REGISTER): Define.
10185 (CONVERT_REGISTER_P): Define.
10186 * gdbarch.h, gdbarch.c: Regenerate.
10188 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10190 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10191 CONVERT_REGISTER_P.
10193 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10194 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10196 * Makefile.in: Update dependencies for valops.c.
10197 * valops.c: Include "gdb_assert.h".
10198 (typecmp): Skip THIS parameter to methods.
10199 (find_method_list): Remove static_memfuncp argument,
10200 update callers. Check for stub methods.
10201 (find_value_oload_method_list): Don't set *static_memfuncp.
10202 (find_overload_match): Don't check for stub methods. Assert
10203 that methods are not stubbed. Handle static methods.
10204 (value_find_oload_method_list): Remove static_memfuncp argument.
10205 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10206 to the argument list for static stub methods.
10207 * value.h (value_find_oload_method_list): Update prototype.
10209 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10211 * arch-utils.h (generic_register_size): Declare.
10212 (generic_register_raw_size, generic_register_virtual_size): Delete
10214 * arch-utils.c (generic_register_raw_size): Delete.
10215 (generic_register_size): New function.
10216 (generic_register_virtual_size): Delete.
10218 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10219 default generic_register_size.
10220 * gdbarch.h, gdbarch.c: Re-generate.
10222 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10223 register_virtual_size.
10224 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10225 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10227 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10229 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10230 * gdbarch.h, gdbarch.c: Regenerate.
10231 * gnu-v3-abi.c: Update copyright.
10232 (vtable_address_point_offset): Update.
10233 (gnuv3_rtti_type): Update.
10234 (gnuv3_baseclass_offset): Update.
10235 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10236 (init_fetch_link_map_offsets): Update.
10237 * remote.c (get_remote_state): Update.
10239 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10241 * TODO: Remove value_headof/value_from_vtable_info comment.
10242 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10243 * values.c (value_headof, value_from_vtable_info): Delete.
10244 * value.h (value_from_vtable_info): Delete prototype.
10246 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10248 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10249 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10251 (gdb_assert_h): Define.
10252 (gdb_wait_h): Define.
10253 (gdb_regex_h): Define.
10255 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10257 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10258 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10260 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10262 * nbsd-tdep.c: Fix comment.
10264 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10266 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10267 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10268 (nbsd-tdep.o): New dependency list.
10269 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10271 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10272 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10273 * nbsd-tdep.c: New file.
10274 * nbsd-tdep.h: New file.
10275 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10277 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10278 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10279 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10280 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10282 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10284 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10285 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10286 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10287 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10288 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10289 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10291 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10293 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10294 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10295 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10296 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10297 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10298 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10299 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10301 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10303 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10304 fetch_elfcore_registers to...
10305 * i386nbsd-tdep.c: ...here.
10306 (i386nbsd_use_struct_convention): Rename to...
10307 (i386nbsd_aout_use_struct_convention): ...this.
10308 (i386nbsd_supply_reg): New function.
10309 (i386nbsd_fill_reg): New function.
10310 (fetch_core_registers): Use i386nbsd_supply_reg.
10311 (fetch_elfcore_registers): Likewise.
10312 (_initialize_i386nbsd_tdep): New function.
10313 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10314 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10315 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10316 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10317 (i386nbsd_aout_use_struct_convention): ...this.
10319 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10321 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10322 (store_inferior_registers): Use shnbsd_fill_reg.
10323 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10324 sh_nbsd_supply_register): Collapse into...
10325 (shnbsd_supply_reg): ...this.
10326 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10327 (shnbsd_fill_reg): ...this.
10328 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10329 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10330 (fetch_core_registers): Use shnbsd_supply_reg.
10331 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10332 (sh_nbsd_core_fns): Rename to...
10333 (shnbsd_core_fns): ...this.
10334 (sh_nbsd_elfcore_fns): Rename to...
10335 (shnbsd_elfcore_fns): ...this.
10336 (sh_nbsd_init_abi): Rename to...
10337 (shnbsd_init_abi): ...this.
10338 (_initialize_sh_nbsd_tdep): Rename to...
10339 (_initialize_shnbsd_tdep): ...this.
10340 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10341 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10342 sh_nbsd_fill_register): Remove prototypes.
10343 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10345 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10347 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10348 (i387-nat.o): Delete dependency list.
10349 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10350 (x86-64-linux-nat.o): Likewise.
10351 * i387-nat.c: Delete file, moving contents to...
10352 * i387-tdep.c: ...here.
10353 * i387-nat.h: Rename...
10354 * i387-tdep.h: ...to this.
10355 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10356 * i386-linux-nat.c: Likewise.
10357 * i386bsd-nat.c: Likewise.
10358 * i386gnu-nat.c: Likewise.
10359 * i386nbsd-nat.c: Likewise.
10360 * i386v4-nat.c: Likewise.
10361 * x86-64-linux-nat.c: Likewise.
10362 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10363 * config/i386/go32.mh (NATDEPFILES): Likewise.
10364 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10365 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10366 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10367 * config/i386/linux.mh (NATDEPFILES): Likewise.
10368 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10369 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10370 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10371 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10373 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10375 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10376 (alphanbsd-nat.o): Remove dependency list.
10377 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10378 * alphanbsd-nat.c: Delete. Contents moved to...
10379 * alphanbsd-tdep.c: ...here.
10380 (_initialize_alphanbsd_tdep): Register core functions.
10381 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10383 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10385 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10386 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10387 (alphanbsd-nat.o): Likewise.
10388 (alphabsd-tdep.o): New dependency list.
10389 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10390 (fill_gregset): Use alphabsd_fill_reg.
10391 (supply_fpregset): Use alphabsd_supply_fpreg.
10392 (fill_fpregset): Use alphabsd_fill_fpreg.
10393 (fetch_inferior_registers): Use struct reg and struct fpreg
10394 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10395 and alphabsd_supply_fpreg.
10396 (store_inferior_registers): Use struct reg and struct fpreg
10397 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10398 and alphabsd_fill_fpreg.
10399 * alphabsd-tdep.c: New file.
10400 * alphabsd-tdep.h: New file.
10401 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10402 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10403 alphabsd_supply_fpreg.
10404 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10405 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10407 2002-05-11 Eric Christopher <echristo@redhat.com>
10409 * mips-tdep.c (mips_double_register_type): Fix thinko.
10410 (mips_single_register_type): Ditto.
10411 * MAINTAINERS: Add self.
10413 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10415 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10416 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10417 right thing on architectures with different endianness and/or
10420 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10422 From Christian Limpach <chris@Pin.LU>
10423 * configure.in: Change sed expression which comments out
10424 NATDEPFILES to also comment out continuation lines.
10425 * configure: Regenerate.
10427 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10429 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10432 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10434 * sh-tdep.c: Include correct file.
10436 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10438 New support for sh64-elf (sh5) target.
10440 * configure.tgt: For sh64-elf target, default to sh-elf.
10442 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10443 (struct gdbarch_tdep): Add new fields for new registers and ABI
10446 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10447 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10448 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10449 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10450 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10451 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10452 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10453 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10454 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10455 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10456 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10457 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10458 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10459 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10460 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10461 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10462 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10463 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10464 sign_extend, sh64_nofp_frame_init_saved_regs,
10465 sh64_init_extra_frame_info, sh64_get_saved_register,
10466 sh64_extract_struct_value_address, sh64_pop_frame,
10467 sh64_push_arguments, sh64_extract_return_value,
10468 sh64_store_return_value, sh64_show_media_regs,
10469 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10470 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10471 sh_sh64_register_virtual_type,
10472 sh_sh64_register_convert_to_virtual,
10473 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10474 sh64_register_read, sh64_pseudo_register_write,
10475 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10476 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10477 sh64_do_pseudo_register, sh_compact_do_registers_info,
10478 sh64_do_registers_info, sh_gdbarch_init): New functions.
10480 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10482 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10484 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10486 * linespec.c (decode_line_1): Check for a double quote after
10487 a filename correctly.
10489 2002-05-10 Jim Blandy <jimb@redhat.com>
10491 Properly track the size of the current objfile's .debug_line section.
10492 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10493 (DWARF_LINE_SIZE): New macro.
10494 (dwarf2_build_psymtabs_hard): Record the line section's size in
10495 the partial symbol table.
10496 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10499 2002-05-10 Petr Sorfa <petrs@caldera.com>
10501 * ia64-tdep.c: Handle breakpoints on L instruction type
10502 in MLX instruction bundle by moving the breakpoint to
10503 the third slot (X instruction type) as L holds only data.
10505 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10507 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10508 (process_one_symbol): Complain about discarding local symbols
10509 due to a misplaced N_LBRAC entry.
10511 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10513 From Daniel Berlin <dan@cgsoftware.com>
10514 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10515 decrease the depth we are at, in the case of templates.
10517 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10519 * mips-tdep.c (mips_float_register_type): New function.
10520 (mips_double_register_type): New function.
10521 (mips_print_register): Use them.
10522 (do_fp_register_row): Likewise.
10524 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10526 * signals/signals.c (signals): Remove conditional compilation around
10527 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10528 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10530 2002-05-09 Michael Snyder <msnyder@redhat.com>
10532 * remote-rdp.c (remote_rdp_can_run): Remove.
10534 2002-05-09 Tom Tromey <tromey@redhat.com>
10536 * jv-valprint.c (java_val_print): Handle `char' as a special case
10539 2002-05-09 Michael Snyder <msnyder@redhat.com>
10541 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10542 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10543 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10544 str r(0123),[sp,#nn].
10545 (arm_skip_prologue): Ditto. Also make disassembly
10546 order-independent by placing it in a loop.
10548 2002-05-06 Michael Snyder <msnyder@redhat.com>
10550 * stabsread.c (read_type): Add recognition for new attribute:
10551 "@V;" means that an array type is actually a vector.
10552 This is analogous to the vector flag that's been added to dwarf2.
10554 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10556 * i386-tdep.h (i386_abi): New enum.
10557 (struct gdbarch_tdep): Replace os_ident member with abi.
10558 (i386_gdbarch_register_os_abi): New prototype.
10559 * i386-tdep.c (i386_abi_names): New array.
10560 (process_note_abi_tag_sections): Removed.
10561 (process_note_sections): New function.
10562 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10563 (struct i386_abi_handler): New struct.
10564 (i386_abi_handler_list): New variable.
10565 (i386_gdbarch_register_os_abi): New function.
10566 (i386_gdbarch_init): Adapt for the changes given above.
10568 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10570 * gregset.h: Say "GNU/Linux".
10572 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10574 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10575 (build_gdbtypes): Build builtin_type_v2_float.
10576 (_initialize_gdbtypes): Register new builtin type.
10578 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10580 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10581 (clear_gdbarch_swap): New function.
10582 (initialize_non_multiarch): Call.
10583 (gdbarch_update_p): Before calling init(), swap out and clear the
10584 existing architecture.
10585 * gdbarch.c: Regenerate.
10587 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10589 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10592 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10594 * sh-nbsd-nat.c: Rename to...
10595 * shnbsd-nat.c: ...this.
10596 * sh-nbsd-tdep.c: Rename to...
10597 * shnbsd-tdep.c: ...this.
10598 * sh-nbsd-tdep.h: Rename to...
10599 * shnbsd-tdep.h: ...this.
10600 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10601 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10603 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10605 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10606 concatenation for command help messages.
10608 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10610 * NEWS: Note new sh*-*-netbsdelf* configuration.
10611 * configure.host: Set gdb_host_cpu to sh for all sh*.
10612 (sh*-*-netbsdelf*): New host.
10613 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10614 (sh*-*-netbsdelf*): New target.
10615 * sh-nbsd-nat.c: New file.
10616 * sh-nbsd-tdep.c: New file.
10617 * sh-nbsd-tdep.h: New file.
10618 * config/sh/nbsd.mh: New file.
10619 * config/sh/nbsd.mt: New file.
10620 * config/sh/nm-nbsd.h: New file.
10621 * config/sh/tm-nbsd.h: New file.
10623 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10625 * sh-tdep.c (sh_osabi_names): Declare.
10626 (process_note_abi_tag_sections): New function.
10627 (get_elfosabi): Ditto.
10628 (sh_gdbarch_register_os_abi): Ditto.
10629 (sh_dump_tdep): Ditto.
10630 _initialize_sh_tdep): Use gdbarch_register to register
10631 sh_gdbarch_init and sh_dump_tdep.
10632 * config/sh/tm-sh.h (sh_osabi): Declare.
10633 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10635 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10637 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10638 (thumb_scan_prologue): Ditto.
10639 (arm_find_callers_reg): Ditto.
10640 (arm_frame_chain): Ditto.
10641 (arm_init_extra_frame_info): Ditto.
10642 (arm_frame_saved_pc): Ditto.
10643 (arm_pop_frame): Ditto.
10644 (arm_push_return_address): New function.
10645 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10646 call_dummy_location, call_dummy_breakpoint_offset_p,
10647 call_dummy_breakpoint_offset, call_dummy_p,
10648 call_dummy_stack_adjust_p, call_dummy_words,
10649 sizeof_call_dummy_words, call_dummy_start_offset,
10650 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10651 call_dummy_address, push_return_address and push_dummy_frame for
10652 generic dummy frames.
10654 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10656 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10657 size computation for alloca.
10658 (sh_fp_frame_init_saved_regs): Likewise.
10660 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10662 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10663 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10664 * arm-tdep.c (arm_store_return_value): Use them.
10665 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10666 * remote-rdp.c (remote_rdp_fetch_register): Use
10667 ARM_MAX_REGISTER_RAW_SIZE.
10668 (remote_rdp_store_register): Likewise.
10670 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10672 * dwarf2cfi.c: Code cleanup, removed unused variables,
10673 added default labels to switch {} statements.
10674 * x86-64-tdep.c: Ditto.
10675 * x86-64-linux-nat.c: Ditto.
10677 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10679 * solib.h: Protect against multiple inclusion.
10681 2002-05-06 Jim Blandy <jimb@redhat.com>
10683 Add first preprocessor macro-expansion files.
10684 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10685 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10686 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10687 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10688 (COMMON_OBS): Add macrotab.o, macroexp.o.
10689 (macroexp.o, macrotab.o): New rules.
10691 Separate the job of reading the line number info statement program
10692 header (...expialidocious) out into its own function.
10693 * dwarf2read.c (struct line_head, struct filenames, struct
10694 directories): Replace with...
10695 (struct line_header): New structure, containing the full
10696 contents of the statement program header, including the
10697 include directory and file name tables.
10698 (read_file_scope): If we have line number info, instead of just
10699 calling dwarf_decode_lines to do all the work, call
10700 dwarf_decode_line_header first to get a `struct line_header'
10701 containing the data in the statement program header, and then
10702 pass that to dwarf_decode_lines, which will pick up where that
10703 left off. Be sure to clean up the `struct line_header' object.
10704 (dwarf_decode_line_header, free_line_header, add_include_dir,
10705 add_file_name): New functions.
10706 (dwarf_decode_lines): Move all the code to read the statement
10707 program header into dwarf_decode_line_header. Take the line
10708 header it built as the first argument, instead of the offset to
10709 the compilation unit's line number info. Use the new `struct
10710 line_header' type instead of the old structures. No need to do
10711 cleanups here now, since we don't allocate anything.
10712 (dwarf2_statement_list_fits_in_line_number_section,
10713 dwarf2_line_header_too_long): New complaints.
10715 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10717 * gdbtypes.c (init_vector_type): New function.
10718 (build_builtin_type_vec128): Simplify the representation of SIMD
10720 (build_gdbtypes): Initialize new builtin vector types.
10721 (_initialize_gdbtypes): Register new vector types with gdbarch.
10722 (builtin_type_v4_float, builtin_type_v4_int32,
10723 builtin_type_v8_int16, builtin_type_v16_int8,
10724 builtin_type_v2_int32, builtin_type_v4_int16,
10725 builtin_type_v8_int8): New (renamed) SIMD types.
10727 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10729 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10730 (i387_fill_fxsave): Likewise.
10732 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10734 * alpha-tdep.c (alpha_extract_return_value): Don't use
10735 non-constant array size in prototype.
10737 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10739 From Brian Taylor <briant at model dot com>:
10740 * ui-out.c (ui_out_field_core_addr): Use the function
10741 longest_local_hex_string_custom'to format addresses > 32 bits
10744 * ui-out.c (ui_out_field_core_addr): Update comment.
10746 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10748 * stack.c (select_and_print_frame): Make static. Delete the
10750 (func_command): Update call.
10751 (select_frame_command): Delete code computing the frame level.
10752 * frame.h (select_and_print_frame): Delete declaration.
10754 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10756 * sparc-tdep.c (sparc_get_saved_register): Comment why
10757 get_prev_frame call is safe.
10759 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10761 * frame.h (select_frame): Delete level parameter.
10762 * stack.c (select_frame): Update. Use frame_relative_level to
10763 obtain the frame's level.
10764 (select_and_print_frame): Update call.
10765 (select_frame_command): Ditto.
10766 (up_silently_base): Ditto.
10767 (down_silently_base): Ditto.
10768 * ocd.c (ocd_start_remote): Ditto.
10769 * remote-rdp.c (remote_rdp_open): Ditto.
10770 * remote-mips.c (mips_initialize): Ditto.
10771 (common_open): Ditto.
10772 * remote-e7000.c (e7000_start_remote): Ditto.
10773 * m3-nat.c (select_thread): Ditto.
10774 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10775 (child_get_current_exception_event): Ditto.
10776 * varobj.c (varobj_create): Ditto.
10777 (varobj_update): Ditto.
10778 (c_value_of_root): Ditto.
10779 * tracepoint.c (finish_tfind_command): Ditto.
10780 * corelow.c (core_open): Ditto.
10781 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10782 * thread.c (info_threads_command): Ditto.
10783 (switch_to_thread): Ditto.
10784 * infrun.c (normal_stop): Ditto.
10785 (restore_selected_frame): Ditto.
10786 (restore_inferior_status): Ditto.
10787 * breakpoint.c (insert_breakpoints): Ditto.
10788 (watchpoint_check): Ditto.
10789 (bpstat_stop_status): Ditto.
10790 (do_enable_breakpoint): Ditto.
10791 * blockframe.c (flush_cached_frames): Ditto.
10792 (reinit_frame_cache): Ditto.
10794 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10796 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10799 2002-05-04 Jim Blandy <jimb@redhat.com>
10801 * gdbtypes.c (replace_type): Doc fix.
10803 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10805 * valprint.c (strcat_longest): Delete commented out function.
10808 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10810 * MAINTAINERS: Mark a29k as deleted.
10811 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10812 Move new configurations to the top.
10813 * configure.tgt: Remove a29k.
10814 * config/a29k/tm-vx29k.h: Delete.
10815 * config/a29k/vx29k.mt: Delete.
10816 * config/a29k/tm-a29k.h: Delete.
10817 * config/a29k/a29k-udi.mt: Delete.
10818 * config/a29k/a29k.mt: Delete.
10819 * a29k-tdep.c: Delete.
10820 * remote-udi.c: Delete.
10821 * remote-mm.c: Delete.
10822 * remote-eb.c: Delete.
10823 * remote-adapt.c: Delete.
10824 * Makefile.in: Remove obsolete code.
10825 * config/s390/s390x.mt: Ditto.
10826 * config/s390/s390.mt: Ditto.
10827 * config/sparc/sparclynx.mh: Ditto.
10828 * config/sparc/linux.mh: Ditto.
10829 * config/pa/hppaosf.mh: Ditto.
10830 * config/pa/hppabsd.mh: Ditto.
10831 * config/ns32k/nbsd.mt: Ditto.
10832 * config/mips/vr5000.mt: Ditto.
10833 * config/m68k/sun3os4.mh: Ditto.
10834 * config/m68k/nbsd.mt: Ditto.
10835 * config/m68k/m68klynx.mh: Ditto.
10836 * config/m32r/m32r.mt: Ditto.
10837 * config/i386/x86-64linux.mt: Ditto.
10838 * config/i386/nbsdelf.mt: Ditto.
10839 * config/i386/nbsd.mt: Ditto.
10840 * config/i386/i386lynx.mh: Ditto.
10842 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10844 * target.c (debug_print_register): New function. Handle oversize
10846 (debug_to_fetch_registers): Call.
10847 (debug_to_store_registers): Call.
10849 2002-05-03 Jim Blandy <jimb@redhat.com>
10851 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10852 (read_type): Doc fix.
10853 * gdbtypes.c (replace_type): Doc fix.
10855 * stabsread.c (multiply_defined_struct): New complaint.
10856 (read_struct_type): If the type we were passed isn't empty, or
10857 incomplete, don't read the new struct type into it; complain,
10858 and return the original type unchanged. Take a new `type_code'
10859 argument, which is the type code for the new type.
10860 (read_type): Rather than storing the type's type code here, pass
10861 it as an argument to read_struct_type, and let that take care of
10862 storing it. That way, we don't overwrite the original type code,
10863 so read_struct_type can use it to decide whether we're overwriting
10864 something we shouldn't.
10865 (complain_about_struct_wipeout): New function.
10867 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10869 * gdbarch.sh: Assert that gdbarch is non-NULL.
10870 * gdbarch.c: Regenerate.
10872 2002-05-03 Jason Merrill <jason@redhat.com>
10874 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10877 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10879 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10880 (x86_64_dwarf2gdb_regno_map_length),
10881 (x86_64_dwarf2_reg_to_regnum): Added.
10882 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10883 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10884 (_initialize_x86_64_tdep): Synced with the change above.
10885 (x86_64_skip_prologue): Reformulated message.
10887 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10889 * f-exp.y: Also use new prev_lexptr variable
10890 to improve error reporting. Based on Michael Snyder
10891 2002-04-24 dated patch to c-exp.y.
10892 * jv-exp.y: Likewise.
10893 * m2-exp.y: Likewise.
10895 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10897 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10898 we are dealing with vectors.
10900 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10902 * config/m68k/tm-nbsd.h: Obvious fix,
10903 correct machine name.
10905 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10907 * p-typeprint.c (pascal_type_print_base): Add support
10908 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10910 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10912 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10913 for fondamental pascal 'char' type.
10915 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10917 * p-lang.h (is_pascal_string_type): Declaration changed,
10918 new sixth argument of type char ** added.
10919 * p-lang.c (is_pascal_string_type): Implementation
10920 changed. Args length_pos, length_size, string_pos, char_size
10921 can now be NULL. New argument arrayname set to the field
10922 name of the char array. Return value set to char array
10923 field index plus one.
10924 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10925 is_pascal_string_type function.
10927 2002-05-02 Andrew Cagney <cagney@redhat.com>
10929 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10930 <cagney@redhat.com> change.
10931 * gdbarch.c: Regenerate.
10933 2002-05-02 Andrew Cagney <cagney@redhat.com>
10935 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10936 before probing for a new one. Detect errorenous gdbarch_init
10938 * gdbarch.c: Regenerate.
10940 2002-05-01 Andrew Cagney <cagney@redhat.com>
10942 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10943 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10944 * config/v850/tm-v850.h: Ditto. Update copyright.
10946 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10948 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10951 2002-04-30 Michael Snyder <msnyder@redhat.com>
10953 * arm-tdep.c: Whitespace clean-ups.
10954 (arm_skip_prologue): Fix thinko; two lines
10955 should have been removed as part of 4/24 change.
10957 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10959 * rs6000-tdep.c: Added comment describing how fpscr register
10960 numbers were chosen.
10962 2002-04-30 Michael Snyder <msnyder@redhat.com>
10964 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10966 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10968 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10969 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10970 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10972 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10974 From Louis Hamilton <hamilton@redhat.com>:
10975 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10976 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10977 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10978 not bfd-private xcoff data, to determine wordsize.
10979 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10981 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10983 GDB 5.2 released from 5.2 branch.
10985 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10987 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10988 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10989 (x86_64_register_info_table): Added comments with register numbers.
10991 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10993 * rs6000-tdep.c (rs6000_extract_return_value,
10994 rs6000_store_return_value): Handle returning vectors.
10995 (rs6000_gdbarch_init): Use
10996 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10997 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10999 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11001 (ppc_sysv_abi_push_arguments): Handle vector parameters.
11002 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11004 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11006 * hpread.c (hpread_psymtab_to_symtab_1,
11007 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11008 with fprintf_unfiltered (gdb_stderr,...).
11010 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11012 * remote-array.c (printf_monitor, write_monitor,
11013 array_insert_breakpoint, array_remove_breakpoint ):
11014 Replace fprintf (stderr,...
11015 with fprintf_unfiltered (gdb_stderr,....
11016 * remote-es.c: Likewise.
11017 * remote-os9k.c: Likewise.
11018 * remote-st.c: Likewise.
11020 2002-04-28 Andreas Schwab <schwab@suse.de>
11022 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11023 linux-proc.o and gcore.o.
11025 2002-04-26 Michal Ludvig <mludvig@suse.cz>
11027 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11028 code without frame pointers.
11030 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11032 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11033 ON_STACK is needed.
11035 2002-04-26 Ben Elliston <bje@redhat.com>
11037 * target.c (do_xfer_memory): Correct reference to the new option
11038 "trust-readonly-sections".
11040 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
11042 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11043 * gdbtypes.c (recursive_dump_type): Output the vector flag.
11044 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11046 (read_array_type): Record the fact that this array type is really a
11047 vector (i.e. are passed in by value).
11049 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
11051 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11052 * alpha-tdep.c (alpha_sigcontext_addr): New function.
11053 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11054 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11055 * alpha-linux-tdep.c: Include frame.h.
11056 (alpha_linux_sigcontext_addr): New function.
11057 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11058 alpha_linux_sigcontext_addr.
11059 * alpha-osf1-tdep.c: Include gdbcore.h.
11060 (alpha_osf1_sigcontext_addr): New function.
11061 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11062 alpha_osf1_sigcontext_addr.
11063 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11064 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11066 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11068 * stack.c (selected_frame_level):
11069 (select_frame): Do not set selected_frame_level.
11070 * frame.h (selected_frame_level): Delete declaration.
11072 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11074 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11075 convert_from_func_ptr-addr when AIX / PowerOpen.
11077 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11079 * valops.c (hand_function_call): Call
11080 generic_save_call_dummy_addr.
11081 * frame.h (generic_save_call_dummy_addr): Declare.
11082 * blockframe.c (struct dummy_frame): Add fields call_lo and
11084 (generic_find_dummy_frame): Check for PC in range call_lo to
11085 call_hi instead of entry_point_address.
11086 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11087 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11088 (generic_save_call_dummy_addr): New function.
11090 2002-04-24 David S. Miller <davem@redhat.com>
11092 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11093 sparc_skip_prologue.
11094 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11095 information to find prologue when possible.
11096 (sparc_prologue_frameless_p): Call examine_prologue directly.
11097 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11098 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11100 (SKIP_PROLOGUE): Likewise.
11102 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11104 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11105 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11106 indicate that the condition it was testing is always true.
11107 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11108 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11109 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11111 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11113 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11114 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11115 tdep->jb_pc and tdep->jb_elt_size.
11116 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11117 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11118 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11119 * alpha-nat.c (get_longjmp_target): Remove.
11120 (JB_ELEMENT_SIZE): Ditto.
11122 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11123 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11124 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11125 to alpha_get_longjmp_target.
11126 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11127 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11128 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11130 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11132 * README: Update to GDB 5.2.
11134 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11136 * gdbarch.sh (LC_ALL): Set to `c'.
11138 2002-04-25 Theodore A. Roth <troth@verinet.com>
11140 * avr-tdep.c: Ran through gdb_indent.sh.
11142 2002-04-25 Theodore A. Roth <troth@verinet.com>
11144 * MAINTAINERS: Add myself as AVR maintainer.
11145 * NEWS: Note new target avr.
11147 2002-04-25 Theodore A. Roth <troth@verinet.com>
11149 * Makefile.in: Add support for AVR target.
11150 * configure.tgt: Add support for AVR target.
11151 * avr-tdep.c: New file
11152 * config/avr/avr.mt: New file.
11154 2002-04-25 Theodore A. Roth <troth@verinet.com>
11156 * MAINTAINERS: Add myself to write-after-approval.
11158 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11160 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11161 with fprintf_unfiltered (gdb_stderr,....
11163 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11166 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11168 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11170 * p-exp.y: Also use new prev_lexptr variable
11171 to improve error reporting. Based on Michael Snyder
11172 2002-04-24 dated patch to c-exp.y.
11174 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11176 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11177 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11178 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11180 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11182 (FUNCTION_START_OFFSET): Remove.
11183 (BREAKPOINT): Ditto.
11185 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11187 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11190 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11192 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11193 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11194 alpha_linux_pc_in_sigtramp.
11195 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11196 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11197 alpha_osf1_pc_in_sigtramp.
11198 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11199 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11200 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11201 alphafbsd_pc_in_sigtramp.
11202 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11203 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11204 alphanbsd_pc_in_sigtramp.
11205 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11206 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11208 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11210 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11212 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11214 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11216 (alphanbsd-nat.o): New dependency list.
11217 (alphanbsd-tdep.o): Ditto.
11218 * NEWS: Note new native NetBSD/alpha configuration.
11219 * alphanbsd-nat.c: New file.
11220 * alphanbsd-tdep.c: Ditto.
11221 * configure.host (alpha*-*-netbsd*): New host.
11222 * configure.tgt (alpha*-*-netbsd*): New target.
11223 * config/alpha/nbsd.mh: New file.
11224 * config/alpha/nbsd.mt: Ditto.
11225 * config/alpha/nm-nbsd.h: Ditto.
11226 * config/alpha/tm-nbsd.h: Ditto.
11228 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11230 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11231 (alpha-osf1-tdep.o): New dependency list.
11232 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11233 and skip_sigtramp_frame members.
11234 * alpha-linux-tdep.c: Include gdbcore.h.
11235 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11236 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11237 * alpha-osf1-tdep.c: New file.
11238 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11240 (alpha_frame_past_sigtramp_frame): New function.
11241 (alpha_dynamic_sigtramp_offset): Ditto.
11242 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11243 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11244 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11245 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11246 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11247 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11248 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11249 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11250 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11251 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11252 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11253 to find_solib_trampoline_target.
11254 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11255 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11256 (SKIP_TRAMPOLINE_CODE): Remove.
11257 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11258 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11259 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11260 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11261 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11262 (PROC_SIGTRAMP_MAGIC): Ditto.
11263 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11264 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11265 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11266 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11267 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11269 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11271 * NEWS: Note that Alpha targets are now multi-arch.
11273 2002-04-24 Michael Snyder <msnyder@redhat.com>
11275 * parser-defs.h (prev_lexptr): New external variable.
11276 * parse.c (parse_exp_1): Set prev_lexptr to null before
11277 calling the language-specific parser.
11278 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11279 (yyerror): Use prev_lexptr in error reporting.
11281 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11283 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11284 * gregset.h: If FILL_FPXREGSET is defined, provide
11285 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11286 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11287 is defined, call fill_fpxregset.
11289 2002-04-24 Roland McGrath <roland@frob.com>
11291 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11292 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11293 (supply_gregset, supply_fpregset): New functions.
11295 * gnu-nat.c (gnu_find_memory_regions): New function.
11296 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11297 (gnu_xfer_memory): Add a cast.
11299 2002-04-24 Michael Snyder <msnyder@redhat.com>
11301 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11302 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11303 of argument regs ("str r(0123), [r11, #-nn"]).
11304 (arm_skip_prologue): Better handling for frameless functions.
11305 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11306 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11308 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11310 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11311 NUM_PSEUDO_REGS can be used.
11313 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11315 * arch-utils.h: Update copyright.
11317 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11318 * gdbarch.h, gdbarch.c: Re-generate.
11320 * inferior.h (IN_SIGTRAMP): Delete definition.
11321 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11322 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11324 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11325 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11326 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11327 (find_proc_framesize): Ditto.
11328 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11329 (alpha_init_extra_frame_info): Ditto.
11330 * infrun.c (handle_inferior_event): Ditto.
11331 (handle_inferior_event): Ditto.
11332 (check_sigtramp2): Ditto.
11333 * blockframe.c (create_new_frame): Ditto.
11334 (get_prev_frame): Ditto.
11335 * ppc-linux-tdep.c: Update comments.
11336 * i386-linux-tdep.c: Update comments.
11337 * breakpoint.c (bpstat_what): Update comment.
11339 2002-04-24 David S. Miller <davem@redhat.com>
11341 * i960-tdep.c (register_in_window_p): New function.
11342 (i960_find_saved_register): Use it instead of
11343 REGISTER_IN_WINDOW_P.
11344 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11346 * symtab.h (find_stab_function_addr): Kill extern.
11347 * minsyms.c (find_stab_function_addr): Remove from here...
11348 * dbxread.c: ... to here, and mark it static.
11350 2002-04-20 David S. Miller <davem@redhat.com>
11352 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11353 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11355 2002-04-21 David S. Miller <davem@redhat.com>
11357 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11358 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11359 (vx_write_register): Likewise.
11361 2002-04-23 J. Brobecker <brobecker@gnat.com>
11363 * source.c (is_regular_file): New function.
11364 (openp): Check wether file to open is a regular file
11365 to avoid opening directories.
11367 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11369 * findvar.c (extract_signed_integer): Cast printf argument
11370 to suppress format warning.
11371 (extract_unsigned_integer): Likewise.
11372 * infcmd.c (registers_info): Likewise.
11373 * top.c (get_prompt_1): Likewise.
11374 * valops.c (value_assign): Likewise.
11375 * valprint.c (print_decimal): Likewise.
11377 2002-04-22 H.J. Lu (hjl@gnu.org)
11379 * c-exp.y (typebase): Support
11381 [long|long long|short] [signed|unsigned] [int|]
11385 signed [long|long long|short] int
11387 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11389 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11391 * vax-tdep.h: New file.
11392 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11393 Make several routines static.
11394 (vax_get_saved_register): New function.
11395 (vax_gdbarch_init): New function.
11396 (_initialize_vax_tdep): Register vax_gdbarch_init.
11397 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11398 Remove macros now under the control of gdbarch.
11400 2002-04-22 Michael Snyder <msnyder@redhat.com>
11402 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11403 Some whitespace and coding standards tweaks.
11405 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11407 * vax-tdep.c: Include regcache.h.
11408 (vax_call_dummy_words): New.
11409 (sizeof_vax_call_dummy_words): New.
11410 (vax_fix_call_dummy): New function.
11411 (vax_saved_pc_after_call): Ditto.
11412 * config/vax/tm-vax.h: Don't include regcache.h.
11413 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11414 (CALL_DUMMY): Remove.
11415 (CALL_DUMMY_WORDS): Define.
11416 (SIZEOF_CALL_DUMMY_WORDS): Define.
11417 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11419 2002-04-18 Michael Snyder <msnyder@redhat.com>
11421 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11423 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11425 * vax-tdep.c (vax_frame_chain): New function.
11426 (vax_push_dummy_frame): Ditto.
11427 (vax_pop_frame): Ditto.
11428 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11429 (FRAMELESS_FUNCTION_INVOCATION): Use
11430 generic_frameless_function_invocation_not.
11431 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11432 (POP_FRAME): Use vax_pop_frame.
11434 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11436 * vax-tdep.c (vax_store_struct_return): New function.
11437 (vax_extract_return_value): Ditto.
11438 (vax_store_return_value): Ditto.
11439 (vax_extract_struct_value_address): Ditto.
11440 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11441 vax_store_struct_return.
11442 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11443 (STORE_RETURN_VALUE): Use vax_store_return_value.
11444 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11446 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11448 * vax-tdep.c (vax_frame_saved_pc): New function.
11449 (vax_frame_args_address_correct): Ditto.
11450 (vax_frame_args_address): Ditto.
11451 (vax_frame_locals_address): Ditto.
11452 (vax_frame_num_args): Move code to be in proximity to
11453 other frame-related functions.
11454 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11455 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11456 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11457 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11458 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11460 2002-04-22 H.J. Lu (hjl@gnu.org)
11462 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11465 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11467 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11468 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11469 (FRAME_INIT_SAVED_REGS): New macro.
11471 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11473 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11475 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11477 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11479 (fetch_osf_core_registers): Likewise.
11480 (supply_gregset): Likewise.
11482 2002-04-22 J. Brobecker <brobecker@gnat.com>
11484 * symfile.h (get_section_index): Define.
11485 * symfile.c (get_section_index): New function.
11486 * mdebugread.c (SC_IS_SBSS): New macro.
11487 (SC_IS_BSS): Return true for the scBss storage class only, as
11488 the scSBss storage class refers to the .sbss section.
11489 (parse_partial_symbols): Discard the symbols which associated
11490 section does not exist.
11491 Make sure to use the .sbss section index for symbols which
11492 storage class is scBss, rather than using the .bss section index.
11494 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11496 * vax-tdep.c: Update copyright years.
11497 (vax_register_name): New function.
11498 (vax_register_byte): Ditto.
11499 (vax_register_raw_size): Ditto.
11500 (vax_register_virtual_size): Ditto.
11501 (vax_register_virtual_type): Ditto.
11502 * config/vax/tm-vax.h: Update copyright years.
11503 (REGISTER_NAMES): Remove.
11504 (REGISTER_NAME): Define.
11505 (REGISTER_BYTE): Use vax_register_byte.
11506 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11507 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11508 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11510 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11512 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11514 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11516 2002-04-21 David S. Miller <davem@redhat.com>
11518 * arch-utils.c (generic_prologue_frameless_p): Kill
11519 SKIP_PROLOGUE_FRAMELESS_P code.
11520 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11522 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11523 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11524 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11526 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11527 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11528 (sparc_gdbarch_init): Pass it to
11529 set_gdbarch_prologue_frameless_p.
11531 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11533 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11534 (alphabsd-nat.o): New dependency list.
11536 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11538 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11540 (alpha-linux-tdep.o): New dependency list.
11541 (alphafbsd-tdep.o): Likewise.
11543 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11545 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11547 * alpha-tdep.c: ...from here.
11548 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11550 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11552 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11553 prototype from here...
11554 * alpha-tdep.h: ...to here.
11556 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11558 * frame.h (selected_frame_level): Document as deprecated.
11559 (frame_relative_level): Declare.
11560 * stack.c (frame_relative_level): New function.
11561 (selected_frame_level): Document as deprecated.
11562 (select_frame): Do not set the selected_frame_level.
11564 * stack.c (frame_info, record_selected_frame): Update.
11565 (frame_command, current_frame_command): Update.
11566 (up_silently_base, up_command, down_silently_base): Update.
11567 (down_command): Update.
11568 * inflow.c (kill_command): Update.
11569 * tracepoint.c (finish_tfind_command): Update.
11570 * corelow.c (core_open): Update.
11571 * thread.c (info_threads_command): Update.
11572 (do_captured_thread_select): Update.
11573 * infcmd.c (finish_command): Update.
11574 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11576 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11578 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11580 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11582 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11585 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11587 * alphafbsd-tdep.c: Update copyright years. Include
11589 (alphafbsd_use_struct_convention): Make static.
11590 (alphafbsd_init_abi): New function.
11591 (_initialize_alphafbsd_tdep): New function.
11592 * config/alpha/tm-fbsd.h: Update copyright years.
11593 (USE_STRUCT_CONVENTION): Remove.
11595 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11597 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11598 an Alpha ABI variant.
11599 (alpha_abi_handler_list): Declare.
11600 (alpha_gdbarch_register_os_abi): New function.
11601 (alpha_gdbarch_init): Give registered ABI variant handlers a
11602 chance to tweak the gdbarch once we have set up defaults.
11603 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11605 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11607 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11608 to standard_coerce_float_to_double.
11609 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11611 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11613 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11614 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11615 from gdbarch_tdep rather than a constant.
11616 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11617 the default text address for all Alpha Unix ABIs.
11618 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11619 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11621 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11623 * alpha-tdep.h: New file. Includes several Alpha target constants
11625 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11626 let gdbarch deal with.
11627 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11628 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11629 to dependency list.
11630 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11631 Alpha target register names.
11632 * alphabsd-nat.c: Likewise.
11633 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11634 Alpha target register names. Make serveral routines static.
11635 (alpha_get_saved_register): New function.
11636 (alpha_abi_names): New.
11637 (process_note_abi_tag_sections): New function.
11638 (get_elfosabi): New function.
11639 (alpha_gdbarch_init): New function.
11640 (alpha_dump_tdep): New function.
11641 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11643 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11645 * frame.c (find_saved_register): Delete #ifdef
11646 HAVE_REGISTER_WINDOWS code.
11647 * config/sparc/tm-sparc.h: Update comments.
11648 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11650 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11652 * i960-tdep.c (i960_find_saved_register): New function.
11653 (i960_get_saved_register): New function.
11654 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11655 (i960_get_saved_register): Declare.
11656 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11658 2002-04-20 David S. Miller <davem@redhat.com>
11660 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11662 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11664 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11665 instead of NUM_PSEUDO_REGS.
11667 2002-04-20 David S. Miller <davem@redhat.com>
11669 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11670 GDB_MULTI_ARCH_PARTIAL
11671 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11672 define, let tm-sp64.h do it.
11674 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11676 * frame.c (find_saved_register): Avoid a NULL pointer
11677 dereference and actually walk the frame list.
11679 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11681 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11682 sorted in most most-recent-used order. Document.
11683 * gdbarch.h, gdbarch.c: Regenerate.
11685 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11687 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11689 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11690 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11691 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11694 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11697 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11698 (build_builtin_type_vec128): Ditto.
11699 (append_composite_type_field): Fix calculation of type length in
11702 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11704 * config/djgpp/README: Update.
11706 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11709 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11711 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11712 (alpha_setup_arbitrary_frame): ...to this.
11713 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11714 for alpha_setup_arbitrary_frame.
11716 2002-04-18 Andrew Cagney <cagney@redhat.com>
11718 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11719 * gdbarch.h, gdbarch.c: Regenerate.
11721 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11722 * target.h (memory_breakpoint_from_pc): Update declaration.
11723 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11725 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11726 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11727 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11728 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11729 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11730 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11731 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11732 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11733 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11734 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11735 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11736 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11738 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11740 * monitor.c (monitor_insert_breakpoint): Ditto.
11741 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11743 * config/mcore/tm-mcore.h: Update copyright.
11744 * mem-break.c: Ditto.
11745 * xstormy16-tdep.c: Ditto.
11747 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11749 * p-exp.y: Add precedence rule for '^' token.
11750 This removes the shift/reduce conflicts.
11751 Remove the comment concerning these shift/reduce conflicts.
11753 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11755 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11756 (registers_powerpc_nofp): New register set for processors
11757 without floating point unit.
11759 2002-04-18 David S. Miller <davem@redhat.com>
11761 * MAINTAINERS: Add myself to write-after-approval.
11763 2002-04-17 Michael Snyder <msnyder@redhat.com>
11765 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11767 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11769 * rs6000-tdep.c (frame_initial_stack_address): Use
11770 frame_register_read to read the alloca_reg.
11772 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11774 * frame.c (find_saved_register): Find saved registers in the next
11778 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11780 * gdbarch.sh (LANG): Set to ``c''.
11782 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11784 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11786 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11788 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11791 * hpread.c (hpread_get_lntt): Add declaration.
11792 Also fix PR gdb/391.
11794 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11796 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11797 * aclocal.m4, configure: Re-generate.
11800 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11802 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11803 instead of tm_print_insn.
11805 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11807 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11809 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11811 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11812 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11813 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11815 2002-04-12 Don Howard <dhoward@redhat.com>
11817 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11818 max_user_call_depth.
11819 (init_cmd_lists): Initialize the new value;
11820 * cli/cli-script.c (execute_user_command): Limit the call depth of
11821 user defined commands. This avoids a core-dump when user commands
11822 are infinitly recursive.
11824 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11826 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11827 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11828 from tdep struct instead of DEFAULT_LR_SAVE.
11829 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11830 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11831 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11833 2002-04-12 Michael Snyder <msnyder@redhat.com>
11835 * Remote.c: Spelling fix.
11836 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11837 If no symbol found for "sbrk", try "_sbrk".
11838 (make_output_phdrs): Use bfd_section_name.
11839 (gcore_copy_callback): Use bfd_section_name.
11840 * eval.c: Indentation fix-ups.
11841 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11842 in case it gets applied to an address that is already
11843 in the instruction space.
11844 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11845 * symfile.c: Fix indentation, long lines.
11846 * source.c: White space fix-up.
11848 2002-04-12 Andrew Cagney <cagney@redhat.com>
11850 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11851 * frame.c (frame_register_read): New function. Return non-zero on
11853 (read_relative_register_raw_bytes_for_frame): Delete.
11854 (read_relative_register_raw_bytes): Delete.
11855 * frame.h (frame_register_read): Declare.
11856 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11857 * sh-tdep.c: Ditto.
11858 * infcmd.c (do_registers_info): Ditto.
11859 * hppa-tdep.c: Ditto.
11860 * rs6000-tdep.c: Ditto.
11861 * h8500-tdep.c: Ditto.
11862 * mips-tdep.c: Ditto.
11863 * h8300-tdep.c: Ditto.
11864 * z8k-tdep.c: Ditto.
11866 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11868 From Jimi X <jimix@watson.ibm.com>:
11869 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11872 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11874 From Jimi X <jimix@watson.ibm.com>:
11875 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11878 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11880 From Jimi X <jimix@watson.ibm.com>:
11881 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11882 register sets for these processor variants.
11884 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11886 * regformats/reg-ppc.dat: Support FPSCR.
11888 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11890 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11891 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11892 Add fpscr as an invalid/unfetchable register.
11893 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11894 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11895 (fill_fpregset): Add support for register fpscr.
11896 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11897 (fill_gregset): Account for the fact that register ``mq'' might
11899 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11900 (registers_power): Add fpscr to register set at slot 71.
11901 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11902 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11904 2002-04-11 Michael Snyder <msnyder@redhat.com>
11906 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11907 * configure: Regenerate.
11908 * config.in: Regenerate.
11909 * acconfig.h: Add define for _SYSCALL32.
11910 * core-sol2.c: Remove #define _SYSCALL32.
11911 * solib-legacy.c: Remove #define _SYSCALL32.
11913 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11915 * stack.c (select_frame): Cleanup internal error message, do not
11918 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11920 * stack.c (select_frame): Check that selected_frame and the
11921 specified level are as expected.
11922 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11924 * frame.h (struct frame_info): Add field `level'. Update
11926 Work-in-progress PR gdb/464.
11928 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11930 * maint.c (maint_print_section_info): Rename print_section_info.
11931 (print_bfd_section_info, print_objfile_section_info): Update.
11932 * inferior.h (struct gdbarch): Add opaque declaration.
11933 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11934 * gdbarch.h: Regenerate.
11936 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11938 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11939 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11940 (kernel_u_size): Added.
11941 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11942 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11944 2002-04-04 Jim Ingham <jingham@apple.com>
11946 * valarith.c (find_size_for_pointer_math): New function, either returns
11947 the size for a pointer's target, returns 1 for void *, or errors for
11949 (value_add, value_sub): use find_size_for_pointer_math.
11951 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11953 * linux-low.c (linux_look_up_symbols): New hook.
11954 (linux_target_ops): Add linux_look_up_symbols.
11955 * remote-utils.c (decode_address): New function.
11956 (look_up_one_symbol): New function.
11957 * server.c (handle_query): Call target look_up_symbols hook.
11958 * server.h (look_up_one_symbol): Add prototype.
11959 * target.h (struct target_ops): Add look_up_symbols hook.
11961 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11963 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11964 override FP_REGNUM with frame->fp. Update copyright.
11965 * parse.c (num_std_regs, std_regs): Delete.
11966 (target_map_name_to_register): Do not search std_regs. Update
11967 function description.
11968 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11969 declarations. Update copyright.
11972 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11974 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11975 after the last symbol in a block.
11977 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11979 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11980 is non zero as a found symbol.
11982 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11984 * findvar.c: Include "builtin-regs.h".
11985 (value_of_register): Call value_of_builtin_reg when applicable.
11986 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11987 (target_map_name_to_register): Call
11988 builtin_reg_map_name_to_regnum.
11989 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11990 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11991 (builtin_regs_h): Define.
11992 (builtin-regs.o): New target.
11993 (findvar.o): Add $(builtin_regs_h).
11994 * builtin-regs.c, builtin-regs.h: New files.
11995 * std-regs.c: New file.
11996 Partial fix for PR gdb/251.
11998 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12000 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12001 it's no longer required.
12003 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12005 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12007 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12009 From Jimi X <jimix@watson.ibm.com>:
12010 * rs6000-tdep.c (rs6000_software_single_step): Use
12011 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12012 and size. Use target_insert_breakpoint() and
12013 target_remove_breakpoint() to insert and remove breakpoints
12014 instead of explicit memory reads and writes.
12016 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12018 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12019 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12020 ELF_OBJECT_FORMAT ifdef.
12022 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12024 From Jimi X <jimix@watson.ibm.com>:
12025 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12027 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12029 From Jimi X <jimix@watson.ibm.com>:
12030 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12031 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12033 2002-04-07 Mark Kettenis <kettenis@gnu.org>
12035 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12036 s/asprintf/xasprintf/.
12037 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12039 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12041 I believe Jeff Law denies responsability for this one:
12042 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12043 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12044 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12045 Work-around for PR gdb/366.
12047 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12049 * remote-e7000.c (write_small, e7000_read_inferior_memory,
12050 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12051 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12053 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12055 * sh-tdep.c (sh_fp_frame_init_saved_regs,
12056 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12059 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12061 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12064 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12066 * README (Reporting Bugs in GDB): Document the bug web page as the
12067 prefered way of submitting bugs.
12070 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12072 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12073 -1. Update comment.
12074 * gdbarch.h, gdbarch.c: Re-generate.
12076 2002-04-07 Andreas Schwab <schwab@suse.de>
12078 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12079 buffer to regcache_collect.
12081 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12083 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12084 * gdbarch.c, gdbarch.h: Re-generate.
12086 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12088 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12089 declaration. Fix -Werror.
12091 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12093 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12094 * gdbarch.c: Regenerate.
12096 2002-04-05 Michael Snyder <msnyder@redhat.com>
12098 * breakpoint.c (clear_command): Rewrite middle section to
12099 combine two loops with identical control conditions.
12100 Add a cleanup to eliminate a memory leak.
12101 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12103 2002-04-05 H.J. Lu (hjl@gnu.org)
12105 * solib-svr4.c (bkpt_names): Add "__start".
12107 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12109 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12110 as test for 64 bit target.
12112 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12114 * h8500-tdep.c (h8500_write_fp): Delete function.
12115 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12116 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12117 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12118 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12119 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12120 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12122 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12123 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12124 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12125 (d10v_write_fp): Delete function.
12126 * inferior.h (write_fp, generic_target_write_fp): Delete
12128 * regcache.c (generic_target_write_fp): Delete function.
12129 (write_fp): Delete function.
12130 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12131 * gdbarch.h, gdbarch.c: Regenerate.
12132 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12133 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12134 (sparc64_write_fp): Delete declaration.
12135 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12136 (h8500_write_fp): Delete declaration.
12138 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12140 * sparc-tdep.c (sparc64_write_fp): Delete.
12141 (sparc_push_dummy_frame): Replace write_fp call with code to store
12143 (sparc_gdbarch_init): Do not initialize write_fp.
12145 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12147 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12150 2002-03-29 Jim Blandy <jimb@redhat.com>
12152 * stack.c (get_selected_block): Add new argument `addr_in_block',
12153 used to return the exact code address we used to select the block,
12154 not just the block.
12155 * blockframe.c (get_frame_block, get_current_block): Same.
12156 * frame.h (get_frame_block, get_current_block,
12157 get_selected_block): Update declarations.
12158 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12159 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12161 2002-04-05 Michael Snyder <msnyder@redhat.com>
12163 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12166 2002-04-05 J. Brobecker <brobecker@gnat.com>
12168 * utils.c (xfullpath): New function.
12169 * defs.h (xfullpath): Add declaration.
12170 * source.c (openp): Use xfullpath in place of gdb_realpath to
12171 avoid resolving the basename part of filenames when the
12172 associated file is a symbolic link. This fixes a potential
12173 inconsistency between the filenames known to GDB and the
12174 filenames it prints in the annotations.
12175 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12176 to be able to match a filename with either the real filename, or
12177 the name of any symbolic link to this file.
12178 (lookup_partial_symtab): Ditto.
12180 2002-04-04 Michael Snyder <msnyder@redhat.com>
12182 * breakpoint.c: Add support for hardware breakpoints in overlays.
12183 (overlay_events_enabled): New state variable.
12184 (insert_breakpoints): Use overlay_events_enabled to decide
12185 whether to attempt to set a breakpoint at the overlay load addr.
12186 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12187 (remove_breakpoint): Use overlay_events_enabled to decide
12188 whether breakpoints need to be removed from overlay load addr.
12189 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12190 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12191 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12192 disable_overlay_breakpoints): Update overlay_events_enabled.
12194 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12196 * dwarf2read.c (struct function_range): New.
12197 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12198 (check_cu_functions): New.
12199 (read_file_scope): Initialize global function lists.
12200 Call dwarf_decode_line after processing children.
12201 (read_func_scope): Add to global function list.
12202 (dwarf_decode_lines): Call check_cu_functions everywhere
12203 record_line is called. Call record_line with a linenumber
12204 of 0 to mark sequence ends.
12206 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12208 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12209 change sync with glibc.
12211 2002-04-03 Jim Blandy <jimb@redhat.com>
12213 * configure.in: Call AC_C_INLINE.
12214 * configure: Regenerated.
12216 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12218 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12219 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12221 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12223 * NEWS: Mention gcore support on FreeBSD/i386.
12225 * fbsd-proc.c: New file.
12226 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12227 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12229 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12232 2002-03-29 Jim Blandy <jimb@redhat.com>
12234 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12235 unescaped newlines in string literals, but newer ones don't. So
12238 2002-03-26 Michael Snyder <msnyder@redhat.com>
12239 Andrew Cagney <cagney@redhat.com>
12241 * cli/cli-dump.c: New file. Dump memory to file,
12242 restore file to memory.
12243 * cli/cli-dump.h: New file.
12244 * Makefile.in: Add rules, dependencies for cli-dump.o.
12245 * NEWS: Mention new commands.
12247 2002-03-28 Michael Snyder <msnyder@redhat.com>
12249 * symfile.c (symbol_file_add): Move test for null symbols to later.
12251 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12253 From veksler at il.ibm.com:
12254 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12255 the xstrduped original path.
12258 2002-03-27 Michael Snyder <msnyder@redhat.com>
12260 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12261 * infcmd.c (_initialize_infcmd): Ditto.
12262 * language.c (_initialize_language): Ditto.
12263 * symfile.c (_initialize_symfile): Ditto.
12264 * top.c (_init_main): Ditto.
12265 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12267 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12269 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12270 vector registers handling.
12271 (skip_prologue): Handle new AltiVec instructions. Fill in new
12272 fields of frame data.
12273 (frame_get_saved_regs): Fill in information for AltiVec registers.
12275 2002-03-27 Jim Blandy <jimb@redhat.com>
12277 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12278 a function; leave this macro here to invoke that function.
12279 (symbol_init_mangled_name): Declaration for that function.
12280 * symtab.c (symbol_init_mangled_name): New function.
12282 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12284 * valarith.c: Replace strerror with safe_strerror.
12285 * tracepoint.c: Ditto.
12286 * lin-lwp.c: Ditto.
12287 * go32-nat.c: Ditto.
12289 * gnu-nat.c: Ditto.
12291 2002-03-27 Andreas Schwab <schwab@suse.de>
12293 * event-top.c (command_line_handler): Remove useless if.
12295 2002-03-27 Andreas Jaeger <aj@suse.de>
12297 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12300 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12302 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12303 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12304 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12305 (x86_64_linux_dr_get_status, supply_gregset),
12306 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12307 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12308 (x86_64_register_info_table): Add.
12309 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12310 (x86_64_register_raw_size, x86_64_register_virtual_type),
12311 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12312 general x86_64_register_info_table.
12313 (i386_gdbarch_init): gdbarch_register_bytes is now set
12314 dynamicaly during initialization.
12315 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12316 * gdbserver/linux-x86-64-low.c: Ditto.
12318 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12320 * gdbserver/server.c (main): Call target_signal_to_host_p
12321 and target_signal_to_host on signals received from the remote.
12322 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12323 target_signal_from_host on signals sent to the remote.
12324 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12325 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12327 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12329 * signals/signals.c: Include "server.h" in gdbserver build.
12330 (target_signal_from_name): Don't use STREQ.
12331 (_initialize_signals): Likewise. Don't include function in
12334 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12336 * signals.c: Moved to...
12337 * signals/signals.c: Here.
12338 * Makefile (signals.o): Update.
12340 2002-03-26 Jeff Law (law@redhat.com)
12342 * somread.c (som_symtab_read): Remove some commented out code and
12343 updated related comments. Do not set the minimal symbol table to
12344 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12345 in a dynamic executable.
12346 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12347 where we are unable to find the minimal symbol for the given
12350 2002-03-25 Jeff Law (law@redhat.com)
12352 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12354 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12356 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12358 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12360 * command.h: Update copyright.
12361 (struct cmd_list_element): Replace definition with opaque
12363 (enum cmd_types): Document that it will eventually be moved to
12365 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12366 (MALLOCED_REPLACEMENT): Delete macro.
12367 * Makefile.in (cli_decode_h): Add $(command_h).
12368 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12369 * top.c: Include "cli/cli-decode.h".
12370 * completer.c: Include "cli/cli-decode.h".
12371 * maint.c: Include "cli/cli-decode.h".
12372 * cli/cli-decode.h: Include "command.h".
12373 (enum command_class): Delete.
12374 (enum cmd_types): Comment out.
12375 (enum cmd_auto_boolean): Delete.
12376 (enum var_types): Delete.
12378 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12380 * cli/cli-decode.c: Include "gdb_assert.h".
12381 (add_set_or_show_cmd): New static function.
12382 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12383 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12384 all fields, such as func, from the set command.
12386 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12388 * MAINTAINERS (sh-elf): Change warning flag to -w.
12390 2002-03-23 Andrew Cagney <cagney@redhat.com>
12392 * defs.h (error): Add printf format attribute.
12393 * thread-db.c (thread_from_lwp): Fix error format string.
12394 * stack.c (parse_frame_specification): Ditto.
12395 * cli/cli-decode.c (undef_cmd_error): Ditto.
12396 * scm-lang.c (scm_lookup_name): Ditto.
12397 * tracepoint.c (trace_error): Ditto.
12398 * remote-utils.c (usage): Ditto.
12399 * remote.c (compare_sections_command): Ditto.
12402 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12404 * gdbtypes.c (append_composite_type_field): New function.
12405 (init_composite_type): New function.
12406 * gdbtypes.h (append_composite_type_field): Declare.
12407 (init_composite_type): Ditto.
12409 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12411 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12413 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12414 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12415 structure returning convention for SYSV ABI case, but not
12416 for GNU/Linux, FreeBSD, or NetBSD.
12418 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12420 * symtab.h (lookup_block_symbol): Add mangled_name argument
12423 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12424 with new mangled_name argument.
12425 * linespec.c (decode_line_1): Likewise.
12426 * valops (value_of_this): Likewise.
12427 * symtab.c (lookup_transparent_type): Likewise.
12428 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12429 (lookup_symbol): If we are given a mangled name, pass it down
12430 to lookup_symbol_aux.
12431 (lookup_block_symbol): If we are given a mangled name to check
12432 against, only return symbols which match it.
12434 2002-03-22 Christopher Faylor <cgf@redhat.com>
12436 * win32-nat.c (child_create_inferior): Check for proper shell to use
12437 here, in case the user changes it on the fly.
12438 (_initialize_inftarg): Remove shell path considerations.
12440 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12442 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12443 for gdbarch_max_register_raw_size and max_register_virtual_size.
12444 Adjust copyright year.
12446 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12448 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12449 in a function to cover the entire beginning of the function
12450 as well if it does not already.
12452 2002-03-21 Tom Rix <trix@redhat.com>
12454 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12455 (rs6000_ptrace64): Renamed from ptrace64.
12457 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12459 * gdbserver/remote-utils.c (remote_open): Don't call
12460 getprotobyname, we're all using TCP here so just use
12462 * gdbserver/gdbreplay.c (remote_open): Ditto.
12464 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12466 * regcache.c (_initialize_regcache): No need to call
12467 build_regcache() at this time; it gets called whenever
12468 the gdbarch changes.
12470 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12472 * sparc-nat.c: Include sys/param.h where possible.
12474 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12477 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12478 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12479 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12481 * stabsread.c (rs6000_builtin_type): Likewise.
12482 (read_sun_floating_type): Likewise.
12484 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12486 * stabsread.c (read_member_functions): Remove skip code for duplicate
12487 constructor/destructor methods. Use standard parsing for these
12488 methods and just do not chain them to the list of methods after
12491 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12493 * coffread.c: Remove redundant static declarations. Replace
12494 occurrences of `PTR' with `void *'.
12495 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12496 * top.h (quit_cover): Likewise.
12497 * defs.h (catch_errors): Likewise.
12499 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12501 * defs.h (XMALLOC): Define.
12502 * gdb-events.sh (XMALLOC): Delete macro.
12503 * gdb-events.c, gdb-events.h: Regenerate.
12504 * gdbarch.sh (XMALLOC): Delete macro.
12505 * gdbarch.c: Regenerate.
12506 * serial.c (XMALLOC): Delete macro.
12507 * ui-file.c (XMALLOC): Ditto.
12508 * ser-unix.h (XMALLOC): Ditto.
12509 * sh-tdep.c (XMALLOC): Ditto.
12510 * ui-out.c (XMALLOC): Ditto.
12511 * utils.c (XMALLOC): Ditto.
12512 * i386-tdep.c (XMALLOC): Ditto.
12513 * gdb-events.c (XMALLOC): Ditto.
12514 * d10v-tdep.c (XMALLOC): Ditto.
12515 * cli-out.c (XMALLOC): Ditto.
12517 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12518 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12519 * ui-file.c, ui-out.c: Ditto.
12521 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12523 * command.h (struct cmd_list_element): Add field context.
12524 (set_cmd_context, get_cmd_context): Declare.
12525 * cli/cli-decode.h: Ditto.
12526 * cli/cli-decode.c (get_cmd_context): New function.
12527 (set_cmd_context): New function.
12528 (add_cmd): Initialize context.
12529 Part of fixing PR gdb/145 and PR gdb/146.
12531 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12533 * cli/cli-decode.c (cmd_type): New function.
12534 * command.h (cmd_type): Declare.
12535 * infrun.c (set_schedlock_func): Call function cmd_type.
12536 * kod.c (kod_set_os): Call cmd_type.
12537 * cris-tdep.c (cris_version_update): Use function cmd_type.
12538 (cris_mode_update, cris_abi_update): Ditto.
12540 * command.h: (execute_cmd_post_hook): Declare.
12541 (execute_cmd_pre_hook): Declare.
12542 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12543 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12544 functions. Execute pre/post hook while ensuring that afterwords
12545 hook_in is cleared.
12546 * top.c (execute_command): Use execute_cmd_post_hook, and
12547 execute_cmd_pre_hook to execute pre/post commands.
12548 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12550 (hook_stop_stub): Call execute_cmd_pre_hook.
12552 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12554 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12555 set'' and this leads to a core dump. Move xstrdup of
12556 operating_system to after check that it is not NULL.
12558 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12560 * kod.c (kod_set_os): Remove unnecessary check that
12561 ``command->type'' is set_cmd.
12563 * valprint.c (set_input_radix): Use input_radix.
12564 (set_output_radix): Use output_radix.
12565 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12568 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12570 * value.h (struct value): Delete field ``substring_addr''. Change
12571 aligner fields to force_doublest_align, force_longest_align,
12572 force_core_addr_align and force_pointer_aligh.
12574 * value.h (struct value): Fix typo in above change.
12576 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12578 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12579 to fix internal_error from ``maintenance print architecture''.
12581 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12583 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12584 for gcc versions after gcc-2.8.1.
12586 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12588 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12589 for method resolution. Restore adjustment of ``this'' pointer after
12590 calling value_struct_elt, which was accidentally removed during the
12593 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12595 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12597 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12598 get_saved_register.
12599 * value.h (value_of_register): Update.
12601 2002-03-14 Richard Henderson <rth@redhat.com>
12603 * configure.in: Detect declaration for canonicalize_file_name.
12604 * utils.c (canonicalize_file_name): Declare, if needed.
12605 (gdb_realpath): Prefer realpath if available and usable.
12606 * config.in, configure: Rebuild.
12608 2002-03-14 Richard Henderson <rth@redhat.com>
12610 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12611 a constant array bound.
12613 * MAINTAINERS: Add myself to write-after-approval.
12615 2002-03-14 Michael Snyder <msnyder@redhat.com>
12617 * symfile.c (syms_from_objfile): Return immediately if no syms.
12618 (symbol_file_add): Return immediately if no syms.
12619 (find_sym_fns): Return immediately if no syms.
12621 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12623 * gdbserver/remote-util.c (remote_open): Print remote-side's
12624 IP address when remote debugging over the network.
12626 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12628 * config/sparc/fbsd.mh: Fix copyright.
12629 * config/sparc/fbsd.mt: Likewise.
12631 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12633 * MAINTAINERS: Fix typo in name of gdb warnings option.
12634 (x86-64): Fix formating so that this can be parsed by awk.
12636 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12638 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12639 * defs.h: Include "gdb/signals.h".
12640 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12642 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12644 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12645 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12648 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12649 Don Howard <dhoward@redhat.com>
12651 * mips-tdep.c (ST0_FR): Define.
12652 (mips2_fp_compat): New function, temporarily disabled.
12653 (mips_read_fp_register_single): New function.
12654 (mips_read_fp_register_double): New function.
12655 (mips_print_register): Use them.
12656 (do_fp_register_row): Likewise.
12658 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12660 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12663 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12665 * stabsread.c (read_member_functions): Fix is_stub test for
12666 static member functions, improve comment.
12668 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12670 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12671 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12672 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12673 commands that set boolean values.
12674 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12675 (arm_rdi_resume): Always initialize PC.
12676 (arm_rdi_open): Don't use rslt as a boolean.
12677 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12678 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12679 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12680 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12682 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12684 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12685 * configure: Rebuilt.
12687 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12689 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12690 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12692 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12694 * cli/cli-decode.c (set_cmd_completer): New function.
12695 * command.h (set_cmd_completer): Declare.
12696 * cli/cli-decode.h (set_cmd_completer): Ditto.
12698 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12699 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12700 * win32-nat.c (_initialize_inftarg): Ditto.
12701 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12702 * proc-api.c (_initialize_proc_api): Ditto.
12703 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12704 * source.c (_initialize_source): Ditto.
12705 * exec.c (_initialize_exec): Ditto.
12706 * solib.c (_initialize_solib): Ditto.
12707 * top.c (init_main): Ditto.
12708 * tracepoint.c (_initialize_tracepoint): Ditto.
12709 * symfile.c (_initialize_symfile): Ditto.
12710 * printcmd.c (_initialize_printcmd): Ditto.
12711 * infcmd.c (_initialize_infcmd): Ditto.
12712 * corefile.c (_initialize_core): Ditto.
12714 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12716 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12718 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12720 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12722 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12724 * NEWS: Update headings, 5.2 has branched.
12726 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12728 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12729 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12730 (register_addr, REGISTER_RAW_SIZE): Likewise.
12731 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12732 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12734 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12736 * MAINTAINERS (x86-64): Add myself.
12737 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12738 changed value_ptr -> struct value *
12740 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12742 * configure.host (sparc64-*-freebsd): Add.
12743 * configure.tgt: Likewise.
12744 * config/sparc/fbsd.mh: New file.
12745 * config/sparc/fbsd.mt: Likewise.
12746 * config/sparc/nm-fbsd.h: Likewise.
12747 * config/sparc/tm-fbsd.h: Likewise.
12749 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12751 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12752 regformats/reg-s390x.dat.
12754 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12756 * utils.c: Add FIXME explaining true/false problem.
12758 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12760 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12762 2002-02-28 Michael Chastain <mec@shout.net>
12764 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12766 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12768 * gdbserver/linux-s390-low.c: New file.
12769 * regformats/reg-s390.dat: New file.
12770 * regformats/reg-s390x.dat: New file.
12771 * gdbserver/configure.srv: Add S/390.
12772 * gdbserver/Makefile.in: Add S/390.
12773 * configure.tgt: Enable gdbserver for S/390.
12775 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12777 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12778 first line of the doc string for "info dos", except at the end of
12779 the sentence, since the short help stops at the first period.
12781 2002-02-28 Jason Merrill <jason@redhat.com>
12783 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12785 2002-02-27 Fred Fish <fnf@redhat.com>
12787 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12788 comment (dumy -> dummy).
12790 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12792 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12794 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12796 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12798 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12800 * gdbserver/acconfig.h: New file.
12801 * gdbserver/i387-fp.c: New file.
12802 * gdbserver/i387-fp.h: New file.
12803 * gdbserver/linux-x86-64.c: New file.
12804 * regformats/reg-x86-64.dat: New file.
12805 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12806 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12807 * gdbserver/configure.in: Add support for regsets.
12808 * gdbserver/config.in: Regenerate.
12809 * gdbserver/configure: Regenerate.
12810 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12811 * gdbserver/linux-low.h: New file.
12812 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12814 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12815 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12816 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12817 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12818 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12819 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12820 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12821 "i387-fp.h". Add PTRACE_GETREGS and friends.
12822 * gdbserver/regcache.c (supply_register): New function.
12823 (supply_register_by_name): New function.
12824 (collect_register): New function.
12825 (collect_register_by_name): New function.
12827 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12829 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12830 (config.status): Add configure.srv dependency.
12831 (server_h): Add config.h dependency.
12833 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12835 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12836 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12837 * gdbserver/configure.srv: Change i386-*-linux* to use
12840 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12842 * x86-64-tdep.c: Re-indent. Update copyright date.
12844 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12846 From Michal Ludvig <mludvig@suse.cz>:
12847 * x86-64-tdep.c (value.h): Delete.
12848 (gdb_assert.h): Include.
12849 (x86_64_register_convert_to_virtual,
12850 x86_64_register_convert_to_raw ): Add check which lets only
12851 floating-point values to be converted.
12852 (value_push): Delete.
12853 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12854 (i386_gdbarch_init): Number of register_bytes fixed.
12856 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12858 * MAINTAINERS: Add x86-64 target.
12860 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12862 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12863 * osfsolib.c (solib_map_sections): Ditto.
12864 * irix5-nat.c (solib_map_sections): Ditto.
12865 * corelow.c (gdb_check_format): Ditto.
12866 * symfile.c (symfile_bfd_open): Ditto.
12867 * solib.c (solib_map_sections): Ditto.
12870 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12872 * remote.c (_initialize_remote): By default, disable ``e'' and
12873 ``E'' step out-of-range packets.
12875 2002-02-26 Andreas Schwab <schwab@suse.de>
12877 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12878 m68k_linux_frame_saved_pc.
12879 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12881 (SIGCONTEXT_PC_OFFSET): Remove.
12882 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12883 m68k_linux_sigtramp_saved_pc): New functions.
12884 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12885 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12886 (UCONTEXT_PC_OFFSET): Define.
12887 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12888 non-RT and RT signal trampolines.
12890 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12892 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12893 (TARGET_NBPG, STACK_END_ADDR): Delete
12894 (VARIABLES_INSIDE_BLOCK): Delete.
12896 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12898 * utils.c (perror_with_name): Make string parameter constant.
12899 (print_sys_errmsg): Ditto.
12901 * defs.h (perror_with_name): Update.
12902 (print_sys_errmsg): Update.
12905 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12907 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12908 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12910 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12912 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12913 if it already matches the current architecture from the exec file.
12914 Include arch-utils.h for gdbarch_info_init prototype.
12915 * Makefile.in (rs6000-nat.o): Update dependencies.
12917 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12919 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12920 list of exported variables.
12922 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12924 * gdbserver/configure.srv: New file.
12925 * gdbserver/configure.in: Use configure.srv instead
12926 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12928 * gdbserver/configure: Regenerated.
12929 * gdbserver/terminal.h: New file.
12930 * gdbserver/Makefile.in: Update for configure changes. Remove
12931 more unneeded include paths.
12933 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12935 From wiz at danbala:
12936 * config/sparc/tm-sp64.h: Fix grammar and typos.
12939 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12941 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12942 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12943 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12944 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12945 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12946 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12947 * s390-tdep.c: Ditto.
12948 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12949 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12950 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12951 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12952 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12953 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12954 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12955 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12956 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12957 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12960 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12962 * lin-thread.c: Delete file.
12963 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12964 to gdb_proc_service.h.
12965 * configure: Re-generate.
12967 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12968 * serial.c (serial_open): Delete check for "ocd".
12971 * Makefile.in (linux-thread.o): Delete target.
12972 * linux-thread.c: Delete file.
12974 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12975 renamed SH files to be consistent.
12977 * symtab.c (sort_search_symbols): Use xfree.
12979 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12981 * arm-linux-tdep.c (arm_linux_init_abi): Register
12982 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12983 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12984 definition with undef, since we don't want the sysvr4 definition.
12985 (SKIP_TRAMPOLINE_CODE): Likewise.
12987 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12989 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12991 * configure.in: (AC_CHECK_FUNCS) Added test for
12992 canonicalize_file_name Regenerated.
12993 * config.in, configure: Regenerated.
12994 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12995 defined use canonicalize_file_name.
12997 2002-02-23 Michael Chastain <mec@shout.net>
12999 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13001 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13003 * README: Remove references to cygnus.com.
13004 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13005 dot com'' form. Remove references to cygnus.com and sourceware.
13007 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13009 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13010 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13011 1003.1-2001 no longer allows "head -1".
13012 * gdb/Makefile.in (version.c): Likewise.
13013 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13014 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13015 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
13017 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13019 * cli/cli-decode.c (cmd_cfunc_eq): New function.
13020 * command.h (cmd_cfunc_eq): Declare.
13021 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13023 * cli/cli-cmds.h (is_complete_command): Change parameter to a
13024 ``struct cmd_list_element *''.
13025 * cli/cli-cmds.c (is_complete_command): Update. Use
13027 * top.c (execute_command): Pass the command to
13028 is_complete_command.
13029 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13031 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13033 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13034 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13035 architecture defines.
13036 * s390-tdep.c (s390_gdbarch_init): Likewise.
13038 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13040 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13041 (arm_linux_push_arguments): Likewise.
13042 (arm_linux_init_abi): Register them. Also register linux-specific
13044 (find_minsym_and_objfile): Use strcmp, not STREQ.
13045 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13046 (arm_linux_call_dummy_words): Delete declaration.
13047 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13048 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13050 (LOWEST_PC): Delete.
13052 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13054 * maint.c (print_section_info): Do not prepend `0x' to filepos
13055 output, it will be handled by local_hex_string_custom.
13057 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13059 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13060 (store_newfpe_double, store_newfpe_extended, store_fpregister)
13061 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13063 2002-02-22 Jim Blandy <jimb@redhat.com>
13065 Indicate that the bcache functions don't change the strings
13067 * bcache.h (bcache, hash): Add `const' keywords to declarations.
13068 * bcache.c (bcache, hash): Add `const' keywords to definitions.
13070 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
13072 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13074 2002-02-21 Christopher Faylor <cgf@redhat.com>
13076 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13077 find the complete path to a loaded DLL.
13079 2002-02-21 Fred Fish <fnf@redhat.com>
13081 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13082 that marks the end of the range of a function, enter a line number
13083 entry that has a line number of zero and a PC offset that matches
13084 the end of the function. This starts a range of PC's for which no
13085 line number information is known.
13086 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13087 PC's for which no line number info is found (line number is zero)
13088 then we didn't find any valid line information.
13089 * symtab.h: Document use of zero line number entry.
13091 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13093 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13094 (have_ptrace_getvrregs): Define for run time checks.
13095 (gdb_vrregset_t): New type for Altivec register handling.
13096 (fetch_register, store_register): Fetch/store altivec register
13098 (fetch_altivec_register, store_altivec_register): New functions.
13099 (supply_vrregset, fill_vrregset): New functions.
13100 (fetch_altivec_registers, store_altivec_registers): New functions.
13101 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13104 2002-02-21 Jiri Smid <smid@suse.cz>
13106 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13108 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13110 * Makefile.in (armnbsd-nat.o): Update dependencies.
13111 * armnbsd-nat.c (supply_gregset): New function. Common code to
13112 supply the integer register set.
13113 (supply_fparegset): New function. Similar for FPA registers.
13114 (fetch_regs, fetch_fp_regs): Use them.
13115 (fetch_core_registers): Likewise.
13116 (fetch_elfcore_registers): New function.
13117 (arm_netbsd_elfcore_fns): New core-file type specification.
13118 (_initialize_arm_netbsd_nat): Register it.
13120 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13122 * armnbsd-nat.c: Include gdbcore.h.
13123 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13124 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13125 'void' to declaration, to shut up ARI.
13126 (fetch_core_registers): Make static. Rewrite using supply_register.
13127 (arm_netbsd_core_fns): New core-file type specification.
13128 (_initialize_arm_netbsd_nat): New function.
13130 2002-02-21 Christopher Faylor <cgf@redhat.com>
13132 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13135 2002-02-20 Christopher Faylor <cgf@redhat.com>
13137 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13140 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13142 * jv-exp.y (parse_number): Change type of implicit longs
13143 to builtin_type_uint64.
13145 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13147 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13148 to be an integer instead of a `union wait'.
13150 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13152 * mips-linux-nat.c: Call the operating system GNU/Linux.
13153 * mips-linux-tdep.c: Likewise.
13154 * mips-tdep.c: Likewise.
13156 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13159 * jv-exp.y (parse_number): Handle 64-bit integers.
13161 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13163 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13164 AC_STDC_HEADERS to AC_HEADER_STDC.
13165 * gdbserver/configure: Regenerated.
13167 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13169 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13171 * sparc-tdep.c (get_longjmp_target): Likewise.
13173 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13175 * News: Add news about ARM and Multi-arch. Mention the new target
13178 2002-02-19 Jim Blandy <jimb@redhat.com>
13180 * stabsread.c (error_type_complaint): Improve error message.
13182 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13184 * gdbserver/README: Update documentation.
13185 * gdbserver/configure.in: Update configury to match documentation.
13186 * gdbserver/Makefile.in: Likewise.
13187 * gdbserver/configure: Regenerated.
13188 * gdbserver/aclocal.m4: New file, generated by aclocal.
13189 * gdbserver/config.in: New file, generated by autoheader.
13191 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13193 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13196 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13198 * arm-tdep.h (enum arm_float_model): New enum.
13199 (struct gdbarch_tdep): Add fp_model.
13200 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13201 up floating-point conversions until we know the floating-point model
13202 in use by the inferior. Don't complain about being unable to
13203 determine the ABI of the inferior when we don't have one.
13204 (arm_extract_return_value): Support different floating-point models.
13205 (arm_store_return_value): Likewise.
13206 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13208 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13210 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13212 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13213 of ``current_gdbarch''.
13215 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13217 * armnbsd-nat.c : ANSIfy all function declarations.
13218 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13219 (fetch_inferior_registers): Re-implement in terms of above.
13220 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13221 (store_inferior_registers): Re-implement in terms of above.
13223 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13225 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13227 * arm-linux-tdep.c: Likewise.
13228 * config/arm/tm-linux.h: Likewise.
13230 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13232 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13233 * config/arm/nbsd.mt (TM_FILE): Delete.
13234 * config/arm/tm-nbsd.h: Delete.
13236 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13238 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13239 Initialize CALL_DUMMY_LENGTH.
13241 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13243 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13245 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13246 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13247 defines one thing and that is incorrect for this port.
13248 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13250 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13252 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13254 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13256 * win32-nat.c (display_selector): New function. Displays information
13257 about the information returned by GetThreadSelectorEntry API function.
13258 (display_selectors): New function. Displays the infomation of
13259 the selector given as argument, or of CS, DS ans FS selectors
13260 if no argument is given.
13261 ( _initialize_inftarg): Add "w32" as info prefix command.
13262 Add "info w32 selector" as command calling display_selectors.
13264 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13266 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13267 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13270 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13272 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13274 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13276 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13277 (arm_fix_call_dummy): Call it.
13278 (arm_call_dummy_breakpoint_offset): Delete.
13279 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13280 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13282 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13284 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13285 Default to func_frame_chain_valid.
13286 * gdbarch.h, gdbarch.c: Re-generate.
13287 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13289 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13291 * ppc-linux-nat.c: Update copyright.
13292 (fetch_register, store_register): Add tid parameter, don't compute
13294 (fetch_ppc_registers, store_ppc_registers): Add tid
13295 parameter. Pass it along to callees.
13296 (fetch_inferior_registers, store_inferior_registers): Compute tid
13297 here, and pass it to calleed functions.
13298 (fill_gregset, supply_fpregset): Clean up formatting.
13300 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13302 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13303 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13305 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13307 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13308 * gdbarch.c gdbarch.h: Regenerate.
13309 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13311 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13312 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13313 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13315 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13316 * arm-tdep.c (arm_get_longjmp_target): New function.
13317 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13318 this to a positive value register arm_get_longjmp_target as the
13320 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13321 (arm_linux_init_abi): Set up longjmp description in tdep.
13322 * armnbsd-nat.c (get_longjmp_target): Delete.
13323 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13324 description in tdep.
13325 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13326 (get_longjmp_target): Delete declaration.
13327 (GET_LONGJMP_TARGET): Delete.
13328 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13329 (GET_LONGJMP_TARGET): Delete.
13331 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13333 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13334 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13335 of ``current_gdbarch''.
13337 2002-02-17 Tom Tromey <tromey@redhat.com>
13339 * cli/cli-cmds.c (compare_strings): New function.
13340 (complete_command): Only print each unique item once.
13341 * completer.h (complete_line): Declare.
13342 * completer.c (complete_line): New function.
13343 (line_completion_function): Use it.
13345 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13347 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13348 * gdbarch.h, gdbarch.c: Re-generate.
13350 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13352 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13354 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13356 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13357 * valops.c (value_arg_coerce): Don't take the address of a reference
13358 to convert an argument to a reference.
13360 2002-02-15 Christopher Faylor <cgf@redhat.com>
13362 * win32-nat.c (get_image_name): New function.
13363 (handle_load_dll): Use get_image_name function.
13364 (get_child_debug_event): Avoid registering debug events until possibly
13365 execed process is started.
13366 (child_create_inferior): Allow invocation via shell so that command
13367 line redirection, etc. works ok.
13368 (_initialize_inftarg): Add new command: "set shell" to control whether
13369 a shell is used to start a process.
13371 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13373 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13374 instead of find_register_by_number.
13375 (cannot_store_register): Likewise.
13377 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13379 * dwarf2read.c: Replace fprintf (stderr, ...) by
13380 fprintf_unfiltered (gdb_stderr, ...).
13382 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13384 * gdbserver/gdbserver.1: Document --attach.
13386 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13388 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13390 * arm-tdep.c (arm_default_arm_le_breakpoint)
13391 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13392 (arm_default_thumb_be_breakpoint): New. Initialize them from
13393 traditional breakpoint defines.
13394 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13395 (arm_gdbarch_init): Initialize new breakpoint variables.
13396 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13397 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13398 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13399 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13401 (arm_netbsd_init_abi_common): ... here; new function.
13402 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13403 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13404 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13405 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13407 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13409 * arm-tdep.h (enum arm_abi): New enum.
13410 (struct gdbarch_tdep): New structure.
13411 (LOWEST_PC): Provide a default.
13412 (arm_gdbarch_register_os_abi): Declare new function.
13413 * arm-tdep.c (arm_abi_names): New array.
13414 (process_note_abi_tag_sections): New function.
13415 (get_elfosabi): New function.
13416 (arm_gdbarch_register_os_abi): New function.
13417 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13418 support for that ABI has been built in, then call the appropriate
13419 configuration routine. Use gdbarch_num_regs() to get the number
13421 (arm_dump_tdep): New function.
13422 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13423 place-holder functions.
13424 (_initialize_arm_tdep): Register them.
13425 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13427 * armnbsd-tdep.c: New file.
13428 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13429 * config/arm/nbsd.mt (TDEPFILES): Add it.
13430 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13432 * armnbsd-nat.c: Include regcache.h.
13433 * Makefile.in (armnbsd-nat.o): Update dependency list.
13435 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13437 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13439 * gdbserver/Makefile.in: Fix typos in target rules.
13441 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13443 Fix part of PR gdb/267.
13444 * linespec.c (find_methods): Handle constructors specially for now.
13446 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13448 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13450 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13451 standard_coerce_float_to_double().
13453 2002-02-14 Christopher Faylor <cgf@redhat.com>
13455 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13458 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13460 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13461 find_variant_by_name, because it confuses the multiarch
13462 framework. Return NULL if there isn't an architecture with the
13463 user supplied name, instead of forcing a different one without
13464 recording the change with the multiarch machinery.
13465 (find_variant_by_name): Delete.
13467 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13469 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13470 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13472 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13474 * stack.c (print_frame_info_base): When calling
13475 print_frame_info_listing_hook, set current_source_symtab.
13477 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13479 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13480 and remove unused $(INCLUDE_DIR).
13481 Add regcache.c to OBS.
13482 Add generated register protocol files to clean target.
13483 Update dependencies for new objects, obsolete old target code.
13485 * gdbserver/linux-low.c: Remove all platform-specific code to
13486 new files. Remove various dead code. Update to use regcache
13488 * gdbserver/remote-utils.c (fromhex): Add return statement
13490 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13492 (input_interrupt): Add integer parameter to match prototype
13493 of a signal handler.
13494 (outreg): Use register_data ().
13495 (prepare_resume_reply): Use gdbserver_expedite_regs.
13496 * gdbserver/server.c (main): Dynamically allocate own_buf because
13497 PBUFSIZ is no longer constant. Use registers_to_string () and
13498 registers_from_string ().
13499 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13500 for error (), fatal (), and warning (). Update definition of
13501 PBUFSIZ to use regcache functionality. Add include guard.
13502 * gdbserver/utils.c (fatal): Add missing ``const''.
13503 (warning): New function.
13505 * regformats/regdat.sh: Include "regcache.h" in generated files.
13506 Provide init_registers () function.
13507 * regformats/regdef.h: Add prototype for set_register_cache ().
13510 * gdbserver/linux-arm-low.c: New file.
13511 * gdbserver/linux-i386-low.c: New file.
13512 * gdbserver/linux-ia64-low.c: New file.
13513 * gdbserver/linux-m68k-low.c: New file.
13514 * gdbserver/linux-mips-low.c: New file.
13515 * gdbserver/linux-ppc-low.c: New file.
13516 * gdbserver/linux-sh-low.c: New file.
13518 * gdbserver/regcache.c: New file.
13519 * gdbserver/regcache.h: New file.
13521 * gdbserver/low-linux.c: Removed obsolete file.
13523 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13525 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13526 * config/i386/linux.mt: Likewise.
13527 * config/ia64/linux.mt: Likewise.
13528 * config/m68k/linux.mh: Likewise.
13529 * config/powerpc/linux.mh: Likewise.
13530 * config/mips/linux.mt: Likewise.
13532 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13534 * config/i386/i386lynx.mh: Mark gdbserver variables
13535 as (currently) obsolete for this target.
13536 * config/i386/nbsd.mt: Likewise.
13537 * config/i386/nbsdelf.mt: Likewise.
13538 * config/m32r/m32r.mt: Likewise.
13539 * config/m68k/m68klynx.mh: Likewise.
13540 * config/m68k/nbsd.mt: Likewise.
13541 * config/m68k/sun3os4.mh: Likewise.
13542 * config/mips/vr5000.mt: Likewise.
13543 * config/ns32k/nbsd.mt: Likewise.
13544 * config/pa/hppabsd.mh: Likewise.
13545 * config/pa/hppaosf.mh: Likewise.
13546 * config/powerpc/nbsd.mt: Likewise.
13547 * config/rs6000/rs6000lynx.mh: Likewise.
13548 * config/s390/s390.mt: Likewise.
13549 * config/s390/s390x.mt: Likewise.
13550 * config/sparc/sparclynx.mh: Likewise.
13551 * config/sparc/sun4os4.mh: Likewise.
13552 * config/i386/x86-64linux.mt: Likewise.
13553 * config/sparc/linux.mh: Likewise.
13555 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13557 * configure.tgt: Configure gdbserver only for known working
13558 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13559 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13560 SUBDIRS if it is configured. Update comment for ${nativefile}.
13561 * configure: Regenerated.
13563 2002-02-13 Michael Snyder <msnyder@redhat.com>
13565 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13567 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13568 (default_gcore_mach): Just return 0, work around a problem in bfd.
13569 (default_gcore_target): OK to return NULL if exec_bfd is null.
13570 (make_mem_sec): Use a cast, avoid a warning.
13572 * procfs.c (find_memory_regions_callback): Use a cast instead of
13573 calling host_pointer_to_address (which complains if
13574 sizeof (host pointer) != sizeof (target pointer)).
13575 (procfs_make_note_section): Avoid overflow in psargs string.
13577 * procfs.c (procfs_make_note_section): Make the default
13578 implementation return an error.
13580 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13582 * procfs.c (procfs_make_note_section): Provide a default definition
13583 (for alpha-dec-osf4.0f). Fix typos.
13585 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13587 * linux-proc.c: Add include of regcache.h.
13588 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13590 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13592 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13593 * memattr.c (create_mem_region): Disallow useless empty region.
13594 Regions are half-open intervals, so allow [A..B) [B..C) as
13597 2002-02-13 Michael Chastain <mec@shout.net>
13599 * defs.h: Kill CONST_PTR.
13600 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13601 * c-lang.c (c_builtin_types): Likewise.
13602 * ch-lang.c (ch_builtin_types): Likewise.
13603 * f-lang.c (f_builtin_types): Likewise.
13604 * language.c (unknown_builtin_types): Likewise.
13605 * m2-lang.c (m2_builtin_types): Likewise.
13606 * p-lang.c (pascal_builtin_types): Likewise.
13607 * scm-lang.c (c_builtin_types): Likewise.
13609 2002-02-13 Keith Seitz <keiths@redhat.com>
13611 * arm-tdep.h (arm_get_next_pc): Add declaration.
13613 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13615 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13616 with other related struct-returning functions.
13617 (arm_extract_struct_value_address): New function.
13618 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13619 initialize float_format, double_format and long_double_format as
13620 appropriate to the endianness of the target.
13621 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13622 (arm_use_struct_convention): Delete declaration.
13623 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13625 2002-02-13 Keith Seitz <keiths@redhat.com>
13627 * defs.h (core_addr_to_string_nz): New function.
13629 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13631 Apply missing bits of 2002-01-15 patch.
13632 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13633 (fill_fpregset): Use i387_fill_fsave.
13635 2002-02-12 Keith Seitz <keiths@redhat.com>
13637 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13638 (core_addr_to_string_nz): New function.
13640 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13642 * arm-linux-nat.c: Really include arm-tdep.h.
13643 * config/arm/tm-linux.h (struct type, struct value): Declare.
13645 2002-02-11 Michael Snyder <msnyder@redhat.com>
13647 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13648 (gcore section): Ifdef for Solaris and Unixware only.
13649 (procfs_do_thread_registers): Unixware needs one lwpstatus
13650 per thread (not one prstatus or pstatus).
13651 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13652 not over all gdb threads. For unixware, call elfcore_write_pstatus
13653 once before iterating over threads.
13655 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13657 * arm-tdep.h: New file.
13658 * arm-tdep.c: Include arm-tdep.h.
13659 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13660 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13661 (arm_print_float_info, arm_register_type, convert_to_extended)
13662 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13663 (arm_extract_return_value, arm_register_name): Make static.
13664 (arm_software_single_step): Similarly. Fix types in declaration.
13665 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13666 (arm_store_return_value, arm_store_struct_return): New functions.
13667 (arm_gdbarch_init): Register the above functions. Also register
13668 call_dummy_start_offset, sizeof_call_dummy_words,
13669 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13670 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13671 max_register_virtual_size, register_size. Set up
13672 prologue_cache.saved_regs here, rather than ...
13673 (_initialize_arm_tdep): ... here.
13674 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13676 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13677 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13678 (arm_print_float_info, arm_register_type, convert_to_extended)
13679 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13680 (arm_extract_return_value, arm_register_name): Delete declarations.
13681 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13682 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13683 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13684 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13685 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13686 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13687 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13688 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13689 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13690 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13691 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13692 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13694 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13695 * remote-rdi.c remote-rdp.c: Likewise.
13696 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13697 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13698 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13701 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13702 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13703 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13704 from non-ARM_ prefixed definitions.
13705 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13707 * remote-rdi.c remote-rdp.c: Likewise.
13708 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13710 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13712 * arm-tdep.c (arm_frameless_function_invocation)
13713 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13714 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13715 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13716 (arm_pop_frame, arm_get_next_pc): Make static.
13717 (arm_gdbarch_init): Register above in gdbarch structure.
13718 (arm_read_fp): Renamed from arm_target_read_fp.
13719 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13720 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13721 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13722 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13723 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13724 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13725 (arm_pc_is_thumb_dummy): Delete declarations.
13726 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13727 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13728 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13729 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13731 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13733 * symtab.c (compare_search_syms): New function.
13734 (sort_search_symbols): New function.
13735 (search_symbols): Sort symbols after searching rather than
13738 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13740 * NEWS: Linux -> GNU/Linux.
13742 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13744 * gdbarch.sh: For for level one methods, disallow a definition
13745 when partially multi-arched. Add comments explaining rationale.
13746 * gdbarch.h: Re-generate.
13748 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13750 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13751 multi-arch partial.
13753 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13755 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13756 field. Use diff -u.
13757 * gdbarch.c: Re-generate.
13759 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13761 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13762 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13765 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13767 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13768 multi-arch partial.
13769 (PUSH_ARGUMENTS): Switch to using predefault.
13770 * gdbarch.c: Regenerate.
13772 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13774 * valops.c (PUSH_ARGUMENTS): Delete definition.
13775 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13776 partial. Default to default_push_arguments.
13777 * gdbarch.h, gdbarch.c: Regenerate.
13779 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13781 * defs.h (throw_exception): Rename return_to_top_level. Update
13783 * utils.c (error_stream, internal_verror, quit): Ditto.
13784 * top.c (throw_exception, catcher): Ditto.
13785 * sparclet-rom.c (sparclet_load): Ditto.
13786 * remote.c (interrupt_query, minitelnet): Ditto.
13787 * remote-sds.c (interrupt_query): Ditto.
13788 * remote-mips.c (mips_error, mips_kill): Ditto.
13789 * ocd.c (interrupt_query): Ditto.
13790 * monitor.c (monitor_interrupt_query): Ditto.
13791 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13792 * target.h: Update comment.
13794 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13796 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13798 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13799 default_double_format.
13800 * gdbarch.h, gdbarch.c: Re-generate.
13801 * findvar.c (floatformat_unknown): Delete variable definition.
13802 * doublest.h (floatformat_unknown): Delete variable declaration.
13804 2002-02-09 Jim Blandy <jimb@redhat.com>
13806 * stabsread.c (read_type): Add code to parse Sun's syntax for
13807 prototyped function types.
13809 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13811 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13812 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13814 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13816 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13817 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13818 now _initialize_xcoffsolib gets called again and overrides the
13819 commands from solib.c in a native configuration.
13821 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13823 * doublest.c (store_typed_floating): Don't try to return a value.
13826 2002-02-08 Jim Blandy <jimb@redhat.com>
13828 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13829 is prototyped and has no arguments, print its argument list as
13832 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13834 * MAINTAINERS (write-after-approval): Add myself.
13835 (paper-trail): I've escaped!
13837 2002-02-08 Christopher Faylor <cgf@redhat.com>
13839 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13841 (_initialize_check_for_gdb_ini): Ditto.
13843 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13845 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13846 xaprintf -> xasprintf.
13848 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13850 * win32-nat.c: Remove use of printf and sprintf functions.
13852 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13854 * arm-tdep.c (arm_frame_chain_valid): Make static.
13855 (arm_push_arguments): Likewise.
13856 (arm_gdbarch_init): New function.
13857 (_initialize_arm_tdep): Call it.
13858 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13859 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13860 (FRAME_CHAIN_VALID): Delete.
13861 (arm_frame_chain_valid): Delete declaration.
13862 (PUSH_ARGUMENTS): Delete.
13863 (arm_push_arguments): Delete declaration.
13864 (CALL_DUMMY_P): Delete.
13866 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13867 Corinna Vinschen <vinschen@redhat.com>
13869 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13870 on builtin float types.
13872 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13874 * utils.c: Include <curses.h> before "bfd.h".
13875 * tui/tui-hooks.c: Likewise.
13876 * tui/tui.c: Likewise.
13877 * tui/tuiCommand.c: Likewise.
13878 * tui/tuiData.c: Likewise.
13879 * tui/tuiDataWin.c: Likewise.
13880 * tui/tuiDisassem.c: Likewise.
13881 * tui/tuiGeneralWin.c: Likewise.
13882 * tui/tuiIO.c: Likewise.
13883 * tui/tuiLayout.c: Likewise.
13884 * tui/tuiRegs.c: Likewise.
13885 * tui/tuiSource.c: Likewise.
13886 * tui/tuiSourceWin.c: Likewise.
13887 * tui/tuiStack.c: Likewise.
13888 * tui/tuiWin.c: Likewise.
13890 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13892 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13893 to include space for pseudoregs as well. Update loops accordingly.
13894 (sh_fp_frame_init_saved_regs): Ditto.
13895 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13897 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13899 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13900 Add Richard Earnshaw to Arm maintainers.
13902 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13904 * defs.h (warning_begin): Delete declaration.
13906 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13909 2002-02-07 Michael Snyder <msnyder@redhat.com>
13911 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13912 Logic bug, remove misplaced else.
13914 2002-02-07 Klee Dienes <klee@apple.com>
13916 * fork-inferior.c (fork_inferior): Add '!' to the list of
13917 characters that need to be quoted when building a string for the
13918 shell. Quote '!' specifically with a backslash, since CSH chokes
13919 when trying to evaluate "str!str".
13921 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13923 * rdi-share/host.h: Only provide a typedef for bool if it is not
13926 2002-02-04 Michael Snyder <msnyder@redhat.com>
13928 * breakpoint.h (enum bptype): Add new overlay event bp type.
13929 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13931 * breakpoint.c (create_internal_breakpoint): New function.
13932 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13933 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13934 (create_thread_event_breakpoint): Ditto.
13935 (create_solib_event_breakpoint): Ditto.
13936 (create_overlay_event_breakpoint): New function.
13937 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13938 (update_breakpoints_after_exec): Delete and re-initialize
13939 overlay event breakpoints after an exec. Add FIXME comment
13940 about longjmp breakpoint.
13941 (print_it_typical): Ignore overlay event breakpoints.
13942 (print_one_breakpoint): Ditto.
13944 (bpstat_what): Do not stop for overlay event breakpoints.
13945 (delete_breakpoint): Don't delete overlay event breakpoints.
13946 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13947 (breakpoint_re_set): Re-create overlay event breakpoint.
13949 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13950 (overlay_manual_command): Disable overlay breakpoints.
13951 (overlay_off_command): Disable overlay breakpoints.
13953 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13955 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13956 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13957 to here from config/tm-arm.h.
13958 (coff_sym_is_thumb): Make static.
13959 (arm_elf_make_msymbol_special): New function.
13960 (arm_coff_make_msymbol_special): New function.
13961 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13962 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13963 (coff_sym_is_thumb): Delete declaration.
13964 (arm_elf_make_msymbol_special): Declare.
13965 (arm_coff_make_msymbol_special): Declare.
13966 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13967 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13969 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13971 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13973 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13975 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13976 * gdbarch.c gdbarch.h: Regenerate.
13977 * arch-utils.c (default_print_float_info): New function.
13978 * arch-utils.h (default_print_float_info): Prototype it.
13979 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13980 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13981 (PRINT_FLOAT_INFO): Document it.
13983 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13984 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13985 (PRINT_FLOAT_INFO): Define.
13987 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13989 * win32-nat.c (_initialize_check_for_gdb_ini):
13990 Add typecast to sprintf argument to suppress a warning.
13992 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13994 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13995 to allow easier handling of pass state.
13996 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13997 that gives exception name and address.
13998 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13999 and set last_sig value to ourstatus->value.sig. Some missing
14001 (child_continue): Correctly report continue_status.
14002 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14003 TARGET_SIGNAL_0 (new default value).
14004 (child_resume): consider sig argument passed to decide if
14005 the exception should be passed to debuggee or not.
14007 2002-02-05 Michael Snyder <msnyder@redhat.com>
14009 * regcache.c (fetch_register): Call target_fetch_register
14010 only if we don't call FETCH_PSEUDO_REGISTER.
14011 (store_register): Call target_store_register only if we
14012 don't call STORE_PSEUDO_REGISTER.
14014 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
14016 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14017 ELF_MAKE_MSYMBOL_SPECIAL.
14018 * gdbarch.c, gdbarch.h: Regenerate.
14019 * arch-utils.c (default_make_msymbol_special): New function.
14020 * arch-utils.h (default_make_msymbol_special): Export.
14021 * elfread.c (elf_symtab_read): Compile use of
14022 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14024 * coffread.c (coff_symtab_read): Ditto, for
14025 COFF_MAKE_MSYMBOL_SPECIAL.
14027 2002-02-05 Jim Blandy <jimb@redhat.com>
14029 * solib-svr4.c (svr4_truncate_ptr): New function.
14030 (svr4_relocate_section_addresses): Do the address arithmetic with
14031 the appropriate truncation for target addresses, even when
14032 CORE_ADDR is larger than a target address.
14034 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14036 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14039 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14041 * gdbserver/linux-low.c (kill_inferior): Remove commented out
14044 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14046 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14048 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14050 * gdbserver/linux-low.c: Remove unused include files.
14052 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14054 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14055 (read_inferior_memory): Use it.
14056 (write_inferior_memory): Likewise.
14058 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14060 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14061 grubbing through sys_errlist.
14063 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14065 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14067 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14068 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14070 2002-02-04 Andrew Cagney <ac131313@redhat.com>
14072 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14073 (do_sfunc, set_cmd_sfunc): New functions.
14075 * command.h (struct cmd_list_element): Add field func.
14076 * cli/cli-decode.h (struct cmd_list_element): Ditto.
14077 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14078 * cli/cli-decode.h: Ditto.
14080 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14081 (help_all, help_cmd_list): Ditto.
14082 (find_cmd, complete_on_cmdlist): Ditto.
14083 * top.c (execute_command): Ditto.
14085 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14088 * infcmd.c (notice_args_read): Fix function signature.
14090 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14091 * cli/cli-decode.c (add_set_cmd): Ditto.
14092 * utils.c (initialize_utils): Ditto.
14093 * maint.c (_initialize_maint_cmds): Ditto.
14094 * infrun.c (_initialize_infrun): Ditto.
14095 * demangle.c (_initialize_demangler): Ditto.
14096 * remote.c (add_packet_config_cmd): Ditto.
14097 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14098 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14099 * proc-api.c (_initialize_proc_api): Ditto.
14100 * kod.c (_initialize_kod): Ditto.
14101 * valprint.c (_initialize_valprint): Ditto.
14102 * top.c (init_main): Ditto.
14103 * infcmd.c (_initialize_infcmd): Ditto.
14104 * corefile.c (_initialize_core): Ditto.
14105 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14106 * arch-utils.c (initialize_current_architecture): Ditto.
14107 (_initialize_gdbarch_utils): Ditto.
14108 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14110 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14111 * wince.c (_initialize_inftarg): Ditto.
14112 * symfile.c (_initialize_symfile): Ditto.
14113 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14114 * language.c (_initialize_language): Ditto.
14115 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14117 2002-02-04 Michael Snyder <msnyder@redhat.com>
14119 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14121 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14123 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14124 Add rules for building the register data files.
14126 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14128 * regformats/regdat.sh: Add braces to the definition of
14129 expedite_regs_${arch}.
14131 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14133 * regformats/regdef.h (struct reg): Add comment describing the
14134 requirements for offset and size fields.
14136 2002-02-04 Andreas Schwab <schwab@suse.de>
14138 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14139 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14141 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14143 * gdbarch.sh (copyright): Update years in generated header.
14144 (SMASH_TEXT_ADDRESS): Add rule.
14145 * gdbarch.h, gdbarch.c: Re-generate.
14146 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14147 * dbxread.c: Likewise.
14148 * dwarfread.c: Likewise.
14149 * elfread.c: Likewise.
14150 * somread.c: Likewise.
14152 * arm-tdep.c (arm_smash_text_address): New function.
14153 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14155 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14157 Add support for hardware watchpoints on win32 native.
14158 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14159 CONTEXT_DEBUG_REGISTERS.
14160 (dr variable): New variable. Static array containing a local copy
14161 of debug registers.
14162 (debug_registers_changed): New variable. Reflects when debug registers
14163 are changed and need to be written to inferior.
14164 (debug_registers_used): New variable. Reflects when any debug register
14165 was set, used when new threads are created.
14166 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14168 (thread_rec): Set dr array if id is the thread of current_event .
14169 (child_continue, child_resume): Change the debug registers for all
14170 threads if debug_registers_changed.
14171 (child_add_thread): Change the debug registers if debug_registers_used.
14172 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14173 Link nm.h to new nm-cygwin.h file.
14174 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14175 of hardware registers.
14177 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14179 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14180 Restore behavour broken by 2002-01-20 Andrew Cagney
14181 <ac131313@redhat.com> IEEE_FLOAT removal.
14183 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14185 * c-valprint.c (c_val_print): Pass a proper valaddr to
14186 cp_print_class_method.
14187 * valops.c (search_struct_method): If there is only one method
14188 and args is NULL, return that method.
14190 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14192 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14193 accessing tag_name directly.
14195 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14197 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14198 of accessing tag_name directly.
14200 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14203 * gdbtypes.c (replace_type): New function.
14204 * gdbtypes.h (replace_type): Add prototype.
14205 * stabsread.c (read_type): Use replace_type.
14207 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14209 * Makefile.in (memattr.o): Add missing dependencies rule.
14211 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14213 * breakpoint.c (break_at_finish_command): Really export.
14214 (break_at_finish_at_depth_command): Ditto.
14215 (tbreak_at_finish_command): Ditto.
14216 * hppa-tdep.c: Include completer.h.
14217 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14218 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14220 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14222 * utils.c (do_write): New function.
14223 (error_stream): Rewrite combining the code from error_begin and
14225 (verror): Rewrite using error_stream.
14226 (error_begin): Delete function.
14228 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14230 * utils.c (error_begin): Make static.
14231 * defs.h (error_begin): Delete declaration.
14233 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14234 (decode_line_1): Use cplusplus_error instead of error_begin,
14235 cplusplus_hint and return_to_top_level.
14236 * coffread.c (coff_symfile_read): Use error instead of error_begin
14237 and return_to_top_level.
14238 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14240 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14242 * language.h (type_error, range_error): Make string parameter
14244 * language.c (warning_pre_print): Delete extern declaration.
14245 * dwarfread.c (warning_pre_print): Ditto.
14246 * language.c (type_error, range_error): Rewrite to use verror and
14247 vwarning instead of warning_begin.
14249 2002-02-01 Michael Snyder <msnyder@redhat.com>
14251 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14252 (set_ignore_count): Move misplaced comment back where it belongs.
14254 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14256 * command.h (NO_FUNCTION): Delete macro.
14257 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14258 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14259 * tracepoint.c (_initialize_tracepoint): Ditto.
14260 * cli/cli-decode.c (add_set_cmd): Ditto.
14261 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14263 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14265 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14266 Update ``this'' pointer when calling virtual functions.
14268 2002-02-01 Michael Snyder <msnyder@redhat.com>
14270 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14271 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14273 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14275 * regformats/reg-arm.dat: New file.
14276 * regformats/reg-i386.dat: New file.
14277 * regformats/reg-ia64.dat: New file.
14278 * regformats/reg-m68k.dat: New file.
14279 * regformats/reg-mips.dat: New file.
14280 * regformats/reg-ppc.dat: New file.
14281 * regformats/reg-sh.dat: New file.
14282 * regformats/regdef.h: New file.
14283 * regformats/regdat.sh: New file.
14285 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14287 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14288 (arm_frame_args_address, arm_frame_locals_address): New functions.
14289 (arm_frame_num_args): New function.
14290 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14291 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14292 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14294 2002-01-31 Michael Snyder <msnyder@redhat.com>
14296 * breakpoint.c (break_at_finish_command): Export.
14297 (break_at_finish_at_depth_command): Export.
14298 (tbreak_at_finish_command): Export.
14299 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14300 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14301 "txbreak" commands, which are HPPA specific.
14303 * printcmd.c (disassemble_command): Remove an ancient
14304 artifact of an old merge.
14306 * symfile.h (enum overlay_debugging_state):
14307 Define enum constant values for overlay mode.
14308 * symfile.c (overlay_debugging): Use enums instead of literals.
14309 (overlay_is_mapped, overlay_auto_command,
14310 overlay_manual_command): Ditto.
14312 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14313 breakpoint_here_p, breakpoint_inserted_here_p,
14314 breakpoint_thread_match, bpstat_stop_status,
14315 describe_other_breakpoints, check_duplicates, clear_command):
14316 Coding standard fixes.
14318 * target.c (target_xfer_memory): Add spaces, coding standard.
14319 (do_xfer_memory): Add missing line to trust-readonly
14320 code: check bfd SEC_READONLY flag for section.
14322 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14324 * PROBLEMS: Fix typo, 5.1->5.1.1.
14326 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14328 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14329 data symbols, since we search based on textlow and texthigh.
14330 (find_pc_sect_symtab): Likewise.
14332 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14334 * defs.h (vwarning): Declare.
14335 * utils.c (vwarning): New function.
14336 (warning): Call vwarning.
14337 (warning_begin): Delete function.
14339 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14340 the warning message.
14341 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14344 2002-01-30 Michael Snyder <msnyder@redhat.com>
14346 * NEWS: Mention "set trust-readonly-sections" command.
14347 Mention generate-core-file command.
14349 2002-01-15 Michael Snyder <msnyder@redhat.com>
14351 * target.c: New command, "set trust-readonly-sections on".
14352 (do_xfer_memory): Honor the suggestion to trust readonly sections
14353 by reading them from the object file instead of from the target.
14354 (initialize_targets): Register command "set trust-readonly-sections".
14356 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14358 * parse.c (target_map_name_to_register): Simplify, search regs and
14359 pseudo-regs using a single loop.
14361 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14363 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14365 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14367 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14368 * config/i386/i386v42mp.mh: Add i387-nat.o .
14369 * i386v4-nat.c: Include i387-nat.h.
14370 (supply_fpregset): Use i387_supply_fsave.
14371 (fill_fpregset): Use i387_fill_fsave.
14373 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14375 * arm-tdep.c (arm_call_dummy_words): Define.
14376 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14377 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14378 (CALL_DUMMY_WORDS): Define.
14379 (arm_call_dummy_words): Declare.
14380 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14381 (arm_linux_call_dummy_words): Declare.
14383 2002-01-30 Andreas Schwab <schwab@suse.de>
14385 * m68klinux-nat.c: Fix last change to use regcache_collect
14386 instead of referencing registers[] directly.
14388 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14390 * parse.c (target_map_name_to_register): Delete code wrapped in
14391 #ifdef REGISTER_NAME_ALIAS_HOOK.
14393 2002-01-28 Michael Snyder <msnyder@redhat.com>
14395 * regcache.c (legacy_read_register_gen): Need to be able to
14396 read pseudo-register as well as real register.
14397 (legacy_write_register_gen): Ditto.
14399 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14401 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14402 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14403 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14404 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14405 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14406 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14407 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14408 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14409 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14410 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14411 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14412 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14413 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14414 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14415 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14416 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14417 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14418 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14419 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14420 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14422 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14424 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14425 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14426 (initialize_current_architecture): Update target_byte_order using
14427 information from BFD.
14428 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14429 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14431 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14433 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14434 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14436 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14437 #ifdef INVALID_FLOAT.
14438 * infcmd.c (do_registers_info): Ditto.
14439 * values.c (unpack_double): Ditto. Add comment.
14441 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14442 already commented out.
14444 2002-01-26 Andreas Schwab <schwab@suse.de>
14446 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14447 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14448 registers and add support for PTRACE_GETREGS.
14450 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14452 GDB 5.1.1 released from 5.1 branch.
14453 * NEWS: Add 5.1.1 news.
14454 * README: Sync with 5.1 branch.
14456 2002-01-23 Fred Fish <fnf@redhat.com>
14458 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14459 stabstring on initial malloc. Reallocing will copy it for us,
14462 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14464 * Makefile.in (hpread_h): Delete.
14465 (HFILES_NO_SRCDIR): Remove hpread.h.
14466 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14467 (hpread.o): Update dependencies.
14468 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14470 * hp-psymtab-read.c: Remove file.
14471 * hp-symtab-read.c: Remove file.
14472 * hpread.h: Remove file.
14474 * hpread.c: Merge all contents of hp-psymtab-read.c,
14475 hp-symtab-read.c and hpread.h into this file, as it was prior to
14478 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14479 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14480 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14481 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14483 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14485 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14486 fill_gregset): Call gdbarch_tdep() just once, assign result to
14487 variable and use that, instead of calling the function several
14490 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14492 * configure.host: Accept sparcv9 as alias for sparc64.
14493 * configure.tgt: Likewise.
14495 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14497 * solib-aix5.c (build_so_list_from_mapfile)
14498 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14499 arguments is not reversed.
14500 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14501 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14503 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14505 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14506 modified version of obsolete sh_fetch_pseudo_register.
14507 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14508 (sh4_register_read): New function.
14509 (sh_pseudo_register_write): New function. Renamed and modified
14510 version of obsolete sh_store_pseudo_register.
14511 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14512 (sh4_register_write): New function.
14513 (sh_gdbarch_init): Remove setting of gdbarch function
14514 fetch_pseudo_register and store_pseudo_register. Remove setting of
14515 register_convert_to_raw, register_convert_to_virtual,
14516 register_convertible.
14517 (sh_sh4_register_convertible): Delete. No longer needed. All is
14518 taken care by architecture specific functions
14519 register_read/register_write.
14520 (sh_sh4_register_convert_to_virtual): Make static.
14521 (sh_sh4_register_convert_to_raw): Ditto.
14523 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14525 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14526 (floatformat_is_nan, floatformat_mantissa): Ditto.
14528 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14529 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14530 builtin_type_ieee_double_little,
14531 builtin_type_ieee_double_littlebyte_bigword,
14532 builtin_type_m68881_ext, builtin_type_i960_ext,
14533 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14534 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14535 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14536 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14538 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14540 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14541 parameter. Set frameless flag if it exists and depended of
14542 whether the scanned function is frameless or not.
14543 (xstormy16_skip_prologue): If function is frameless, return
14544 result of xstormy16_scan_prologue().
14545 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14548 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14550 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14551 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14552 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14553 sh_sh4_register_byte, sh_sh4_register_raw_size,
14554 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14555 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14556 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14557 sh_store_pseudo_register, sh_do_pseudo_register): Call
14558 gdbarch_tdep() just once, assign result to variable and use that,
14559 instead of calling the function several times.
14561 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14563 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14564 macros instead of LAST_FPU_CTRL_REGNUM.
14565 (store_register): Likewise.
14567 2002-01-21 Jim Blandy <jimb@redhat.com>
14569 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14570 is up-to-date before running the program, not just when a program
14573 2002-01-21 Fred Fish <fnf@redhat.com>
14575 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14576 when we have found all instructions we are looking for.
14578 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14580 * arm-tdep.c (arm_register_name): New function.
14581 (arm_registers_names): Make static.
14582 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14583 (arm_register_name): Declare.
14584 (REGISTER_NAME): Use it.
14586 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14587 Kevin Buettner <kevinb@redhat.com>
14589 Convert arm targets to new FRAME interface.
14590 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14591 (arm_frame_find_save_regs): Delete.
14592 (arm_frame_init_saved_regs): New.
14593 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14594 Allocate extra_info as required. Convert all uses of fsr.regs
14595 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14597 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14598 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14599 (check_prologue_cache, save_prologue_cache): Likewise.
14600 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14601 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14602 (FRAME_FIND_SAVED_REGS): Delete.
14603 (arm_frame_find_saved_regs): Delete prototype.
14604 (arm_frame_init_saved_regs): New prototype.
14605 (FRAME_INIT_SAVED_REGS): Define.
14607 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14609 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14611 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14613 From Jeff Law <law@redhat.com>:
14614 * infttrace.c: Include <sys/pstat.h>.
14615 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14616 exec file if the ttrace equivalent fails.
14618 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14620 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14621 (closeLogFile): Ditto.
14623 2002-01-20 Michael Chastain <mec@shout.net>
14625 * top.c (print_gdb_version): Bump copyright year to 2002.
14627 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14629 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14630 Zannoni and Eli Zaretskii.
14632 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14634 * buildsym.c: Update copyright years.
14635 * c-typeprint.c: Likewise.
14636 * dwarf2read.c: Likewise.
14637 * f-typeprint.c: Likewise.
14638 * gdbtypes.c: Likewise.
14639 * gdbtypes.h: Likewise.
14640 * hp-symtab-read.c: Likewise.
14641 * hpread.c: Likewise.
14642 * mdebugread.c: Likewise.
14643 * p-typeprint.c: Likewise.
14645 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14647 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14648 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14649 byte-order selectable.
14650 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14651 * arch-utils.c: Ditto.
14652 (set_endian): Ditto.
14653 (set_endian_from_file): Ditto.
14654 * gdbserver/low-sim.c (create_inferior): Ditto.
14655 * gdbarch.sh: Ditto.
14656 * gdbarch.h: Re-generate.
14657 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14658 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14659 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14660 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14661 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14662 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14663 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14664 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14666 * config/mips/tm-wince.h: Remove #undef of macro
14667 TARGET_BYTE_ORDER_SELECTABLE.
14668 * config/sh/tm-wince.h: Ditto.
14670 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14672 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14673 member function fields. Add accessor macro
14674 TYPE_FN_FIELD_ARTIFICIAL.
14675 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14676 * c-typeprint.c (c_type_print_base): Skip artificial member
14679 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14681 * f-typeprint.c: Delete unused function f_type_print_args.
14682 * p-typeprint.c: Delete unused function pascal_type_print_args.
14684 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14686 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14687 comment. Add ``artificial'' to ``union field_location''.
14689 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14691 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14692 * mdebugread.c (parse_symbol): Likewise.
14693 * stabsread.c (define_symbol): Likewise.
14694 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14695 initializing TYPE_FIELD_BITPOS to n (obsolete).
14696 (hpread_doc_function_type): Likewise.
14697 * hpread.c (hpread_function_type): Likewise.
14699 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14701 * configure.in (host_makefile_frag): Only require a host makefile
14702 fragment when a native build.
14703 * configure: Re-generate.
14705 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14707 * doublest.h (floatformat_from_type): Declare.
14708 * doublest.c (floatformat_from_type): New function.
14709 (convert_typed_floating): Use.
14711 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14712 call to function floatformat_from_type.
14714 * gdbarch.sh (IEEE_FLOAT): Delete.
14715 * gdbarch.h, gdbarch.c: Re-generate.
14716 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14717 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14718 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14719 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14720 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14721 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14722 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14723 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14724 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14725 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14726 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14727 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14729 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14730 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14731 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14732 * sh-tdep.c (sh_gdbarch_init): Ditto.
14733 * mips-tdep.c (mips_gdbarch_init): Ditto.
14734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14735 * cris-tdep.c (cris_gdbarch_init): Ditto.
14737 2002-01-20 Jiri Smid <smid@suse.cz>
14739 * configure.host, configure.tgt: Support x86-64.
14740 * NEWS: Note new target x86-64.
14742 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14743 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14744 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14745 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14746 x86-64-linux-nat.o): Fix dependencies.
14748 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14750 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14751 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14752 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14753 * config/sparc/xm-sun4os4.h: Delete file.
14754 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14756 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14758 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14759 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14760 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14761 * config/i386/i386lynx.mh (XM_FILE): Delete.
14762 * config/rs6000/xm-rs6000ly.h: Delete file.
14763 * config/sparc/xm-sparclynx.h: Delete file.
14764 * config/m68k/xm-m68klynx.h: Delete file.
14765 * config/i386/xm-i386lynx.h: Delete file.
14766 * config/xm-lynx.h: Delete file.
14767 * config/djgpp/fnchange.lst: Update.
14769 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14771 * alpha-tdep.c (alpha_register_byte): New function.
14772 (alpha_register_raw_size): Ditto.
14773 (alpha_register_virtual_size): Ditto.
14774 (alpha_skip_prologue_internal): Renamed from
14775 alpha_skip_prologue.
14776 (alpha_skip_prologue): New version that calls
14777 alpha_skip_prologue_internal.
14778 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14779 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14780 second argument from alpha_skip_prologue.
14781 (REGISTER_BYTE): Use alpha_register_byte.
14782 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14783 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14784 (FRAMELESS_FUNCTION_INVOCATION): Use
14785 generic_frameless_function_invocation_not.
14786 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14787 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14789 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14791 * config/mips/xm-news-mips.h: Delete file.
14792 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14794 * config/m88k/xm-m88k.h: Delete file.
14795 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14796 * config/m88k/xm-delta88v4.h: Ditto.
14797 * config/m88k/xm-delta88.h: Ditto.
14799 * config/alpha/xm-fbsd.h: Delete file.
14800 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14802 * config/sparc/xm-sparc.h: Delete file.
14803 * Makefile.in (xm-sun4os4.h): Delete dependency.
14804 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14805 * config/sparc/xm-sun4os4.h: Ditto.
14806 * config/sparc/xm-linux.h: Ditto.
14808 * config/i386/xm-windows.h: Delete file.
14810 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14812 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14813 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14815 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14817 * alpha-tdep.c (alpha_call_dummy_words): New.
14818 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14819 (CALL_DUMMY_P): Define.
14820 (CALL_DUMMY_WORDS): Define.
14821 (SIZEOF_CALL_DUMMY_WORDS): Define.
14823 2002-01-19 Per Bothner <per@bothner.com>
14825 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14826 isn't NULL, which can happen with some gcj-3.x-produced code.
14828 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14830 * alpha-tdep.c (alpha_register_virtual_type): New function.
14831 (alpha_init_frame_pc_first): Ditto.
14832 (alpha_fix_call_dummy): Ditto.
14833 (alpha_store_struct_return): Ditto.
14834 (alpha_extract_struct_value_address): Ditto.
14835 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14836 alpha_register_virtual_type.
14837 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14838 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14839 alpha_extract_struct_value_address.
14840 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14841 (INIT_FRAME_PC): Use init_frame_pc_noop.
14842 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14844 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14846 * i386gnu-nat.c: Include "i386-tdep.h".
14847 (fetch_fpregs): Simplify code dealing with uninitialized floating
14848 point states such that it doesn't require FP7_REGNUM.
14850 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14852 * alpha-tdep.c (frame_extra_info): New.
14853 (alpha_find_saved_regs): Make static. Use
14855 (alpha_frame_init_saved_regs): New function.
14856 (alpha_frame_saved_pc): Use frame->extra_info.
14857 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14858 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14859 (init_extra_frame_info): Rename to...
14860 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14861 (alpha_print_extra_frame_info): New function.
14862 (alpha_frame_locals_address): Ditto.
14863 (alpha_frame_args_address): Ditto.
14864 (alpha_pop_frame): Use frame->extra_info.
14865 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14866 alpha_frame_args_address.
14867 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14868 (alpha_find_saved_regs): Remove prototype.
14869 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14870 (EXTRA_FRAME_INFO): Remove.
14871 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14872 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14874 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14876 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14877 (alpha_cannot_fetch_register): Ditto.
14878 (alpha_cannot_store_register): Ditto.
14879 (alpha_register_convertible): Ditto.
14880 (alpha_use_struct_convention): Ditto.
14881 * config/alpha/tm-alpha.h: Update copyright years.
14882 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14883 (INNER_THAN): Use core_addr_lessthan.
14884 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14885 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14886 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14887 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14888 (FRAME_CHAIN): Remove unnecessary cast.
14890 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14892 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14895 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14897 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14898 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14899 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14900 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14901 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14902 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14903 * x86-64-linux-nat.c: Ditto.
14905 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14907 * alpha-tdep.c (alpha_register_name): New function.
14908 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14909 (REGISTER_NAME): Define.
14911 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14913 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14915 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14917 * alpha-tdep.c: Update copyright years.
14918 (alpha_next_pc): New function.
14919 (alpha_software_single_step): Ditto.
14920 * config/alpha/tm-alpha.h: Add prototype for
14921 alpha_software_single_step.
14923 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14925 * alphabsd-nat.c: Update copyright years.
14926 (fill_gregset): Use regcache_collect.
14927 (fill_fpregset): Likewise.
14928 (fetch_inferior_registers): Only fetch integer registers
14929 if requested to do so.
14930 (store_inferior_registers): Only store integer registers
14931 if requested to do so.
14933 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14935 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14936 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14937 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14938 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14939 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14940 * config/arm/linux.mh (XDEPFILES): Delete.
14941 * config/arm/nbsd.mh (XDEPFILES): Delete.
14942 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14943 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14944 * config/i386/i386m3.mh (XDEPFILES): Delete.
14945 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14946 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14947 * config/i386/fbsd.mh (XDEPFILES): Delete.
14948 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14949 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14950 * config/i386/i386v4.mh (XDEPFILES): Delete.
14951 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14952 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14953 * config/i386/i386aix.mh (XDEPFILES): Delete.
14954 * config/i386/go32.mh (XDEPFILES): Delete.
14955 * config/i386/cygwin.mh (XDEPFILES): Delete.
14956 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14957 * config/i386/i386mach.mh (XDEPFILES): Delete.
14958 * config/i386/i386v32.mh (XDEPFILES): Delete.
14959 * config/i386/linux.mh (XDEPFILES): Delete.
14960 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14961 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14962 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14963 * config/i386/i386sco.mh (XDEPFILES): Delete.
14964 * config/i386/i386v.mh (XDEPFILES): Delete.
14965 * config/i386/nbsd.mh (XDEPFILES): Delete.
14966 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14967 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14968 * config/i386/symmetry.mh (XDEPFILES): Delete.
14969 * config/i386/obsd.mh (XDEPFILES): Delete.
14970 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14971 * config/ia64/linux.mh (XDEPFILES): Delete.
14972 * config/ia64/aix.mh (XDEPFILES): Delete.
14973 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14974 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14975 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14976 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14977 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14978 * config/m68k/linux.mh (XDEPFILES): Delete.
14979 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14980 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14981 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14982 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14983 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14984 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14985 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14986 * config/m88k/delta88.mh (XDEPFILES): Delete.
14987 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14988 * config/m88k/m88k.mh (XDEPFILES): Delete.
14989 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14990 * config/mips/linux.mh (XDEPFILES): Delete.
14991 * config/mips/irix6.mh (XDEPFILES): Delete.
14992 * config/mips/irix5.mh (XDEPFILES): Delete.
14993 * config/mips/irix4.mh (XDEPFILES): Delete.
14994 * config/mips/irix3.mh (XDEPFILES): Delete.
14995 * config/mips/decstation.mh (XDEPFILES): Delete.
14996 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14997 (NATDEPFILES): Move core-aout.o to here.
14998 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14999 * config/pa/hpux1020.mh (XDEPFILES): Delete.
15000 * config/pa/hppabsd.mh (XDEPFILES): Delete.
15001 * config/pa/hppahpux.mh (XDEPFILES): Delete.
15002 * config/pa/hpux11w.mh (XDEPFILES): Delete.
15003 * config/pa/hppaosf.mh (XDEPFILES): Delete.
15004 * config/pa/hpux11.mh (XDEPFILES): Delete.
15005 * config/powerpc/aix.mh (XDEPFILES): Delete.
15006 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15007 * config/powerpc/linux.mh (XDEPFILES): Delete.
15008 * config/romp/rtbsd.mh: Rename XDEPFILES.
15009 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15010 * config/rs6000/aix4.mh (XDEPFILES): Delete.
15011 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15012 * config/s390/s390.mh (XDEPFILES): Delete.
15013 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15014 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15015 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15016 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15017 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15018 * config/sparc/nbsd.mh (XDEPFILES): Delete.
15019 * config/sparc/linux.mh (XDEPFILES): Delete.
15020 * config/vax/vaxult.mh (XDEPFILES): Delete.
15021 * config/vax/vaxult2.mh (XDEPFILES): Delete.
15022 * Makefile.in (DEPFILES): Remove XDEPFILES.
15024 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15026 * utils.c (internal_verror): Fix comments, default is yes not no.
15027 Update queries to match. Default to quit and dump core.
15029 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15031 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
15033 * defs.h, event-top.c, gdbcmd.h: Ditto.
15034 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15035 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15036 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15037 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15038 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15039 * mi/mi-main.c:Ditto.
15041 * stack.c, symfile.c: Update copyright.
15043 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15045 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15046 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15047 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15048 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15050 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15052 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15053 * gdbserver/low-lynx.c (myattach): Likewise.
15054 * gdbserver/low-nbsd.c (myattach): Likewise.
15055 * gdbserver/low-sim.c (myattach): Likewise.
15056 * gdbserver/low-sparc.c (myattach): Likewise.
15057 * gdbserver/low-sun3.c (myattach): Likewise.
15059 * gdbserver/low-linux.c (myattach): New function.
15061 * gdbserver/server.c (attach_inferior): New function.
15062 (main): Handle "--attach".
15064 2002-01-16 Andrew Cagney <ac131313@redhat.com>
15066 * MAINTAINERS (language support): Daniel Jacobwitz is C++
15069 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
15071 * c-typeprint.c (is_type_conversion_operator): Add additional
15072 check for non-conversion operators.
15074 2002-01-15 Michael Snyder <msnyder@redhat.com>
15076 * linux-proc.c: Add "info proc" command, a la procfs.c.
15077 (read_mapping): New function, abstract and re-use code.
15078 (linux_find_memory_regions): Use new func read_mapping.
15079 (linux_info_proc_cmd): New function, implement "info proc".
15080 (_initialize_linux_proc): Add new command "info proc".
15082 2002-01-15 Michael Snyder <msnyder@redhat.com>
15084 * symfile.c (generic_load): Use bfd_map_over_sections method
15085 instead of manipulating bfd structure members directly.
15086 (add_section_size_callback): New function, bfd sections callback
15087 used by generic_load.
15088 (load_sections_callback): New function, bfd sections callback
15089 used by generic_load.
15091 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15093 [Based on work by Jim Blandy]
15094 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15095 (builtin_type_vec128): Export.
15096 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15098 (builtin_type_vec128): New builtin type for 128 bit vector
15100 (build_gdbtypes): Initialize builtin_type_v16qi and
15101 builtin_type_v8hi. Create the vec128 register builtin type
15103 (build_builtin_type_vec128): New function.
15104 (_initialize_gdbtypes): Register builtin_type_v16qi and
15105 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15106 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15107 AltiVec register to new builtin type.
15109 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15111 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15114 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15116 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15117 CLEAN_UP_REGISTER_VALUE.
15118 * regcache.c (supply_register): Update only call.
15120 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15122 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15123 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15124 a29k-*-vxworks* targets as obsolete.
15126 2002-01-14 Michael Snyder <msnyder@redhat.com>
15128 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15129 until we can resolve portability issues.
15130 * gregset.h: Remove references to fpxregs.
15131 * gcore.c (gcore_command): Initialize note_sec to NULL.
15133 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15135 * signals.c (target_signal_to_name): Rewrite. Only use
15136 signals[].name when in bounds and non-NULL.
15138 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15140 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15141 * signals.c (target_signal_to_name): Verify that SIG is within the
15142 bounds of the signals array.
15144 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15146 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15148 2002-01-13 Keith Seitz <keiths@redhat.com>
15150 * stack.c (print_frame_info_base): Print the frame's pc
15151 only if when print_frame_info_listing_hook is not defined.
15153 2002-01-13 Keith Seitz <keiths@redhat.com>
15155 * varobj.c (varobj_set_value): Make sure that there were no
15156 errors evaluating the object before attempting to set its
15158 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15159 so this offset adjustment is no longer necessary.
15160 (create_child): Don't set the error flag if the child is
15161 a CPLUS_FAKE_CHILD.
15162 (value_of_child): If value_fetch_lazy fails, return NULL
15163 so that callers will be notified that an error occurred.
15164 (c_value_of_variable): Delay check of variable's validity
15165 until later. We actually want all structs and unions to have
15167 Do not return "???" for variables which could not be evaluated.
15168 This error condition must be returned to the caller so that it
15169 can get the error condition from gdb.
15170 (cplus_name_of_child): Adjust index for vptr before figuring
15171 out the name of the child.
15172 (cplus_value_of_child): If a child's (real) parent is not valid,
15173 don't even bother trying to give a value for it. Just return
15174 an error. Change all instances in this function.
15175 (cplus_type_of_child): If our parent is one of the "fake"
15176 parents, we need to get at the type of the real parent, and
15177 derive the child's true type using this information.
15179 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15181 From 2002-01-09 John Marshall <johnm@falch.net>:
15182 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15183 sources.redhat.com, and tweak some related URLs which had
15184 suffered from linkrot.
15186 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15189 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15190 structures passed in registers.
15192 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15194 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15195 white space which prevented compilation. Reported by DSK
15196 <dsk@student.unsw.edu.au>.
15198 2002-01-11 Michael Snyder <msnyder@redhat.com>
15200 * symfile.c (build_section_addr_info_from_section_tab):
15201 Use bfd access method instead of manipulating bfd directly.
15202 (syms_from_objfile): Ditto.
15203 (simple_overlay_update_1): Ditto.
15204 (simple_overlay_update): Ditto.
15205 (generic_load): Ditto.
15206 (overlay_unmapped_address): FIXME comment, bfd access methods.
15207 (sections_overlap): FIXME comment, bfd access methods.
15208 (pc_in_mapped_range): FIXME comment, bfd access methods.
15209 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15210 (section_is_mapped): FIXME comment, bfd access methods.
15211 (section_is_overlay): FIXME comment, bfd access methods.
15213 * symfile.c (generic_load): Whitespace and long line cleanups.
15214 Remove duplicate variable, change several local variables to
15215 more appropriate data types.
15216 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15218 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15220 From Peter Schauer:
15221 * language.c (longest_local_hex_string_custom): Use phex_nz to
15222 convert NUM to a hex string.
15224 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15226 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15228 Update Copyright year.
15230 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15232 * language.c (longest_raw_hex_string): Delete unused function.
15234 2002-01-11 Petr Sorfa <petrs@caldera.com>
15236 * MAINTAINERS (write-after-approval): Add myself.
15237 * dwarf2read.c (read_tag_string_type): Handling of
15239 (read_tag_string_type): FORTRAN fix to prevent propagation of
15241 (set_cu_language): Handling of DW_LANG_Fortran95
15243 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15245 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15246 GETPID(inferior_ptid).
15247 (store_inferior_registers): Likewise.
15249 2002-01-10 Jason Merrill <jason@redhat.com>
15251 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15254 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15256 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15257 and bfd/elf32-sh-nbsd.c.
15259 2002-01-10 Michael Snyder <msnyder@redhat.com>
15261 * NEWS: Mention --pid and corefile/proc-id behavior change.
15263 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15264 * gcore.c: Include cli/cli-decode.h instead of command.h.
15266 * main.c (captured_main): Add new command line option "--pid".
15267 If the second command line argument (following the symbol-file)
15268 begins with a digit, try to attach to it before trying to open
15270 (print_gdb_help): Document the "--pid" argument.
15272 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15274 * completer.c (command_completer): New function.
15276 * completer.h <command_completer>: Add prototype.
15278 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15279 completer for the "help" command.
15281 2002-01-09 Jason Merrill <jason@redhat.com>
15283 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15285 2002-01-09 Michael Snyder <msnyder@redhat.com>
15287 * i386-linux-nat.c (fill_fpxregset): Make global.
15288 (store_fpxregset): Ditto.
15290 * gregset.h (gdb_fpxregset_t): Define.
15291 (supply_fpxregset): Prototype.
15292 (fill_fpxregset): Prototype.
15294 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15296 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15298 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15299 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15300 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15302 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15304 * MAINTAINERS: Update target maintainer rules so that any
15305 Maintainer can approve a tested patch for a maintenance-only
15308 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15310 * MAINTAINERS (write-after-approval): Add myself.
15312 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15315 2002-01-08 Michael Snyder <msnyder@redhat.com>
15317 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15318 real name of the executable, rather than the /proc name.
15320 2002-01-03 Michael Snyder <msnyder@redhat.com>
15322 Implement a "generate-core-file" command in gdb, save target state.
15323 * gcore.c: New file. Implement new command 'generate-core-file'.
15324 Save a corefile image of the current state of the inferior.
15325 * linux-proc.c: Add linux-specific code for saving corefiles.
15326 * target.h (struct target_ops): Add new target vectors for saving
15327 corefiles; to_find_memory_regions and to_make_corefile_notes.
15328 (target_find_memory_regions): New macro.
15329 (target_make_corefile_notes): New macro.
15330 * target.c (update_current_target): Inherit new target methods.
15331 (dummy_find_memory_regions): New place-holder method.
15332 (dummy_make_corefile_notes): New place-holder method.
15333 (init_dummy_target): Initialize new dummy target vectors.
15334 * exec.c (exec_set_find_memory_regions): New function.
15335 Allow the exec_ops vector for memory regions to be taken over.
15336 (exec_make_note_section): New function, target vector method.
15337 * defs.h (exec_set_find_memory_regions): Export prototype.
15338 * procfs.c (proc_find_memory_regions): New function, corefile method.
15339 (procfs_make_note_section): New function, corefile method.
15340 (init_procfs_ops): Set new target vector pointers.
15341 (find_memory_regions_callback): New function.
15342 (procfs_do_thread_registers): New function.
15343 (procfs_corefile_thread_callback): New function.
15344 * sol-thread.c (sol_find_memory_regions): New function.
15345 (sol_make_note_section): New function.
15346 (init_sol_thread_ops): Initialize new target vectors.
15347 * inftarg.c (inftarg_set_find_memory_regions): New function.
15348 Allow to_find_memory_regions vector to be taken over.
15349 (inftarg_set_make_corefile_notes): New function.
15350 Allow to_make_corefile_notes vector to be taken over.
15351 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15352 interface layer if not target_has_execution (may be a corefile).
15353 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15354 * config/sparc/sun4sol2.mh: Ditto.
15355 * config/alpha/alpha-linux.mh: Ditto.
15356 * config/arm/linux.mh: Ditto.
15357 * config/i386/x86-64linux.mh: Ditto.
15358 * config/ia64/linux.mh: Ditto.
15359 * config/m68k/linux.mh: Ditto.
15360 * config/mips/linux.mh: Ditto.
15361 * config/powerpc/linux.mh: Ditto.
15362 * config/sparc/linux.mh: Ditto.
15364 2002-01-07 Michael Snyder <msnyder@redhat.com>
15366 * arm-linux-nat.c: Remove references to regcache.c internal data
15367 (registers[] and register_valid[]).
15369 2002-01-07 Michael Snyder <msnyder@redhat.com>
15371 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15372 so that attaching to a pid will automatically read the process's
15373 symbol file and shlibs.
15374 * Makefile.in: Add rule for linux-proc.o.
15375 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15376 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15377 * config/arm/linux.mh: Ditto.
15378 * config/i386/linux.mh: Ditto.
15379 * config/i386/x86-64linux.mh: Ditto.
15380 * config/ia64/linux.mh: Ditto.
15381 * config/m68k/linux.mh: Ditto.
15382 * config/mips/linux.mh: Ditto.
15383 * config/powerpc/linux.mh: Ditto.
15384 * config/sparc/linux.mh: Ditto.
15386 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15388 * win32-nat.c: Add i386-tdep.h dependency.
15390 2002-01-07 Michael Snyder <msnyder@redhat.com>
15392 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15393 instead of bfd_get_arch_size. Don't bail out just because
15394 there's no exec_bfd.
15396 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15397 * p-valprint.c (pascal_object_print_value): Ditto.
15398 * somread.c (som_symtab_read): Ditto.
15399 * symfile.c (simple_free_overlay_region_table): Ditto.
15400 * valops.c (value_assign): Ditto.
15402 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15403 use tilde_expand and strerror for opening save-tracepoints file.
15405 * thread-db.c (thread_db_new_objfile): Indendation fix.
15407 * infptrace.c (GDB_MAX_ALLOCA): New define.
15408 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15409 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15410 can be overridden with whatever value is appropriate to the host).
15411 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15412 alloca to allocate potentially large buffer.
15413 * rs6000-nat.c (child_xfer_memory): Ditto.
15414 * symm-nat.c (child_xfer_memory): Ditto.
15415 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15417 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15419 From Nick Clifton <nickc@redhat.com>
15420 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15422 2002-01-07 Michael Snyder <msnyder@redhat.com>
15424 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15425 Don't use exec_bfd if it's NULL.
15427 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15429 * valops.c (value_arg_coerce): Fix formatting.
15431 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15433 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15434 * gnu-nat.c: Ditto.
15436 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15438 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15439 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15440 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15441 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15442 z8k-coff have not been multi-arched. Update z8k-coff build
15445 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15447 * MAINTAINERS: Mark a29k target as obsolete.
15448 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15449 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15451 * NEWS: Note that a29k targets are obsolete.
15452 * a29k-tdep.c: Mark as obsolete.
15453 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15454 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15455 a29k-*-vxworks* targets as obsolete.
15456 * remote-adapt.c: Obsolete.
15457 * remote-eb.c: Obsolete.
15458 * remote-mm.c: Obsolete.
15459 * remote-udi.c: Obsolete.
15460 * config/a29k/a29k-udi.mt: Obsolete.
15461 * config/a29k/a29k.mt: Obsolete.
15462 * config/a29k/tm-a29k.h: Obsolete.
15463 * config/a29k/tm-vx29k.h: Obsolete.
15464 * config/a29k/vx29k.mt: Obsolete.
15466 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15468 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15469 with BFD_ENDIAN_BIG.
15471 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15473 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15474 * configure, config.in: Re-generate.
15475 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15476 * defs.h: Do not include <endian.h>.
15478 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15480 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15481 * config.in: Regenerate.
15482 * configure.in: Update copyright years.
15483 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15484 * configure: Regenerate.
15485 * i386bsd-nat.c: Update copyright years.
15486 (fill_gregset): Use regcache_collect.
15487 (fetch_inferior_registers): Only fetch integer registers
15488 if requested to do so. Add support for XMM registers
15489 using PT_GETXMMREGS.
15490 (store_inferior_registers): Only store integer registers
15491 if requested to do so. Add support for XMM registers
15492 using PT_SETXMMREGS.
15493 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15494 (store_inferior_registers): Remove.
15495 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15496 (fetch_elfcore_registers): New function.
15497 (i386nbsd_elfcore_fns): New.
15498 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15499 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15501 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15502 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15503 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15504 * config/i386/tm-nbsd.h: Update copyright years.
15505 (HAVE_SSE_REGS): Define.
15506 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15507 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15508 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15509 (SIGCONTEXT_PC_OFFSET): Remove.
15510 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15512 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15514 * configure.tgt: Remove powerpc-*-macos* target.
15515 * config/m68k/xm-mpw.h: Delete file.
15516 * config/xm-mpw.h: Delete file.
15517 * ser-mac.c: Delete file.
15518 * mpw-make.sed: Delete file.
15519 * mpw-config.in: Delete file.
15520 * mac-xdep.c: Delete file.
15521 * mac-gdb.r: Delete file.
15522 * mac-defs.h: Delete file.
15523 * mac-nat.c: Delete file.
15524 * config/powerpc/macos.mh: Delete file.
15525 * config/powerpc/macos.mt: Delete file.
15526 * config/powerpc/nm-macos.h: Delete file.
15527 * config/powerpc/tm-macos.h: Delete file.
15528 * source.c (openp, open_source_file): Remove obsolete code.
15529 * top.c (gdb_readline): Ditto.
15530 * utils.c (query): Ditto.
15531 * event-top.c (display_gdb_prompt): Ditto.
15532 * Makefile.in (ser-mac.o): Delete obsolete target.
15535 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15537 * defs.h (BIG_ENDIAN): Delete macro definition.
15538 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15539 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15540 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15541 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15542 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15543 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15544 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15545 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15546 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15547 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15548 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15549 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15550 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15551 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15552 * gdbarch.c: Re-generate.
15554 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15556 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15559 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15561 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15563 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15565 * value.h (value_ptr): Delete typedef.
15567 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15569 * i386nbsd-nat.c: Update copyright years.
15570 Include i386-tdep.h.
15572 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15574 * stabsread.c: Update copyright years.
15576 From Debashis Mahata <debashis.mahata@wipro.com>:
15577 (read_struct_fields): Deal with Sun C compiler erroneous stab
15578 output for structs and unions.
15581 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15583 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15586 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15588 * cp-abi.c: Fix whitespace.
15589 (baseclass_offset): New wrapper function.
15590 * cp-abi.h (baseclass_offset): Add prototype.
15591 (struct cp_abi_ops): Add baseclass_offset pointer.
15593 * valops.c (vb_match): Move to...
15594 * gnu-v2-abi.c (vb_match): here.
15595 * valops.c (baseclass_offset): Move to...
15596 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15598 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15600 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15601 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15602 * hpacc-abi.c (init_hpacc_ops): Likewise.
15604 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15606 * valops.c (find_overload_match): Accept obj as a
15607 reference parameter. Update it before returning.
15608 * value.h (find_overload_match): Update prototype.
15609 * eval.c (evaluate_subexp_standard): Pass object to
15610 find_overload_match by reference.
15612 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15614 * valarith.c: Replace value_ptr with struct value pointer. Remove
15615 register attribute from value declarations.
15618 * scm-lang.c (scm_lookup_name): Ditto.
15620 2002-01-03 Michael Snyder <msnyder@redhat.com>
15622 Abstract the functionality of iterating over mapped memory
15623 regions into a general purpose iterator function.
15624 * procfs.c (iterate_over_mappings): New function, general purpose
15625 iterator for memory sections.
15626 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15627 (solib_mappings_callback): New function, callback for above.
15628 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15629 (info_mappings_callback): New function, callback for above.
15631 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15633 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15635 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15636 * i386-tdep.c: Include "elf-bfd.h".
15637 (process_note_abi_tag_sections): New function.
15638 (i386_gdbarch_init): Add code to recognize various OS/ABI
15641 * maint.c (_initialize_maint_cmds): Add missing \ in
15644 For older changes see ChangeLog-2001
15650 version-control: never