1 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
3 * minsyms.c (lookup_minimal_symbol): Update comment.
4 (lookup_minimal_symbol_text): Update comment. Use the hash table.
5 (lookup_minimal_symbol_solib_trampoline): Likewise.
7 2003-01-08 Andrew Cagney <cagney@redhat.com>
9 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12 * alpha-tdep.c: Use get_frame_extra_info.
13 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
15 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
16 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
18 * alpha-tdep.c: Use get_next_frame.
19 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
20 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
21 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
22 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
23 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
24 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
25 * xstormy16-tdep.c: Ditto.
27 2003-01-07 Andrew Cagney <cagney@redhat.com>
29 * alpha-tdep.c: Use get_frame_base.
30 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
31 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
32 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
33 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
34 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
35 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
36 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
37 * config/sparc/tm-sparc.h: Ditto.
39 2003-01-07 Andrew Cagney <cagney@redhat.com>
41 * frame.c (deprecated_get_frame_context): New function.
42 (deprecated_set_frame_context): New function.
43 * frame.h (deprecated_get_frame_context): Declare.
44 (deprecated_set_frame_context): Declare.
45 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
46 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
48 2003-01-07 Andrew Cagney <cagney@redhat.com>
50 * frame.c (deprecated_set_frame_next_hack): New function.
51 (deprecated_set_frame_prev_hack): New function.
52 * frame.h (deprecated_set_frame_next_hack): Declare.
53 (deprecated_set_frame_prev_hack): Declare.
54 * mcore-tdep.c (analyze_dummy_frame): Use
55 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
56 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
58 2003-01-07 David Carlton <carlton@math.stanford.edu>
60 * linespec.c (decode_line_1): Move code into decode_dollar.
61 (decode_dollar): New function.
63 2003-01-07 Andrew Cagney <cagney@redhat.com>
65 * arm-tdep.c (arm_init_extra_frame_info): Use
66 deprecated_update_frame_base_hack.
67 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
68 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
69 (fix_frame_pointer): Ditto.
70 (mn10300_analyze_prologue): Ditto.
72 2003-01-07 Andrew Cagney <cagney@redhat.com>
74 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
75 extra_info using frame_extra_info_zalloc.
76 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
77 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
78 (sh64_init_extra_frame_info): Ditto.
79 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
80 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
81 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
82 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
83 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
84 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
85 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
86 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
87 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
88 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
89 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
90 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
92 * mn10300-tdep.c (analyze_dummy_frame): Use
93 deprecated_set_frame_extra_info_hack.
94 * mcore-tdep.c (analyze_dummy_frame): Ditto.
96 2003-01-07 J. Brobecker <brobecker@gnat.com>
98 * mdebugread.c (parse_symbol): Skip stProc entries which storage
99 class is not scText. These do not define "real" procedures.
100 (parse_partial_symbols): Likewise.
102 2003-01-06 Michael Snyder <msnyder@redhat.com>
104 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
106 2003-01-06 Andrew Cagney <ac131313@redhat.com>
108 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
109 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
110 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
111 deprecated_frame_xmalloc_with_cleanup.
112 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
113 deprecated_frame_xmalloc.
114 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
115 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
117 2003-01-06 Andrew Cagney <cagney@redhat.com>
119 * x86-64-linux-tdep.c: Include "osabi.h".
120 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
122 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
124 2003-01-06 Andrew Cagney <cagney@redhat.com>
126 * MAINTAINERS (Target Instruction Set Architectures): Update
127 arm-elf. Can be built with -Werror, has been multiarched.
129 * value.h (unpack_long): Make buffer parameter constant.
130 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
131 * scm-lang.h (scm_parse): Ditto.
132 * defs.h (extract_typed_address, extract_address): Ditto.
133 (extract_long_unsigned_integer): Ditto.
134 * inferior.h (unsigned_pointer_to_address): Ditto.
135 (signed_pointer_to_address): Ditto.
136 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
137 * gdbarch.h, gdbarch.c: Regenerate.
138 * findvar.c (extract_long_unsigned_integer): Update.
139 (extract_address): Update.
140 (extract_typed_address): Update.
141 (unsigned_pointer_to_address): Update.
142 * values.c (unpack_long): Update.
143 (unpack_double): Update.
144 (unpack_pointer): Update.
145 (unpack_field_as_long): Update.
146 * d10v-tdep.c (d10v_pointer_to_address): Update.
147 * avr-tdep.c (avr_pointer_to_address): Update.
148 * scm-lang.c (scm_unpack): Update.
149 * findvar.c (signed_pointer_to_address): Update.
151 2003-01-06 Michal Ludvig <mludvig@suse.cz>
153 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
154 since it is in i386-tdep.c.
156 2003-01-06 J. Brobecker <brobecker@gnat.com>
158 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
159 failure introduced in the previous change.
161 2003-01-05 Michael Chastain <mec@shout.net>
163 * README: Remove references to deleted remote-*.c files:
164 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
165 remote-nrom.c, remote-os9k.c, remote-udi.c.
167 2003-01-05 Mark Kettenis <kettenis@gnu.org>
169 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
170 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
171 i386_get_longjmp_target.
173 2003-01-05 Andrew Cagney <ac131313@redhat.com>
175 * arm-tdep.c (prologue_cache): Change to a pointer.
176 (_initialize_arm_tdep): Allocate prologue_cache.
177 (check_prologue_cache): Update.
178 (save_prologue_cache): Update.
179 (arm_gdbarch_init): Update.
181 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
183 * stabsread.c (update_method_name_from_physname): Call complaint()
186 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
188 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
189 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
190 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
192 * blockframe.c: Include "gdbcmd.h" and "command.h".
193 (backtrace_below_main): New variable.
194 (file_frame_chain_valid, func_frame_chain_valid)
195 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
196 (generic_func_frame_chain_valid): Remove functions.
197 (frame_chain_valid, do_flush_frames_sfunc): New functions.
198 (_initialize_blockframe): New function.
199 * Makefile.in (blockframe.o): Update dependencies.
200 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
201 comment. Call frame_chain_valid ().
202 * frame.h: Remove old prototypes. Add prototype for
203 frame_chain_valid and update comments to match.
204 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
206 * gdbarch.h: Regenerated.
207 * gdbarch.c: Regenerated.
209 * alpha-tdep.c (alpha_gdbarch_init): Don't call
210 set_gdbarch_frame_chain_valid.
211 * avr-tdep.c (avr_gdbarch_init): Likewise.
212 * cris-tdep.c (cris_gdbarch_init): Likewise.
213 * frv-tdep.c (frv_gdbarch_init): Likewise.
214 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
215 * i386-tdep.c (i386_svr4_init_abi): Likewise.
216 (i386_nw_init_abi): Likewise.
217 (i386_gdbarch_init): Likewise.
218 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
220 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
221 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
222 * mips-tdep.c (mips_gdbarch_init): Likewise.
223 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
224 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
225 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
226 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
227 * s390-tdep.c (s390_gdbarch_init): Likewise.
228 * sh-tdep.c (sh_gdbarch_init): Likewise.
229 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
230 * v850-tdep.c (v850_gdbarch_init): Likewise.
231 * vax-tdep.c (vax_gdbarch_init): Likewise.
232 * x86-64-tdep.c (x86_64_init_abi): Likewise.
234 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
235 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
236 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
237 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
238 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
239 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
240 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
241 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
243 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
245 * Makefile.in (acconfig_h): Remove incorrect macro.
247 (osabi.o): Update dependencies.
248 * configure.tgt: Set gdb_osabi based on target triplet.
249 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
250 * configure: Regenerated.
251 * config.in: Regenerated.
252 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
253 (GDB_OSABI_DEFAULT): Define if not already defined.
254 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
255 (set_osabi_string): New variables.
256 (gdbarch_register_osabi): Add new OS ABI to
257 gdb_osabi_available_names.
258 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
259 (set_osabi, show_osabi): New functions.
260 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
262 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
264 * arch-utils.c (gdbarch_info_init): Set osabi to
265 GDB_OSABI_UNINITIALIZED.
266 * gdbarch.sh: Add osabi to struct gdbarch and to struct
267 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
268 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
269 * gdbarch.c: Regenerated.
270 * gdbarch.h: Regenerated.
271 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
273 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
274 * osabi.h (enum gdb_osabi): Move to defs.h.
275 (gdbarch_init_osabi): Update prototype.
276 * defs.h (enum gdb_osabi): Moved here.
277 * Makefile.in: Update dependencies.
279 * alpha-tdep.h: Don't include "osabi.h".
280 (struct gdbarch_tdep): Remove osabi member.
281 * alpha-tdep.c: Include "osabi.h".
282 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
283 iterate over arches. Update call to gdbarch_init_osabi.
284 (alpha_dump_tdep): Don't dump osabi.
285 * alpha-linux-tdep.c: Include "osabi.h".
286 * alpha-osf1-tdep.c: Include "osabi.h".
287 * alphafbsd-tdep.c: Include "osabi.h".
288 * alphanbsd-tdep.c: Include "osabi.h".
290 * arm-tdep.h: Don't include "osabi.h".
291 (struct gdbarch_tdep): Remove osabi member.
292 * arm-tdep.c: Include "osabi.h".
293 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
294 iterate over arches. Update call to gdbarch_init_osabi.
295 (arm_dump_tdep): Don't dump osabi.
296 * arm-linux-tdep.c: Include "osabi.h".
297 * armnbsd-tdep.c: Include "osabi.h".
299 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
300 Update call to gdbarch_init_osabi.
302 * i386-tdep.h: Don't include "osabi.h".
303 (struct gdbarch_tdep): Remove osabi member.
304 * i386-tdep.c: Include "osabi.h".
305 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
306 iterate over arches. Update call to gdbarch_init_osabi.
307 (i386_dump_tdep): Don't dump osabi.
308 * i386-linux-tdep.c: Include "osabi.h".
309 * i386-sol2-tdep.c: Include "osabi.h".
310 * i386bsd-tdep.c: Include "osabi.h".
311 * i386gnu-tdep.c: Include "osabi.h".
312 * i386ly-tdep.c: Include "osabi.h".
313 * i386nbsd-tdep.c: Include "osabi.h".
314 * i386obsd-tdep.c: Include "osabi.h".
316 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
317 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
318 check osabi when iterating over arches. Update call to
320 (mips_dump_tdep): Don't dump osabi.
322 * ns32k-tdep.h: Don't include "osabi.h".
323 (struct gdbarch_tdep): Remove.
324 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
325 gdbarch_lookup_osabi. Don't iterate over arches. Don't
326 allocate tdep. Update call to gdbarch_init_osabi.
327 (ns32k_dump_tdep): Remove.
328 (_initialize_ns32k_tdep): Update call to gdbarch_register.
329 * ns32knbsd-tdep.c: Include "osabi.h".
331 * ppc-tdep.h: Don't include "osabi.h".
332 (struct gdbarch_tdep): Remove osabi member.
333 * rs6000-tdep.c: Include "osabi.h".
334 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
335 osabi when iterating over arches. Update call to
337 (rs6000_dump_tdep): Don't dump osabi.
338 * ppc-linux-tdep.c: Include "osabi.h".
339 * ppcnbsd-tdep.c: Include "osabi.h".
341 * sh-tdep.h: Don't include "osabi.h".
342 (struct gdbarch_tdep): Remove osabi member.
343 * sh-tdep.c: Include "osabi.h".
344 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
345 iterate over arches. Update call to gdbarch_init_osabi.
346 (sh_dump_tdep): Don't dump osabi.
347 * shnbsd-tdep.c: Include "osabi.h".
349 * sparc-tdep.c: Include "osabi.h".
350 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
351 iterate over arches. Update call to gdbarch_init_osabi.
352 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
355 * vax-tdep.h: Don't include "osabi.h".
356 (struct gdbarch_tdep): Remove.
357 * vax-tdep.c: Include "osabi.h".
358 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
359 iterate over arches. Don't allocate tdep. Update call
360 to gdbarch_init_osabi.
361 (vax_dump_tdep): Remove.
362 (_initialize_vax_tdep): Update call to gdbarch_register.
364 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
366 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
368 (breakpoint_re_set_one): Don't fetch the value for a disabled
371 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
373 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
374 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
375 (COERCE_FLOAT_TO_DOUBLE): Remove.
376 * gdbarch.c: Regenerate.
377 * gdbarch.h: Regenerate.
378 * Makefile.in: Remove value_h from gdbarch_h.
379 * valops.c (coerce_float_to_double): New variable.
380 (default_coerce_float_to_double): Remove.
381 (standard_coerce_float_to_double): Remove.
382 (value_arg_coerce): Use coerce_float_to_double.
383 (_initialize_valops): Add "set coerce-float-to-double".
384 * value.h (default_coerce_float_to_double): Remove prototype.
385 (standard_coerce_float_to_double): Remove prototype.
387 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
389 * mdebugread.c (parse_symbol): Likewise.
390 * stabsread.c (define_symbol): Mark all functions as prototyped.
392 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
393 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
394 set_gdbarch_coerce_float_to_double.
395 * arm-tdep.c (arm_gdbarch_init): Likewise.
396 * frv-tdep.c (frv_gdbarch_init): Likewise.
397 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
398 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
399 * mips-tdep.c (mips_gdbarch_init): Likewise.
400 (mips_coerce_float_to_double): Remove.
401 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
402 (rs6000_coerce_float_to_double): Remove.
403 * s390-tdep.c (s390_gdbarch_init): Likewise.
404 * sh-tdep.c (sh_gdbarch_init): Likewise.
405 (sh_coerce_float_to_double): Remove.
406 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
407 (sparc_coerce_float_to_double): Remove.
408 * v850-tdep.c (v850_gdbarch_init): Likewise.
409 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
410 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
411 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
412 (hppa_coerce_float_to_double): Remove prototype.
413 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
415 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
417 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
419 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
421 Suggested by Stewart Brown <sb24@avaya.com>:
422 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
423 in recursive calls. Handle TYPE_CODE_TYPEDEF.
424 (c_type_print_varspec_suffix): Likewise.
426 2003-01-04 Mark Kettenis <kettenis@gnu.org>
428 * configure.in: Don't set and AC_SUBST SUBDIRS.
429 * configure: Regenerated.
431 * configure.in: Remove code dealing with shared libraries.
432 * Makefile.in: Remove HLDFLAGS and HLDENV.
433 * configure: Regenerated.
435 2003-01-04 Andrew Cagney <ac131313@redhat.com>
437 * frame.c (deprecated_frame_xmalloc): New function.
438 (deprecated_set_frame_saved_regs_hack): New function.
439 (deprecated_set_frame_extra_info_hack): New function.
440 * frame.h (deprecated_frame_xmalloc): Declare.
441 (deprecated_set_frame_saved_regs_hack): Declare.
442 (deprecated_set_frame_extra_info_hack): Declare.
444 2003-01-04 Mark Kettenis <kettenis@gnu.org>
446 * configure.in: Move code that provides the --enable-gdbtk option
447 right after the code that handles the --enable-tui option, and
449 * configure: Regenerated.
451 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
452 AC_CHECK_FUNCS and remove the old check for pread64.
453 * acinclude.m4 (AC_GNU_SOURCE): New macro.
454 * acconfig.h (_GNU_SOURCE): Add.
455 (HAVE_PREAD64): Remove.
456 * configure, aclocal.m4, config.in: Regenerated.
458 2003-01-03 Andrew Cagney <ac131313@redhat.com>
460 * alpha-tdep.c: Use get_frame_saved_regs.
461 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
462 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
463 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
464 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
465 * vax-tdep.c, xstormy16-tdep.c: Ditto.
467 2003-01-03 Mark Kettenis <kettenis@gnu.org>
469 * configure.in: Remove all use of the SUBDIRS variable; add
470 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
471 code providing the --enable-multi-ice option, and move it right in
472 front of the code that checks whether gdbserver is supported.
474 * configure: Regenerated.
475 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
478 2003-01-03 Andrew Cagney <cagney@redhat.com>
480 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
481 * avr-tdep.c, cris-tdep.c: Ditto.
482 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
483 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
485 2003-01-03 Mark Kettenis <kettenis@gnu.org>
487 * configure.in: Remove --enable-netrom option.
488 * configure: Regenerated.
490 2003-01-03 Mark Kettenis <kettenis@gnu.org>
492 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
493 declaration for `struct re_pattern_buffer' instead.
494 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
496 2003-01-03 J. Brobecker <brobecker@gnat.com>
498 * mdebugread.c (parse_symbol): Count until the stEnd matching
501 2003-01-02 Mark Kettenis <kettenis@gnu.org>
503 * configure.in: Remove --with-cpu option.
504 subscripts. Remove evil changequotes here.
505 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
506 * config.in, configure: Regenerated.
508 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
509 * configure.in: Cleanup section that sources GDB and BFD configure
510 subscripts. Remove evil changequotes here.
511 * config.in, configure: Regenerated.
513 2003-01-02 Andrew Cagney <ac131313@redhat.com>
515 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
516 frame accessor methods.
517 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
518 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
519 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
520 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
521 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
522 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
525 2003-01-02 Mark Kettenis <kettenis@gnu.org>
527 * configure.in: Remove UI_OUT configuration code.
528 * ada-lang.c: Update assuming UI_OUT is always true.
529 * Makefile.in (UIOUT_CFLAGS): Remove.
530 * configure: Regenerated.
531 * TODO: Remove blurb about elimination of -DUI_OUT.
533 * configure.in: Move code that provides the --enable-gdbcli,
534 --enable-gdbmi options right before the code that handles the
535 --enable-tui option. Polish a bit.
536 * configure: Regenerated.
538 * configure.in: Rewrite check for GNU regex and the
539 --without-included regex option, and move it into the "Checks for
540 library functions" section. This makes us use the system regex
541 again by default on systems with version 2 of the GNU C library.
542 This was apparently broken.
543 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
544 * acconfig.h (USE_INCLUDED_REGEX): Remove.
545 * config.in, configure: Regenerated.
547 * configure.in: Move code that provides the --enable-tui option
548 before the "Checks for libraries" section. Polish the code
549 somewhat and set need_curses to yes if we build the TUI. Rewrite
550 code that looks for a library providing termcap functionality to
551 match more closely what's done in the Readline library, and move
552 it into to the "Checks for libraries" section.
553 * configure: Regenerated.
554 * Makefile.in (TERMCAP): Remove variable.
555 * config/i386/go32.mh (TERMCAP): Remove variable.
557 2003-01-02 Andrew Cagney <ac131313@redhat.com>
559 * MAINTAINERS: Mention gdb_mbuild.sh.
560 * gdb_mbuild.sh: Rewrite.
562 2003-01-02 Mark Kettenis <kettenis@gnu.org>
564 * configure.in: Fix typo in last change.
565 * config.in, configure: Regenerated.
567 2003-01-02 Andrew Cagney <ac131313@redhat.com>
569 * valarith.c (value_binop): Delete obsolete code and comments.
570 * configure.host: Ditto.
571 * buildsym.h (make_blockvector): Ditto.
572 * buildsym.c (make_blockvector): Ditto.
573 * defs.h (enum language): Ditto.
574 (chill_demangle): Ditto.
575 * elfread.c (elf_symtab_read): Ditto.
576 * dwarfread.c (CHILL_PRODUCER): Ditto.
577 (set_cu_language): Ditto.
578 (handle_producer): Ditto.
579 * expprint.c (print_subexp): Ditto.
580 * gdbtypes.c (chill_varying_type): Ditto.
581 * gdbtypes.h (builtin_type_chill_bool): Ditto.
582 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
583 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
584 (chill_varying_type): Ditto.
585 * language.h (_LANG_chill): Ditto.
586 * language.c (binop_result_type, integral_type): Ditto.
587 (character_type, string_type, structured_type): Ditto.
588 (lang_bool_type, binop_type_check): Ditto.
589 * stabsread.h (os9k_stabs): Ditto.
590 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
591 (define_symbol, read_type, read_struct_fields): Ditto.
592 (read_array_type, read_enum_type, read_huge_number): Ditto.
593 (read_range_type, start_stabs): Ditto.
594 * symfile.c (init_filename_language_table): Ditto.
595 (add_psymbol_with_dem_name_to_list): Ditto.
596 * symtab.c (symbol_init_language_specific): Ditto.
597 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
598 * symtab.h (struct general_symbol_info): Ditto.
599 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
600 * typeprint.c (typedef_print): Ditto.
601 * utils.c (fprintf_symbol_filtered): Ditto.
602 * valops.c (value_cast, search_struct_field, value_slice): Delete
604 (varying_to_slice): Delete function.
605 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
606 (varying_to_slice): Delete declaration.
607 * MAINTAINERS: Update.
609 2003-01-02 Mark Kettenis <kettenis@gnu.org>
611 * configure.in: Reorganize "Checks for library functions section"
612 a bit. Remove check for `btowc' and `isascii' functions.
613 * configure: Regenerated.
615 * acconfig.h (_MSE_INT_H): Remove.
616 * configure.in: Create "Checks for header files" section, and move
617 appropriate tests there. Don't check for objlist.h, wchar.h,
618 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
619 misdetection fix. Also add "Checks for types", "Checks for
620 compiler characteristics" and "Checks for library functions"
622 * config.in, configure: Regenerated.
624 * configure.in: Create "Checks for programs" section, and move
625 appropriate tests there.
627 2003-01-01 Mark Kettenis <kettenis@gnu.org>
629 * configure.in: Create "Checks for libraries" section, and move
630 appropriate tests there. Cleanup check for wctype in libw. Use
631 AC_SEARCH_LIBS to see whether we need libsocket.
632 * configure: Regenerated.
634 2002-12-31 Mark Kettenis <kettenis@gnu.org>
636 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
637 * config.in, configure: Regenerated.
639 2002-12-31 Mark Kettenis <kettenis@gnu.org>
641 * gdb_dirent.h: Cleanup and update code to match the example in
643 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
644 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
645 * configure: Regenerated.
647 2002-12-30 Adam Fedor <fedor@gnu.org>
649 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
650 (yylex): Initialize c to avoid uninitialized warning.
652 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
654 * doc/fdl.texi: Revert the last change.
656 2002-12-29 Mark Kettenis <kettenis@gnu.org>
658 * tracepoint.c (ISATTY): Removed.
660 2002-12-26 J. Brobecker <brobecker@gnat.com>
662 Continuing work to convert the hppa targets to multiarch partil.
664 * hppa-tdep.c: Add some missing forward declarations.
665 (frameless_function_invocation): Prefix the function name
666 by "hppa_" to avoid polluting the namespace. Update all calls
667 to use the new function name.
668 (saved_pc_after_call): Ditto.
669 (init_extra_frame_info): Ditto.
670 (frame_chain): Ditto.
671 (push_dummy_frame): Ditto.
672 (target_read_pc): Ditto.
673 (target_write_pc): Ditto.
674 (in_solib_call_trampoline): Ditto.
675 (in_solib_return_trampoline): Ditto.
676 (skip_trampoline_code): Ditto.
677 (hppa_read_fp): New function, renamed from target_read_fp.
678 (hppa_target_read_fp): New function, using hppa_read_fp.
679 This function conforms to the function profile for the
680 READ_FP gdbarch method.
681 (hppa_extract_struct_value_address): New function, extracted
682 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
684 (hppa_frame_num_args): New function.
685 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
687 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
688 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
689 for the switch to multiarch partial.
690 Update some of the macros definitions to match some changes
691 described above in the name of the function they are calling.
692 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
693 not be straightforward to convert. Do now wrap it inside
694 "#if !... #endif" to remember that this macro has still not
696 (FIX_CALL_DUMMY): Likewise.
698 2002-12-26 J. Brobecker <brobecker@gnat.com>
700 Continuing work to convert the hppa targets to multiarch partial.
702 * hppa-tdep.c (hppa_register_raw_size): New function replacing
703 the body of macro REGISTER_RAW_SIZE.
704 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
705 config/pa/tm-hppah.h. These functions will be used to initialize
706 the gdbarch structure.
707 (hppa_hpux_pc_in_sigtramp): New function.
708 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
709 (hppa_hpux_frame_base_before_sigtramp): New function.
710 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
711 Add gdbcore.h #include.
712 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
713 of this gdbarch-eligible macro to a call to the new associated
715 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
716 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
717 into a call to the new associated function.
718 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
719 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
720 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
722 2002-12-24 David Carlton <carlton@math.stanford.edu>
724 * config/sparc/tm-sparc.h: Delete duplicate definition of
725 DEPRECATED_PC_IN_CALL_DUMMY.
727 2002-12-24 Kevin Buettner <kevinb@redhat.com>
729 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
731 * configure.tgt: Recognize mips64*-*-linux*.
732 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
733 (supply_32_bit_reg): New function.
734 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
735 (fill_gregset): Use regcache_collect() instead of
736 deprecated_registers[].
737 (register_addr): Change name to mips_linux_register_addr().
738 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
739 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
740 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
741 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
742 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
743 (MIPS64_LINUX_JB_PC): New defines.
744 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
745 (mips64_elf_fpregset_t): New typedefs.
746 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
747 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
748 (mips64_linux_register_addr, set_mips_linux_register_addr)
749 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
750 (init_register_addr_data)
752 (fetch_core_registers): Add support for core file formats with 64-bit
754 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
755 (register_addr_data): New static global variable.
756 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
757 gdbarch_register_osabi() for each MIPS machine.
758 * config/mips/linux64.mt: New file.
759 * config/mips/tm-linux64.h: New file.
761 2002-12-23 Adam Fedor <fedor@gnu.org>
763 * maint.c (maintenance_demangle): Add switch to demangle
764 ObjC language symbols as well.
766 2002-12-23 Adam Fedor <fedor@gnu.org>
768 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
769 last argument from complaint function call.
771 2002-12-23 Kevin Buettner <kevinb@redhat.com>
773 * exec.c (print_section_info): Add FIXME comments regarding format
776 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
778 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
779 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
781 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
783 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
785 2002-12-23 David Carlton <carlton@math.stanford.edu>
787 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
788 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
789 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
790 information associated to a minsym, not lookup_symbol.
792 2002-12-21 Mark Kettenis <kettenis@gnu.org>
794 * x86-64-tdep.h (x86_64_init_abi): New prototype.
795 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
796 (x86_64_init_abi): Make non-static. Set number of pseudo
798 (x86_64_gdbarch_init): Remove function.
799 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
800 Remove code dealing with dissambly.
801 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
802 (_initialize_x86_64_linux_tdep): New function.
803 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
806 2002-12-14 Mark Kettenis <kettenis@gnu.org>
808 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
809 (struct gdb_osabi_handler): Remove member `arch'. Add member
811 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
812 construct a `struct bfd_arch_info' and store it in the `struct
813 gdb_osabi_handler' that is created.
814 (gdbarch_init_osabi): Check for compatibility based on machine
815 type and architecture.
816 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
818 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
819 second argument in call to gdbarch_register_osabi.
820 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
821 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
822 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
823 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
824 * arm-tdep.c (_initialize_arm_tdep): Likewise.
825 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
826 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
827 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
828 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
829 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
830 * i386-tdep.c (_initialize_i386_tdep): Likewise.
831 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
832 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
833 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
834 _initialize_i386bsd_tdep and updated likewise.
835 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
836 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
837 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
838 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
839 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
840 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
841 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
842 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
843 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
844 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
846 2002-12-20 Kevin Buettner <kevinb@redhat.com>
848 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
849 DT_MIPS_RLD_MAP case for 64-bit targets.
851 2002-12-20 Kevin Buettner <kevinb@redhat.com>
853 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
854 ``temp_saved_regs'', not the pointer or other storage contiguous
857 2002-12-20 Kevin Buettner <kevinb@redhat.com>
859 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
860 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
861 (mips_linux_get_longjmp_target): Delete declarations.
862 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
863 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
864 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
865 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
866 (mips_linux_get_longjmp_target)
867 (mips_linux_svr4_fetch_link_map_offsets): Make static.
868 (mips_linux_init_abi): New function.
869 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
871 2002-12-19 Keith Seitz <keiths@redhat.com>
873 patch committed by Elena Zannoni <ezannoni@redhat.com>
874 * thread.c (do_captured_list_thread_ids): Call prune_threads and
875 target_find_new_threads. Fix for PR mi/669.
877 2002-12-19 David Carlton <carlton@math.stanford.edu>
879 * linespec.c (decode_line_1): Move code into decode_all_digits.
880 (decode_all_digits): New function.
882 2002-12-19 Kevin Buettner <kevinb@redhat.com>
884 * exec.c (print_section_info): Select a format string to use with
885 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
887 2002-12-18 Andrew Cagney <ac131313@redhat.com>
889 * frame.c (deprecated_update_current_frame_pc_hack): Replace
890 deprecated_update_current_frame_pc_hack.
891 (deprecated_update_frame_base_hack): New function.
892 * frame.h (deprecated_update_frame_pc_hack): Replace
893 (deprecated_update_frame_base_hack): Declare.
894 * infrun.c (normal_stop): Update.
896 2002-12-18 Andrew Cagney <ac131313@redhat.com>
898 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
899 frame_extra_info_zalloc.
900 (rs6000_frame_args_address): Use get_frame_extra_info.
901 (frame_get_saved_regs): Use get_frame_saved_regs.
902 (frame_initial_stack_address): Use get_frame_saved_regs and
903 get_frame_extra_info.
904 (frame_initial_stack_address): Use get_frame_extra_info.
906 2002-12-17 Kevin Buettner <kevinb@redhat.com>
908 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
910 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
911 checks for r3900_regnames[].
913 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
915 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
917 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
919 2002-12-17 David Carlton <carlton@math.stanford.edu>
921 * symtab.c (lookup_partial_symbol): Don't search past the end of
924 2002-12-17 Andrew Cagney <ac131313@redhat.com>
926 * stack.c (frame_info): Use get_frame_saved_regs.
927 * breakpoint.c (until_break_command): Use get_frame_pc.
929 2002-12-16 Kevin Buettner <kevinb@redhat.com>
931 * buildsym.c (block_end_complaint, anon_block_end_complaint)
932 (innerblock_complaint, innerblock_anon_complaint)
933 (blockvector_complaint): Delete deprecated complaint structs.
934 (finish_block, make_blockvector, end_symtab): Replace calls
935 to complain() with calls to complaint().
936 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
937 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
938 (unexpected_type_complaint, bad_sclass_complaint)
939 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
940 Delete deprecated complaint structs.
941 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
942 Replace calls to complain() with calls to complaint().
943 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
944 (unknown_symtype_complaint, unknown_symchar_complaint)
945 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
946 (lbrac_mismatch_complaint, repeated_header_complaint)
947 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
948 Delete deprecated complaint structs.
949 (unknown_symtype_complaint, lbrac_mismatch_complaint)
950 (repeated_header_complaint)
951 (function_outside_compiliation_unit_complaint): New functions.
952 (add_old_header_file, find_corresponding_bincl_psymtab)
953 (set_namestring, find_stab_function_addr, read_dbx_symtab)
954 (process_one_symbol): Replace calls to complain() with, possibly
955 indirect, calls to complaint().
956 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
957 (unknown_attribute_form, unknown_attribute_length)
958 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
959 (const_ignored, botched_modified_type, op_deref2, op_deref4)
960 (basereg_not_handled, dup_user_type_allocation)
961 (dup_user_type_definition, missing_tag, bad_array_element_type)
962 (subscript_data_items, unhandled_array_subscript_format)
963 (unknown_array_subscript_format, not_row_major)
964 (missing_at_name): Delete deprecated complaint structs.
965 (bad_die_ref_complaint, unknown_attribute_form_complaint)
966 (dup_user_type_definition_complaint)
967 (bad_array_element_type_complaint): New functions.
968 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
969 (decode_subscript_data_item, dwarf_read_array_type)
970 (read_tag_string_type, read_subroutine_type, read_func_scope)
971 (locval, scan_partial_symbols, decode_modified_type)
972 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
973 (attribute_size): Replace calls to complain() with, possibly
974 indirect, calls to complaint().
975 * elfread.c (section_info_complaint, section_info_dup_complaint)
976 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
977 Delete deprecated complaint structs.
978 (elf_symtab_read, elfstab_offset_sections): Replace calls to
979 complain() with calls to complaint().
980 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
982 (stub_noname_complaint): New function.
983 (check_typedef, add_mangled_type): Replace calls to complain()
984 with calls to complaint().
985 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
986 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
987 (hpread_unhandled_type_complaint, hpread_struct_complaint)
988 (hpread_array_complaint, hpread_type_lookup_complaint)
989 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
990 (hpread_unhandled_common_complaint)
991 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
992 struct definitions and declarations.
993 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
994 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
995 Replace calls to complain() with, possibly indirect, calls to
997 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
999 * mdebugread.c (bad_file_number_complaint, index_complaint)
1000 (aux_index_complaint, block_index_complaint)
1001 (unknown_ext_complaint, unknown_sym_complaint)
1002 (unknown_st_complaint, block_overflow_complaint)
1003 (basic_type_complaint, unknown_type_qual_complaint)
1004 (array_index_type_complaint, bad_tag_guess_complaint)
1005 (block_member_complaint, stEnd_complaint)
1006 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
1007 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
1008 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1009 (bad_continued_complaint, bad_rfd_entry_complaint)
1010 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1011 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1012 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1013 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1015 (index_complaint, unknown_ext_complaint, basic_type_complaint)
1016 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1017 (unexpected_type_code_complaint)
1018 (function_outside_compilation_unit_complaint): New functions.
1019 (parse_symbol, parse_type, upgrade_type, parse_procedure)
1020 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1021 Replace calls to complain() with, possibly indirect calls to
1023 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1024 Delete deprecated complaint structs.
1025 (lookup__objc_class, lookup_child_selector): Replace complain()
1027 * remote-vx.c (cant_contact_target): Delete deprecated complaint
1029 (vx_lookup_symbol): Replace complain() with complaint().
1030 * stabsread.c (invalid_cpp_abbrev_complaint)
1031 (invalid_cpp_type_complaint, member_fn_complaint)
1032 (const_vol_complaint, error_type_complaint)
1033 (invalid_member_complaint, range_type_base_complaint)
1034 (reg_value_complaint, vtbl_notfound_complaint)
1035 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1036 (unresolved_sym_chain_complaint, stabs_general_complaint)
1037 (lrs_general_complaint, multiply_defined_struct): Delete
1038 deprecated complaint structs.
1039 (invalid_cpp_abbrev_complaint, ref_value_complaint)
1040 (stabs_general_complaint, lrs_general_complaint)
1041 (msg_unknown_complaint): New functions.
1042 (dbx_lookup_type, read_cfront_baseclasses)
1043 (read_cfront_member_functions, resolve_symbol_reference)
1044 (define_symbol, resolve_live_range, add_live_range, read_type)
1045 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1046 (read_one_struct_field, read_baseclasses, read_tilde_fields)
1047 (read_cfront_static_fields, attach_fields_to_type)
1048 (complain_about_struct_wipeout, read_range_type)
1049 (common_block_start, common_block_end, cleanup_undefined_types)
1050 (scan_file_globals): Replace complain() with complaint().
1051 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1052 Delete deprecated complaint struct declarations.
1053 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1054 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1055 (bf_not_found_complaint, ef_complaint, eb_complaint)
1056 (function_outside_compilation_unit_complaint): New functions.
1057 (record_include_begin, record_include_end, enter_line_range)
1058 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1059 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1060 complain() with complaint().
1062 2002-12-16 Andrew Cagney <ac131313@redhat.com>
1064 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1065 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1066 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1067 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1068 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1069 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1070 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1071 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1072 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1073 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1074 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1075 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1076 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1077 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1078 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1079 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1080 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1081 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1082 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1083 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1084 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1085 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1086 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1087 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1088 * config/m88k/xm-dgux.h: Delete.
1089 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1090 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1091 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1092 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1093 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1094 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1095 * ch-valprint.c: Delete.
1097 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1099 * infrun.c (handle_inferior_event): Rearrange code to resume if
1100 no catchpoint triggers for an event.
1102 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1104 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1105 and TARGET_WAITKIND_VFORKED cases.
1107 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1109 * infrun.c (handle_inferior_event): Assume that catchpoints
1110 are not affected by DECR_PC_AFTER_BREAK.
1112 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1114 * target.c (update_current_target): Don't inherit DONT_USE.
1115 * target.h (struct target_ops): Remove DONT_USE.
1116 (target_next): Remove macro.
1118 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1120 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1122 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1124 * arm-tdep.c (convert_from_extended): New argument to hold the
1125 type of floating point result we want to convert to. Make input
1126 argument const. Fix all callers.
1127 (convert_to_extended): Similarly.
1128 (arm_extract_return_value): Now takes a regcache argument. Change
1129 code to use regcache accessor functions. Correctly extract
1130 smaller-than-word results on big-endian machines.
1131 (arm_store_return_value): Now takes a regcache argument. Change
1132 code to use regcache accessor functions. Correctly zero/sign extend
1133 smaller than word results before storing into r0.
1134 (arm_gdbarch_init): Register new-style extract_return_value and
1135 store_return_value functions.
1137 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1139 * thread-db.c (thread_from_lwp): Uniquify error msg.
1140 (lwp_from_thread): Ditto.
1141 (check_event): Ditto.
1142 (find_new_threads_callback): Ditto.
1143 (thread_db_pid_to_str): Ditto.
1145 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1147 * frame.h (get_frame_saved_regs): Declare.
1148 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1150 * frame.c (get_frame_saved_regs): New function.
1151 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1153 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1155 * frame.c (deprecated_update_current_frame_pc_hack): New
1157 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1158 * infrun.c (normal_stop): Use said function instead of directly
1159 modifying the frame's PC.
1161 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1163 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1165 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1167 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1168 config/mips/tm-irix6.h (NUM_REGS): Delete.
1169 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1170 (temp_saved_regs): Declare as a pointer rather than an array.
1171 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1172 that ``temp_saved_regs'' has storage allocated to it and that
1173 it's the correct size.
1175 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1177 * defs.h (init_last_source_visited): New prototype.
1179 * source.c (add_path): New function that adds to a specified path.
1180 (mod_path): Change to call add_path.
1181 (init_last_source_visited): New function to allow interfaces to
1182 initialize static variable: last_source_visited. Part of fix
1184 * Makefile.in: Add support for mi/mi-cmd-env.c.
1186 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1188 * frame.h (frame_id_unwind): Declare.
1189 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1191 (frame_id_unwind_ftype): Declare.
1192 * frame.c (frame_id_unwind): New function.
1193 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1194 (create_new_frame, get_prev_frame): Pass id_unwind to
1196 (frame_saved_regs_id_unwind): New function.
1197 (frame_saved_regs_id_unwind): New function.
1198 * dummy-frame.c (dummy_frame_id_unwind): New function.
1199 (struct dummy_frame): Add field id.
1200 (generic_push_dummy_frame): Initialize `id'.
1201 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1203 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1205 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1206 pass that to set_momentary_breakpoint. Move comments to where they
1208 * frame.h (set_current_frame): Delete declaration.
1209 * frame.c (set_current_frame): Delete function.
1211 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1213 * frame.c (frame_extra_info_zalloc): New function.
1214 * frame.h (frame_extra_info_zalloc): Declare.
1216 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1218 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1219 in the previous prototype change to set_momentary_breakpoint.
1221 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1223 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1225 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1226 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1227 (stop_stepping): Remove outdated check for child vfork events.
1229 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1231 * GDB 5.3 released from gdb_5_3-branch.
1233 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1235 * corelow.c (init_core_ops): Delete references to to_require_attach
1236 and to_require_detach.
1237 * exec.c (init_exec_ops): Likewise.
1238 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1239 hppa_require_detach directly.
1240 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1241 * inftarg.c (child_detach): Remove.
1242 (child_detach_from_process): Rename to child_detach, remove
1243 after_fork argument.
1244 (child_attach): Remove.
1245 (child_attach_to_process): Rename to child_attach, remove after_fork
1247 (init_child_ops): Delete references to to_require_attach
1248 and to_require_detach.
1249 * infttrace.c (hppa_require_attach): Update comment.
1250 * target.c (cleanup_target, update_current_target)
1251 (init_dummy_target, setup_target_debug): Delete references to
1252 to_require_attach and to_require_detach.
1253 (find_default_require_detach, find_default_require_attach)
1254 (debug_to_require_attach, debug_to_require_detach): Remove
1256 * target.h (struct target_ops): Remove to_require_attach
1257 and to_require_detach.
1258 (target_require_attach, target_require_detach): Delete macros.
1259 (find_default_require_detach, find_default_require_attach): Delete
1261 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1263 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1265 * frame.c (get_frame_extra_info): New function.
1266 * frame.h (get_frame_extra_info): Declare.
1268 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1270 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1271 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1272 with `struct frame_id'.
1273 (set_longjmp_resume_breakpoint): Ditto.
1274 * infrun.c (handle_inferior_event): Update.
1275 * breakpoint.c (watch_command_1, until_break_command): Update.
1276 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1277 (handle_inferior_event, step_over_function): Update.
1278 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1279 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1280 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1281 * infcmd.c (finish_command, run_stack_dummy): Update.
1283 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1285 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1286 (dwarf2_non_const_array_bound_ignored)
1287 (dwarf2_missing_line_number_section)
1288 (dwarf2_statement_list_fits_in_line_number_section)
1289 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1290 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1291 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1292 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1293 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1294 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1295 (dwarf2_missing_member_fn_type_complaint)
1296 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1297 (dwarf2_const_value_length_mismatch)
1298 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1299 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1300 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1301 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1302 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1303 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1304 complaints using deprecated struct..
1305 (dwarf2_non_const_array_bound_ignored_complaint)
1306 (dwarf2_complex_location_expr_complaint)
1307 (dwarf2_unsupported_at_frame_base_complaint)
1308 (dwarf2_const_value_length_mismatch_complaint)
1309 (dwarf2_macros_too_long_complaint)
1310 (dwarf2_macro_malformed_definition_complaint)
1311 (dwarf2_invalid_attrib_class_complaint): New functions.
1312 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1313 (read_structure_scope, read_array_type, read_common_block)
1314 (read_tag_pointer_type, read_base_type, read_partial_die)
1315 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1316 (new_symbol, dwarf2_const_value, read_type_die)
1317 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1318 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1319 complain() with, possibly indirect, calls to complaint().
1321 2002-12-11 Andrew Cagney <cagney@redhat.com>
1323 * frame.c (deprecated_get_frame_saved_regs): Rename
1324 get_frame_saved_regs.
1325 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1326 * sparc-tdep.c: Update.
1327 * hppa-tdep.c: Update.
1328 * h8500-tdep.c: Update.
1330 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1332 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1333 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1334 ``char *'' for return and parameter types.
1335 * gdbarch.h, gdbarch.c: Regenerate.
1336 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1337 return type from ``char *'' to ``const char *''.
1338 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1341 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1343 * i386-tdep.c: Include "dummy-frame.h".
1344 (i386_frame_chain, i386_frame_saved_pc): Replace
1345 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1346 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1348 2002-12-10 Andrew Cagney <cagney@redhat.com>
1350 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1351 Change to a function with predicate.
1352 * gdbarch.h, gdbarch.c: Re-generate.
1353 * frame.c (get_prev_frame): Update. Test
1354 DEPRECATED_INIT_FRAME_PC_P.
1355 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1356 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1357 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1358 * alpha-tdep.c (alpha_gdbarch_init): Update.
1359 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1360 * mips-tdep.c (mips_gdbarch_init): Update.
1361 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1362 * arm-tdep.c: Update comments.
1363 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1364 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1365 * frv-tdep.c (frv_gdbarch_init): Ditto.
1366 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1367 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1368 * s390-tdep.c (s390_gdbarch_init): Ditto.
1369 * v850-tdep.c (v850_gdbarch_init): Ditto.
1370 * vax-tdep.c (vax_gdbarch_init): Ditto.
1371 * sh-tdep.c (sh_gdbarch_init): Ditto.
1372 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1374 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1375 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1376 * i386-tdep.c (i386_gdbarch_init): Ditto.
1377 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1378 * cris-tdep.c (cris_gdbarch_init): Ditto.
1379 * avr-tdep.c (avr_gdbarch_init): Ditto.
1380 * arm-tdep.c (arm_gdbarch_init): Ditto.
1381 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1382 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1384 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1386 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1388 * hppah-nat.c (saved_vfork_pid): Add.
1389 (child_post_follow_vfork): Remove.
1390 (child_follow_fork): New function.
1391 (child_wait): Call detach_breakpoints after receiving the child vfork.
1392 Call child_resume directly instead of going through resume ().
1393 Make sure we have the exec before reporting the vfork.
1394 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1395 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1396 (follow_fork): New function. Call target_follow_fork.
1397 (follow_inferior_reset_breakpoints): New function broken out from
1398 old follow_inferior_fork.
1399 (resume): Remove hack to follow exec after vfork.
1400 * inftarg.c (child_post_follow_vfork): Remove.
1401 (child_follow_fork): New function.
1402 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1403 * target.c (cleanup_target): Replace to_post_follow_vfork with
1405 (update_current_target): Likewise.
1406 (setup_target_debug): Likewise.
1407 (debug_to_post_follow_vfork): Remove.
1408 (debug_to_follow_fork): New function.
1409 * target.h (struct target_ops): Replace to_post_folow_vfork with
1411 (child_post_follow_vfork): Remove prototype.
1412 (child_follow_fork): Add prototype.
1413 (target_post_follow_vfork): Remove macro.
1414 (target_follow_fork): Add macro.
1416 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1418 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1419 (child_post_follow_vfork): Cancel pending exec event if we follow
1421 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1422 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1423 event at the following wait call if necessary.
1424 * infrun.c (follow_vfork): Don't follow_exec here.
1425 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1426 case about HP/UX 10.20. Remove code pushed down to
1427 hppah-nat.c:child_wait.
1428 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1429 vfork_in_flight is set.
1431 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1433 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1434 for the parent's fork event.
1435 * infrun.c (handle_inferior_event): Only expect one fork event.
1436 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1437 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1439 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1441 * PROBLEMS: Delete reference to PR gdb/725.
1443 * MAINTAINERS (gdb.c++): Add David Carlton.
1445 2002-12-09 David Carlton <carlton@math.stanford.edu>
1447 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1448 * cli/cli-cmds.c: Ditto.
1450 2002-12-09 Andrew Cagney <cagney@redhat.com>
1452 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1453 function address in <>.
1454 * gdbarch.c: Re-generate.
1456 2002-12-09 David Carlton <carlton@math.stanford.edu>
1458 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1460 2002-12-09 David Carlton <carlton@math.stanford.edu>
1462 * linespec.c (symtab_from_filename): New function.
1463 (decode_line_1): Move code into symtab_from_filename.
1465 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1467 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1469 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1471 * f-valprint.c (info_common_command): Use get_frame_pc.
1472 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1473 * ax-gdb.c (agent_command): Ditto.
1474 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1475 (rs6000_pop_frame): Ditto.
1476 (rs6000_frameless_function_invocation): Ditto.
1477 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1478 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1479 * macroscope.c (default_macro_scope): Ditto.
1480 * stack.c (print_frame_info_base): Ditto.
1481 (print_frame, frame_info, print_frame_label_vars): Ditto.
1482 (return_command, func_command, get_frame_language): Ditto.
1483 * infcmd.c (finish_command): Ditto.
1484 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1485 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1486 (break_at_finish_at_depth_command_1): Ditto.
1487 (break_at_finish_command_1): Ditto.
1488 (until_break_command, get_catch_sals): Ditto.
1489 * blockframe.c (func_frame_chain_valid): Ditto.
1490 (frameless_look_for_prologue): Ditto.
1491 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1493 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1495 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1496 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1498 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1500 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1502 * gdbarch.h, gdbarch.c: Re-generate.
1503 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1504 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1506 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1507 declaration to a function returning a CORE_ADDR.
1508 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1509 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1510 (init_frame_pc_default): Ditto.
1511 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1512 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1513 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1514 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1515 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1516 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1518 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1519 to init_frame_pc_noop.
1520 (i386_interix_init_frame_pc): Delete function.
1521 * z8k-tdep.c (init_frame_pc): Delete function.
1522 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1523 (INIT_FRAME_PC_FIRST): Ditto.
1524 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1525 (INIT_FRAME_PC_FIRST): Ditto.
1526 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1527 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1529 (INIT_FRAME_PC_FIRST): Convert to an expression.
1530 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1532 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1534 * blockframe.c: Use get_frame_base instead of directly accessing
1535 the `struct frame_info' member frame.
1536 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1537 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1539 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1541 * Makefile.in (readline_h): Define.
1542 (completer.o): Depend on readline_h.
1544 (event-top.o): Ditto.
1551 (tracepoint.o): Ditto.
1553 (cli-dump.o): Ditto.
1554 (tui-hooks.o): Ditto.
1557 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1559 More cleanup from import of readline 4.3.
1560 * completer.h (complete_line, readline_line_completion_function):
1562 (line_completion_function): Removed, not used outside of completer.c.
1563 * completer.c (readline_line_completion_function,
1564 complete_function, line_completion_function): Use const for first
1566 (line_completion_function): Make static.
1567 (filename_completer): filename_completion_function is now called
1568 rl_filename_completion_function
1569 * corelow.c: Include <readline/readline.h>.
1575 * top.c (init_main): No need to coerce
1576 readline_line_completion_function anymore.
1577 * cli/cli-dump.c: Include <readline/readline.h>.
1579 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1581 * stack.c (frame_info): Use get_prev_frame.
1582 * blockframe.c (frame_address_in_block): Ditto.
1583 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1584 (rs6000_frameless_function_invocation): Ditto.
1585 (rs6000_frame_saved_pc): Ditto.
1586 (rs6000_frame_chain): Ditto.
1587 * arch-utils.c (init_frame_pc_default): Ditto.
1589 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1591 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1592 Delete redundant definition.
1594 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1596 Import of readline 4.3:
1597 * cli/cli-cmds.c: Include readline/tilde.h.
1598 * cli/cli-setshow.c: Ditto.
1599 * defs.h: Don't declare tilde_expand anymore, since readline
1602 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1604 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1605 -Werror on this file.
1607 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1609 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1611 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1612 * gdbarch.c: Regenerate.
1614 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1616 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1617 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1618 provide a default value.
1619 * gdbarch.h, gdbarch.c: Regenerate.
1620 * frame.c (get_prev_frame): Update. Check
1621 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1622 * s390-tdep.c (s390_gdbarch_init): Update.
1623 * mips-tdep.c (mips_gdbarch_init): Update.
1624 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1625 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1626 * alpha-tdep.c (alpha_gdbarch_init): Update.
1628 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1630 * ia64-linux-nat.c: Include gdb_string.h.
1631 * alpha-nat.c: Ditto.
1632 * ppc-linux-nat.c: Ditto.
1633 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1634 Update dependencies.
1636 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1638 * gdbthread.h: Include "frame.h".
1639 (struct thread_info): Replace step_frame_address with
1641 * inferior.h: Include "frame.h".
1642 (step_frame_id): Replace external variable step_frame_address.
1643 * gdbthread.h (save_infrun_state): Replace step_frame_address
1644 parameter with step_frame_id parameter.
1645 (load_infrun_state): Ditto.
1646 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1647 * infcmd.c (step_frame_id, step_1, step_once): Update.
1648 * thread.c (load_infrun_state, save_infrun_state): Update.
1649 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1650 (handle_inferior_event, step_over_function): Update.
1651 (normal_stop, context_switch, restore_inferior_status): Update.
1652 (struct inferior_status): Replace step_frame_address with
1655 2002-12-05 David Carlton <carlton@math.stanford.edu>
1657 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1658 DW_TAG_member as well as a declaration as being a C++ static data
1660 (read_structure_scope): Combine tests for DW_TAG_member and
1663 2002-12-05 David Carlton <carlton@math.stanford.edu>
1665 * linespec.c (decode_compound): New function.
1666 (decode_line_1): Move code into decode_compound.
1668 2002-12-05 David Carlton <carlton@math.stanford.edu>
1670 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1672 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1673 the static block. See PR gdb/804.
1675 2002-12-05 David Carlton <carlton@math.stanford.edu>
1677 * symtab.c (lookup_symbol_aux_block): New function.
1678 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1680 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1682 * gdbarch.sh: Dump the predicate function and macro values.
1683 (read): Print error on standard error.
1684 * gdbarch.c: Regenerate.
1686 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1688 * Makefile.in (mips_tdep_h): Define.
1689 (mips-tdep.o): Add mips_tdep_h to dependency list.
1690 * mips-tdep.h: New file.
1691 * mips-tdep.c (mips-tdep.h): Include.
1692 (enum mips_abi): Move to mips-tdep.h.
1693 (mips_abi): New function.
1695 2002-12-04 David Carlton <carlton@math.stanford.edu>
1697 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1699 2002-12-04 David Carlton <carlton@math.stanford.edu>
1701 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1703 (lookup_symbol_aux_minsyms): New function.
1705 2002-12-04 J. Brobecker <brobecker@gnat.com>
1707 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1709 2002-12-04 J. Brobecker <brobecker@gnat.com>
1711 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1712 which is an obsolete macro name.
1714 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1716 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1717 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1719 2002-12-03 H.J. Lu (hjl@gnu.org)
1721 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1722 (create_breakpoints): Make sure the addr_string field is not
1725 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1727 * sparc-nat.c (fetch_inferior_registers)
1728 (store_inferior_registers): Add comment on problem of LWP vs
1731 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1732 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1733 (lin_lwp_store_registers): Remove.
1734 (init_lin_lwp_ops): Use fetch_inferior_registers
1735 and store_inferior_registers directly.
1736 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1737 (store_inferior_registers): Likewise.
1740 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1742 * frame.h (get_frame_id): Convert to a function.
1743 (null_frame_id, frame_id_p): Declare.
1744 (frame_id_eq, frame_id_inner): Declare.
1745 (frame_id_build): New function.
1746 * frame.c (get_frame_id): Update. Use null_frame_id.
1747 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1749 (null_frame_id, frame_id_p): Define.
1750 (frame_id_eq, frame_id_inner): Define.
1751 (frame_id_build): New function.
1752 * varobj.c (varobj_create): Update.
1753 (varobj_update): Update.
1754 * valops.c (value_assign): Update.
1755 (new_root_variable): Update.
1756 * infrun.c (save_inferior_status): Update.
1757 * breakpoint.c (watch_command_1): Update.
1759 2002-12-03 J. Brobecker <brobecker@gnat.com>
1761 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1764 2002-12-03 Andrew Cagney <cagney@redhat.com>
1766 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1769 * PROBLEMS: Mention PR gdb/725.
1771 2002-12-03 Andreas Schwab <schwab@suse.de>
1773 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1775 2002-12-02 Adam Fedor <fedor@gnu.org>
1776 Klee Dienes <kdienes@apple.com>
1778 * objc-lang.c (objc_printstr): Add width arg to match
1780 (compare_selectors): Add 'const' to arg types.
1781 (compare_classes): Likewise.
1782 (find_imps): Cast msym pointer to avoid compiler warning.
1783 (print_object_command): Validate the address before
1784 passing it to the print routine.
1785 (find_objc_msgcall_submethod): Change function argument to
1787 * objc-lang.h: Add 'extern' to all function declarations.
1788 (value_nsstring): Add declaration.
1790 2002-12-02 J. Brobecker <brobecker@gnat.com>
1792 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1793 Fixes a build failure on HP/UX.
1795 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1797 (hpread_has_name): Advance declaration to avoid a compilation warning.
1798 (pst_syms_count): Add missing variable type. By change, the compiler
1799 was defaulting to int, which seems a good choice. Fixes a compilation
1801 (pst_syms_size): Likewise.
1803 2002-12-02 J. Brobecker <brobecker@gnat.com>
1805 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1806 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1807 later to set the proper gdbarch methods depending on the osabi.
1808 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1810 2002-12-02 J. Brobecker <brobecker@gnat.com>
1812 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1813 * osabi.c (gdb_osabi_name): Add strings images for the two new
1815 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1817 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1819 * MAINTAINERS (Java): Global maintainers are responible for Java.
1820 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1821 part Java maintainers.
1823 2002-12-02 J. Brobecker <brobecker@gnat.com>
1825 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1826 Fixes a compilation failure on AiX.
1828 2002-12-02 J. Brobecker <brobecker@gnat.com>
1830 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1831 why aix-thread.o is not listed.
1833 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1835 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1836 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1837 * gdbarch.h, gdbarch.c: Re-generate.
1838 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1839 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1840 * config/pa/tm-hppa.h, frame.h: Update.
1841 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1842 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1843 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1844 * cris-tdep.c, alpha-tdep.c: Update.
1845 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1846 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1847 (get_prev_frame): Ditto.
1849 2002-11-30 Andrew Cagney <cagney@redhat.com>
1851 * exec.c (xfer_memory): Replace boolean with int.
1852 * p-exp.y: Use 0 instead of false.
1853 * corelow.c (gdb_check_format): Change return type to int from
1855 * utils.c: Don't include <curses.h> or <term.h> first.
1857 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1859 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1860 (m68hc11_register_byte): Remove.
1861 (m68hc11_gdbarch_init): Don't set the above.
1863 2002-11-29 Andrew Cagney <cagney@redhat.com>
1865 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1866 by calling get_selected_frame.
1867 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1868 set_current_frame, create_new_frame, select_frame and
1870 * remote-e7000.c (e7000_start_remote): Ditto.
1871 * remote-mips.c (common_open): Ditto
1872 * remote-rdp.c (remote_rdp_open): Ditto.
1874 2002-11-29 Andreas Schwab <schwab@suse.de>
1876 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1877 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1878 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1879 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1880 read_memory_unsigned_integer instead of read_memory_integer when
1881 dealing with addresses and instruction opcodes.
1882 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1883 (m68k_linux_frame_saved_pc): Likewise.
1885 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1887 * stack.c (selected_frame, select_frame): Move from here ...
1888 * frame.c (selected_frame, select_frame): ... to here. Include
1890 * Makefile.in (frame.o): Update dependencies.
1891 * frame.c (get_selected_frame): New function.
1892 * frame.h (get_selected_frame): Declare.
1893 (deprecated_selected_frame): Rename selected_frame.
1894 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1895 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1896 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1897 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1898 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1899 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1900 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1901 * z8k-tdep.c, cli/cli-cmds.c: Update.
1903 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1905 * frame.h (get_selected_block): Add comments.
1907 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1909 * frame.c (pc_notcurrent): New function.
1910 (find_frame_sal): New function.
1911 * frame.h (find_frame_sal): Declare.
1912 (struct symtab_and_line): Add opaque declaration.
1913 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1915 (frame_info): Ditto.
1916 * ada-lang.c (find_printable_frame): Ditto.
1918 2002-11-28 J. Brobecker <brobecker@gnat.com>
1920 * configure.in: Check that the pthdebug library is recent enough
1921 before enabling thread support on native AiX.
1922 * configure: Regenerate.
1924 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1925 from the list of object files as it is now appended by configure
1926 if thread support is enabled.
1927 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1928 if thread support is enabled.
1930 2002-11-28 Andrew Cagney <cagney@redhat.com>
1932 * stack.c (get_selected_block): In-line get_current_block.
1933 * frame.h (get_current_block): Delete declaration.
1934 * blockframe.c (get_current_block): Delete function.
1936 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1938 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1939 USE_GENERIC_DUMMY_FRAMES.
1940 * gdbarch.h, gdbarch.c: Regenerate.
1941 * valops.c, frame.c: Update.
1942 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1943 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1944 * config/pa/tm-hppa.h, blockframe.c: Update.
1945 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1946 * m68k-tdep.c, alpha-tdep.c: Ditto.
1948 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1949 * mips-tdep.c: Ditto.
1951 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1953 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1954 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1955 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1956 * gdbarch.c, gdbarch.h: Re-generate.
1957 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1958 (CALL_DUMMY_LOCATION): Delete macro definition.
1959 (PC_IN_CALL_DUMMY): Delete macro definitions.
1961 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1962 default is already generic_pc_in_call_dummy.
1963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1964 * v850-tdep.c (v850_gdbarch_init): Ditto.
1965 * sh-tdep.c (sh_gdbarch_init): Ditto.
1966 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1967 * mips-tdep.c (mips_gdbarch_init): Ditto.
1968 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1969 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1970 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1971 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1972 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1973 * avr-tdep.c (avr_gdbarch_init): Ditto.
1975 * arm-tdep.c (arm_gdbarch_init): Do not set
1976 use_generic_dummy_frames, default is already 1.
1977 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1978 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1979 * v850-tdep.c (v850_gdbarch_init): Ditto.
1980 * sh-tdep.c (sh_gdbarch_init): Ditto.
1981 * s390-tdep.c (s390_gdbarch_init): Ditto.
1982 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1983 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1984 * mips-tdep.c (mips_gdbarch_init): Ditto.
1985 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1987 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1988 * i386-tdep.c (i386_gdbarch_init): Ditto.
1989 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1990 * frv-tdep.c (frv_gdbarch_init): Ditto.
1991 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1992 * cris-tdep.c (cris_gdbarch_init): Ditto.
1993 * avr-tdep.c (avr_gdbarch_init): Ditto.
1995 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1996 call_dummy_location, default is already AT_ENTRY_POINT.
1997 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1998 * v850-tdep.c (v850_gdbarch_init): Ditto.
1999 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2000 * sh-tdep.c (sh_gdbarch_init): Ditto.
2001 * s390-tdep.c (s390_gdbarch_init): Ditto.
2002 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2003 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2004 * mips-tdep.c (mips_gdbarch_init): Ditto.
2005 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2007 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2008 * i386-tdep.c (i386_gdbarch_init): Ditto.
2009 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2010 * frv-tdep.c (frv_gdbarch_init): Ditto.
2011 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2012 * cris-tdep.c (cris_gdbarch_init): Ditto.
2013 * avr-tdep.c (avr_gdbarch_init): Ditto.
2014 * arm-tdep.c (arm_gdbarch_init): Ditto.
2015 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2017 2002-11-28 Andrew Cagney <cagney@redhat.com>
2019 * frame.h: Update comments on set_current_frame, create_new_frame,
2020 flush_cached_frames, reinit_frame_cache, select_frame and
2023 2002-11-27 Andrew Cagney <cagney@redhat.com>
2025 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2026 deprecated pc_in_call_dummy function.
2027 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2028 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2029 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2030 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2031 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2033 2002-11-26 Martin M. Hunt <hunt@redhat.com>
2035 * Makefile.in: Remove Tix dependencies.
2036 * acinclude.m4: Ditto.
2037 * aclocal.m4: Ditto.
2038 * configure.in: Ditto.
2039 * configure: Regenerated.
2041 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2043 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2044 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2045 * gdbarch.c: Re-generate.
2047 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2049 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2050 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2051 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2052 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2053 pc_in_call_dummy_at_entry_point.
2054 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2055 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2056 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2057 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2058 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2059 pc_in_call_dummy_on_stack.
2060 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2061 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2062 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2063 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2064 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2066 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2068 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2069 pc_in_call_dummy_before_text_end
2070 (deprecated_pc_in_call_dummy_after_text_end): Rename
2071 pc_in_call_dummy_after_text_end.
2072 (deprecated_pc_in_call_dummy_on_stack): Rename
2073 pc_in_call_dummy_on_stack.
2074 (deprecated_pc_in_call_dummy_at_entry_point): Rename
2075 pc_in_call_dummy_at_entry_point.
2076 * m68k-tdep.c (m68k_gdbarch_init): Update.
2077 * s390-tdep.c (s390_gdbarch_init): Update.
2078 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2079 * vax-tdep.c (vax_gdbarch_init): Update.
2080 * sparc-tdep.c (sparc_gdbarch_init): Update.
2081 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2082 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2083 * i386-tdep.c (i386_gdbarch_init): Update.
2084 * frv-tdep.c (frv_gdbarch_init): Update.
2085 * cris-tdep.c (cris_gdbarch_init): Update.
2086 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2087 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2088 (deprecated_pc_in_call_dummy_after_text_end)
2089 (deprecated_pc_in_call_dummy_on_stack)
2090 (deprecated_pc_in_call_dummy_at_entry_point): Update.
2091 * alpha-tdep.c (alpha_gdbarch_init): Update.
2093 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
2095 * acconfig.h (HAVE_PREAD64): Add.
2096 * configure.in: Check for pread64.
2097 * config.in: Regenerated.
2098 * configure: Regenerated.
2099 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2100 * linux-proc.c (linux_proc_xfer_memory): New function.
2101 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2103 2002-11-25 David Carlton <carlton@math.stanford.edu>
2105 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2108 2002-11-25 Andrew Cagney <ac131313@redhat.com>
2110 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2111 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2113 2002-11-25 Jim Blandy <jimb@redhat.com>
2115 * symfile.c (init_objfile_sect_indices): New function.
2116 (default_symfile_offsets): Move the section-index-initializing
2117 stuff into init_objfile_sect_indices, and call that.
2119 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2120 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2122 * symfile.c (syms_from_objfile): Adjust indentation.
2124 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2125 || info_verbose isn't true.
2127 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2129 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2130 default to get_frame_base.
2131 * gdbarch.h, gdbarch.c: Regenerate.
2132 * arch-utils.c (default_frame_address): Delete function.
2133 * arch-utils.h (default_frame_address): Delete declaration
2135 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2137 * varobj.c (find_frame_addr_in_frame_chain):
2138 Use get_frame_base instead of FRAME_FP,
2141 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2143 * frame.h (FRAME_FP): Delete macro.
2144 (get_frame_base): New function declaration.
2145 * frame.c (get_frame_base): New function.
2146 (get_frame_id): Use ->frame.
2147 (frame_find_by_id): Rewrite to use get_frame_id.
2148 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2149 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2150 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2151 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2152 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2153 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2154 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2156 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2158 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2160 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2162 * frame.c (set_unwind_by_pc): Revert change below, use
2164 (get_prev_frame): Ditto.
2166 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2168 * dummy-frame.c (pc_in_dummy_frame): New function.
2169 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2170 (find_dummy_frame): Update comment.
2171 (generic_pop_current_frame): Use get_frame_type.
2172 * dummy-frame.h (pc_in_dummy_frame): Declare.
2173 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2174 (create_new_frame): Use pc_in_dummy_frame.
2175 (get_prev_frame): Use pc_in_dummy_frame.
2176 (frame_saved_regs_register_unwind): Use get_prev_frame.
2177 (deprecated_generic_get_saved_register): Use get_prev_frame.
2179 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2181 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2183 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2184 (varobj_create): Note that frame ID should be used.
2185 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2187 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2189 * breakpoint.c: Include "gdb_assert.h".
2190 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2192 * Makefile.in (breakpoint.o): Update dependencies.
2193 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2194 deprecated_frame_in_dummy.
2195 * stack.c (print_frame_info_base): Ditto.
2196 (frame_info): Ditto.
2197 (print_frame_info_base): Ditto. Delete dead code.
2199 2002-11-23 Andreas Schwab <schwab@suse.de>
2201 * Makefile.in (m68k_tdep_h): Define.
2202 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2203 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2204 * m68k-tdep.c: Move register number enum ...
2205 * m68k-tdep.h: ... to this new file and rename the constants from
2206 E_* to M68K_*. All uses changed.
2207 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2208 * abug-rom.c: Include "m68k-tdep.h". Use
2209 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2210 * cpu32bug-rom.c: Likewise.
2211 * dbug-rom.c: Likewise.
2212 * m68k-tdep.c: Likewise.
2213 * m68klinux-nat.c: Likewise.
2214 * remote-est.c: Likewise.
2215 * rom68k-rom.c: Likewise.
2216 * config/m68k/tm-linux.h: Likewise.
2218 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2220 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2221 dummy frame initialization code.
2222 * mips-tdep.c (mips_gdbarch_init): Ditto.
2224 2002-11-22 Christopher Faylor <cgf@redhat.com>
2226 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2229 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2231 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2232 to default_frame_address.
2233 * gdbarch.h, gdbarch.c: Re-generate.
2235 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2236 or frame_locals_address to default_frame_address.
2237 * m68k-tdep.c (m68k_gdbarch_init): Update.
2238 * i386-tdep.c (i386_gdbarch_init): Update.
2239 * frv-tdep.c (frv_gdbarch_init): Update.
2240 * sh-tdep.c (sh_gdbarch_init): Update.
2241 * v850-tdep.c (v850_gdbarch_init): Update.
2242 * sparc-tdep.c (sparc_gdbarch_init): Update.
2243 * mips-tdep.c (mips_gdbarch_init): Update.
2244 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2245 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2246 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2248 * cris-tdep.c (cris_frame_args_address): Delete function.
2249 (cris_frame_locals_address): Delete function.
2250 (cris_gdbarch_init): Do not set frame_args_address or
2251 frame_locals_address.
2253 2002-11-22 Michael Snyder <msnyder@redhat.com>
2255 * thread-db.c (thread_db_load): Tell the user what's going on
2256 if dlopen fails on libthread_db.
2258 2002-11-23 Andreas Schwab <schwab@suse.de>
2260 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2261 invariant return values.
2263 2002-11-22 Andreas Schwab <schwab@suse.de>
2265 * valops.c (value_slice): Move declaration of `offset' to avoid
2268 2002-11-22 Christopher Faylor <cgf@redhat.com>
2270 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2271 (struct so_stuff): Add end_addr field.
2272 (register_loaded_dll): Calculate and store end address of loaded dll.
2273 (solib_address): New function.
2274 (child_solib_loaded_library_pathname): Pass carefully constructed
2275 section info to safe_symbol_file_add rather than ignoring it.
2276 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2278 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2279 (child_create_inferior): Fix a compiler warning.
2280 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2281 (solib_address): Declare new function.
2283 2002-11-22 Andreas Schwab <schwab@suse.de>
2285 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2288 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2290 * maint.c (_initialize_maint_cmds): Fix typo. From
2291 Francesco Potorti` <pot@gnu.org>.
2293 2002-11-21 Andrew Cagney <cagney@redhat.com>
2295 * mips-tdep.c (mips_dump_tdep): Delete references to
2296 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2297 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2298 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2299 * printcmd.c (build_address_symbolic): Delete calls to
2300 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2301 (address_info): Ditto.
2304 2002-11-19 Klee Dienes <kdienes@apple.com>
2305 Adam Fedor <fedor@gnu.org>
2307 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2308 the ability to explicitly specify the quote characters and word
2309 break characters; if NULL is specified for either, use the old
2310 behavior of using the characters used by the completer.
2311 (skip_chars): New function. Convenience wrapper around
2312 skip_quoted_chars to provide the original skip_chars behavior.
2313 * completer.h (skip_quoted_chars): Add prototype.
2315 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2317 Problems reported by Paul Eggert.
2318 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2320 2002-11-19 Andreas Schwab <schwab@suse.de>
2322 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2323 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2324 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2325 (m68k_linux_frame_saved_pc): Move to ...
2326 * m68klinux-tdep.c: ... here. New file.
2327 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2328 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2330 2002-11-19 Adam Fedor <fedor@gnu.org>
2332 * objc-exp.y: Revert to old skip_quoted usage.
2334 2002-11-19 Adam Fedor <fedor@gnu.org>
2336 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2337 (objc_lang_h): Define.
2338 (YYFILES): Add objc-exp.tab.c.
2339 (local-maintainer-clean): Remove objc-exp.tab.c.
2340 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2342 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2344 * p-exp.y (typecast rule): Add automatic dereference of
2345 pascal classes if needed.
2346 (THIS): Set current_type.
2347 Automatically dereference pascal classes.
2348 (typebase rule): Add ^typebase recognition.
2350 2002-11-18 Adam Fedor <fedor@gnu.org>
2352 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2353 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2354 (op_name): Handle OP_OBJC_SELF.
2355 * Makefile.in (expprint.o): Add additional depends.
2357 2002-11-18 Adam Fedor <fedor@gnu.org>
2359 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2360 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2361 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2362 * objc-exp.y: Likewise.
2364 2002-11-18 Adam Fedor <fedor@gnu.org>
2366 * gdb/parser-defs.h: (struct objc_class_str): New structure
2367 for parsing ObjC classes.
2369 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2371 * stack.c (frame_relative_level): Copy function from here ...
2372 * frame.c (frame_relative_level): ...to here.
2374 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2376 * frame.h (enum frame_type): Define.
2377 (get_frame_type): Declare.
2378 (struct frame_info): Add field `type'. Delete field
2379 signal_handler_caller.
2380 (deprecated_set_frame_signal_handler_caller): Declare.
2381 * frame.c (get_frame_type): New function.
2382 (deprecated_set_frame_type): New function.
2383 (create_new_frame): Set the frame's type.
2384 (get_prev_frame): Similar.
2385 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2386 * s390-tdep.c: Ditto.
2387 * m68klinux-nat.c: Ditto.
2388 * ns32k-tdep.c: Ditto.
2389 * x86-64-linux-tdep.c: Ditto.
2390 * vax-tdep.c: Ditto.
2391 * rs6000-tdep.c: Ditto.
2392 * ppc-linux-tdep.c: Ditto.
2393 * i386-interix-tdep.c: Ditto.
2394 * mips-tdep.c: Ditto.
2395 * m68k-tdep.c: Ditto.
2396 * hppa-tdep.c: Ditto.
2397 * ia64-tdep.c: Ditto.
2398 * cris-tdep.c: Ditto.
2399 * arm-tdep.c: Ditto.
2400 * alpha-tdep.c: Ditto.
2401 * i386-tdep.c: Ditto.
2403 * ada-lang.c: Ditto.
2404 * blockframe.c: Update.
2405 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2406 deprecated_set_frame_type instead of signal_handler_caller.
2407 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2408 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2409 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2411 2002-11-18 Klee Dienes <kdienes@apple.com>
2413 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2415 2002-11-18 Klee Dienes <kdienes@apple.com>
2417 * buildsym.c (pop_context): Add comment.
2419 2002-11-18 Klee Dienes <kdienes@apple.com>
2421 * buildsym.h (pop_context): Convert to function, defined in
2423 * buildsym.c: Include gdb_assert.h.
2424 (pop_context): Implement as C function. Add check for stack
2426 * dbxread.c (process_one_symbol): Complain and stop processing
2427 that symbol if we are already at the top of the context stack for
2428 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2429 when processing N_RBRAC.
2431 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2433 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2435 (struct target_waitstatus): Add opaque definition.
2436 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2437 * exec.c (init_exec_ops): Likewise.
2438 * fork-child.c (clone_and_follow_inferior): Remove.
2439 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2440 * inferior.h (clone_and_follow_inferior): Remove prototype.
2441 * infrun.c (follow_fork_mode_both): Remove.
2442 (follow_fork_mode_kind_names): Remove commented out "both".
2443 (follow_inferior_fork): Remove follow_fork_mode_both support.
2444 * inftarg.c (child_clone_and_follow_inferior): Remove.
2445 (child_post_follow_inferior_by_clone): Remove.
2446 (init_child_ops): Don't set to_clone_and_follow_inferior
2447 or to_post_follow_inferior_by_clone.
2448 * target.c (default_clone_and_follow_inferior): Remove.
2449 (cleanup_target): Don't set to_clone_and_follow_inferior
2450 or to_post_follow_inferior_by_clone.
2451 (find_default_clone_and_follow_inferior): Remove.
2452 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2453 (debug_to_clone_and_follow_inferior): Remove.
2454 (debug_to_post_follow_inferior_by_clone): Remove.
2455 (setup_target_debug): Don't set to_clone_and_follow_inferior
2456 or to_post_follow_inferior_by_clone.
2457 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2458 and to_post_follow_inferior_by_clone.
2459 (child_clone_and_follow_inferior): Remove prototype.
2460 (child_post_follow_inferior_by_clone): Remove prototype.
2461 (target_clone_and_follow_inferior): Remove macro.
2462 (target_post_follow_inferior_by_clone): Remove macro.
2463 (find_default_clone_and_follow_inferior): Remove prototype.
2465 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2467 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2468 inferior_has_vforked, and inferior_has_execd instead of
2469 target_has_forked, target_has_vforked, and target_has_execd.
2470 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2471 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2472 (CHILD_WAIT): Define.
2473 (child_wait): Add prototype.
2474 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2476 (hpux_has_vforked): Likewise, from child_has_vforked.
2477 (hpux_has_execd): Likewise, from child_has_execd.
2478 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2479 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2480 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2481 and hpux_has_syscall_event instead of the target hooks.
2482 * infrun.c (inferior_has_forked, inferior_has_vforked)
2483 (inferior_has_execd): New functions.
2484 * inftarg.c (not_same_real_pid): Remove.
2485 (child_wait): Remove references to not_same_real_pid,
2486 target_has_forked, target_has_vforked, target_has_execd,
2487 and target_has_syscall_event.
2488 (child_has_forked, child_has_vforked, child_has_execd)
2489 (child_has_syscall_event): Remove.
2490 (init_child_ops): Remove references to child_has_forked,
2491 child_has_vforked, child_has_execd, and child_has_syscall_event.
2492 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2493 (hpux_has_vforked): Likewise, from child_has_vforked.
2494 (hpux_has_execd): Likewise, from child_has_execd.
2495 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2496 * target.c (cleanup_target): Remove references to
2497 to_has_forked, to_has_vforked, to_has_execd, and
2498 to_has_syscall_event.
2499 (update_current_target): Likewise.
2500 (setup_target_debug): Likewise.
2501 (debug_to_has_forked): Remove.
2502 (debug_to_has_vforked): Remove.
2503 (debug_to_has_execd): Remove.
2504 (debug_to_has_syscall_event): Remove.
2505 * target.h (struct target_ops): Remove to_has_forked.
2506 to_has_vforked, to_has_execd, and to_has_syscall_event.
2507 (child_has_forked, child_has_vforked, child_has_execd)
2508 (child_has_syscall_event): Remove prototypes.
2509 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2511 (target_has_forked, target_has_vforked, target_has_execd)
2512 (target_has_syscall_event): Remove macros.
2514 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2516 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2517 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2518 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2519 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2520 * target.c (cleanup_target): Remove reference to
2521 to_can_follow_vfork_prior_to_exec.
2522 (update_current_target): Likewise.
2523 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2524 (setup_target_debug): Remove reference to
2525 to_can_follow_vfork_prior_to_exec.
2526 * target.h (struct target_ops): Remove
2527 to_can_follow_vfork_prior_to_exec.
2528 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2529 (target_can_follow_vfork_prior_to_exec): Remove definition.
2530 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2532 * infrun.c (follow_vfork_when_exec): Remove.
2533 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2534 (follow_exec): Likewise.
2535 (handle_inferior_event): Likewise.
2536 (keep_going): Likewise.
2538 2002-11-15 Andrew Cagney <cagney@redhat.com>
2540 * frame.c (generic_unwind_get_saved_register): Make static.
2541 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2542 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2543 defaults to generic_unwind_get_saved_register.
2544 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2545 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2546 * frv-tdep.c (frv_gdbarch_init): Ditto.
2547 * i386-tdep.c (i386_gdbarch_init): Ditto.
2548 * s390-tdep.c (s390_gdbarch_init): Ditto.
2549 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2550 * v850-tdep.c (v850_gdbarch_init): Ditto.
2551 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2552 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2553 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2555 2002-11-15 Andrew Cagney <cagney@redhat.com>
2557 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2560 2002-11-15 Andrew Cagney <cagney@redhat.com>
2562 * frame.h (sigtramp_saved_pc): Delete declaration.
2563 * blockframe.c (sigtramp_saved_pc): Delete function.
2564 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2565 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2566 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2567 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2569 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2571 * frame.c (frame_pc_unwind): New function.
2572 (frame_saved_regs_pc_unwind): New function.
2573 (frame_register_unwind): Pass unwind_cache instead of
2574 register_unwind_cache.
2575 (set_unwind_by_pc): Add unwind_pc parameter, set.
2576 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2577 (get_prev_frame): Ditto.
2578 * frame.h (frame_pc_unwind_ftype): Declare.
2579 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2580 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2581 (frame_pc_unwind): Declare.
2582 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2583 (struct dummy_frame): Add comment mentioning that values are for
2585 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2586 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2587 (generic_file_frame_chain_valid): Ditto.
2588 * stack.c (frame_info): Ditto.
2590 2002-11-15 David Carlton <carlton@math.stanford.edu>
2592 * linespec.c (locate_first_half): New function.
2593 (decode_line_1): Move code into locate_first_half.
2595 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2597 * complaints.h: Add comment explaining how to eliminate a
2598 deprecated_complain call.
2599 * complaints.h: Fix spelling errors.
2601 2002-11-15 David Carlton <carlton@math.stanford.edu>
2603 * printcmd.c: Remove #include "disasm.h".
2605 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2607 * frame.h: Move the most relevant interface functions to the start
2610 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2612 * regcache.h (deprecated_registers): Rename registers.
2613 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2614 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2615 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2616 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2617 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2618 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2619 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2620 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2621 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2622 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2623 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2624 * v850ice.c: Update.
2626 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2628 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2631 2002-11-13 Andrew Cagney <cagney@redhat.com>
2633 * regcache.h (deprecated_read_register_bytes): Rename
2634 read_register_bytes.
2635 (deprecated_write_register_bytes): Rename write_register_bytes.
2636 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2637 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2638 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2639 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2640 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2641 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2642 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2643 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2644 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2645 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2646 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2647 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2648 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2649 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2651 2002-11-13 Jim Blandy <jimb@redhat.com>
2653 * findvar.c (read_var_value): Doc fix.
2655 2002-11-13 Andrew Cagney <cagney@redhat.com>
2657 * regcache.c (struct regcache): Replace passthough_p with
2659 (regcache_xmalloc): Initialize readonly_p.
2660 (build_regcache): Initialize readonly_p.
2661 (regcache_save): New function.
2662 (regcache_restore): New function.
2663 (regcache_cpy): Re-implement using regcache_save and
2665 (regcache_raw_read): Update.
2666 (regcache_cooked_read): When a read-only cache, checked for cached
2667 pseudo register values.
2668 (regcache_raw_write): Assert that the cache is not read-only.
2669 Remove code handling a non-passthrough cache.
2670 * regcache.h (regcache_save): Declare.
2671 (regcache_restore): Declare.
2673 2002-11-13 Andrew Cagney <cagney@redhat.com>
2675 * regcache.c (struct regcache_descr): Add fields
2676 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2677 (init_legacy_regcache_descr): Compute the size of a cooked
2678 register cache and then assign that to sizeof_raw_registers. Set
2679 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2680 (init_legacy_regcache_descr): Ditto.
2682 2002-11-13 Andrew Cagney <cagney@redhat.com>
2684 * regcache.c (register_buffer): Move to near start of file, update
2686 (regcache_raw_read): Use.
2687 (regcache_raw_write): Use.
2688 (struct regcache): Rename raw_registers to registers and
2689 raw_register_valid_p to register_valid_p.
2690 (regcache_xmalloc): Update.
2691 (regcache_xfree): Update.
2692 (register_buffer): Update.
2693 (regcache_cpy): Update.
2694 (regcache_cpy_no_passthrough): Update.
2695 (regcache_valid_p): Update.
2696 (deprecated_grub_regcache_for_registers): Update.
2697 (deprecated_grub_regcache_for_register_valid): Update.
2698 (set_register_cached): Update.
2699 (regcache_raw_write): Update.
2701 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2703 * p-exp.y (name_not_typename): Use copy_name to
2704 set current_type variable for fields of THIS.
2706 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2708 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2709 * monitor.c (init_base_monitor_ops): Likewise.
2710 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2711 * remote-array.c (init_array_ops): Likewise.
2712 * remote-e7000.c (init_e7000_ops): Likewise.
2713 * remote-es.c (init_es1800_ops): Likewise.
2714 (init_es1800_child_ops): Likewise.
2715 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2716 * remote-sim.c (init_gdbsim_ops): Likewise.
2717 * remote-st.c (init_st2000_ops): Likewise.
2718 * sol-thread.c (init_sol_core_ops): Likewise.
2719 (init_sol_thread_ops): Likewise.
2720 * v850ice.c (init_850ice_ops): Likewise.
2721 * win32-nat.c (init_child_ops): Likewise.
2722 * wince.c (init_child_ops): Likewise.
2724 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2726 * utils.c (gdb_realpath): Make rp a constant pointer.
2728 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2730 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2731 a constant buffer; cannonicalize_file_name(); realpath() with a
2732 pathconf() defined buffer, xstrdup().
2734 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2736 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2737 to hang2.C; hang3.c to hang3.C.
2739 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2741 * findvar.c (read_var_value): Reenable TLS code.
2743 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2744 Jim Blandy <jimb@redhat.com>
2746 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2747 * target.c (update_current_target): Add
2748 to_get_thread_local_address.
2749 * target.h (to_get_thread_local_address): Export.
2750 (target_get_thread_local_address): Define.
2751 (target_get_thread_local_address_p): Define.
2752 * thread-db.c: Include solib-svr4.h.
2753 (td_thr_tls_get_addr_p): Define.
2754 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2755 (thread_db_get_thread_local_address): New function.
2756 (init_thread_db_ops): Initialize to_get_thread_local_address.
2757 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2758 * configure: Regenerate.
2759 * config.in: Regenerate.
2761 2002-11-11 David Carlton <carlton@math.stanford.edu>
2763 * linespec.c (set_flags): New function.
2764 (decode_line_1): Move code into set_flags.
2766 2002-11-11 David Carlton <carlton@math.stanford.edu>
2768 * linespec.c (decode_line_1): Move chunks of code to separate
2770 (initialize_defaults): New function.
2771 (decode_indirect): New function.
2773 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2775 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2776 instead of void_code_ptr.
2777 (sigtramp_saved_pc): Ditto.
2779 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2782 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2784 * gdbtypes.h (struct main_type): Move artificial flag out of
2785 loc. New member of ``struct field'' named static_kind. Reduce
2786 overloaded meaning of bitsize.
2787 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2788 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2789 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2791 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2793 (template_to_fixed_record_type, template_to_static_fixed_type)
2794 (to_record_with_fixed_variant_part): Likewise.
2795 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2796 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2797 * dwarfread.c (struct_type, enum_type): Likewise.
2798 * hpread.c (hpread_read_enum_type)
2799 (hpread_read_function_type, hpread_read_doc_function_type)
2800 (hpread_read_struct_type): Likewise.
2801 * mdebugread.c (parse_symbol): Likewise.
2803 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2805 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2806 * stack.c (print_frame_info_base): Update.
2807 (print_frame_info_base, frame_info): Update.
2808 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2809 (sparc_frame_saved_pc): Update.
2810 * ada-lang.c (find_printable_frame): Update.
2811 * breakpoint.c (deprecated_frame_in_dummy): Update.
2813 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2815 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2817 (regmap): Extend to cover all registers.
2818 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2819 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2821 (fetch_register, sore_register): Simplify.
2822 (old_fetch_inferior_registers, old_store_inferior_registers):
2824 (cannot_fetch_register, cannot_store_register): Change
2825 implementation to use regmap array to decide which registers
2826 cannot be fetched/stored. This removes $orig_eax from the
2827 registers that cannot be fetched/stored.
2828 (fetch_inferior_registers): Call fetch_register directly instead
2829 of calling old_fetch_inferior_registers.
2830 (store_inferior_registers): Call store_register directly instead
2831 of calling old_store_inferior_registers.
2832 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2833 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2834 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2836 2002-11-09 Klee Dienes <kdienes@apple.com>
2838 * i387-tdep.c (i387_supply_register): When called with NULL as a
2839 buffer, mark the register as not provided (to mirror the behavior
2840 of supply_register).
2841 (i387_supply_fxsave): Ditto.
2842 (i387_supply_fsave): Ditto (inherits the behavior from
2843 i387_supply_register).
2845 2002-11-09 Klee Dienes <kdienes@apple.com>
2847 * blockframe.c (sigtramp_saved_pc): Use
2848 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2849 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2850 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2852 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2854 * frame.c (get_prev_frame): Test prev_p to identify a previously
2855 unwound frame. Initialize prev_p.
2856 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2859 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2861 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2862 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2863 more comments. Zap dead code.
2865 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2867 * infcmd.c (print_vector_info, print_float_info): Move code that
2868 checks whether the target has any registers and whether there is a
2869 selected frame up, such that it is also used if a target provides
2870 multi-arch definitions of these functions.
2872 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2874 * Makefile.in (DESTDIR): Define.
2875 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2878 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2879 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2881 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2883 * i386-linux-tdep.c: Include "reggroups.h".
2884 (i386_linux_register_reggroup_p): New function.
2885 (i386_linux_init_abi): Set register_reggroup_p to
2886 i386_linux_register_reggroup_p.
2887 * i386-tdep.h (i386_register_reggroup_p): Declare.
2888 * i386-tdep.c: Include "reggroups.h".
2889 (i386_init_reggroups): New function.
2890 (i386_add_reggroups): New function.
2891 (i386_register_reggroup_p): New function.
2892 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2893 (_initialize_i386_tdep): Call i386_init_reggroups.
2894 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2897 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2899 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2900 request that's available in *BSD.
2902 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2904 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2907 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2909 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2910 * dummy-frame.c (find_dummy_frame): Rename
2911 generic_find_dummy_frame, make static. Return the dummy frame
2912 instead of the regcache.
2913 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2914 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2915 (dummy_frame_register_unwind): Rename
2916 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2917 * dummy-frame.h (dummy_frame_register_unwind): Rename
2918 generic_call_dummy_register_unwind.
2920 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2922 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2923 except the inclusion of "i386/tm-i386.h", to...
2924 * config/i386/nm-i386v42mp.h: ...here.
2925 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2927 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2929 * Makefile.in (frame.o): Update dependencies.
2930 * blockframe.c (current_frame, frame_obstack_alloc)
2931 (frame_saved_regs_zalloc, get_current_frame)
2932 (set_current_frame, create_new_frame)
2933 (set_unwind_by_pc, get_next_frame)
2934 (flush_cached_frames, reinit_frame_cache)
2935 (frame_saved_regs_register_unwind)
2936 (deprecated_generic_get_saved_register)
2937 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2938 (_initialize_blockframe): Move frame code from here...
2939 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2940 "annotate.h" and "dummy-frame.h".
2941 (_initialize_frame): New function.
2943 2002-11-08 Jim Blandy <jimb@redhat.com>
2945 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2946 when we finish a function a context.
2947 * buildsym.h (outermost_context_p): New macro.
2948 (Bug analyzed by David Edelsohn.)
2950 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2952 * blockframe.c: Include "dummy-frame.h".
2953 (struct dummy_frame, dummy_frame_stack)
2954 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2955 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2956 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2957 (generic_save_call_dummy_addr, generic_pop_current_frame)
2958 (generic_pop_dummy_frame, generic_fix_call_dummy)
2959 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2960 dummy frame code from here...
2961 * dummy-frame.c: ...to here. New file.
2962 * dummy-frame.h: New file.
2963 (generic_call_dummy_register_unwind): Declare.
2964 (generic_find_dummy_frame): Declare.
2965 * Makefile.in (SFILES): Add dummy-frame.c.
2966 (dummy-frame.o): Specify dependencies.
2967 (dummy_frame_h): Define.
2968 (COMMON_OBS): Add dummy-frame.o.
2969 (blockframe.o): Update dependencies.
2971 2002-11-08 Jim Blandy <jimb@redhat.com>
2973 * dwarf2read.c (read_func_scope): Restore local_symbols and
2974 param_symbols after we finish the function context. (Based on a
2975 patch from David Edelsohn.)
2977 2002-11-08 David Carlton <carlton@math.stanford.edu>
2979 * linespec.c (symbol_found): New function.
2980 (minsym_found): New function.
2981 (decode_line_1): Separate out some code into separate functions.
2983 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2985 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2986 the benefit of the interix target.
2987 * i386-tdep.h (i386_frameless_signal_p): Declare.
2989 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2991 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2992 declaration that snuck in from change below.
2994 2002-11-06 Andrew Cagney <cagney@redhat.com>
2996 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2998 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2999 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
3000 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
3001 (i386_mxcsr_regnum_p): new function. Use instead of
3003 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
3004 (i386_sse_regnum_p): Declare.
3005 (i386_mxcsr_regnum_p): Declare.
3006 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
3007 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
3008 (IS_FP_REGNUM): Update definition.
3009 (IS_FPU_CTRL_REGNUM): Update definition..
3010 (IS_SSE_REGNUM): Update definition..
3011 * i386v-nat.c (register_u_addr): Update.
3012 * go32-nat.c (fetch_register): Update.
3013 (store_register): Update.
3015 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3017 Preparation work to convert the hppa targets to multiarch partial.
3019 * hppa-tdep.c: Add new functions replacing macro bodies from
3020 config/pa/tm-hppa.h. These function will be used to initialize
3021 the gdbarch structure. Import some comments from tm-hppa.h,
3022 and place them where appropriate, to avoid loosing them when
3023 we cleanup this file.
3024 (hppa_reg_struct_has_addr): New function.
3025 (hppa_inner_than): New function.
3026 (hppa_stack_align): New function.
3027 (hppa_pc_requires_run_before_use): New function.
3028 (hppa_instruction_nullified): New function.
3029 (hppa_register_byte): New function.
3030 (hppa_register_virtual_type): New function.
3031 (hppa_store_struct_return): New function.
3032 (hppa_cannot_store_register): New function.
3033 (hppa_frame_args_address): New function.
3034 (hppa_frame_locals_address): New function.
3035 (hppa_smash_text_address): New function.
3036 (hppa_coerce_float_to_double): New function. Requires the inclusion
3039 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3041 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3042 gdbarch-eligible macro to a call to the new associated function
3043 created in hppa-tdep.c.
3044 (INNER_THAN): Likewise.
3045 (STACK_ALIGN): Likewise.
3046 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3047 (INSTRUCTION_NULLIFIED): Likewise.
3048 (REGISTER_BYTE): Likewise.
3049 (REGISTER_VIRTUAL_TYPE): Likewise.
3050 (STORE_STRUCT_RETURN): Likewise.
3051 (CANNOT_STORE_REGISTER): Likewise.
3052 (FRAME_ARGS_ADDRESS): Likewise.
3053 (FRAME_LOCALS_ADDRESS): Likewise.
3054 (SMASH_TEXT_ADDRESS): Likewise.
3055 (COERCE_FLOAT_TO_DOUBLE): Likewise.
3056 (ABOUT_TO_RETURN): Delete, as no longer used.
3058 2002-11-07 Fernando Nasser <fnasser@redhat.com>
3060 * printcmd.c (disassemble_command): Remove obsolete function.
3061 (_initialize_printcmd): Do not create disassemble command here.
3062 * cli/cli-cmds.c (disassemble_command): New function. Implements
3063 disassemble command.
3064 (init_cli_cmds): Create disassemble command here instead.
3066 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3068 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3070 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3072 * regcache.h (regcache_cooked_read_using_offset_hack)
3073 (regcache_cooked_write_using_offset_hack): Delete declarations.
3074 (register_changed): Delete declaration.
3075 * regcache.c (regcache_cooked_read_using_offset_hack)
3076 (regcache_cooked_write_using_offset_hack): Delete functions.
3077 (cooked_xfer_using_offset_hack): Delete function.
3078 (register_changed): Delete function.
3080 2002-11-07 Jim Blandy <jimb@redhat.com>
3082 * macroscope.c: #include "complaints.h".
3083 (sal_macro_scope): Cope with filenames that appear in the symtabs,
3084 but not in the macro table.
3085 * Makefile.in (macroscope.o): Record dependency.
3087 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3089 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3091 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3093 * regcache.c (deprecated_registers_fetched): Update.
3094 * regcache.h (deprecated_registers_fetched): Rename
3096 * remote-vxsparc.c (vx_read_register): Update.
3097 * remote-vxmips.c (vx_read_register): Update.
3098 * remote-vx68.c (vx_read_register): Update.
3099 * irix5-nat.c (fetch_core_registers): Update.
3100 * mipsm3-nat.c (fetch_inferior_registers): Update.
3101 * sun3-nat.c (fetch_inferior_registers): Update.
3102 * symm-nat.c (fetch_inferior_registers): Update.
3103 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3104 (fetch_core_registers): Update.
3105 (fetch_kcore_registers): Update.
3106 * mips-nat.c (fetch_inferior_registers): Update.
3107 * corelow.c (get_core_registers): Update.
3108 * a68v-nat.c (fetch_inferior_registers): Update.
3110 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3112 Put in place the framework necessary for multiarching the hppa targets.
3113 * hppa-tdep.c (hppa_gdbarch_init): New function.
3114 (hppa_dump_tdep): New function.
3115 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3116 tdep structure dumper.
3117 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3118 until the multi-arching conversion has partially been completed.
3120 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3122 * valops.c (value_assign): Merge lval_register case into
3123 lval_reg_frame_relative. Use frame_register and
3124 regcache_cooked_write instead of get_saved_register and
3125 write_register_bytes. After flushing the register cache, try to
3126 re-select the selected frame.
3128 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3130 * regcache.h (deprecated_register_valid): Rename register_valid.
3131 * regcache.c: Update.
3132 * ia64-aix-nat.c: Update.
3133 * i386gnu-nat.c: Update.
3134 * alpha-nat.c: Update.
3135 * sparc-nat.c: Update.
3136 * lynx-nat.c: Update.
3137 * remote-mips.c: Update.
3139 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3141 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3142 to end of file, to be more consistent with the pratice followed
3145 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3147 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3148 (print_float_info): Print registers in float_reggroup.
3149 (print_vector_info): Print registers in vector_reggroup.
3150 (default_print_registers_info): When all, print registers in
3151 all_reggroup. Otherwize, print registers in general_reggroup.
3152 (registers_info): Rewrite. Add support for register groups.
3155 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3157 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3159 (symtab_symbol_info): Remove eons old ifdeffed out code.
3160 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3163 2002-11-06 Theodore A. Roth <troth@openavr.org>
3165 * c-exp.y: Add missing semi-colons.
3166 * f-exp.y: Add missing semi-colons.
3167 * m2-exp.y: Add missing semi-colons.
3168 * p-exp.y: Add missing semi-colons.
3169 Add empty action to start rule to avoid a type clash error when
3170 building with bison >= 1.50.
3172 2002-11-06 Jim Blandy <jimb@redhat.com>
3174 * macrotab.h (struct macro_source_file): Doc fix.
3176 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3178 * varobj.c (child_exists, cplus_number_of_children): Change
3179 STREQ macro references to strcmp.
3180 (cplus_name_of_child): Change code to handle the fact that
3181 fields are not necessarily contiguous with regards to their
3182 access control. This is a fix for PR gdb/792.
3184 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3186 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3187 * gdbarch.h, gdbarch.c: Regnerate.
3188 * frame.h (frame_register): Declare.
3189 * frame.c (frame_register): New function.
3190 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3191 GET_SAVED_REGISTER, otherwize call
3192 generic_unwind_get_saved_register.
3193 (frame_register_read): Use frame_register instead of
3196 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3198 From Jim Ingham <jingham@apple.com>:
3199 * event-top.c (gdb_disable_readline): New function.
3200 (_initialize_event_loop): Move comment.
3202 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3204 * event-loop.c (start_event_loop): Add comment.
3207 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3209 * infcmd.c (default_print_registers_info): Do not call
3210 PRINT_REGISTER_HOOK.
3212 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3214 * sparc-tdep.c (sparc_print_register_hook): Make static.
3215 (sparc_print_registers_info): New function.
3216 (sparc_do_registers_info): New function.
3217 (sparclet_print_registers_info): New function.
3218 (sparclet_do_registers_info): New function.
3219 (do_sparc_print_registers_info): New function.
3220 (sparc_print_registers): New static function, clone of infcmd.c's
3221 default_print_registers_info.
3222 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3223 (sparclet_do_registers_info): Declare.
3224 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3225 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3227 (sparc_do_registers_info): Declare.
3228 (PRINT_REGISTER_HOOK): Delete macro.
3229 (sparc_print_register_hook): Delete declaration.
3231 2002-11-05 David Carlton <carlton@math.stanford.edu>
3233 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3235 (lookup_symbol_aux_local): New function.
3236 (lookup_symbol_aux_symtabs): New function.
3237 (lookup_symbol_aux_psymtabs): New function.
3239 2002-11-05 David Carlton <carlton@math.stanford.edu>
3241 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3242 previous values of 'objfile' and 'block'.
3244 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3246 * values.c (value_change_enclosing_type): Set
3247 enclosing_type field correctly also for the case where
3248 more memory needs to be allocated.
3250 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3252 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3255 * i387-tdep.c (i387_print_float_info): Replace calls to
3256 register_read and deprecated_read_register_gen with calls to
3257 frame_register_read, and make the necessary adjustments to the
3260 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3262 * gdbarch.sh (register_reggroup_p): Allow default value.
3263 * gdbarch.h, gdbarch.c: Regenerate.
3265 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3267 * regcache.h: Add coment indicating replacements for deprecated
3270 2002-11-02 Andrew Cagney <cagney@redhat.com>
3272 * reggroups.h, reggroups.c: New files.
3273 * regcache.c: Include "reggroups.h".
3274 (enum regcache_dump_what): Add `regcache_dump_groups'.
3275 (regcache_dump): Contract size of the "Type" column. When
3276 specified, dump the register's groups.
3277 (maintenance_print_register_groups): New function.
3278 (_initialize_regcache): Add command `maint print register-groups'.
3279 * Makefile.in (COMMON_OBS): Add reggroups.o
3280 (SFILES): Add reggroups.c.
3281 (reggroups_h): Define.
3282 (regcache.o, gdbarch.o): Update dependencies.
3283 (reggroups.o): Specify dependencies.
3284 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3285 Add opaque declaration for `struct reggroup' in generated .h file.
3286 Include "reggroups.h" in generated .c file.
3287 gdbarch.h, gdbarch.c: Re-generate.
3289 2002-11-02 Andrew Cagney <cagney@redhat.com>
3291 * regcache.h (deprecated_read_register_gen): Rename
3293 (deprecated_write_register_gen): Rename write_register_gen.
3294 * i387-tdep.c: Update.
3295 * x86-64-linux-nat.c: Update
3297 * thread-db.c: Update.
3298 * win32-nat.c: Update.
3299 * mips-tdep.c: Update.
3300 * d10v-tdep.c: Update.
3301 * cris-tdep.c: Update.
3302 * remote-sim.c: Update.
3303 * remote-rdi.c: Update.
3304 * remote-rdp.c: Update.
3307 * blockframe.c: Update.
3308 * x86-64-tdep.c: Update.
3309 * xstormy16-tdep.c: Update.
3310 * sh-tdep.c: Update.
3311 * s390-tdep.c: Update.
3312 * rs6000-tdep.c: Update.
3313 * sparc-tdep.c: Update.
3314 * i386-tdep.c: Update.
3315 * dwarf2cfi.c: Update.
3316 * regcache.c: Update.
3318 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3320 New interix-specific files:
3321 * config/i386/nm-interix.h: New file.
3322 * config/i386/interix.mh: New file.
3323 * config/i386/interix.mt: New file.
3324 * i386-interix-nat.c: New file.
3325 * i386-interix-tdep.c: New file.
3327 2002-11-01 Andrew Cagney <cagney@redhat.com>
3329 * frame.h (deprecated_generic_get_saved_register): Rename
3330 generic_get_saved_register.
3331 * blockframe.c (deprecated_generic_get_saved_register): Update.
3332 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3333 (xstormy16_frame_saved_register): Update.
3334 * sh-tdep.c (sh_gdbarch_init): Update.
3335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3336 * ia64-tdep.c (ia64_get_saved_register): Update.
3337 * cris-tdep.c (cris_gdbarch_init): Update.
3338 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3339 * arm-tdep.c (arm_gdbarch_init): Update.
3341 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3343 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3345 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3347 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3348 trampolines in sigaction.
3350 2002-10-31 Andrew Cagney <cagney@redhat.com>
3352 * h8300-tdep.c: Include "gdb_assert.h".
3353 (h8300_print_register): Add gdbarch, file and frame parameters.
3354 Use frame_read_unsigned_register to read the register's value.
3355 Use fprintf_filtered to display output.
3356 (h8300_print_registers_info): Replace h8300_do_registers_info.
3357 (h8300_gdbarch_init): Set print_registers_info.
3359 2002-10-31 Andrew Cagney <cagney@redhat.com>
3361 * frame.c (frame_read_unsigned_register): New function.
3362 (frame_read_signed_register): New function.
3363 * frame.h (frame_read_unsigned_register): Declare.
3364 (frame_read_signed_register): Declare.
3366 2002-10-31 Andrew Cagney <cagney@redhat.com>
3368 * h8500-tdep.c (h8500_print_registers_info): New static function,
3369 clone of infcmd.c's default_print_registers_info.
3370 (h8500_do_registers_info): New funtion.
3371 (h8500_print_register_hook): Rename print_register_hook, make
3374 * config/h8500/tm-h8500.h: Update copyright.
3375 (DEPRECATED_DO_REGISTERS_INFO): Define.
3376 (h8500_do_registers_info: Declare.
3377 (PRINT_REGISTER_HOOK): Delete macro.
3378 (print_register_hook): Delete function.
3380 2002-10-31 Andrew Cagney <cagney@redhat.com>
3382 * z8k-tdep.c (z8k_print_register_hook): Make static.
3383 (z8k_print_registers_info): New static function, clone of
3384 infcmd.c's default_print_registers_info.
3385 (z8k_do_registers_info): New function. Wrap
3386 z8k_print_registers_info.
3387 * config/z8k/tm-z8k.h: Update copyright.
3388 (PRINT_REGISTER_HOOK): Delete macro.
3389 (z8k_print_register_hook): Delete declaration.
3390 (DEPRECATED_DO_REGISTERS_INFO): Define.
3391 (z8k_do_registers_info): Declare.
3393 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3395 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3396 as this is already provided by value.h, and was actually causing
3397 a compilation error because of a conflict in parameter type
3398 declaration due to a missing const keyword.
3399 (low_text_segment_addres): Fix a compilation warning.
3401 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3403 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3404 registers without a name.
3405 (mips_linux_cannot_store_register): Don't store registers without
3408 2002-10-28 David Carlton <carlton@math.stanford.edu>
3410 * symtab.c (find_addr_symbol): Delete. (It was already commented
3412 * symtab.h: Delete prototype for find_addr_symbol.
3414 2002-10-26 Andrew Cagney <cagney@redhat.com>
3416 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3418 gdbarch.h, gdbarch.c: Re-generate.
3419 * infcmd.c (default_print_registers_info): Update reference.
3420 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3421 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3422 * sh-tdep.c (sh_gdbarch_init): Ditto.
3423 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3424 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3426 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3428 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3429 cfi_init_extra_frame_info.
3430 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3431 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3433 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3434 target where necessary. Add more comments and remove the ones
3435 that don't provide any useful information.
3437 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3438 deprecated_read_register_dummy with
3439 frame_unwind_unsigned_register.
3441 * i386-tdep.c (i386_extract_struct_value_address): Use
3442 regcache_raw_read_unsigned instead of
3443 regcache_cooked_read_unsigned since we know that the register
3444 we're reading isn't a pseudo register. Rename variable 'val' into
3445 the more descriptive 'addr'.
3447 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3448 (x86_64_push_return_address): Add comment.
3449 (x86_64_pop_frame): Make static.
3450 (examine_argument): Clarify comment.
3451 (x86_64_skip_prologue): Make prolog_expact variable static.
3453 * dwarf2cfi.c: Fix some formatting problems.
3454 (context_cpy, read_encoded_pointer): Clarify comments.
3456 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3457 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3458 i386 target back into x86_64_gdbarch_init. Add some comments and
3459 remove meaningless ones.
3461 2002-10-25 Andrew Cagney <cagney@redhat.com>
3463 * complaints.h (struct deprecated_complaint): Rename `struct
3465 * complaints.c (complain): Update.
3466 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3467 incorrect comment indicating that "symfile.h" was being included
3468 for the `struct complaint' definition.
3469 * remote-vx.c: Update.
3470 * objc-lang.c: Update.
3471 * xcoffread.c: Update.
3473 * mdebugread.c: Update.
3474 * stabsread.c: Update.
3475 * dwarf2read.c: Update.
3476 * dwarfread.c: Update.
3477 * elfread.c: Update.
3478 * coffread.c: Update.
3479 * stabsread.h: Update.
3480 * dbxread.c: Update.
3481 * buildsym.c: Update.
3482 * gdbtypes.c: Update.
3483 * macrotab.c: Update.
3485 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3487 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3488 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3489 (x86_64_init_abi): ...new function.
3491 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3492 * i386v-nat.c: Include "i386-tdep.h".
3494 2002-10-25 Andrew Cagney <cagney@redhat.com>
3496 * gdbtypes.c (address_space_name_to_int): Update.
3497 (address_space_int_to_name): Update.
3498 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3499 multi-arch predicate.
3500 (address_class_name_to_type_flags): Ditto.
3501 * gdbarch.h, gdbarch.c: Re-generate.
3503 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3505 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3507 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3509 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3511 * symtab.h (INIT_SAL): Delete macro.
3513 * symtab.c (init_sal): New function.
3515 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3516 to init_sal function call.
3517 (find_sal_from_funcs_and_line): Ditto.
3518 (all_sals_for_line): Ditto.
3519 * breakpoint.c (create_internal_breakpoint): Ditto.
3520 (create_fork_vfork_event_catchpoint): Ditto.
3521 (create_exec_event_catchpoint): Ditto.
3522 (parse_breakpoint_sals): Ditto.
3523 (watch_command_1): Ditto.
3524 (handle_gnu_4_16_catch_command): Ditto.
3525 (clear_command): Ditto.
3526 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3527 * infcmd.c (run_stack_dummy): Ditto.
3528 * infrun.c (process_event_stop_test): Ditto.
3529 (check_sigtramp2): Ditto.
3530 (step_over_function): Ditto.
3531 * linespec.c (decode_line_2): Ditto.
3532 (decode_line_1): Ditto.
3533 * source.c (line_info): Ditto.
3534 * symtab.c (find_pc_sect_line): Ditto.
3536 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3538 * dwarf2cfi.c (struct context)
3539 (struct context_reg): Moved to dwarf2cfi.h
3540 (context_alloc, frame_state_alloc, context_cpy):
3541 Made extern instead of static, removed prototypes.
3542 * dwarf2cfi.h (struct context)
3543 (struct context_reg): New, moved from dwarf2cfi.c
3544 (context_alloc, frame_state_alloc, context_cpy):
3546 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3547 Changed from static to extern.
3548 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3549 (LINUX_SIGCONTEXT_FP_OFFSET)
3550 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3551 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3552 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3553 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3554 set_gdbarch_*() calls now use x86-64 specific functions
3555 instead of DWARF2 CFI ones.
3556 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3557 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3558 (x86_64_init_extra_frame_info): New prototypes.
3560 2002-10-23 David Carlton <carlton@math.stanford.edu>
3562 * linespec.c: #include "parser-defs.h".
3563 Delete prototype for find_template_name_end.
3564 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3566 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3568 * NEWS: add recent mi fixes.
3569 * varobj.c (struct varobj): Add new "updated" flag.
3570 (new_variable): Default "updated" flag to 0.
3571 (varobj_set_value): Set "updated" flag to 1 if value
3573 (varobj_update): Check varobj "updated" flag before
3574 comparing old and refreshed values. Fix for
3577 2002-10-23 David Carlton <carlton@math.stanford.edu>
3579 * parse.c (parse_exp_1): Use BLOCK_START.
3580 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3582 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3584 2002-10-23 David Carlton <carlton@math.stanford.edu>
3586 * symtab.c: Delete cplusplus_hint.
3587 Delete prototype for find_template_name_end.
3589 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3591 * symtab.h: Update comment.
3593 2002-10-23 Michael Snyder <msnyder@redhat.com>
3595 * printcmd.c (address_info): Restore quotes in output.
3596 * valops.c (value_of_local): Restore quotes in error message.
3598 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3600 * symtab.c (symbol_demangled_name): New function.
3601 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3602 turning most of it into a function.
3603 (symbol_demangled_name): Export.
3605 2002-10-23 Michael Snyder <msnyder@redhat.com>
3607 * valops.c (value_of_local): Restore quotes in error message.
3609 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3611 * symtab.c (symbol_init_language_specific): New function.
3612 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3613 turning most of it into a function.
3614 (symbol_init_language_specific): Export.
3616 2002-10-23 David Carlton <carlton@math.stanford.edu>
3618 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3619 (dwarf_attr_name): Ditto.
3620 (dwarf_type_encoding_name): Ditto.
3621 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3622 (process_die): Handle DW_TAG_namespace,
3623 DW_TAG_imported_declaration, DW_TAG_imported_module.
3624 (read_namespace): New function.
3626 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3628 * configure.in: Define NEW_PROC_API on Interix too.
3629 * configure: Regenerate.
3631 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3633 * configure: Regenerate using the proper version of autoconf.
3635 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3637 * findvar.c (read_var_value): Temporarily disable TLS code, until
3638 complete TLS support is added.
3640 2002-10-21 Jim Blandy <jimb@redhat.com>
3641 Elena Zannoni <ezannoni@redhat.com>
3643 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3644 for thread local storage locations.
3645 (struct symbol): Add objfile field.
3646 (SYMBOL_OBJFILE): Define.
3647 * dwarf2read.c (is_thread_local): New static variable.
3648 (new_symbol): If variable is in thread local fill in address class
3649 and objfile appropriately.
3650 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3652 * printcmd.c (address_info): Print the information for thread
3653 local storage variable.
3654 * findvar.c (read_var_value): In case of thread local variable,
3655 defer to the target vector code to compute address.
3657 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3659 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3660 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3662 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3664 * symtab.h (address_class): Rename
3665 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3666 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3667 * printcmd.c (address_info): Ditto.
3668 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3670 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3672 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3673 DBREG_DRX macro to acces debug registers.
3675 * Makefile.in (i386obsd-tdep.o): New target.
3677 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3678 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3680 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3681 * config/i386/obsd.mt: New file.
3682 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3683 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3684 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3685 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3686 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3687 * i386obsd-tdep.c: New file.
3689 2002-10-19 Adam Fedor <fedor@gnu.org>
3691 * objc-exp.y (name_not_typename): Fix invalid comment.
3693 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3695 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3696 to allocate partial syms and macro byte caches.
3698 2002-10-18 David Carlton <carlton@math.stanford.edu>
3700 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3702 2002-10-18 Adam Fedor <fedor@gnu.org>
3704 * stabsread.c (find_name_end): New function.
3705 (define_symbol): Use it.
3707 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3709 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3710 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3711 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3712 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3714 2002-10-17 David Carlton <carlton@math.stanford.edu>
3716 * symfile.h: Add opaque declaration for struct obstack.
3717 Declare obsavestring to take a const char *.
3718 * symfile.c (obsavestring): Make first argument a const char *.
3720 2002-10-16 Adam Fedor <fedor@gnu.org>
3722 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3723 names when matching breakpoints in current file.
3725 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3727 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3728 (read_tag_pointer_type): Add address class support.
3729 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3730 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3732 * gdbarch.h, gdbarch.c: Regenerate.
3733 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3734 (make_type_with_address_space, recursive_type_dump): Add address
3736 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3737 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3738 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3740 2002-10-16 Klee Dienes <kdienes@apple.com>
3742 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3743 to get the last character of a char[] buffer, not
3744 name[sizeof(vptr_name)-1].
3746 2002-10-14 Adam Fedor <fedor@gnu.org>
3748 * symtab.h: New objc_specific struct.
3749 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3750 (SYMBOL_DEMANGLED_NAME): Likewise.
3752 2002-10-14 Adam Fedor <fedor@gnu.org>
3754 * symfile.c (init_filename_language_table): Add ObjC file extension.
3756 2002-10-14 Adam Fedor <fedor@gnu.org>
3758 * utils.c (puts_filtered_tabular): New function.
3759 (fprintf_symbol_filtered): Get ObjC demangled name.
3760 * defs.h (puts_filtered_tabular): Declared.
3762 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3764 * c-lang.h (c_type_print_varspec_prefix): Delete.
3765 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3766 ``need_post_space'' parameter. Adjust all callers.
3768 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3770 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3771 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3772 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3773 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3775 2002-10-13 Adam Fedor <fedor@gnu.org>
3777 * source.c (print_source_lines): Update comments.
3779 2002-10-13 Adam Fedor <fedor@gnu.org>
3781 * valops.c (value_of_local): New function.
3782 (value_of_this): Use it.
3783 * value.h (value_of_local): Declared.
3785 2002-10-13 Adam Fedor <fedor@gnu.org>
3787 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3788 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3790 2002-10-12 Adam Fedor <fedor@gnu.org>
3792 * language.c (binop_result_type): Add language_objc to case.
3793 (integral_type): Likewise.
3794 (character_type): Likewise.
3795 (string_type): Likewise.
3796 (boolean_type): Likewise.
3797 (structured_type): Likewise.
3798 (binop_type_check): Likewise.
3800 2002-10-11 Adam Fedor <fedor@gnu.org>
3802 * printcmd.c (address_info): Print 'self' for ObjC.
3804 2002-10-11 Adam Fedor <fedor@gnu.org>
3806 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3809 2002-10-11 Adam Fedor <fedor@gnu.org>
3811 * language.h (CAST_IS_CONVERSION): Add language_objc.
3813 2002-10-11 Adam Fedor <fedor@gnu.org>
3815 * defs.h (enum language): Add language_objc.
3817 2002-10-11 Klee Dienes <kdienes@apple.com>
3819 * corefile.c (read_memory_typed_address): New function.
3820 * gdbcore.h (read_memory_typed_address): Add prototype.
3821 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3822 to read a value destined for a CORE_ADDR, not read_memory_integer.
3823 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3824 (f77_get_dynamic_lowerbound): Ditto.
3826 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3828 * utils.c (string_to_core_addr): After turning string into
3829 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3830 which will do necessary sign-extension, etc.
3832 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3834 * c-exp.y (THIS): Delete token and grammar rule.
3835 (yylex): Don't return THIS.
3836 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3837 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3838 * demangle.c (cplus_markers): Update comment. Put '$'
3839 first. Remove CPLUS_MARKER.
3840 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3841 * jv-exp.y (THIS): Delete token and grammar rule.
3842 (yylex): Don't return THIS.
3843 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3844 * objc-exp.y (THIS): Delete token and grammar rule.
3845 (yylex): Don't return THIS.
3846 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3847 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3848 (read_member_functions): Likewise for opname.
3849 (read_tilde_fields): Use is_cplus_marker.
3851 * defs.h (CPLUS_MARKER): Don't define.
3852 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3853 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3854 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3855 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3856 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3858 * config/i386/tm-i386v4.h: Delete file.
3859 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3860 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3861 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3862 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3863 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3864 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3865 * config/i386/i386v4.mt (TM_FILE): Likewise.
3866 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3868 2002-10-10 Marko Mlinar <markom@opencores.org>
3870 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3871 accidentially not commited 2002-10-09
3872 * gdbarch.h, gdbarch.c: Re-generate.
3874 2002-10-09 Marko Mlinar <markom@opencores.org>
3876 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3877 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3878 * gdbarch.h, gdbarch.c: Re-generate.
3880 2002-10-08 Petr Sorfa <petrs@caldera.com>
3882 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3884 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3885 so we can work on more than one compilation unit at a time. This
3886 helps prepare GDB to handle inter-CU die references.
3887 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3888 the code to be defined before struct comp_unit_head.
3889 (comp_unit_head): Added new members - offset, cu_head,
3890 begin_die, next and dwarf2_abbrevs.
3891 (dwarf2_abbrevs): Removed single static var; now member of
3892 struct comp_unit_head.
3893 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3895 (psymtab_to_symtab_1): Changed to work with the new
3896 struct comp_unit_head.
3897 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3898 constructs the dwarf2_abbrevs[] inside the cu_header.
3899 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3900 dwarf2_abbrev table to clean up.
3901 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3902 handling of dwarf2_abbrevs inside the cu_header.
3903 (read_partial_die): Now supports the call to the new
3904 dwarf2_lookup_abbrev.
3905 (read_full_die): Now supports the call to the new
3906 dwarf2_lookup_abbrev.
3908 2002-10-06 Christopher Faylor <cgf@redhat.com>
3910 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3911 insure that shell variables, such as "transformed_name" are propagated
3912 to later shell statements in rule.
3914 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3916 * config/i386/nm-i386sco.h: Add protection against
3917 multiple-inclusion. Include "i386/nm-i386v.h".
3918 (REGISTER_U_ADDR): Remove define.
3919 (i386_register_u_addr): Remove prototype.
3921 2002-10-04 Michael Snyder <msnyder@redhat.com>
3923 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3924 before treating it as a single-step event.
3926 2002-10-03 Adam Fedor <fedor@gnu.org>
3928 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3929 (objc_demangle): Remove assignment in if statements, Replace
3931 (add_msglist): Likewise.
3932 (end_msglist): Likewise.
3933 (complare_selectors): Likewise.
3934 (selectors_info): Likewise.
3935 (compare_classes): Likewise.
3936 (classes_info): Likewise.
3937 (print_object_command): Likewise.
3938 (find_objc_msgcall_submethod): Replace PTR with void *.
3939 * objc-lang.h: Remove check for __STDC__.
3941 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3943 * ui-out.h (ui_out_field_fmt_int): New prototype.
3944 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3945 of field width and alignment.
3946 * stack.c (print_frame_info_base): When printing frame level, use
3947 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3950 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3952 * MAINTAINERS: Add self to Write After Approval list.
3954 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3956 * infcmd.c (interrupt_target_command_wrapper): Delete.
3957 (interrupt_target_command): Make non static.
3958 (nofp_registers_info): Make static.
3959 * stack.c (return_command_wrapper): Delete.
3960 (return_command): Make non static.
3962 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3964 * event-top.c (gdb_setup_readline): New function. Code moved from
3965 _initialize_event_loop().
3966 (_initialize_event_loop): Call gdb_setup_readline().
3968 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3970 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3971 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3972 * gdbarch.h, gdbarch.c: Re-generate.
3974 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3977 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3979 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3980 of fill_in_vptr_fieldno.
3982 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3984 * inferior.h (registers_info, stepi_command, nexti_command,
3985 continue_command, interrupt_target_command): Export from infcmd.c.
3986 * frame.h (args_info, selected_frame_level_changed_hook,
3987 return_command): Export from stack.c.
3988 * v850ice.c (stepi_command, nexti_command, continue_command): use
3989 prototypes from inferior.h.
3990 * tracepoint.c (registers_info, args_info, locals_info): Use
3991 prototypes from frame.h and inferior.h.
3992 * Makefile.in (mi-main.o): Add dependency on frame.h.
3994 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3996 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3997 value in register 3 adjusted by ppc_gp0_regnum.
3999 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
4001 2002-10-02 Marko Mlinar <markom@opencores.org>
4003 * MAINTAINERS: Add myself to the Write After Approval list.
4005 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
4007 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4008 of the section for the N64 ABI, fixed.
4010 * config/mips/tm-irix6.h: Include solib.h.
4012 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
4014 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4017 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4019 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4020 and that "mi0" syntax has been removed.
4022 2002-09-30 David Carlton <carlton@math.stanford.edu>
4024 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4025 * ppc-sysv-tdep.c: #include "gdb_string.h".
4026 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4029 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4031 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4032 "vrsave"'s register number.
4034 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4036 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4037 use frame_unwind_signed_register to obtain the PC.
4038 (mips_frame_chain): Handle a generic dummy frame.
4039 (mips_init_extra_frame_info): When a generic dummy frame, don't
4040 re-compute the frame base.
4041 (mips_pop_frame): Handle generic dummy frames.
4042 (mips_gdbarch_init): When generic dummy frames, set
4043 use_generic_dummy_frames, push_dummy_frame to
4044 generic_push_dummy_frame, pc_in_call_dummy to
4045 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4046 generic_save_dummy_frame_tos.
4048 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4050 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
4051 against TOP when TOP was explictly set.
4052 (generic_push_dummy_frame): Set TOP to zero.
4054 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
4056 * event-loop.c (start_event_loop): Rename variable 'result' to
4057 'gdb_result', to avoid conflicts with upcoming intepreters changes.
4059 2002-09-30 Keith Seitz <keiths@redhat.com>
4061 * gdb-events.sh (selected_thread_changed): New event.
4062 * gdb-events.c: Regenerated.
4063 * gdb-events.h: Regenerated.
4065 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
4067 * MAINTAINERS: Add self to Write After Approval list.
4069 2002-09-30 Fernando Nasser <fnasser@redhat.com>
4071 * disasm.c: New file.
4072 * disasm.h: New file.
4073 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4074 (compare_lines): Ditto.
4075 (dump_insns): Ditto.
4076 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4078 (do_assembly_only): Ditto.
4079 (do_disassembly): Renamed to gdb_disassembly and moved to
4080 disasm.c. Sdded uiout argument.
4081 * Makefile.in: Add new files. Reorder SFILES list. Update
4082 dependencies. Include libgdb.a later in the insight executable.
4084 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4086 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4087 bfd/elf64-alpha-fbsd.c.
4089 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4091 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4094 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4096 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4098 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4100 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4101 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4102 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4103 (S_msg_sig_post_reply): Ditto.
4105 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
4107 * sh-tdep.c (sh_use_struct_convention): Use definition according
4109 (sh_push_arguments): Store in register with correct endianess.
4110 (sh_default_store_return_value): Ditto.
4111 (sh_gdbarch_init): Set sizeof long double to 8.
4113 2002-09-27 Mark Kettenis <kettenis@gnu.org>
4115 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4116 Fix some whitespace problems.
4118 2002-09-27 David Carlton <carlton@math.stanford.edu>
4120 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4121 (mcore-tdep.o): Ditto.
4122 (ns32k-tdep.o): Ditto.
4123 (ns32knbsd-tdep.o): Ditto.
4125 (vax-tdep.o): Ditto.
4126 * cris-tdep.c: #include "gdb_string.h"
4127 * mcore-tdep.c: Ditto.
4128 * ns32k-tdep.c: Ditto.
4129 * ns32knbsd-tdep.c: Ditto.
4131 * vax-tdep.c: Ditto.
4133 2002-09-27 David Carlton <carlton@math.stanford.edu>
4135 * config/djgpp/fnchange.lst: Add entries for
4136 gdb/testsuite/gdb.c++/m-static files.
4138 2002-09-27 Jim Wilson <wilson@redhat.com>
4140 * MAINTAINERS: Add myself to the Write After Approval list.
4142 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4144 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4147 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4149 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4152 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4154 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4155 (rs6000_struct_return_address): Delete variable.
4156 (rs6000_store_struct_return): Update.
4157 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4158 deprecated_extract_struct_value_address.
4159 (rs6000_frame_align): New function.
4160 (rs6000_gdbarch_init): Set frame_align.
4162 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4164 From Grace Sainsbury <graces@redhat.com>:
4165 * Makefile.in (gdbtk-main.o): New target.
4166 (gdb.o): New target.
4168 (main.o): Update dependencies.
4169 (gdb$(EXEEXT)): Add gdb.o.
4170 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4171 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4172 (SUBDIR_GDBTK_CLEAN): Set.
4173 (install-gdbtk): Install the insight binary.
4174 (uninstall-gdbtk): New target.
4175 (all-gdbtk, clean-gdbtk): New rule.
4176 * top.c (use_windows): Default to zero.
4177 * main.c: Include "main.h".
4179 (struct captured_main_args): Delete.
4180 (gdb_main): New function.
4184 2002-09-25 Andrew Cagney <cagney@redhat.com>
4186 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4187 (frame_map_regnum_to_name): New function.
4188 (frame_map_name_to_regnum): New function.
4189 * frame.h (frame_map_name_to_regnum): Declare.
4190 (frame_map_regnum_to_name): Declare.
4191 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4192 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4193 * parse.c: Do not include "builtin-regs.h".
4194 (target_map_name_to_register): Delete function.
4195 (write_dollar_variable): Use frame_map_name_to_regnum.
4196 * parser-defs.h (target_map_name_to_register): Delete declaration.
4197 * expprint.c: Include "frame.h".
4198 (print_subexp): Use frame_map_regnum_to_name.
4199 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4200 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4202 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4204 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4205 wasn't saved, and the next innermost frame is a dummy, return the
4206 dummy frame's link register.
4208 2002-09-24 Jim Blandy <jimb@redhat.com>
4210 Fix from Paul Breed:
4211 * main.c (captured_main): Add a `break' after the case for 'b'.
4213 2002-09-24 Keith Seitz <keiths@redhat.com>
4215 * varobj.c (c_type_of_child): Use get_target_type instead
4216 of TYPE_TARGET_TYPE.
4218 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4220 * source.c (get_current_or_default_source_symtab_and_line): Remove
4222 (set_default_source_symtab_and_line): New function. Attempts to
4223 determine a source file to list lines from if one is not currently
4225 (get_current_source_symtab_and_line): Initialize sal.pc and
4227 (set_current_source_symtab_and_line): Mark argument as const.
4228 * source.h: Update declarations and comments.
4229 * linespec.c (decode_line_1): Replace call to removed routine above.
4230 * stack.c (print_frame_info_base): Ditto.
4231 * cli/cli-cmds.c (edit_command): Ditto.
4232 (list_command): Ditto.
4234 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4236 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4237 sal.pc and sal.end fields.
4238 (get_current_or_default_source_symtab_and_line): Ditto.
4239 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4240 so we do not cause a new source symtab to be searched for (reverting an
4241 unintentional change from the 2002-09-20 patch).
4242 * scm-lang.c (scm_unpac): Ditto.
4244 2002-09-21 Andrew Cagney <cagney@redhat.com>
4246 * complaints.c (symfile_explanations): Remove new-line from
4247 ``isolated_message''.
4248 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4249 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4251 2002-09-20 Nick Clifton <nickc@redhat.com>
4253 * NEWS: Announce that V850EA ISA is no longer supported.
4254 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4256 2002-09-20 David Carlton <carlton@math.stanford.edu>
4258 * Makefile.in (c-lang.o): Correct dependencies.
4259 (utils.o): Gather dependencies.
4261 * c-lang.c: #include "gdb_string.h"
4263 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4265 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4266 * cli/cli-cmds.c (list_command): New function. Implements the new
4268 (_init_cli_cmds): Add new command definition.
4269 * gdb.1: Document edit command.
4270 * doc/gdb.texinfo: Document edit command.
4272 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4274 * source.c: Make global variables current_source_symtab and
4275 current_source_line static.
4276 (list_command): Moved to cli/cli-cmds.c.
4277 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4278 (get_first_line_listed): New accessor function.
4279 (get_lines_to_list): New accessor function.
4280 (get_current_source_symtab_and_line): New function. Retrieves the
4281 position in the source code that we consider current.
4282 (get_current_or_default_source_symtab_and_line): New function.
4283 Like the above but attempts to determine a default position if one
4284 is not currently defined.
4285 (set_current_source_symtab_and_line): New function. Sets the source
4286 code position considered current and returns the previously set one.
4287 (clear_current_source_symtab_and_line): Reset stored information about
4288 a current source line.
4289 (_initialize_source): Remove registration for the "list" command and
4291 * source.h: Add declarations for the new functions above.
4292 * symtab.h: Remove declarations for the global variables mentioned
4294 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4295 obtain current source line.
4296 * linespec.c (decode_line_1): Ditto.
4297 * macroscope.c (default_macro_scope): Ditto.
4298 * scm-lang.c (scm_unpac): Ditto.
4299 * stack.c (print_frame_info_base): Ditto.
4300 * symfile.c (clear_symtab_users): Ditto.
4301 * symtab.c (decode_line_spec): Ditto.
4302 * cli/cli-cmds.c (list_command): Moved here from source.c.
4303 (ambiguous_line_spec): Moved here from source.c.
4304 (_init_cli_cmds): Add definition for "list" and its alias.
4305 * Makefile.in: Update dependencies.
4307 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4309 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4310 with what gcc thinks is correct.
4312 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4314 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4315 multiple register push instruction.
4317 2002-09-19 Jim Blandy <jimb@redhat.com>
4319 Add support for distinct host and target character sets.
4320 * charset.c, charset.h: New files.
4321 * c-exp.y: #include "charset.h".
4322 (yylex): Convert character and string literals to the target
4323 character set, before returning them as the semantic value of the
4325 * c-lang.c: #include "charset.h".
4326 (c_emit_char): Use charset-specific methods to recognize
4327 characters with backslash escape forms, to decide which characters
4328 to print literally and which to print using numeric escape
4329 sequences, and to convert target characters to host characters
4331 * utils.c: #include "charset.h".
4332 (no_control_char_error): New function.
4333 (parse_escape): Use charset-specific methods to recognize
4334 backslash escapes, parse `control character' notation, and convert
4335 characters from the host character set to the target character set.
4336 * configure.in: Set the default host character set.
4337 Check where to find iconv, and what its argument types might be.
4338 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4339 * Makefile.in (SFILES): List charset.c.
4340 (COMMON_OBS): List charset.o.
4341 (charset.o): New rule.
4342 (charset_h): New header dependency variable.
4343 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4344 (LIBICONV): New variable, set by configure.
4345 (CLIBS): Include $(LIBICONV) here.
4346 * aclocal.m4, config.in, configure: Regenerated.
4348 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4350 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4353 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4355 * gdb_mbuild.sh: New file.
4357 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4359 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4361 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4363 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4364 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4365 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4366 valops.c, value.h: Revert previous change.
4368 2002-09-18 Michael Snyder <msnyder@redhat.com>
4370 Preliminary support for Objective-C:
4371 * defs.h (language_objc): New enum value.
4372 (puts_filtered_tabular): Declaration only, exported from utils.c.
4373 (skip_quoted): Delete, declared in completer.h.
4374 * c-exp.y: Include completer.h.
4377 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4378 New operator enum values.
4379 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4380 * language.c (binop_result_type): Handle language_objc case.
4381 (integral_type, character_type, string_type, boolean_type,
4382 structured_type, binop_type_check): Ditto.
4383 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4384 (struct objc_specific): Add to general_symbol_info.
4385 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4386 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4387 * parser-defs.h (struct objc_class_str): New struct type.
4388 (start_msglist, end_msglist, add_msglist): Declaration only,
4389 exported from objc-lang.c.
4390 * value.h (value_of_local, value_nsstring,
4391 call_function_by_hand_expecting_type): Exported from valops.c.
4392 * valops.c (find_function_addr): Export.
4393 (call_function_by_hand_expecting_type): New function.
4394 (value_of_local): New function.
4395 * symfile.c (init_filename_language_table): Add ".m" extension
4397 * utils.c (puts_filtered_tabular): New function.
4398 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4399 (set/show demangle): Extend help-string to refer to ObjC.
4400 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4401 * stabsread.c (symbol_reference_defined): Objective-C symbols
4402 may contain colons: make allowances when scanning stabs strings
4404 (objc_find_colon): New function.
4405 * printcmd.c (address_info): If language == objc then print
4406 "self" instead of "this".
4407 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4408 OP_NSSTRING, and OP_SELF.
4409 (prefixify_subexp): Ditto.
4410 * source.c (print_source_lines): Mention objc in comment.
4411 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4414 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4416 * complaints.h: Update copyright.
4417 (struct complaints): Declare.
4418 (struct complaint): Make `message' constant.
4419 (internal_complaint): Declare.
4420 (complaint): Declare.
4421 (complaint_root): Delete declaration.
4422 (symfile_complaints): Delete declaration.
4423 (struct complaints): Add opaque declaration.
4424 (clear_complaints): Add a complaints parameter.
4425 * complaints.c: Update copyright.
4426 (enum complaint_series): Define.
4427 (complaint_root): Delete.
4428 (struct complaints): Define.
4429 (complaint_sentinel, symfile_complaint_book): New variables.
4430 (symfile_explanations, symfile_complaints): New variables.
4432 (get_complaints): New function.
4433 (vcomplaint): New function.
4434 (complaint): New function.
4435 (internal_complaint): New function.
4436 (complain): Call vcomplain with symfile_complaint.
4437 (clear_complaints): Rewrite.
4438 (_initialize_complaints): Use add_setshow_command.
4439 * Makefile.in (complaints.o): Update dependencies.
4440 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4441 to call to clear_complaints.
4442 (new_symfile_objfile, reread_symbols): Ditto.
4443 (oldsyms_complaint): Delete.
4444 (empty_symtab_complaint, unknown_option_complaint): Delete.
4445 (free_named_symtabs): Use complaint instead of complain.
4447 2002-09-18 Michael Snyder <msnyder@redhat.com>
4449 Contributed by Apple Computer, Inc. Merged with current sources
4450 by Adam Fedor <fedor@doc.com> [cagney].
4452 * objc-lang.c: First clean-up round: comments, indentation.
4453 * objc-lang.h: Ditto.
4454 * objc-lang.y: Ditto.
4456 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4458 * maint.c (maintenance_internal_error): Print the parameter as the
4460 (maintenance_internal_warning): New function.
4461 (_initialize_maint_cmds): Add command `maint internal-warning'.
4463 * defs.h (internal_warning, internal_vwarning): Declare.
4464 * utils.c (struct internal_problem): Define.
4465 (internal_vproblem): New function.
4466 (internal_warning): New function.
4467 (internal_vwarning): New function.
4468 (internal_warning_problem, internal_error_problem): New variables.
4469 (internal_verror): Just call internal_vproblem.
4471 2002-09-18 Michael Snyder <msnyder@redhat.com>
4473 * objc-lang.c: New file, support for Objective-C.
4474 Preliminary check-in, not yet integrated into gdb.
4475 * objc-lang.h: New file.
4476 * objc-exp.y: New file.
4478 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4480 * infrun.c (signal_stop_update): Convert definition to ISO C.
4481 (signal_print_update): Ditto.
4482 (signal_pass_update): Ditto.
4483 * inflow.c (terminal_save_ours): Ditto.
4485 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4488 * config/djgpp/fnchange.lst: Handle name clashes between
4489 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4492 * i386-linux-tdep.h: Fix tipo.
4494 2002-09-18 Adam Fedor <fedor@gnu.org>
4496 * MAINTAINERS: Add myself to the Write After Approval list.
4498 2002-09-18 Jim Blandy <jimb@redhat.com>
4500 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4501 texthigh and textlow to reader-specific structs caused
4502 objfile_relocate to miss them. This is fixable, but the work that
4503 the change was supposed to prepare GDB for never got done anyway.
4505 2002-09-18 David Carlton <carlton@math.stanford.edu>
4507 * MAINTAINERS: Alphabetize Write After Approval list.
4509 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4512 * values.c (value_static_field): Call read_var_value.
4514 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4516 * valops.c (hand_function_call): Align the initial stack pointer
4517 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4518 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4520 * mips-tdep.c (mips_frame_align): New function.
4521 (mips_gdbarch_init): Set frame_align.
4522 * gdbarch.sh (FRAME_ALIGN): New method.
4523 * gdbarch.h, gdbarch.c: Re-generate.
4525 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4527 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4530 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4532 * NEWS: Mention that MIPS $fp behavior changed.
4533 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4534 reference to FP_REGNUM.
4535 (mipsnbsd_cannot_store_register): Ditto.
4536 * mips-linux-nat.c: Update copyright.
4537 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4538 (mips_linux_cannot_store_register): Ditto.
4539 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4540 * config/mips/tm-mips.h: Update copyright.
4541 (FP_REGNUM): Delete macro.
4542 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4543 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4544 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4545 (mips_r3041_reg_names, mips_r3051_reg_names)
4546 (mips_r3081_reg_names): Replace "fp" with "".
4549 2002-09-17 Theodore A. Roth <troth@verinet.com>
4551 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4552 generic_read_register_dummy() (PR gdb/703).
4553 (avr_push_return_address): #if 0 out unused vars.
4554 (avr_gdbarch_init): Enable use of avr_push_return_address().
4556 2002-09-17 Michael Snyder <msnyder@redhat.com>
4558 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4559 RTE will take care of it.
4561 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4563 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4564 invalid, return SP_REGNUM.
4566 2002-09-17 Michael Snyder <msnyder@redhat.com>
4568 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4569 point registers without sign extension.
4571 2002-09-17 Andrew Cagney <cagney@redhat.com>
4573 * blockframe.c (deprecated_read_register_dummy): Rename
4574 generic_read_register_dummy.
4575 * frame.c (frame_unwind_signed_register): New function.
4576 (frame_unwind_unsigned_register): New function.
4577 * frame.h (frame_unwind_signed_register): Declare.
4578 (frame_unwind_unsigned_register): Declare.
4579 (deprecated_read_register_dummy): Rename
4580 generic_read_register_dummy.
4582 * h8300-tdep.c (h8300_frame_chain): Update.
4583 (h8300_frame_saved_pc): Update.
4584 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4585 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4586 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4587 (s390_frame_chain): Update.
4588 * v850-tdep.c (v850_find_callers_reg): Update.
4589 (v850_frame_saved_pc): Update.
4590 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4591 (m32r_find_callers_reg): Update.
4592 (m32r_frame_saved_pc): Update.
4593 * sh-tdep.c (sh_find_callers_reg): Update.
4594 (sh64_get_saved_pr): Update.
4595 (sh_init_extra_frame_info): Update.
4596 (sh_init_extra_frame_info): Update.
4597 (sh64_init_extra_frame_info): Update.
4598 (sh64_init_extra_frame_info): Update.
4599 * mcore-tdep.c (mcore_find_callers_reg): Update.
4600 (mcore_frame_saved_pc): Update.
4601 (mcore_init_extra_frame_info): Update.
4602 * i386-tdep.c (i386_frame_saved_pc): Update.
4603 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4604 (ia64_init_extra_frame_info): Update.
4605 (ia64_init_extra_frame_info): Update.
4606 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4607 * cris-tdep.c (cris_init_extra_frame_info): Update.
4608 * avr-tdep.c (avr_frame_chain): Update.
4609 (avr_init_extra_frame_info): Update.
4610 (avr_frame_saved_pc): Update.
4611 * arm-tdep.c (arm_find_callers_reg): Update.
4612 (arm_init_extra_frame_info): Update.
4613 (arm_frame_saved_pc): Update.
4615 2002-09-17 Tom Tromey <tromey@redhat.com>
4617 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4620 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4622 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4623 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4625 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4628 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4630 * osfsolib.c: Remove file, replaced by solib-osf.c.
4631 * Makefile.in: Remove compilation rules for osfsolib.c.
4633 2002-09-16 David Carlton <carlton@math.stanford.edu>
4635 * cp-valprint.c (cp_print_class_method): Correct args to
4636 check_stub_method_group.
4638 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4640 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4641 `set architecture'. Unify naming convention of functions.
4642 (h8300_skip_prologue): Improve prologue analysis.
4643 (h8300_push_arguments): Rewritten to more closely match GCC's
4644 bizarre argument-passing behavior, along with the comment describing
4646 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4647 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4648 sim, remote-e7000.c, remote-hms.c and remote.c
4650 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4652 * i386-tdep.c (gdb_print_insn_i386): Removed.
4653 (i386_print_insn): New function.
4654 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4655 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4658 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4660 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4663 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4665 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4666 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4667 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4669 2002-09-13 Christopher Faylor <cgf@redhat.com>
4671 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4673 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4675 * gdbtypes.c (check_stub_method): Make static.
4676 (check_stub_method_group): New function.
4677 * gdbtypes.h: Update prototypes.
4678 * cp-support.c: New file.
4679 * cp-support.h: New file.
4681 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4682 (update_method_name_from_physname): New function.
4683 (read_member_functions): Correct method names for operators
4684 and v3 constructors/destructors. Separate v2 constructors and
4686 * Makefile.in (stabsread.o): Update dependencies.
4687 (SFILES): Add cp-support.c.
4688 (COMMON_OBS): Add cp-support.o.
4689 (cp_support_h, cp-support.o): Add.
4691 * cp-valprint.c (cp_print_class_method): Call
4692 check_stub_method_group instead of check_stub_method. Remove
4694 * p-valprint.c (pascal_object_print_class_method): Likewise.
4695 * valops.c (search_struct_method): Likewise.
4696 (find_method_list, value_struct_elt_for_reference): Likewise.
4698 2002-09-13 Andrew Cagney <cagney@redhat.com>
4700 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4701 * gdbarch.h, gdbarch.c: Regenerate.
4703 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4705 * frame.c (find_saved_register): Delete function.
4706 * frame.h (find_saved_register): Delete declaration.
4709 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4711 * mips-tdep.c (read_next_frame_reg): Re-hack using
4712 frame_register_unwind.
4714 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4716 * mips-tdep.c (mips_get_saved_register): Re-hack using
4717 frame_register_unwind.
4719 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4721 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4722 vector. Will be useful for Interix.
4723 * gdbarch.h, gdbarch.c: Regenerate.
4725 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4726 name of the malloc function by NAME_OF_MALLOC.
4728 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4730 * value.h (find_function_in_inferior): Add const keyword to
4731 one of the parameters. Allows us to invoke this function with
4733 * valops.c (find_function_in_inferior): Likewise.
4735 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4737 * exec.c (xfer_memory): Fix compilation warning with old versions
4739 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4741 2002-09-12 David Carlton <carlton@math.stanford.edu>
4743 * symtab.h: Run through gdb_indent.h.
4744 Add 2002 to Copyright year list.
4746 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4748 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4750 * MAINTAINERS: Add myself to write after approval list.
4752 2002-09-11 J. Brobecker <brobecker@gnat.com>
4754 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4756 2002-09-11 J. Brobecker <brobecker@gnat.com>
4758 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4761 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4763 * procfs.c (do_detach): Clear current signal, not just fault.
4764 Corrects problem with breakpoint trap signal leaking to detached
4767 2002-09-10 Michael Snyder <msnyder@redhat.com>
4769 * buildsym.c (finish_block): Protect against null pointer.
4771 2002-09-10 Andrew Cagney <cagney@redhat.com>
4773 * infcmd.c (default_print_registers_info): Send all output to
4774 ``file'' instead of ``gdb_stdout''.
4776 2002-09-10 Michael Snyder <msnyder@redhat.com>
4778 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4779 LONGEST, and use signed register read (addresses are sign-
4782 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4784 * event-loop.c (gdb_do_one_event): Make public.
4785 * event-loop.h (gdb_do_one_event): Declare.
4787 2002-09-10 Jeff Law <law@redhat.com>
4789 * infttrace.c (child_resume): Simplify and rework to avoid
4792 2002-09-09 Fred Fish <fnf@intrinsity.com>
4794 * printcmd.c (print_scalar_formatted): "len" is the number of
4795 target bytes, NOT the number of target bits.
4797 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4799 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4800 * top.c (init_main): Set rl_terminal_name.
4802 2002-09-08 Aidan Skinner <aidan@velvet.net>
4804 * ada-lang.c (ada_array_bound, ada_type_match,
4805 _initialize_ada_language): Fix K&R definitions.
4806 * ada-tasks.c (get_current_task): Fix K&R definitions.
4807 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4809 2002-09-07 Christopher Faylor <cgf@redhat.com>
4811 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4814 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4816 * i386-tdep.c (i386_register_virtual_type,
4817 i386_register_convertible, i386_register_convert_to_virtual,
4818 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4819 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4820 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4821 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4822 Don't set push_arguments twice.
4824 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4825 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4826 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4827 sigtramp_end to NULL.
4828 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4830 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4832 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4835 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4836 * gdbarch.h, gdbarch.c: Re-generate.
4837 * blockframe.c (find_pc_sect_partial_function): Convert to use
4838 SIGTRAMP_START_P predicate.
4840 2002-09-05 Michael Snyder <msnyder@redhat.com>
4842 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4843 generic_dummy_frame method and old method. Also distinguish
4844 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4845 (arm_extract_return_value): Use new regcache method.
4847 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4848 adjustment that doesn't conform to the ABI.
4849 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4850 saved regcache, not from current regcache.
4852 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4854 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4857 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4859 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4860 if arm_apcs_32 is false.
4862 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4864 GDB 5.3 branch created.
4866 2002-09-03 Theodore A. Roth <troth@verinet.com>
4868 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4869 generic_unwind_get_saved_register.
4871 2002-09-03 David Carlton <carlton@math.stanford.edu>
4873 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4874 argument (PR gdb/653). Update call to smash_to_method_type.
4875 (read_structure_scope): Update call to dwarf2_add_member_fn.
4877 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4879 * x86-64-linux-tdep.c: Include gdb_string.h
4880 * x86-64-linux-nat.c: Ditto.
4882 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4884 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4885 when YYDEBUG is set to 1.
4886 * c-exp.y: Likewise.
4887 * f-exp.y: Likewise.
4888 * jv-exp.y: Likewise.
4889 * m2-exp.y: Likewise.
4890 * p-exp.y: Likewise.
4892 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4894 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4896 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4897 solib_svr4_fetch_link_map_offsets to
4898 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4899 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4900 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4901 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4902 solib-svr4.o, and solib-legacy.o.
4903 * config/i386/tm-nbsd.h: Include solib.h.
4905 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4907 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4908 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4909 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4910 comment noting that this needs its own target configuration.
4911 * config/i386/nbsd.mt: New file.
4912 * config/i386/nbsdaout.mt: Remove.
4913 * config/i386/nbsdelf.mt: Ditto.
4914 * config/i386/tm-nbsdaout.h: Ditto.
4916 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4918 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4919 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4920 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4922 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4923 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4924 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4926 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4928 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4929 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4930 * i386-tdep.h (i386bsd_init_abi): New prototype.
4931 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4932 function declaration.
4933 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4934 for NetBSD-a.out or NetBSD-ELF.
4935 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4936 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4937 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4938 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4940 (i386nbsd_pc_in_sigtramp): New function.
4941 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4942 i386nbsd_pc_in_sigtramp.
4943 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4944 and i386nbsdelf_init_abi OS ABI handlers.
4945 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4946 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4948 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4950 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4951 registers if the target really has them.
4953 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4955 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4958 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4960 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4962 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4963 (alphanbsd_skip_sigtramp_frame): New functions.
4964 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4965 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4966 to alphanbsd_sigcontext_addr.
4968 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4970 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4972 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4973 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4974 nbsd_pc_in_sigtramp.
4975 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4976 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4977 * nbsd-tdep.c: Include gdb_string.h.
4978 (nbsd_pc_in_sigtramp): New function.
4979 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4980 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4981 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4982 ppcnbsd_pc_in_sigtramp.
4983 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4984 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4985 shnbsd_pc_in_sigtramp.
4986 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4987 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4988 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4990 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4992 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4993 watchpoints to NULL.
4994 (insert_breakpoints): set val field of watchpoints if NULL.
4997 2002-08-29 Jim Blandy <jimb@redhat.com>
4999 * symtab.c (lookup_symbol_aux): In the cases where we find a
5000 minimal symbol of an appropriate name and use its address to
5001 select a symtab to read and search, use `name' (as passed to us)
5002 as the demangled name when searching the symtab's global and
5003 static blocks, not the minsym's name.
5005 2002-08-29 Keith Seitz <keiths@redhat.com>
5007 * stack.c (print_frame_info_base): Always set current_source_symtab
5008 and current_source_line.
5010 2002-08-29 Donn Terry <donnte@microsoft.com>
5012 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5014 2002-08-28 Keith Seitz <keiths@redhat.com>
5016 * stack.c (select_frame): Add FIXME concerning selected-frame
5018 (select_frame_command): Send selected-frame-level-changed
5019 event notification, but only if the level actually changed.
5020 (up_silently_base): Add selected-frame-level-changed event
5022 (down_silently_base): Likewise.
5024 2002-08-28 Andrew Cagney <ac131313@redhat.com>
5026 * Makefile.in: Update dependencies for all gdb/*.c files.
5028 2002-08-27 Tom Tromey <tromey@redhat.com>
5030 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5031 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5032 Update dependencies.
5033 * i387-tdep.c: Include gdb_string.h.
5034 * osabi.c: Likewise.
5035 * i386-linux-nat.c: Likewise.
5036 * lin-lwp.c: Likewise.
5037 * ax-gdb.c: Likewise.
5038 * signals/signals.c: Likewise.
5039 * jv-valprint.c: Likewise.
5040 * p-lang.c: Likewise.
5041 * c-valprint.c: Likewise.
5042 * cp-abi.c: Likewise.
5044 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
5046 * cli/cli-script.h (copy_command_lines): Export.
5047 * breakpoint.c: Include cli/cli-script.h.
5048 * Makefile.in (breakpoint.o): Update dependencies.
5050 2002-08-26 Michael Snyder <msnyder@redhat.com>
5052 * breakpoint.c (insert_breakpoints): Protect all references
5053 to 'process_warning'. Shorten long lines.
5055 2002-08-26 Joel Brobecker <brobecker@gnat.com>
5057 * cli/cli-script.c (copy_command_lines): New function.
5058 * defs.h (copy_command_lines): Export.
5059 * testsuite/gdb.base/commands.exp: New tests for commands
5060 attached to a temporary breakpoint, and for commands that
5061 delete the breakpoint they are attached to.
5063 2002-08-26 Michael Snyder <msnyder@redhat.com>
5065 * breakpoint.c (bpstat_stop_status): Instead of copying the
5066 pointer to the breakpoint commands struct, make a new copy
5067 of the struct and point to that.
5068 (bpstat_clear): Free the commands struct.
5069 (bpstat_clear_actions): Free the commands struct.
5070 (bpstat_do_actions): Free the command actions. Also execute
5071 the local cleanups, instead of deleting them.
5072 (delete_breakpoint): Leave the commands field of the bpstat
5073 chain alone -- it will be freed later.
5075 2002-08-26 Kevin Buettner <kevinb@redhat.com>
5077 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5078 deleted in 2002-08-20 commit. This function is still used by
5081 2002-08-26 Keith Seitz <keiths@redhat.com>
5083 * gdb-events.sh: Add selected-frame-level-changed event.
5084 * gdb-events.c: Regenerated.
5085 * gdb-events.h: Regenerated.
5087 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
5090 * inflow.c (terminal_save_ours): New function to save terminal
5092 * inferior.h (terminal_save_ours): Declare.
5093 * target.c (debug_to_terminal_save_ours): New function.
5094 (cleanup_target): Defaults to_terminal_save_ours.
5095 (update_current_target): Inherit to_terminal_save_ours.
5096 (setup_target_debug): Set to_terminal_save_ours.
5097 * target.h (target_terminal_save_ours): New to save terminal settings.
5098 (target_ops): New member to_terminal_save_ours.
5099 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5100 * hpux-thread.c (init_hpux_thread_ops): Likewise.
5101 * inftarg.c (init_child_ops): Likewise.
5102 * m3-nat.c (init_m3_ops): Likewise.
5103 * procfs.c (init_procfs_ops): Likewise.
5104 * wince.c (init_child_ops): Likewise.
5105 * win32-nat.c (init_child_ops): Likewise.
5106 * sol-thread.c (init_sol_thread_ops): Likewise.
5108 2002-08-26 Mark Kettenis <kettenis@gnu.org>
5110 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5111 use regcache_* functions.
5112 (i386_gdbarch_init): Set store_return_value instead of
5113 deprecated_store_return_value.
5115 * regcache.c (regcache_raw_write_signed,
5116 regcache_raw_write_unsigned): New functions.
5117 * regcache.h (regcache_raw_write_signed,
5118 regcache_raw_write_unsigned): New prototypes.
5120 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5122 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5123 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5124 source file dependencies. Cleanup corresponding generator rules.
5126 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5128 * regcache.h (register_offset_hack): Declare.
5129 (regcache_cooked_read_using_offset_hack): Declare.
5130 (regcache_cooked_write_using_offset_hack): Declare.
5132 * regcache.c (register_offset_hack): New function.
5133 (regcache_cooked_read_using_offset_hack): New function.
5134 (regcache_cooked_write_using_offset_hack): New function.
5135 (regcache_dump): Check that the registers, according to their
5136 offset, are packed hard against each other.
5137 (cooked_xfer_using_offset_hack): New function.
5139 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5141 * regcache.c (struct regcache_descr): Add field register_type.
5142 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5144 (init_regcache_descr): Initialize register_type. Pass the descr
5145 to init_legacy_regcache_descr. Use register_type instead of
5146 REGISTER_VIRTUAL_TYPE.
5147 (register_type): New function.
5148 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5149 * regcache.h (register_type): Declare.
5151 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5153 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5154 instead of deprecated_store_return_value. Fix fallout from
5155 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5157 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5159 * regcache.c (max_register_size): New function.
5160 (init_legacy_regcache_descr): Ensure that max_register_size is
5161 large enough for REGISTER_VIRTUAL_SIZE.
5162 * regcache.h (max_register_size): Declare.
5164 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5166 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5168 (e500_extract_return_value): Change type of valbuf pointer to
5171 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5173 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5176 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5177 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5178 long long) to prevent compiler warning on 64-bit systems.
5180 2002-08-23 Andrew Cagney <cagney@redhat.com>
5182 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5183 (DEPRECATED_STORE_RETURN_VALUE): New method.
5184 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5185 * gdbarch.h, gdbarch.c: Re-generate.
5187 * values.c (set_return_value): Pass current_regcache to
5189 * arch-utils.h (legacy_store_return_value): Declare.
5190 * arch-utils.c (legacy_store_return_value): New function.
5191 (legacy_extract_return_value): Update parameters.
5193 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5195 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5196 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5197 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5198 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5199 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5200 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5201 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5202 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5203 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5204 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5206 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5207 * i386-tdep.c (i386_extract_return_value): Update.
5208 * arch-utils.c (legacy_extract_return_value): Update.
5209 * frv-tdep.c (frv_gdbarch_init): Update.
5210 * cris-tdep.c (cris_gdbarch_init): Update.
5211 * d10v-tdep.c (d10v_gdbarch_init): Update.
5212 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5213 * m68k-tdep.c (m68k_gdbarch_init): Update.
5214 * mcore-tdep.c (mcore_gdbarch_init): Update.
5215 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5216 * s390-tdep.c (s390_gdbarch_init): Update.
5217 * sparc-tdep.c (sparc_gdbarch_init): Update.
5218 * sh-tdep.c (sh_gdbarch_init): Update.
5219 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5220 * v850-tdep.c (v850_gdbarch_init): Update.
5221 * avr-tdep.c (avr_gdbarch_init): Update.
5222 * ia64-tdep.c (ia64_gdbarch_init): Update.
5223 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5224 * vax-tdep.c (vax_gdbarch_init): Update.
5225 * alpha-tdep.c (alpha_gdbarch_init): Update.
5226 * arm-tdep.c (arm_gdbarch_init): Update.
5227 * mips-tdep.c (mips_gdbarch_init): Update.
5228 * i386-tdep.c (i386_gdbarch_init): Update.
5230 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5232 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5233 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5235 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5237 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5240 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5242 * infrun.c (handle_inferior_event): Move a comment outside of a
5243 function call, in order to avoid indent reformatting this part
5244 of the code in an unreadable way.
5246 2002-08-23 Grace Sainsbury <graces@redhat.com>
5248 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5249 when breakpoints fail. Move general breakpoint error messages to
5251 * breakpoint.c (insert_breakpoints): Change warnings when
5252 breakpoints are nto inserted to specify the type. Remove call to
5253 memory_error when hardware breakpoints can't be inserted. Remove
5254 multiple calls to warning so all messages are sent to the user at
5256 (delete_breakpoints): Make insert error messsages more explicit.
5258 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5260 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5261 gdbserver/ChangeLog.
5263 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5265 * i386-tdep.c: Include "objfiles.h".
5266 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5267 skip_trampoline_code.
5268 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5269 (CPLUS_MARKER): Define to '.'.
5271 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5273 (linux_corefile_thread_callback): Increase args->num_notes.
5274 (linux_make_note_section): Initialize thread_args.num_notes, and
5275 use it to determine whether notes for any threads were created.
5277 2002-08-23 Donn Terry <donnte@microsoft.com>
5279 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5280 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5282 (write_with_trace): Conditionalize out the switch branch handling
5283 PCSHOLD if the corresponding macro is not defined. Likewise for
5284 PRSABORT and PRSTOP.
5285 This change will be needed by the Interix port.
5287 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5289 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5290 write_register wherever possible instead of manipulating the
5291 register bytes directly.
5292 Assign VALUE_CONTENTS to a variable and use that.
5293 The GPR numbers are now dependent on the architecture.
5295 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5297 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5299 (skip_prologue): Add support for BookE/e500 instructions.
5300 (e500_extract_return_value): New function.
5301 (frame_get_saved_regs): Add support for saving ev registers and
5303 (e500_store_return_value): New function.
5304 (rs6000_gdbarch_init): Move up default intializations of
5305 deprecated_extract_return_value and store_return_value. Overwrite
5306 init of store_return_value with e500 specific version.
5307 Set extract_return_value for e500.
5309 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5311 * blockframe.c (generic_call_dummy_register_unwind): Use
5312 regcache_cooked_read to catch cases in which the variable is
5313 stored in a pseudo register.
5315 2002-08-22 Andrew Cagney <cagney@redhat.com>
5317 * NEWS: Mention that the i960 has been made obsolete.
5318 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5320 (remote-nrom.o): Obsolete target.
5321 (remote-nindy.o, i960-tdep.o): Ditto.
5322 * remote-nrom.c: Make file obsolete.
5323 * remote-nindy.c, remote-vx960.c: Ditto.
5324 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5325 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5326 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5327 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5328 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5329 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5330 i960-*-vxworks* obsolete.
5331 * MAINTAINERS: Note that the i960 is obsolete.
5333 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5335 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5336 detach to allow reinitialization.
5338 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5340 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5343 2002-08-22 Jim Blandy <jimb@redhat.com>
5345 * coffread.c (coff_symfile_read): Don't try to read the line
5346 number table from disk if the image file doesn't have a symbol
5347 table; we'll never actually look at the info anyway, and Windows
5348 ships DLL's with bogus file offsets for the line number data.
5350 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5352 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5355 2002-08-21 Michael Snyder <msnyder@redhat.com>
5357 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5358 (MSYMBOL_SIZE): Replace macro with function.
5359 (DEFAULT_MIPS_TYPE): Delete unused macro.
5360 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5361 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5363 2002-08-21 Jim Blandy <jimb@redhat.com>
5365 * valops.c (value_cast): Simplify and correct logic for doing a
5366 static cast from a pointer to a base class to a pointer to a
5369 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5371 * infcmd.c (default_print_registers_info): Replace
5373 (registers_info): Use gdbarch_print_registers_info instead of
5375 * inferior.h (default_print_registers_info): Replace
5377 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5378 (DO_REGISTERS_INFO): Change to a predicate function.
5379 * gdbarch.h, gdbarch.c: Regenerate.
5381 2002-08-21 Keith Seitz <keiths@redhat.com>
5383 * gdb-events.sh: Add target-changed event.
5384 * gdb-events.c: Regenerated.
5385 * gdb-events.c: Regenerated.
5386 * valops.c (value_assign): Add target-changed event notification
5387 to inlval_register, lval_memory, and lval_reg_frame_relative.
5389 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5391 * NEWS: Add an entry regarding the improvement of the next/step
5392 operation on Alpha Tru64 multi-processor machines.
5394 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5396 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5398 * Makefile.in: Update all _h macro definitions.
5399 * Makefile.in (install-gdbtk): Move to install section.
5400 (rdi-share/libangsd.a): Move to end of file.
5402 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5404 * frame.c (frame_register_unwind): When a register, set addrp to
5405 the register's byte.
5407 2002-08-20 Michael Snyder <msnyder@redhat.com>
5409 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5410 used locally, so move them from the target machine header to here.
5411 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5412 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5414 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5416 2002-08-20 Andrew Cagney <cagney@redhat.com>
5418 * NEWS: Mention that the Apollo line was made obsolete.
5419 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5420 m68*-hp-hpux* obsolete.
5421 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5422 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5423 * buildsym.c (make_blockvector): Make static.
5424 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5425 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5426 (ALLDEPFILES): Remove dstread.c.
5427 (dstread.o): Obsolete make rule.
5428 * dstread.c: Makefile obsolete.
5430 * config/m68k/hp300hpux.mt: Ditto.
5431 * config/m68k/hp300hpux.mh: Ditto.
5432 * config/m68k/hp300bsd.mt: Ditto.
5433 * config/m68k/hp300bsd.mh: Ditto.
5434 * config/m68k/apollo68b.mt: Ditto.
5435 * config/m68k/apollo68v.mh: Ditto.
5436 * config/m68k/apollo68b.mh: Ditto.
5438 2002-08-20 Michael Snyder <msnyder@redhat.com>
5440 * mips-tdep.c (mips_in_return_stub): Make static.
5441 (mips_gdbarch_init): Set in_solib_return_trampoline.
5442 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5444 2002-08-20 Michael Snyder <msnyder@redhat.com>
5446 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5447 * gdbarch.c, gdbarch.h: Regenerate.
5448 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5450 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5452 2002-08-20 Michael Snyder <msnyder@redhat.com>
5454 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5455 (mips_gdbarch_init): Set skip_trampoline_code,
5456 in_solib_call_trampoline.
5457 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5458 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5460 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5462 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5464 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5465 vector type for ev registers.
5466 (e500_pseudo_register_read): New function.
5467 (e500_pseudo_register_write): New function.
5468 (e500_dwarf2_reg_to_regnum): New function.
5469 (PPC_UISA_NOFP_SPRS): New macro.
5470 (PPC_EV_REGS): New macro.
5471 (PPC_GPRS_PSEUDO_REGS): New macro.
5472 (registers_e500): New register set for e500.
5473 (variants): Add e500 variant.
5474 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5475 before setting architectural dependent variations. Initialize ev
5476 registers numbers. Add case for e500 architecture. Set the
5477 number of pseudo registers.
5479 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5481 * rs6000-tdep.c: Clean up comments.
5483 2002-08-20 Andrew Cagney <cagney@redhat.com>
5485 * h8300-tdep.c: Re-indent file.
5487 2002-08-20 Jim Blandy <jimb@redhat.com>
5489 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5492 2002-08-20 Keith Seitz <keiths@redhat.com>
5494 * breakpoints.c (watch_command_1): Use internal breakpoint
5495 when setting a watchpoint_scope breakpoint.
5497 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5499 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5500 (build_builtin_type_vec64i): Ditto.
5501 (build_builtin_type_vec128): Ditto.
5502 (build_builtin_type_vec128i): Ditto.
5504 2002-08-19 Michael Snyder <msnyder@redhat.com>
5506 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5507 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5508 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5509 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5510 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5511 CALL_DUMMY_ADDRESS): Delete.
5512 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5513 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5514 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5515 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5516 push_return_address.
5517 (mips_register_raw_size, mips_eabi_use_struct_convention,
5518 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5519 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5520 mips_init_extra_frame_info, mips_eabi_push_arguments,
5521 mips_n32n64_push_arguments, mips_push_return_address,
5522 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5523 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5525 2002-08-19 Michael Snyder <msnyder@redhat.com>
5527 * mips-tdep.c (mips_frame_num_args): New function.
5528 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5529 frame_saved_pc, frame_args_address, frame_locals_address,
5530 frame_num_args, and frame_args_skip.
5531 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5532 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5533 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5534 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5536 2002-08-20 Michael Snyder <msnyder@redhat.com>
5538 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5539 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5540 * mips-tdep.c (mips_store_struct_return): New function.
5541 (mips_extract_struct_value_address): New function.
5542 (mips_gdbarch_init): Set store_struct_return and
5543 extract_struct_value_address.
5545 2002-08-20 David Carlton <carlton@math.stanford.edu>
5547 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5548 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5549 (read_file_scope): Check that line_header is nonzero before
5550 decoding macro information.
5552 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5554 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5555 flag the general-purpose registers as floating-point on targets
5556 that don't support the floating-point registers.
5558 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5560 * rs6000-tdep.c (altivec_register_p): Delete.
5561 (rs6000_do_altivec_registers): Delete.
5562 (rs6000_altivec_registers_info): Delete.
5563 (rs6000_do_registers_info): Delete.
5564 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5565 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5567 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5569 * infcmd.c (do_registers_info): Print vector registers in hex
5571 (print_vector_info): Check that printing registers
5573 (print_float_info): Ditto.
5575 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5577 * mips-tdep.c (mips_gdbarch_init): Update.
5578 (mips_o32_extract_return_value): Rewrite.
5579 (mips_o32_store_return_value): Rewrite.
5580 (mips_o32_xfer_return_value): New function.
5581 (mips_xfer_register): Tweak debug print message. Allow for
5582 buf_offset when dumping the value transfered.
5584 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5586 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5587 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5588 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5589 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5590 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5592 2002-08-14 Michael Snyder <msnyder@redhat.com>
5594 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5596 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5598 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5600 (P): New macro to define a register as a pseudo register.
5601 (R, R4, R8, R16, FR32, R64, R0): Updated.
5602 (struct variant): Add new fields for number of pseudo registers
5603 and number of total registers.
5604 (tot_num_registers): New macro replacing....
5605 (num_registers): ...deleted macro.
5606 (num_registers): New function.
5607 (num_pseudo_registers): New function.
5608 (variants): Update all variants to intialize new fields correctly.
5609 Postpone initialization of number of pseudo regs and real regs.
5610 (init_variants): New function.
5611 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5614 2002-08-19 David Carlton <carlton@math.stanford.edu>
5616 * valops.c (search_struct_field): Change error message to treat
5617 return value of 0 from value_static_field as meaning that field is
5619 (value_struct_elt_for_reference): Ditto.
5620 * values.c (value_static_field): Treat an unresolved location the
5621 same as a nonexistent symbol. Fix PR gdb/635.
5622 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5623 enclosed. Fix PR gdb/574.
5624 * MAINTAINERS: Add self to Write After Approval list.
5626 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5628 * mips-tdep.c (mips_xfer_register): New function.
5629 (mips_n32n64_extract_return_value): Rewrite.
5630 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5631 instead of deprecated_extract_return_value.
5633 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5635 * rs6000-tdep.c (TDEP): Delete macro.
5636 (branch_dest): Replace use of TDEP macro with its body.
5637 (rs6000_pop_frame): Ditto.
5638 (rs6000_push_arguments): Ditto.
5639 (rs6000_skip_trampoline_code): Ditto.
5640 (rs6000_frame_saved_pc): Ditto.
5641 (rs6000_frame_chain): Ditto.
5642 (rs6000_register_name): Ditto.
5643 (rs6000_register_byte): Ditto.
5644 (rs6000_register_raw_size): Ditto.
5645 (rs6000_register_virtual_type): Ditto.
5646 (rs6000_register_convertible): Ditto.
5647 (rs6000_convert_from_func_ptr_addr): Ditto.
5649 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5651 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5653 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5654 MIPS_LINUX_JB_ELEMENT_SIZE.
5655 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5656 for MAX_REGISTER_RAW_SIZE arrays.
5657 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5658 MIPS_LINUX_JB_ELEMENT_SIZE.
5660 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5662 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5664 2002-08-19 Aidan Skinner <aidan@velvet.net>
5666 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5667 ada-valprint.c ada-tasks.c.
5668 (YYFILES): Add ada-exp.y.
5669 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5670 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5671 (ada-exp.tab.o): New target.
5673 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5675 * regcache.c (regcache_xfer_part): New function.
5676 (regcache_raw_read_part): New function.
5677 (regcache_raw_write_part): New function.
5678 (regcache_cooked_read_part): New function.
5679 (regcache_cooked_write_part): New function.
5680 * regcache.h (regcache_raw_read_part): Declare.
5681 (regcache_raw_write_part): Declare.
5682 (regcache_cooked_read_part): Declare.
5683 (regcache_cooked_write_part): Declare.
5685 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5687 * remote.c (remote_open_1): Add async_p.
5688 (remote_async_open_1): Delete.
5689 (open_remote_target): Delete.
5690 (remote_open, extended_remote_open): Update calls to remote_open_1.
5691 (remote_async_open, extended_remote_async_open): Call
5692 remote_open_1 instead of remote_async_open_1.
5694 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5696 * blockframe.c: Fix a few coding standard violations.
5698 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5700 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5702 * config/i386/tm-i386sco5.h: ... here. File removed.
5703 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5705 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5706 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5707 (TM_FILE): Set to tm-i386.h.
5708 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5709 * config/i386/tm-i386v.h: Remove file.
5710 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5711 instead of "i386/tm-i386v.h".
5712 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5713 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5715 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5716 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5719 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5721 * config/i386/nm-i386v.h: Add protection against
5723 (i386_register_u_addr): Remove prototype.
5724 (register_u_addr): New prototype.
5725 (REGISTER_U_ADDR): Redefine accordingly.
5726 * i386v-nat.c: Improve several comments.
5727 (i386_register_u_addr): Change signature and rename to
5728 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5731 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5733 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5734 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5735 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5736 deprecated_extract_return_value.
5737 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5738 rename mips_o32o64_push_arguments.
5739 (mips_gdbarch_init): Update.
5740 (mips_extract_return_value): Delete.
5741 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5742 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5743 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5744 (mips_n32n64_extract_return_value): Clone
5745 mips_extract_return_value.
5746 (mips_store_return_value): Delete.
5747 (mips_o32_store_return_value): Clone mips_store_return_value.
5748 (mips_o64_store_return_value): Clone mips_store_return_value.
5749 (mips_eabi_store_return_value): Clone mips_store_return_value.
5750 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5752 2002-08-18 Aidan Skinner <aidan@velvet.net>
5754 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5755 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5757 2002-08-18 Aidan Skinner <aidan@velvet.net>
5759 * ada-lang.c: Run through gdb_indent.sh.
5760 * ada-lang.h: Run through gdb_indent.sh.
5761 * ada-tasks.c: Run through gdb_indent.sh.
5762 * ada-typeprint.c: Run through gdb_indent.sh.
5763 * ada-valprint.c: Run through gdb_indent.sh.
5765 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5767 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5770 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5772 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5774 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5775 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5777 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5778 write_register_gen instead of write_register_bytes.
5780 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5781 i[3456]-*-osf1mk* configurations have been made obsolete.
5782 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5783 i[3456]86-*-osf1mk* hosts obsolete.
5784 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5786 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5787 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5788 config/i386/i386m3.mt, config/i386/nm-m3.h,
5789 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5790 config/i386/i386mk.mh, config/i386/i386mk.mt,
5791 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5793 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5794 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5795 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5797 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5799 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5800 (hppa_value_returned_from_stack): Declare.
5801 (hppa_extract_return_value): Declare.
5802 * config/pa/hppa.mt: New file.
5803 * configure.tgt: Recognize hppa*-*-*.
5804 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5806 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5808 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5811 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5813 * top.c (gdb_rl_operate_and_get_next): Make sure
5814 operate-and-get-next functions correctly even when the history
5815 list is completely filled.
5817 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5819 * MAINTAINERS (Target Instruction Set Architectures): Rename
5820 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5821 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5822 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5823 already listed under Host/Native.
5825 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5826 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5829 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5831 * config/ia64/ia64.mt: New file.
5832 * config/alpha/alpha.mt: New file.
5833 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5834 ia64-linux-gnu. Mention that ia64-elf is broken.
5835 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5837 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5839 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5840 generic_func_frame_valid instead of func_frame_valid.
5842 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5844 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5845 procfs appears to be broken when debugging on multi-processor
5846 machines. So enable software single stepping in order to avoid
5847 using the procfs interface to do next/step operations, using
5848 internal breakpoints instead.
5850 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5851 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5852 make this pc address equal to the value it would have if the
5853 system stepping capability was used. Also set a new flag used
5854 to ensure that we don't readjust the PC one more time later.
5856 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5857 address by DECR_PC_AFTER_BREAK when software single step is
5858 in use for this architecture, as this has already been taken
5859 care of in handle_inferior_event().
5861 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5863 * infrun.c (handle_inferior_event): Minor reformatting, to make
5864 a rather long condition expression easier to read.
5866 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5868 * Makefile.in (gdbtk.o): Move to end of file.
5869 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5870 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5871 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5872 (gdbtk-wrapper.o, gdbres.o): Ditto.
5874 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5876 * Makefile.in (copying.o): Separate out compile rule.
5877 (hpux-thread.o, procfs.o, signals.o): Ditto.
5878 (v850ice.o, z8k-tdep.o): Ditto.
5879 (tui-file.o): Move to TUI section.
5880 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5881 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5883 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5885 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5886 skip_trampoline_code, for better namespace-proofing.
5888 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5890 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5892 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5894 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5896 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5897 signal, check whether we hit a breakpoint before checking for a
5898 single step breakpoint. Otherwise, GDB fails to notice that a
5899 breakpoint has been hit when stepping onto a breakpoint.
5901 2002-08-16 Keith Seitz <keiths@redhat.com>
5903 * gdb-events.sh (clear_gdb_event_hooks): New function.
5904 * gdb-events.c: Regenerate.
5905 * gdb-events.h: Regenerate.
5907 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5909 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5910 not_a_sw_breakpoint.
5911 * breakpoint.h (bpstat_stop_status): Add parameter names.
5913 2002-08-16 Grace Sainsbury <graces@redhat.com>
5915 * remote.c (remote_insert_hw_breakpoint)
5916 (remote_remove_hw_breakpoint): Fix calculation of length field
5919 2002-08-15 Michael Snyder <msnyder@redhat.com>
5921 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5922 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5923 (supply_fpregset): Ditto.
5925 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5926 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5927 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5928 (TARGET_READ_SP): Delete.
5929 (DO_REGISTERS_INFO): Delete.
5930 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5932 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5933 from macros to functions.
5935 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5936 (mips_register_convertible, mips_register_convert_to_virtual,
5937 mips_register_convert_to_raw): Make static.
5938 (mips_read_sp): New function.
5939 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5940 (mips_do_registers_info): Make static.
5941 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5942 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5943 (mips_register_convert_from_type, mips_register_convert_to_type):
5945 (mips_gdbarch_init): Set up function_start_offset,
5946 register_virtual_size, pc_in_sigtramp.
5948 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5950 * infcmd.c (vector_info): New function.
5951 (_initialize_infcmd): Add command "info vector".
5952 (print_vector_info): New function.
5954 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5955 * gdbarch.h, gdbarch.c: Regenerate.
5957 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5959 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5960 ``print_all''. Only print vector registers when ``print_all''.
5962 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5964 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5965 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5967 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5968 Add `args' parameter.
5969 * gdbarch.h, gdbarch.c: Regenerate.
5971 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5973 * infcmd.c (float_info): Call print_float_info.
5974 (print_float_info): New function. By default, print the
5975 floating-point registers.
5977 * arch-utils.h (default_print_float_info): Delete declaration.
5978 * arch-utils.c (default_print_float_info): Delete function.
5980 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5982 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5985 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5988 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5989 * configure.host: Make i[3456]86-*-aix host obsolete.
5990 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5991 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5992 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5993 config/i386/xm-i386aix.h: Make files obsolete.
5994 * i386aix-nat.c: Make file obsolete.
5995 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5996 (i386aix-nat.o): Make target obsolete.
5998 * config/i386/nm-gnu.h: Removed.
5999 * config/i386/nm-i386gnu.h: New file.
6000 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
6001 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
6003 * config/i386/tm-i386gnu.h: ... here. Removed.
6004 * config/i386/xm-i386gnu.h: Removed.
6005 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
6006 (NAT_FILE): Set to nm-i386gnu.h.
6007 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
6008 * i386-tdep.c: New file.
6009 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6010 (i386gnu-tdep.o): Specify dependencies.
6012 2002-08-15 Mark Kettenis <kettenis@gnu.org>
6014 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6015 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6016 Adjust a few comments to reflect reality a bit closer.
6017 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6018 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6019 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6020 target_insert_watchpoint, target_remove_watchpoint):
6022 * config/i386/nm-i386sco5.h: ... here.
6023 (kernel_u_size): Add prototype. Improve a few comments and add
6024 protection against multiple inclusion.
6026 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6029 * uw-thread.c (SP_ARG0): Define if not already defined.
6030 * config/i386/tm-i386.h (SO_ARG0): Remove define.
6032 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6034 * config/i386/tm-i386.h: Don't include "regcache.h".
6036 * i387-tdep.h (i387_print_float_info): New prototype.
6037 * i387-tdep.c (print_i387_value, print_i387_ext,
6038 print_i387_status_word, print_i387_control_word): Add `struct
6039 ui_file *' argument and use it for output.
6040 (i387_print_float_info): Renamed from i387_float_info. Add
6041 `struct gdbarch *' and `struct ui_file *' arguments and use the
6043 * i386-tdep.c: Include "i387-tdep.h".
6044 (i386_gdbarch_init): Set print_float_info.
6045 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6046 (FLOAT_INFO): Remove define.
6048 2002-08-13 Michael Snyder <msnyder@redhat.com>
6050 * mips-tdep.c (mips_push_arguments): Rename to
6051 mips_eabi_push_arguments, and tune for EABI.
6052 (MIPS_REGS_HAVE_HOME_P): Delete.
6053 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6054 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6055 Delete references to mips_regs_have_home_p.
6057 2002-08-14 Keith Seitz <keiths@redhat.com>
6059 * Makefile.in (install-gdbtk): Create insight plugin directory.
6060 Install plugins.tcl file.
6062 2002-08-14 Keith Seitz <keiths@redhat.com>
6064 * configure.in: Move SUBDIRS to near top of the file so that
6065 --enable options may add things to it.
6066 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6067 * configure: Regenerate.
6069 2002-08-13 Michael Snyder <msnyder@redhat.com>
6071 * mips-tdep.c (mips_o32o64_push_arguments): New function,
6072 cloned from mips_push_arguments, tuned for o32/o64 ABI.
6073 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6075 2002-08-13 Andrew Cagney <ac131313@redhat.com>
6077 * vax-tdep.c (vax_get_saved_register): Delete function.
6078 (vax_gdbarch_init): Update.
6079 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6080 (ns32k_gdbarch_init): Update.
6081 * alpha-tdep.c (alpha_get_saved_register): Delete function.
6082 (alpha_gdbarch_init): Update.
6084 2002-08-13 Andrew Cagney <cagney@redhat.com>
6086 * regcache.c (init_regcache_descr): Overallocate the
6087 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6088 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6090 (set_register_cached): Add range checking assertions. Use
6093 2002-08-13 Mark Kettenis <kettenis@gnu.org>
6095 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6096 numbers for MMX registers.
6098 2002-08-13 Andrew Cagney <cagney@redhat.com>
6100 * i386-tdep.c (i386_gdbarch_init): Use
6101 generic_unwind_get_saved_register.
6103 2002-08-13 Kevin Buettner <kevinb@redhat.com>
6105 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6106 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6108 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6109 Delete. Add comment regarding this now-deleted target method.
6111 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6113 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6114 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6115 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6116 real PC and the page number (if it's within the memory bank window).
6117 (m68hc11_pseudo_register_write): Likewise when saving.
6118 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6119 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6120 (m68hc11_register_raw_size): And use 32-bit for it.
6121 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6122 16K memory bank is used by the prog; also use the virtual pc.
6124 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6126 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6127 (m68hc11_gdbarch_init): Install it in gdbarch.
6128 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6129 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6130 (MSYMBOL_SIZE): New for documentation.
6131 (insn_return_kind): Enum to specify how a function returns.
6132 (frame_extra_info): Cleanup and record the return mode.
6133 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6134 register in address computation.
6135 (m68hc11_get_return_insn): New to obtain the return instruction used
6137 (m68hc11_frame_init_saved_regs): Take into account the return
6138 instruction used by the function for far and interrupt functions.
6139 (m68hc11_init_extra_frame_info): Take into account page register.
6140 (m68hc11_frame_args_address): Adjust according to the return mode.
6141 (show_regs): Print page register only when it's used.
6143 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6145 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6146 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6147 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6149 (m68hc11_register_raw_size): Likewise.
6151 2002-08-13 Andrew Cagney <cagney@redhat.com>
6153 * i386-tdep.c (i386_register_name): Handle mmx registers.
6154 (mmx_regnum_p): New function.
6155 (i386_mmx_names): New array.
6156 (mmx_num_regs): New variable.
6157 (i386_pseudo_register_read): New function.
6158 (i386_pseudo_register_write): New function.
6159 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6161 * regcache.c (regcache_raw_read_unsigned): New function.
6162 (regcache_raw_read_signed): New function.
6163 * regcache.h (regcache_raw_read_unsigned): Declare.
6164 (regcache_raw_read_signed): Declare.
6166 2002-08-13 Andrew Cagney <cagney@redhat.com>
6168 * regcache.c (regcache_raw_read_as_address): Delete function.
6169 (regcache_cooked_read_signed): New function.
6170 (regcache_cooked_read_unsigned): New function.
6171 * regcache.h (regcache_cooked_read_signed): Declare.
6172 (regcache_cooked_read_unsigned): Declare.
6173 (regcache_raw_read_as_address): Delete declaration.
6175 * blockframe.c (generic_read_register_dummy): Use
6176 regcache_cooked_read_unsigned.
6177 * i386-tdep.c (i386_extract_struct_value_address): Use
6178 regcache_cooked_read_unsigned.
6180 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6183 double sizes according to ELF ABI flags.
6184 (gdbarch_tdep): Record elf_flags.
6186 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6188 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6189 (m6812_prolog): They can appear in 68HC12 function prologue.
6190 (m68hc11_frame_chain): Cleanup.
6192 2002-08-12 Andrew Cagney <cagney@redhat.com>
6194 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6196 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6197 (i386_linux_register_raw_size): Delete function.
6198 (i386_linux_init_abi): Update.
6199 * i386-tdep.c (i386_register_raw_size): Delete function.
6200 (i386_register_byte): Delete function.
6201 (i386_gdbarch_init): Update.
6202 (i386_register_size): Delete array.
6203 (i386_register_offset): Delete array.
6205 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6206 (REGISTER_RAW_SIZE): Delete macro.
6207 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6208 (REGISTER_BYTE): Delete macro.
6210 2002-08-11 Aidan Skinner <aidan@velvet.net>
6212 * ada-lang.c (ada_lookup_partial_symbol)
6213 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6214 prototype names so that grep ^func works properly.
6216 * ada-lang.c (ada_array_element_type)
6217 (ada_lookup_partial_symbol): Fix typos in parameter list.
6219 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6220 Fix prototype names so that grep ^func works properly.
6222 2002-08-10 Andrew Cagney <cagney@redhat.com>
6223 Elena Zannoni <ezannoni@redhat.com>
6224 Martin M. Hunt <hunt@redhat.com>
6226 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6227 (build_builtin_type_vec128i): Set the vector bit.
6228 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6229 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6230 (build_builtin_type_vec64): New function.
6231 (build_builtin_type_vec64i): New function.
6232 (build_gdbtypes): Initialize builtin_type_vec64 and
6233 builtin_type_vec64i.
6235 2002-08-09 Andrew Cagney <cagney@redhat.com>
6237 * regcache.c (regcache_dump): Compare the register offset
6239 * arch-utils.c (generic_register_byte): New function.
6240 * arch-utils.h (generic_register_byte): Declare.
6241 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6242 * gdbarch.h, gdbarch.c: Regenerate.
6244 2002-08-09 Andrew Cagney <cagney@redhat.com>
6246 * regcache.c: Include "gdbcmd.h"
6247 (_initialize_regcache): Add commands "maintenance print
6248 registers", "maintenance print raw-registers" and "maintenance
6249 print cooked-registers".
6250 (enum regcache_dump_what): Define.
6251 (dump_endian_bytes): New function.
6252 (regcache_dump): New function.
6253 (regcache_print): New function.
6254 (maintenance_print_registers): New function.
6255 (maintenance_print_raw_registers): New function.
6256 (maintenance_print_cooked_registers): New function.
6257 * Makefile.in (regcache.o): Update dependencies.
6259 2002-08-09 Michael Snyder <msnyder@redhat.com>
6261 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6262 (mips_push_arguments): Correct some comments. Use paddr_nz
6263 for printing addresses in debug output. Replace static
6264 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6265 (mips_n32n64_push_arguments): New function, cloned from
6266 mips_push_arguments and tuned for the n32/n64 ABI.
6267 (mips_push_register): Buffer needs dynamic allocation.
6268 (mips_print_register): Ditto.
6269 (do_gp_register_row): Ditto.
6270 (mips_store_return_value): Ditto.
6271 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6273 2002-08-09 Don Howard <dhoward@redhat.com>
6275 * memattr.c (mem_info_command): Print special case of upper bound
6276 as max CORE_ADDR + 1.
6278 2002-08-08 Michael Snyder <msnyder@redhat.com>
6280 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6281 returns structs by ref if they're too big to fit in two registers.
6283 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6285 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6287 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6288 mips_find_saved_regs().
6289 (mips_pop_frame): Likewise.
6291 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6293 * blockframe.c (frame_saved_regs_register_unwind): Revise
6294 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6297 2002-08-09 Grace Sainsbury <graces@redhat.com>
6299 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6300 T-packets; the 'a' is not taken as a register number.
6301 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6302 (remote_stopped_data_address): New functions; add to target
6304 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6305 prototypes to match other implementations of this
6306 function. replace integer argument with pointer -- the length
6307 field in the Z-packet is the length of what is pointed to or 1 if
6308 pointer is null. Add to target vector.
6309 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6313 * remote.c (remote_wait): Add support to extract optional
6314 watchpoint information from T-packet. Ignore unrecognized
6315 optional info in T-packet.
6316 (remote_async_wait): Ditto.
6318 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6320 * cli/cli-dump.c: Change fopen modes to use binary open modes
6321 as defined in include/fopen-bin.h throughout.
6323 2002-08-08 Michael Snyder <msnyder@redhat.com>
6325 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6327 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6329 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6330 assertion failure by returning early after a warning.
6332 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6334 * mips-tdep.c (mips_find_saved_regs): Make static.
6335 (mips_frame_init_saved_regs): New function.
6336 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6337 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6338 (mips_find_saved_regs): Delete declaration.
6340 2002-08-08 Grace Sainsbury <graces@redhat.com>
6342 * remote.c (remote_wait, remote_async_wait): Change
6343 thread_num from int to ULONGEST.
6344 (unpack_varlen_hex): Change result parameter from
6345 int * to ULONGEST *.
6347 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6349 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6350 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6352 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6354 2002-08-08 Andrew Cagney <cagney@redhat.com>
6356 * gcore.c (override_derive_stack_segment): Delete variable.
6357 (preempt_derive_stack_segment): Delete function.
6358 (derive_stack_segment): Delete function.
6359 (default_derive_stack_segment): Renamed to derive_stack_segment.
6360 (override_derive_heap_segment): Delete variable.
6361 (preempt_derive_heap_segment): Delete function.
6362 (derive_heap_segment): Delete function.
6363 (default_derive_heap_segment): Rename to derive_heap_segment.
6365 2002-08-06 Michael Snyder <msnyder@redhat.com>
6367 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6368 * mips-tdep.c (mips_EABI_use_struct_convention,
6369 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6370 New functions. (mips_use_struct_convention): Delete.
6371 (mips_gdbarch_init): set use_gdbarch_convention.
6373 2002-08-06 Michael Snyder <msnyder@redhat.com>
6375 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6376 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6377 mips_o32_reg_struct_has_addr): New functions.
6378 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6380 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6382 * regcache.c (pseudo_register): Delete function.
6383 (fetch_register): Delete function.
6384 (store_register): Delete function.
6385 (regcache_raw_read, legacy_read_register_gen): Use
6386 target_fetch_registers instead of fetch_register.
6387 (legacy_write_register_gen, regcache_raw_write): Use
6388 target_store_register instead of store_register.
6389 (write_register_bytes): Ditto.
6391 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6392 (STORE_PSEUDO_REGISTER): Delete.
6393 * gdbarch.h, gdbarch.c: Regenerate.
6395 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6397 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6398 write dump file binary.
6400 2002-08-05 Michael Snyder <msnyder@redhat.com>
6402 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6403 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6404 (mips_gdbarch_init): Set N32 target to be mips64.
6406 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6408 * frame.c (find_saved_register): Break out of loop once saved
6409 register address is found. Don't mention sparc in loop comment
6412 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6414 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6415 mips_default_saved_regsize to 8.
6417 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6419 * gcore.c: Do not include <sys/procfs.h>.
6420 * Makefile.in (gcore.o): Update dependencies.
6422 2002-08-06 Andrew Cagney <cagney@redhat.com>
6424 * configure.tgt: Make arc-*-* obsolete.
6425 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6426 * MAINTAINERS: Make arc-elf obsolete.
6427 * arc-tdep.c: Make file obsolete.
6428 * config/arc/arc.mt: Ditto.
6429 * config/arc/tm-arc.h: Ditto.
6431 2002-08-05 Theodore A. Roth <troth@verinet.com>
6433 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6435 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6437 * mcore-tdep.c (mcore_gdbarch_init): Use
6438 generic_unwind_get_saved_register instead of
6439 generic_get_saved_register.
6440 * v850-tdep.c (v850_gdbarch_init): Ditto.
6441 * frv-tdep.c (frv_gdbarch_init): Ditto.
6442 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6443 * s390-tdep.c (s390_gdbarch_init): Ditto.
6444 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6445 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6446 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6448 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6450 * objfiles.h: Add missing #include "symfile.h"
6452 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6454 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6456 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6457 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6460 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6462 * NEWS: Cleanup and nitpick.
6464 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6466 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6468 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6470 * Makefile.in (gdbtk-bp.o): Update dependencies.
6471 (gdbtk-register.o): Ditto.
6472 (gdbtk-varobj.o): Ditto.
6474 2002-08-03 Andrew Cagney <cagney@redhat.com>
6476 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6477 m68hc11_fetch_pseudo_register.
6478 (m68hc11_pseudo_register_write): Replace
6479 m68hc11_store_pseudo_register.
6480 (m68hc11_gdbarch_init): Update.
6482 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6484 * gdbarch.sh: Include "gdb_string.h".
6485 * gdbarch.c: Regenerate.
6487 * regcache.c: Include "gdb_string.h".
6488 * ax-general.c: Ditto.
6490 * std-regs.c: Ditto.
6491 * fbsd-proc.c: Ditto.
6494 * Makefile.in (regcache.o): Update dependencies.
6495 (thread.o, gdbarch.o): Ditto.
6496 (ax-general.o, gdbarch.o): Ditto.
6497 (varobj.o, std-regs.o): Ditto.
6498 (fbsd-proc.o): Specify dependencies.
6500 2002-08-02 Andrew Cagney <cagney@redhat.com>
6502 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6504 (regcache_cooked_write): Ditto.
6506 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6508 * regcache.c (regcache_cooked_read): New function.
6509 (regcache_cooked_write): New function.
6510 (read_register_gen): Rewrite using regcache_cooked_read.
6511 (write_register_gen): Rewrite using regcache_cooked_write.
6513 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6516 2002-08-02 Andrew Cagney <cagney@redhat.com>
6518 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6519 Replace the architecture methods register_read and register_write.
6520 * gdbarch.h, gdbarch.c: Regenerate.
6521 * regcache.c (init_regcache_descr): Update.
6522 (read_register_gen): Update.
6523 (write_register_gen): Update.
6524 (supply_register): Update comment.
6526 * sh-tdep.c (sh_gdbarch_init): Update.
6527 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6528 `regcache' and `gdbarch' parameters. Make `buffer' a void
6529 pointer. Update code.
6530 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6531 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6532 void pointer. Update code.
6533 (sh64_register_write): Delete.
6534 (sh4_register_read): Delete.
6535 (sh64_register_read): Delete.
6536 (sh4_register_write): Delete.
6537 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6538 void pointer, `to' parameter a void pointer.
6539 (sh_sh64_register_convert_to_raw): Ditto.
6541 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6543 * mips-tdep.c (mips_register_virtual_type): Use architecture
6544 invariant return values.
6546 2002-08-01 Andrew Cagney <cagney@redhat.com>
6548 * linux-proc.c: Include "gdb_string.h".
6549 * Makefile.in (linux-proc.o): Update dependency list.
6551 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6553 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6556 2002-08-01 Grace Sainsbury <graces@redhat.com>
6558 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6559 to_insert_watchpoint, to_remove_watchpoint,
6560 to_stopped_by_watchpoint, to_stopped_data_address,
6561 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6562 target vecctor. Define their corresponding macros so they call
6565 * target.c: Add default and debug versions of for
6566 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6567 to_insert_watchpoint, to_remove_watchpoint,
6568 to_stopped_by_watchpoint, to_stopped_data_address,
6569 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6571 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6573 * mips-tdep.c (mips_register_virtual_type): New function.
6574 (mips_gdbarch_init): Register mips_register_virtual_type()
6575 with gdbarch machinery.
6576 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6577 this file instead of tm-bigmips.h.
6578 (MIPS_REGSIZE): Delete this macro.
6579 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6580 multiarch version in mips-tdep.c will be found.
6582 2002-08-01 Andrew Cagney <cagney@redhat.com>
6584 * NEWS: Menion that CHILL has been made obsolete.
6586 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6587 * stabsread.c (read_range_type): Ditto.
6588 * gdbtypes.h: Ditto.
6589 * language.c (binop_type_check): Ditto.
6590 (binop_result_type): Ditto.
6591 (integral_type): Ditto.
6592 (character_type): Ditto.
6593 (string_type): Ditto.
6594 (boolean_type): Ditto.
6595 (structured_type): Ditto.
6596 (lang_bool_type): Ditto.
6597 (binop_type_check): Ditto.
6598 * language.h (_LANG_chill): Ditto.
6599 * dwarfread.c (set_cu_language): Ditto.
6600 * dwarfread.c (CHILL_PRODUCER): Ditto.
6601 * dwarfread.c (handle_producer): Ditto.
6602 * expression.h (enum exp_opcode): Ditto.
6603 * eval.c: Ditto for comments.
6604 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6605 * expprint.c (print_subexp): Ditto.
6606 (print_subexp): Ditto.
6607 * valops.c (value_cast): Ditto.
6608 (search_struct_field): Ditto.
6609 * value.h (COERCE_VARYING_ARRAY): Ditto.
6610 * symfile.c (init_filename_language_table): Ditto.
6611 (add_psymbol_with_dem_name_to_list): Ditto.
6612 * valarith.c (value_binop): Ditto.
6614 * valops.c (value_slice): Ditto.
6615 * symtab.h (union language_specific): Ditto.
6616 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6617 (SYMBOL_DEMANGLED_NAME): Ditto.
6618 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6619 * defs.h (enum language): Ditto.
6620 * symtab.c (got_symtab): Ditto.
6621 * utils.c (fprintf_symbol_filtered): Ditto.
6623 * ch-typeprint.c: Make file obsolete.
6624 * ch-valprint.c: Make file obsolete.
6625 * ch-lang.h: Make file obsolete.
6626 * ch-exp.c: Make file obsolete.
6627 * ch-lang.c: Make file obsolete.
6629 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6631 (TARGET_FLAGS_TO_PASS): Ditto.
6632 (CHILLFLAGS): Obsolete.
6634 (CHILL_FOR_TARGET): Obsolete.
6635 (CHILL_LIB): Obsolete.
6636 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6638 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6639 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6641 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6644 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6646 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6647 This does not change anything at the moment, but will be helpful
6648 later when full Ada support is integrated.
6650 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6652 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6655 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6657 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6658 and save it in a local variable. Use variable in later test.
6660 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6662 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6663 test. (Thanks to Daniel Jacobowitz.)
6665 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6667 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6668 (mips_abi_strings): Add "n64".
6669 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6671 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6673 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6674 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6676 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6678 * utils.c (host_pointer_to_address, address_to_host_pointer):
6679 Use gdb_assert() instead of explicit call to internal_error().
6681 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6683 * Makefile.in (rs6000-nat.o): Update dependencies.
6685 From Nicholas Duffek:
6686 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6687 (aix-thread.o): New rule.
6688 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6689 * config/powerpc/aix432.mh: New file.
6691 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6693 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6694 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6695 (fetch_core_registers, ppc_linux_supply_gregset)
6696 (ppc_linux_supply_fpregset): New functions.
6697 (ppc_linux_regset_core_fns): New.
6698 (_initialize_ppc_linux_tdep): Call add_core_fns.
6699 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6700 and ppc_linux_supply_gregset.
6701 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6702 (supply_fpregset): Call ppc_linux_supply_fpregset.
6703 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6705 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6707 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6709 * symtab.c (lookup_symbol): Demangle before lowercasing.
6711 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6713 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6715 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6716 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6717 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6718 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6720 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6721 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6722 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6723 (avr-tdep.o, mon960-rom.o): Ditto.
6724 (aout_stabs_gnu_h): Define.
6725 (symtab_h): Remove $(gdb_obstack_h).
6727 2002-07-30 Jim Blandy <jimb@redhat.com>
6729 Patch from David Carlton <carlton@math.stanford.edu>:
6730 * gdbinit.in: Move the `dir' commands that add GDB's own source
6731 directory to the search path to the end, so that the `gdb' source
6732 directory will be searched first.
6734 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6736 * gdb_obstack.h: New file.
6737 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6738 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6739 * objfiles.h: Include "gdb_obstack.h".
6740 * Makefile.in (gdb_obstack_h): Define.
6741 (symtab_h): Add $(gdb_obstack_h).
6742 (objfiles_h): Add $(gdb_obstack_h).
6744 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6745 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6746 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6747 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6748 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6749 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6750 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6751 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6753 * Makefile.in (bcache.o): Update dependencies.
6754 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6755 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6756 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6757 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6758 (stabsread.o, symfile.o, symmisc.o): Ditto.
6759 (symtab.o, typeprint.o, macroexp.o): Ditto.
6760 (macrotab.o, mdebugread.o): Ditto.
6761 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6762 (coff_ecoff_h, aout_aout64_h): Define.
6763 (aout_stabs_gnu_h, libaout_h): Define.
6765 2002-07-29 Andrew Cagney <cagney@redhat.com>
6767 * regcache.c (struct regcache_descr): Rename nr_registers to
6768 nr_cooked_registers. Revise comments describing the structure
6770 (init_regcache_descr): Update.
6771 (init_legacy_regcache_descr): Update.
6772 (read_register_gen, write_register_gen): When a cooked register in
6773 the raw register range, directly access the value from the raw
6776 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6778 * z8k-tdep.c: Do not include "obstack.h".
6779 * h8300-tdep.c, h8500-tdep.c: Ditto.
6780 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6781 * valprint.c, v850-tdep.c: Ditto.
6782 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6783 * mn10200-tdep.c: Ditto.
6785 * Makefile.in (z8k-tdep.o): Update dependencies.
6786 (m68hc11-tdep.o, valprint.o): Ditto.
6787 (v850-tdep.o, d10v-tdep.o): Ditto.
6788 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6789 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6790 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6791 (sh_opc_h, gdb_sim_sh_h): Define.
6792 (elf_sh_h, elf_bfd_h): Define.
6793 (opcode_m68hc11_h): Define.
6794 (OPCODES_SRC, OPCODES_DIR): define.
6795 (OPCODES): Use $(OPCODES_DIR).
6796 (gdb_sim_d10v_h): Rename sim_d10v_h.
6797 (gdb_sim_arm_h): Rename sim_arm_h.
6799 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6801 * utils.c (host_pointer_to_address, address_to_host_pointer):
6802 Change internal_error() message to indicate function responsible
6805 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6807 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6808 calls to local_hex_string_custom().
6810 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6812 * irix5-nat.c: Move IRIX shared library support from here...
6813 * solib-irix.c: ...to here. Revised substantially to work with
6814 generic solib framework.
6816 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6817 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6818 * mips-irix-tdep.c: New file.
6820 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6821 (mips-irix-tdep.o, solib-irix.o): New rules.
6822 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6824 * config/mips/irix6.mt (TDEPFILES): Likewise.
6825 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6827 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6829 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6830 disabled (via ``#if 0'') includes.
6832 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6834 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6835 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6836 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6837 Add support for the fpscr register.
6838 * rs6000-nat.c (regmap, fetch_inferior_registers)
6839 (store_inferior_registers, fetch_core_registers): Likewise.
6841 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6843 * rs6000-nat.c (language.h): Include.
6844 (special_regs): Delete this array.
6845 (regmap): New function.
6846 (fetch_register, store_register): Use regmap() to map gdb
6847 register numbers to ptrace register numbers. Also, use
6848 outputs from regmap() to make decisions regarding type of
6849 ptrace() call to make. In particular, don't compare against
6850 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6851 (fetch_inferior_registers, store_inferior_registers): Where
6852 possible, obtain register numbers from tdep struct. Don't
6853 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6854 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6855 (LAST_UISA_SP_REGNUM): Delete.
6857 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6859 * rs6000-nat.c (ppc-tdep.h): Include.
6860 (fetch_registers, store_register, fetch_core_registers): Don't
6861 access registers[] directly. Instead, use supply_register() or
6862 regcache_collect() as appropriate.
6863 (find_toc_address): Format hex address with local_hex_string().
6865 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6867 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6870 2002-07-24 Tom Tromey <tromey@redhat.com>
6872 * jv-exp.y: Marked all strings with _().
6873 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6875 (MethodInvocation, CastExpression, parse_number, yyerror,
6876 java_type_from_name, push_expression_name, yylex): Typo fixes.
6878 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6880 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6881 (tee_file_flush, tee_file_write, tee_file_fputs)
6882 (tee_file_isatty): New.
6883 * ui-file.h (tee_file_new): Add prototype.
6885 2002-07-24 Aidan Skinner <aidan@velvet.net>
6887 * ada-lang.c: Change k&r style function definitions to prototyped
6889 * ada-typeprint.c: Change k&r style function definitions to prototyped
6891 * ada-valprint.c: Change k&r style function definitions to prototyped
6894 2002-07-24 Andrew Cagney <cagney@redhat.com>
6896 * README: Remove reference to remote-bug.
6897 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6899 (m88k-nat.o): Delete rule.
6900 (m88k-tdep.o): Delete rule.
6901 (remote-bug.o): Delete rule.
6902 * MAINTAINERS: Mark as obsolete.
6903 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6904 * m88k-tdep.c: Make file obsolete.
6905 * config/m88k/m88k.mh: Ditto.
6906 * config/m88k/delta88v4.mh: Ditto.
6907 * config/m88k/delta88v4.mt: Ditto.
6908 * config/m88k/delta88.mt: Ditto.
6909 * config/m88k/delta88.mh: Ditto.
6910 * remote-bug.c: Ditto.
6911 * config/m88k/tm-delta88.h: Ditto.
6912 * config/m88k/nm-delta88v4.h: Ditto.
6913 * config/m88k/xm-delta88.h: Ditto.
6914 * config/m88k/xm-dgux.h: Ditto.
6915 * config/m88k/tm-m88k.h: Ditto.
6916 * config/m88k/nm-m88k.h: Ditto.
6917 * config/m88k/tm-delta88v4.h: Ditto.
6918 * m88k-nat.c: Ditto.
6919 * cxux-nat.c: Ditto.
6920 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6921 and m88*-*-* obsolete.
6922 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6925 2002-07-24 Andrew Cagney <cagney@redhat.com>
6927 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6928 constant. Same for local pointer variables.
6929 (extract_signed_integer): Ditto.
6930 * defs.h (extract_unsigned_integer): Update.
6931 (extract_signed_integer): Update.
6933 2002-07-24 Andrew Cagney <cagney@redhat.com>
6935 * regcache.c (regcache_raw_write): Change buf parameter to a
6936 constant void pointer.
6937 (regcache_raw_read): Change buf parameter to a void pointer.
6938 (legacy_write_register_gen): Change myaddr parameter a constant
6940 (supply_register): Change val parameter to a const void pointer.
6941 * regcache.h (regcache_raw_write): Update declaration.
6942 (regcache_raw_read): Update declaration.
6943 (supply_register): Update declaration.
6945 2002-07-24 Tom Tromey <tromey@redhat.com>
6947 * defs.h (gdb_readline_wrapper): Declare.
6948 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6949 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6950 * top.c (gdb_readline_wrapper): New function.
6951 (command_line_input): Use it.
6953 2002-07-24 Andrew Cagney <cagney@redhat.com>
6955 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6956 regcache_read and regcache_write.
6957 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6958 * regcache.c: Update.
6959 * sh-tdep.c (sh64_push_arguments): Update comment.
6960 (sh_pseudo_register_read): Update.
6961 (sh_pseudo_register_write): Update.
6962 (sh4_register_read): Update.
6963 (sh4_register_write): Update.
6964 (sh64_pseudo_register_read): Update.
6965 (sh64_pseudo_register_write): Update.
6966 (sh64_register_read): Update.
6967 (sh64_register_write): Update.
6968 * i386-tdep.c (i386_extract_return_value): Update.
6969 (i386_extract_struct_value_address): Update.
6970 (i386_extract_return_value): Update.
6971 * blockframe.c (generic_read_register_dummy): Update.
6972 (generic_call_dummy_register_unwind): Update
6973 * infrun.c (write_inferior_status_register): Update.
6975 2002-07-23 Jim Blandy <jimb@redhat.com>
6977 * parser-defs.h (expression_context_pc): Make this extern.
6978 (Thanks to Michael Snyder.)
6980 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6982 GDB 5.2.1 released from 5.2 branch.
6983 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6984 * README: Update to mention 5.2.1.
6986 2002-07-23 Mark Salter <msalter@redhat.com>
6988 * remote.c (remote_read_bytes): Fix check for error.
6990 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6992 * aix-thread.c (language.h): Include.
6993 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6994 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6995 Print newlines at end of debug messages.
6996 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6997 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6999 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7001 * aix-thread.c (ppc-tdep.h): Include.
7002 (special_register_p): New function.
7003 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
7004 (store_regs_user_thread): Use register number information from
7005 gdbarch_tdep struct instead of hardcoded offsets relative to
7006 FIRST_UISA_SP_REGNUM.
7007 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
7008 special_register_p() instead of using FPLAST_REGNUM and
7009 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7010 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
7011 will be MQ's register number.
7013 2002-07-22 Michael Snyder <msnyder@redhat.com>
7015 * aix-thread.c (ops): Rename to aix_thread_ops.
7016 (base_ops): Rename to base_target.
7017 (ops_attach): Rename to aix_thread_attach.
7018 (ops_detach): Rename to aix_thread_detach.
7019 (ops_resume): Rename to aix_thread_detach.
7020 (ops_wait): Rename to aix_thread_wait.
7021 (ops_kill): Rename to aix_thread_kill.
7022 (init_ops): Rename to init_aix_thread_ops.
7023 (ops_fetch_register): Rename to aix_thread_fetch_register.
7024 (ops_store_register): Rename to aix_thread_store_register.
7025 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7026 (ops_thread_alive): Rename to aix_thread_thread_alive.
7027 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7028 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
7029 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7030 (fetch_regs_lib): Rename to fetch_regs_user_thread.
7031 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7032 (store_regs_lib): Rename to store_regs_user_thread.
7033 (store_regs_kern): Rename to store_regs_kernel_thread.
7035 2002-07-22 Michael Snyder <msnyder@redhat.com>
7037 * aix-thread.c (ops_prepare_to_store): Eliminate.
7038 (init_ops): Don't initialize ops.prepare_to_store.
7039 (store_regs_kern): Pre-fetch register buffers from child,
7040 because some registers may not be in the cache. Copy
7041 regs from register cache only if they are cached.
7042 (store_regs_lib): Copy regs from register cache only
7044 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7045 fill_gprs64): Ditto.
7047 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7049 * aix-thread.c (gdb_assert.h): Include.
7050 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7051 register sizes (from register cache) match size of buffer holding
7053 (fill_sprs32): Change parameter types to match those in the ptrace()
7055 (store_regs_lib): Likewise, but for 32-bit temporary variables.
7056 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7058 2002-07-22 Michael Snyder <msnyder@redhat.com>
7060 * aix-thread.c (supply_sprs64): Cosmetic change.
7061 (supply_sprs32): Cosmetic change.
7062 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7063 (fill_sprs64): Use regcache_collect instead of read_register.
7064 (store_regs_lib): Use regcache_collect instead of
7065 read_register. Use fill_sprs32 instead of fill_sprs64,
7066 if debugging a 32-bit architecture.
7067 (store_regs_kern): Use fill_gprs64 etc. to pull the values
7068 out of the register cache, instead of passing a pointer into
7069 the register cache directly to ptrace. Use regcache_collect
7070 insteaad of read_register.
7071 (ops_prepare_to_store): Use target_read_registers instead
7072 of read_register_bytes.
7074 2002-07-20 Aidan Skinner <aidan@velvet.net>
7076 * MAINTAINERS: Add self under write after approval.
7078 2002-07-20 Aidan Skinner <aidan@velvet.net>
7080 * ada-tasks.c: Change k&r style function definitions to prototyped
7083 2002-07-19 Andrew Cagney <ac131313@redhat.com>
7085 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7086 * x86-64-tdep.c: Include "objfiles.h".
7087 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7088 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7090 2002-07-17 Michal Ludvig <michal@suse.cz>
7092 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7093 (update_context): Initialise cfa variable.
7095 2002-07-17 Michael Snyder <msnyder@redhat.com>
7097 * aix-thread.c: Shorten some long lines.
7098 Bring comments into line with code spec.
7100 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7102 * infrun.c: Re-indent using gdb_indent.sh.
7104 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7106 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7107 Leave the indentation temporarily untouched, to minimize the diffs.
7109 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
7111 * stabsread.c: Make os9k sections of the code obsolete,
7113 * stabsread.h: Make os9k sections of the code obsolete.
7115 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7117 * linux-low.c (regsets_store_inferior_registers): Add free()
7118 at the end of a loop to prevent memory leak.
7119 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7120 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7121 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7123 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7125 2002-07-17 Jim Blandy <jimb@redhat.com>
7127 * macrocmd.c (info_macro_command): Remove newline from error
7130 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7132 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7133 (sh_gdbarch_init): Use it for sh-dsp.
7135 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7137 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7138 64-bit DWARF2 format.
7140 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7142 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7143 <sys/proc.h> when not available.
7145 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7147 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7148 * stabsread.c: Make os9k sections of the code obsolete.
7149 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7150 * config/i386/i386os9k.mt: Make file obsolete.
7151 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7152 (COMMON_OBS): Remove os9kread.o
7153 (SFILES): Remove os9kread.c.
7154 (os9kread.o, remote-os9k.o): Make target obsolete.
7155 * remote-os9k.c: Make file obsolete.
7156 * os9kread.c: Make file obsolete.
7159 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7161 * NEWS: Mention that the FR30 has been made obsolete.
7162 * fr30-tdep.c: Make file obsolete.
7163 * config/fr30/tm-fr30.h: Ditto.
7164 * config/fr30/fr30.mt: Ditto.
7165 * configure.tgt: Make fr30-*-elf obsolete.
7166 * MAINTAINERS: Make fr30-elf obsolete.
7168 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7170 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7171 found is not inside a section.
7173 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7175 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7177 (pdc_realloc): Use xrealloc() instead of realloc().
7179 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7181 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7182 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7183 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7186 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7188 * aix-thread.c (ptrace_check): Eliminate goto.
7189 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7192 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7194 * aix-thread.c (gdbcmd.h): Include.
7195 (DEBUG, DBG, DBG2, dbg): Eliminate.
7196 (debug_aix_thread): New static global.
7197 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7198 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7199 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7200 invocations to DBG and DBG2 macros to test against
7201 ``debug_aix_thread'' and call fprintf_unfiltered().
7202 (_initialize_aix_thread): Add new command "set debug aix-thread".
7204 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7206 From Gerhard Tonn <TON@de.ibm.com>:
7207 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7208 instead of supply_register.
7210 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7212 * dwarf2cfi.c: Include "gdb_assert.h".
7213 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7215 (update_context): Do not use __func__. Add missing ``break''.
7216 (update_context): Do not use __func__.
7218 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7220 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7221 and its setting. Set gdbarch instruction printing functions
7222 directly. For non-rs6000 case use new function
7223 gdb_print_insn_powerpc.
7224 (gdb_print_insn_powerpc): New function.
7226 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7228 * NEWS: Mention that the d30v has been marked obsolete.
7229 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7230 * configure.tgt: Mark d30v-*-* as obsolete.
7231 * d30v-tdep.c: Mark file as obsolete.
7232 * config/d30v/d30v.mt: Ditto.
7233 * config/d30v/tm-d30v.h: Ditto.
7235 2002-07-13 Aidan Skinner <aidan@velvet.net>
7237 * ada-tasks.c (add_task_entry): replace calls to
7238 malloc() with xmalloc
7239 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7241 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7242 ada_finish_decode_line_1, all_sals_for_line
7243 ada_breakpoint_rewrite): replace calls to free() with xfree()
7245 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7247 From Nicholas Duffek (with minor changes by Martin Hunt,
7248 Louis Hamilton, and Kevin Buettner):
7249 * aix-thread.c: New file.
7251 2002-07-12 Petr Sorfa <petrs@caldera.com>
7253 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7254 complaint for invalid attribute class or form.
7255 (read_func_scope): DW_AT_frame_base
7256 better handling of DW_AT_block*.
7257 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7258 better handling of DW_AT_block*.
7259 (read_common_block): DW_AT_location
7260 better handling of DW_AT_block*.
7261 (read_partial_die): DW_AT_location better handling
7263 (new_symbol): DW_AT_external better handling of
7264 DW_AT_block*. Proper initialization of variable
7266 (attr_form_is_block): New function that returns true
7267 if the attribute's form is of DW_FORM_block*.
7269 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7271 * valops.c (find_method_list): Remove comment about
7272 removed STATIC_MEMFUNCP argument.
7273 (value_find_oload_method_list): Likewise.
7275 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7277 From Nicholas Duffek:
7278 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7279 target_new_objfile_hook.
7281 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7283 From Nicholas Duffek:
7284 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7287 2002-07-12 Andrew Cagney <cagney@redhat.com>
7289 * MAINTAINERS: Mention --enable-sim-build-warnings.
7290 (m68hc11-elf): Disable sim build warnings.
7291 (m32r-elf): Mark as broken obsolete candidate.
7292 (x86_64-linux-gnu): Mark as buildable with -Werror.
7293 (arm-elf): Change -w to ``,'' which enables warnings but not
7296 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7298 * bcache.h: Update copyright.
7299 (struct bstring, struct bcache): Move definition to "bcache.c".
7300 Replaced by opaque declaration.
7301 (bcache_xfree): Replace free_bcache.
7302 (bcache_xmalloc, bcache_memory_used): Declare.
7304 * bcache.c: Update copyright.
7305 (struct bstring, struct bcache): Moved to here from "bcache.h".
7307 (bcache_xmalloc, bcache_memory_used): New functions.
7308 (bcache_xfree): Replace function free_bcache.
7310 * Makefile.in (objfiles.o): Add $(bcache_h).
7311 (objfiles_h): Remove $(bcache_h).
7312 (symfile.o): Add $(bcache_h).
7314 * symmisc.c: Update copyright.
7315 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7316 (print_objfile_statistics): Use bcache_memory_used.
7318 * symfile.c: Include "bcache.h".
7319 (reread_symbols): Use bcache_xfree.
7320 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7321 (add_psymbol_to_list): Pass psymbol_cache by value.
7322 (add_psymbol_with_dem_name_to_list): Ditto.
7324 * objfiles.h: Update copyright.
7325 (struct bcache): Declare opaque. Do not include "bcache.h".
7326 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7328 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7330 * objfiles.c: Include "bcache.h". Update copyright.
7331 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7333 (free_objfile): Use bcache_xfree.
7335 2002-07-11 Grace Sainsbury <graces@redhat.com>
7337 * monitor.c (monitor_fetch_register): Make name a constant.
7338 (monitor_store_register): Same.
7340 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7342 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7343 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7344 (finish_block) For non-function blocks, hash the symbol table. For
7345 function blocks, mark the symbol table as unhashed.
7346 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7347 (msymbol_hash_iw): Likewise.
7348 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7350 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7351 (lookup_minimal_symbol): Likewise for both.
7352 * symtab.h (struct block): Add `hashtable' flag. Comment the
7354 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7355 (ALL_BLOCK_SYMBOLS): Update.
7356 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7357 (struct symbol): Add `hash_next' pointer.
7358 * symtab.c (lookup_block_symbol): Search using the hash table when
7360 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7361 (search_symbols, find_addr_symbol): Likewise.
7363 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7364 (read_dst_symtab): Likewise.
7365 * jv-lang.c (get_java_class_symtab): Likewise.
7366 * mdebugread.c: Include "gdb_assert.h".
7367 (shrink_block): Assert that the block being modified is not hashed.
7368 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7369 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7371 (dump_symtab): Recognize hashed blocks.
7372 * printcmd.c (print_frame_args): Assert that function blocks do not
7373 have hashed symbol tables.
7374 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7375 (fill_in_ada_prototype, debug_print_block): Likewise.
7376 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7378 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7380 * stack.c (print_frame): Use result of frame_address_in_block()
7381 instead of fi->pc when evaluating symbols.
7382 (backtrace_command_1): Ditto.
7384 2002-07-11 Andrew Cagney <cagney@redhat.com>
7386 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7389 * arm-tdep.c (arm_register_name): Make return type constant.
7391 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7393 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7395 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7396 * s390-tdep.c (s390_fp_regnum): Ditto.
7397 (s390_read_fp): Ditto.
7398 (s390_pop_frame): Ditto.
7399 (_initialize_s390_tdep): Ditto.
7400 * remote.c (get_remote_state): Ditto.
7401 * procfs.c (mappingflags): Ditto.
7402 * memattr.c (_initialize_mem): Ditto.
7403 * mcore-tdep.c (mcore_pop_frame): Ditto.
7404 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7405 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7406 * language.c (set_case_str): Ditto.
7407 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7408 * frv-tdep.c (new_variant): Ditto.
7409 (frv_stopped_data_address): Ditto.
7410 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7411 (context_alloc): Ditto.
7412 (frame_state_alloc): Ditto.
7413 (unwind_tmp_obstack_init): Ditto.
7414 (unwind_tmp_obstack_free): Ditto.
7415 (cfi_read_fp): Ditto.
7416 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7417 (cris_pop_frame): Ditto.
7418 * c-lang.c (scanning_macro_expansion): Ditto.
7419 (finished_macro_expansion): Ditto.
7420 (c_preprocess_and_parse): Ditto.
7421 * gdbarch.sh: Ditto.
7422 * gdbarch.h, gdbarch.c: Regenerate.
7423 * config/mn10200/tm-mn10200.h: Adjust indentation.
7424 * target.c: Adjust indentation.
7425 * symtab.h: Adjust indentation.
7426 * stabsread.h: Adjust indentation.
7427 * remote-es.c: Adjust indentation.
7428 * os9kread.c: Adjust indentation.
7430 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7432 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7433 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7435 2002-07-10 Grace Sainsbury <graces@redhat.com>
7437 * NEWS: Mention m68k, mcore multi-arching.
7438 * MAINTAINERS: Change status of m68k, mcore to reflect
7441 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7443 * valops.c (find_overload_match): Free oload_syms.
7445 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7447 Define HAVE_SYS_PROC_H if sys/proc.h exists
7448 * configure.in: Add check for sys/proc.h
7449 * config.in: Regenerate.
7450 * configure: Regenerate.
7452 2002-07-09 Grace Sainsbury <graces@redhat.com>
7454 * config/m68k/tm-m68k.h: Remove macros wrapped in
7455 #if !GDB_MULTI_ARCH.
7457 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7459 * config.in, configure: Regenerate.
7461 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7463 * dwarf2cfi.c: Include "gcore.h".
7464 (execute_stack_op): Fix implementation of the
7465 DW_OP_deref and DW_OP_deref_size operators by letting do their
7466 lookup in the target.
7468 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7470 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7471 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7474 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7476 Fix PR gdb/595, gdb/602
7477 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7478 Don't call value_cast, just read the vtable pointer; update comments
7481 2002-07-05 Grace Sainsbury <graces@redhat.com>
7483 * config/mcore/tm-mcore.h: Remove file.
7484 * config/mcore/mcore.mt: Remove definition of TM_FILE
7485 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7487 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7489 * i386bsd-tdep.c: Include "gdb_string.h".
7491 2002-07-04 Grace Sainsbury <graces@redhat.com>
7493 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7494 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7496 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7497 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7498 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7499 (RETVAL_REGNUM): Move macros from tm-mcore.h
7500 (mcore_reg_struct_has_addr): New function.
7501 (mcore_gdbarch_init): Added initializations for the macros removed
7504 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7506 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7507 traditonal string branding within the ELF header.
7509 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7511 * symtab.c (remove_params): New function.
7512 (make_symbol_overload_list): Use it instead of cplus_demangle.
7513 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7515 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7517 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7519 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7521 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7522 and tdep->sigtramp_end.
7523 * i386obsd-nat.c: New file.
7524 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7526 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7527 Don't call get_current_frame().
7529 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7531 * i386-nat.c (child_post_startup_inferior): New function
7532 calling i386_cleanup_dregs if
7533 I386_USE_GENERIC_WATCHPOINTS is defined.
7534 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7535 conditional to acknowledge that i386-nat.c has its
7536 own child_post_startup_inferior function.
7538 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7540 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7541 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7542 instead of MAX_REGISTER_RAW_SIZE.
7543 (i386_extract_return_value, i386_extract_struct_value_address):
7544 Convert to use regcache.
7545 (i386_gdbarch_init): Set max_register_raw_size and
7546 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7547 Set extract_return_value and extract_struct_value_address instead
7548 of their deprecated variants.
7550 Convert i386 target to generic dummy frames.
7551 * i386-tdep.c: Include "symfile.h".
7552 (i386_frameless_signal_p): Consider a function to be frameless if
7553 the pc points at the first instruction of the function.
7554 (i386_frame_chain): Handle (generic) call dummies.
7555 (i386_frame_saved_pc): Likewise.
7556 (i386_frame_init_saved_regs): Remove code dealing with call
7557 dummies on the stack.
7558 (i386_push_dummy_frame): Removed.
7559 (i386_call_dummy_words): Removed.
7560 (i386_fix_call_dummy): Removed.
7561 (i386_push_return_address): New function.
7562 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7563 parameter, and don't call get_current_frame.
7564 (i386_pop_frame): New function.
7565 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7566 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7567 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7568 call_dummy_length to 0, set call_dummy_words to NULL, set
7569 sizeof_call_dummy_words to 0, set fix_call_dummy to
7570 generic_fix_call_dummy, set pc_in_call_dummy to
7571 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7572 generic_push_dummy_frame, set push_return_address to
7573 i386_push_return_address and set frame_chain_valid to
7574 generic_file_frame_chain_valid.
7576 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7578 * gdbarch.sh (struct regcache): Add opaque declaration.
7579 (EXTRACT_RETURN_VALUE): New architecture method.
7580 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7581 * gdbarch.h, gdbarch.c: Regenerate.
7582 * arch-utils.c (legacy_extract_return_value): New function.
7583 * arch-utils.h (legacy_extract_return_value): Declare.
7584 * values.c (value_being_returned): Re-enable code handling
7585 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7586 deprecated_grub_regcache_for_registers call to block handling
7587 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7588 (EXTRACT_RETURN_VALUE): Do not define.
7590 2002-07-03 Grace Sainsbury <graces@redhat.com>
7592 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7593 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7594 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7595 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7596 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7597 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7598 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7599 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7600 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7601 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7602 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7603 argument so the function fits the prototype in the architecture
7605 (mcore_pop_frame): Remove argument so the function fits the
7606 prototype. Use get_current_frame instead of the argument.
7607 (mcore_push_arguments): Change type of struct_return so the
7608 function can be used in the architecture vector.
7609 (mcore_store_struct_return): Add.
7610 (mcore_frame_init_saved_regs): Add.
7611 (mcore_gdbarch_init): Add function calls to replace the macros
7612 removed from tm-mcore.h
7614 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7616 * infcmd.c (print_return_value): Remove compatibility code calling
7617 deprecated_grub_regcache_for_registers.
7619 * values.c: Include "regcache.h".
7620 (value_being_returned): Update. Use
7621 deprecated_grub_regcache_for_registers to extract the register
7623 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7624 ``struct regcache''.
7625 * Makefile.in (values.o): Add dependency on $(regcache_h).
7627 * inferior.h (run_stack_dummy): Change type of second parameter to
7628 a ``struct regcache''.
7629 * valops.c (hand_function_call): Change type of retbuf to ``struct
7630 regcache''. Allocate using regcache_xmalloc, clean using
7631 make_cleanup_regcache_xfree.
7632 * infcmd.c (run_stack_dummy): Update. Use
7633 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7635 * regcache.c (do_regcache_xfree): New function.
7636 (make_cleanup_regcache_xfree): New function.
7637 * regcache.h (make_cleanup_regcache_xfree): Declare.
7639 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7641 * event-top.c (command_line_handler): Don't read past
7642 beginning of buffer.
7644 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7646 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7648 (varobj_create): Store frame_id for root.
7649 (varobj_gen_name): Use xasprintf.
7650 (varobj_update): Save and restore frame using get_frame_id() and
7652 (create_child): Use xasprintf.
7653 (new_root_variable): Initialize frame_id.
7654 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7655 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7656 to prevent memory leak.
7658 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7660 * valops.c (hand_function_call): Move declaration of retbuf to
7661 start of function, allocate using malloc, add a cleanup but before
7662 the inf_status cleanup, cleanup the buffer. Rename local variable
7663 old_chain to inf_status_cleanup.
7665 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7667 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7669 * cli/cli-decode.c (cmd_func_p): New function.
7670 (cmd_func): New function.
7672 * command.h: Add cmd_func() and cmd_func_p().
7674 2002-07-03 Grace Sainsbury <graces@redhat.com>
7676 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7677 (REGISTER_SIZE): Remove.
7678 (MAX_REGISTER_RAW_SIZE): Remove.
7679 (REGISTER_VIRTUAL_TYPE): Remove.
7680 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7681 (REGISTER_NAME): Remove.
7682 (USE_GENERIC_DUMMY_FRAMES): Remove.
7683 (CALL_DUMMY): Remove.
7684 (CALL_DUMMY_START_OFFSET): Remove.
7685 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7686 (CALL_DUMMY_LOCATION): Remove.
7687 (FIX_CALL_DUMMY): Remove.
7688 (CALL_DUMMY_ADDRESS): Remove.
7689 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7690 (SAVE_DUMMY_FRAME_TOS): Remove.
7691 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7692 (mcore_register_virtual_type): New function.
7693 (mcore_register_byte): New function.
7694 (mcore_register_size): New function.
7695 (mcore_register_name): New function.
7696 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7697 macros removed from tm-mcore.h.
7698 (mcore_dump_tdep): Add.
7699 (_initialize_mcore_tdep): Add gdbarch_register call.
7701 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7703 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7704 frameless_look_for_prologue, such that we actually call this
7707 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7709 * frame.h (frame_address_in_block): New function.
7711 * blockframe.c (frame_address_in_block): New function extracted
7712 from get_frame_block().
7713 (get_frame_block): Use frame_address_in_block().
7714 (block_innermost_frame): Use frame_address_in_block() to match
7715 the frame pc address against the block boundaries rather than
7716 the frame pc directly. This prevents a failure when a frame pc
7717 is actually a return-address pointing immediately after the end
7720 2002-07-02 Grace Sainsbury <graces@redhat.com>
7722 * MAINTAINERS: Add self under write after approval.
7724 2002-07-02 Grace Sainsbury <graces@redhat.com>
7726 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7727 used in architecture vector. The default is
7728 m68k_local_breakpoint_from_pc.
7729 (m68k_local_breakpoint_from_pc): Add.
7730 (enum): Add register numbers from tm-m68k.h.
7731 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7733 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7734 GDB_MULTI_ARCH_PARTIAL.
7735 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7736 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7738 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7739 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7740 to enum in m68k-tdep.c
7742 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7744 * solib-osf.c (open_map): Compute the list of shared libraries
7745 loaded by the inferior, rather than the list of libraries loaded
7746 by GDB itself. Otherwise, GDB ends up reading the symbols from
7747 the wrong shared libraries...
7749 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7751 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7752 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7754 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7756 (FRAMELESS_SIGNAL): Remove function.
7757 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7758 i386_linux_saved_pc_after_call): Removed.
7759 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7760 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7761 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7763 * i386-tdep.c (i386_frameless_signal_p): New function.
7764 (i386_frame_chain): Deal with frameless signals.
7765 (i386_sigtramp_saved_sp): New function.
7766 (i386_frame_saved_pc): Deal with frameless signals.
7767 (i386_saved_pc_after_call): Make sure the correct value is
7768 returned just after entry into a sigtramp.
7769 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7770 i386fbsd4_sc_sp_offset): New variables.
7771 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7772 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7773 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7774 similiar to what we already did for sc_pc_offset.
7775 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7778 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7780 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7782 * config/i386/tm-x86-64linux.h: New.
7783 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7785 * config/i386/nm-x86-64.h: Rename to ...
7786 * config/i386/nm-x86-64linux.h: ... this one.
7787 * config/i386/x86-64linux.mh: Reflect the above change.
7789 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7791 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7792 with sigcontext_addr. Add sc_sp_offset.
7793 (i386bsd_sigtramp_saved_pc): Remove prototype.
7794 (i386bsd_sicontext_addr): Add prototype.
7795 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7796 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7797 (i386_svr4_sigtramp_saved_pc): Removed.
7798 (i386_svr4_sigcontext_addr): New function.
7799 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7800 Initialize tdep->sigcontext_addr instead. Initialize
7801 tdep->sc_pc_offset and tdep->sc_sp_offset.
7802 (i386_gdbarch_init): Likewise.
7803 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7805 (i386bsd_sigtramp_saved_pc): Remove function.
7806 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7807 Initialize tdep->sigcontext_addr instead. Initialize
7809 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7810 of tdep->sigtramp_saved_pc.
7811 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7812 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7815 * i386-tdep.c (i386_frameless_function_invocation,
7816 i386_frame_num_args, i386_frame_init_saved_regs,
7817 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7818 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7819 i386_extract_return_value, i386_store_return_value,
7820 i386_extract_struct_value_address, i386_register_virtual_type,
7821 i386_register_convertible, i386_register_convert_to_virtual,
7822 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7823 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7826 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7828 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7830 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7831 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7832 this macro. Include "value.h".
7834 2002-06-30 Aidan Skinner <aidan@velvet.net>
7836 * ada-exp.tab.c: remove as it's a generated file
7837 * ada-lex.c: remove as it's a generated file
7839 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7841 * config/i386/tm-i386.h (struct frame_info, struct
7842 frame_saved_regs, struct value, struct type): Remove forward
7845 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7846 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7847 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7848 (FILL_FPXREGSET): Define.
7850 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7852 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7853 i[3456]86-*-netbsd* case.
7854 * config/i386/tm-obsd.h: Removed.
7855 * config/i386/obsd.mt: Removed.
7856 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7858 (MH_CFLAGS): Add -DYYDEBUG=0.
7860 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7861 i386nbsd_sc_pc_offset on OpenBSD too.
7863 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7864 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7865 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7867 * i386bsd-tdep.c: Include "arch-utils.h".
7868 (i386bsd_aout_in_solib_call_trampoline): New function.
7869 (i386bsd_init_abi): Set in_solib_call_trampoline to
7870 i386bsd_aout_in_solib_call_trampoline.
7871 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7872 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7874 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7876 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7877 (struct obstack, struct bcache): Add opaque declarations.
7878 * Makefile.in (macrotab_h): Update
7880 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7882 * blockframe.c (generic_find_dummy_frame): Change return type to
7883 ``struct regcache''.
7884 (struct dummy_frame): Replace field ``registers'' with regcache, a
7885 struct regcache object.
7886 (generic_find_dummy_frame): Update.
7887 (generic_push_dummy_frame): Update. Use regcache_xfree,
7888 regcache_xmalloc and regcache_cpy.
7889 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7891 (deprecated_generic_find_dummy_frame): Update.
7892 (generic_read_register_dummy): Update. Use
7893 regcache_read_as_address.
7894 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7895 (generic_get_saved_register): Update. Use regcache_read.
7897 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7899 * Makefile.in (objfiles_h): Add $(bcache_h).
7900 * objfiles.h: Include "bcache.h".
7902 * Makefile.in (symtab_h): Remove $(bcache_h).
7903 * symtab.h: Do not include "bcache.h".
7905 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7907 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7908 generic_func_frame_chain_valid.
7910 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7912 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7913 * config/i386/tm-fbsd.h: Likewise.
7915 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7917 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7918 generic_unwind_get_saved_register.
7920 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7922 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7923 * regcache.c (supply_register): Add missing argument to
7924 register_buffer call.
7926 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7928 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7929 Solaris /bin/grep does not not like it. From Peter Schauer.
7931 2002-06-26 Tom Tromey <tromey@redhat.com>
7933 * command.h (add_setshow_cmd): Declare.
7934 (add_setshow_cmd_full): Declare.
7935 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7936 returns void. Use add_setshow_cmd_full.
7937 (add_setshow_cmd_full): New function.
7938 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7939 (add_setshow_boolean_cmd): Likewise.
7941 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7943 * config/vax/tm-vax.h: Protect from multiple inclusion.
7944 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7945 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7946 * config/vax/tm-vaxbsd.h: ...here. New file.
7947 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7949 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7951 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7952 (BELIEVE_PCC_PROMOTION): Remove.
7953 (AP_REGNUM): Move to...
7954 * config/vax/nm-vax.h: ...here.
7955 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7956 (vax_breakpoint_from_pc): New function.
7957 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7958 and gdbarch_believe_pcc_promotion.
7960 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7962 * Makefile.in (vax_tdep_h): Define.
7963 (vax-tdep.o): Use $(vax_tdep_h).
7964 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7965 (vax_dump_tdep): New function.
7966 (_initialize_vax_tdep): Register vax_dump_tdep.
7967 * vax-tdep.h: Include osabi.h.
7968 (struct gdbarch_tdep): New.
7970 2002-06-26 Andrew Cagney <cagney@redhat.com>
7972 * frame.h (deprecated_generic_find_dummy_frame): Rename
7973 generic_find_dummy_frame.
7974 * blockframe.c (generic_find_dummy_frame): Make static.
7975 (deprecated_generic_find_dummy_frame): New function.
7976 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7977 generic_find_dummy_frame with deprecated_find_dummy_frame.
7978 (sh64_nofp_frame_init_saved_regs): Ditto.
7979 (sh_fp_frame_init_saved_regs): Ditto.
7980 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7981 (s390_frame_chain): Ditto.
7982 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7984 2002-06-26 Grace Sainsbury <graces@redhat.com>
7986 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7987 gdbarch vector are at the top.
7989 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7990 (FRAME_ARGS_ADDRESS): Remove.
7991 (FRAME_LOCALS_ADDRESS): Remove.
7992 (FRAME_NUM_ARGS): Remove.
7993 (FRAME_ARGS_SKIP): Remove.
7994 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7995 (m68k_gdbarch_init): Add gdbarch initializations for macros
7996 undefined in tm-m68k.h
7998 2002-06-26 Grace Sainsbury <graces@redhat.com>
8000 * monitor.h: Add the function regname to monitor_ops
8001 structure. This way NUM_REGS does not have to be a constant.
8002 * monitor.c (monitor_fetch_register): Added support for regname
8003 function. The function is called if the array regnames is NULL.
8004 (monitor_store_register): Same.
8005 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
8007 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
8008 cpu32bug_cmds.regname to point to new function.
8009 * abug-rom.c (abug_regname): Same as above.
8010 (init_abug_cmds): Same.
8011 * dbug-rom.c (dbug_regname): Same as above.
8012 (init_dbug_cmds): Same.
8013 * remote-est.c (est_regname): Same.
8014 (init_est_cmds): Same.
8015 * rom68k-rom.c (rom68k_regname): Same.
8016 (init_rom68k_cmds): Same.
8018 2002-06-25 Tom Tromey <tromey@redhat.com>
8020 * breakpoint.c (delete_command): Don't repeat `delete' commands.
8022 2002-06-25 Andrew Cagney <cagney@redhat.com>
8024 * infrun.c (stop_registers): Change variable's type to ``struct
8026 (xmalloc_inferior_status): Delete function.
8027 (free_inferior_status): Delete function.
8028 (normal_stop): Use regcache_cpy.
8029 (struct inferior_status): Change type of fields ``stop_registers''
8030 and ``registers'' to ``struct regcache''.
8031 (write_inferior_status_register): Use regcache_write.
8032 (save_inferior_status): Instead of calling
8033 xmalloc_inferior_status, allocate the inf_status buffer directly.
8034 Use regcache_dup_no_passthrough and regcache_dup to save the
8036 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8037 Replace the stop_registers regcache instead of overriding it. Use
8038 regcache_xfree. Instead of calling free_inferior_status, xfree
8039 the buffer directly.
8040 (discard_inferior_status): Use regcache_xfree. Instead of calling
8041 free_inferior_status, xfree the buffer directly.
8042 (build_infrun): Use regcache_xmalloc.
8043 (_initialize_infrun): Delete redundant call to build_infrun.
8045 * Makefile.in (infcmd.o): Add $(regcache_h).
8047 * infcmd.c: Include "regcache.h".
8048 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8049 obtain the address of `stop_registers' register buffer.
8050 (print_return_value): Ditto.
8052 * inferior.h (struct regcache): Add opaque declaration.
8053 (stop_registers): Change variable's declared type to ``struct
8056 2002-06-24 Tom Tromey <tromey@redhat.com>
8058 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8059 * target.c (initialize_targets): Fixed typo in
8060 trust-readonly-sections `show' documentation.
8062 * main.c: Marked all strings with _().
8064 2002-06-24 Don Howard <dhoward@redhat.com>
8066 * memattr.c (create_mem_region): Treat hi == 0 as a special case
8067 that means max CORE_ADDR+1.
8068 (lookup_mem_region): Ditto.
8069 (mem_info_command): Ditto.
8071 2002-06-24 Grace Sainsbury <graces@redhat.com>
8073 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8074 (REGISTER_BYTES_OK): Remove.
8075 (REGISTER_BYTES): Remove.
8076 (STORE_STRUCT_RETURN): Remove.
8077 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8078 (STORE_RETURN_VALUE): Remove.
8079 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8080 (FRAME_CHAIN): Remove.
8081 (FRAMELESS_FUNCTION_INVOCATION): Remove.
8082 (FRAME_SAVED_PC): Remove.
8083 * m68k-tdep.c (m68k_register_bytes_ok):Add.
8084 (m68k_store_struct_return): Add.
8085 (m68k_deprecated_extract_return_value): Add.
8086 (m68k_deprecated_extract_struct_value_address): Add.
8087 (m68k_store_return_value): Add.
8088 (m68k_frame_chain): Add.
8089 (m68k_frameless_function_invocation): Add.
8090 (m68k_frame_saved_pc): Add.
8091 (m68k_gdbarch_init): added set_gdbarch calls for new
8092 functions and deleted macros.
8094 2002-06-23 Tom Tromey <tromey@redhat.com>
8096 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8097 (ALLDEPFILES): Likewise.
8098 (udiheaders): Removed.
8099 (udip2soc.o): Likewise.
8100 (udi2go32.o): Likewise.
8102 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8104 2002-06-22 Andrew Cagney <ac131313@redhat.com>
8106 * infrun.c (_initialize_infrun): Delete unnecessary call to
8109 * regcache.h: Update comments describing the regcache_cpy family
8111 (regcache_save, regcache_restore): Delete declaration.
8112 (regcache_save_no_passthrough): Delete declaration.
8113 (regcache_restore_no_passthrough): Delete declaration.
8114 * regcache.c (regcache_save): Delete function.
8115 (regcache_save_no_passthrough): Delete function.
8116 (regcache_restore): Delete function.
8117 (regcache_restore_no_passthrough): Delete function.
8119 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8121 * config/m68k/tm-m68k.h: Fix typo.
8122 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8123 (m68k_frame_init_saved_regs): Declare.
8125 2002-06-21 Jim Blandy <jimb@redhat.com>
8127 Remove some vestiges of Harris 88k support.
8128 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8129 register numbering quirk.
8130 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8131 odd symbols occurring in Harris 88k ELF targets.
8133 2002-06-21 Tom Tromey <tromey@redhat.com>
8135 * gdb_locale.h: New file.
8136 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8137 (defs_h): Added gdb_locale.h.
8138 * configure, config.in: Rebuilt.
8139 * configure.in (PACKAGE): Define.
8140 * defs.h: Include gdb_locale.h.
8141 * main.c (captured_main): Call setlocale, bindtextdomain,
8144 2002-06-21 Dave Brolley <brolley@redhat.com>
8146 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8147 * config/frv/frv.mt: New file.
8148 * config/frv/tm-frv.h: New file.
8149 * configure.tgt: Support frv-*-*.
8150 * Makefile.in (frv-tdep.o): New target.
8151 * frv-tdep.c: New file.
8152 * NEWS: Mention frv.
8154 2002-06-21 Dave Brolley <brolley@redhat.com>
8156 * MAINTAINERS: Add self to "Write After Approval" list.
8158 2002-06-21 Grace Sainsbury <graces@redhat.com>
8160 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8161 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8162 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8163 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8164 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8166 * m68k-tdep.c: Include arch-utils.h
8167 (m68k_register_raw_size): Add.
8168 (m68k_register_virtual_size): Add.
8169 (m68k_register_virtual_type): Add.
8170 (m68k_register_name): Add.
8171 (m68k_stack_align): Add.
8172 (m68k_register_byte): Add.
8173 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8176 2002-06-21 Grace Sainsbury <graces@redhat.com>
8178 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8179 m68k_find_saved_regs.
8180 (m68k_pop_frame): Removed saved_regs structure, and replaced
8181 references to it with frame->saved_regs.
8182 (m68k_gdbarch_init): Added function calls to initialize the
8184 (m68k_fix_call_dummy): Add.
8185 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8186 (CALL_DUMMY): Remove.
8187 (CALL_DUMMY_LENGTH): Remove.
8188 (CALL_DUMMY_START_OFFSET): Remove.
8189 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8190 (FIX_CALL_DUMMY): Remove.
8191 (PUSH_DUMMY_FRAME): Remove.
8192 (POP_FRAME): Remove.
8194 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8196 * parse.c (parse_fprintf): New function used to avoid calls to
8197 fprintf in bison parser generated debug code.
8198 * parser-defs.h: Declaration of new parse_fprintf function.
8199 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8200 Set YYDEBUG to 1 by default.
8201 Set YYFPRINTF as parse_fprintf.
8203 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8205 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8207 (pointer_encoding, enum ptr_encoding): New.
8208 (execute_cfa_program): Take care about pointer encoding.
8209 (dwarf2_build_frame_info): Only call parse_frame_info for
8210 .debug_frame and .eh_frame.
8211 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8212 fixed augmentation handling, added relative addressing,
8213 ignore duplicate FDEs. Added comments.
8214 * dwarf2cfi.c: Reindented.
8216 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8218 * event-top.c (command_handler): Don't use space_at_cmd_start
8219 unless there is sbrk() on the host. Assign time and space data
8220 to union fields of the appropriate length.
8222 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8224 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8225 x86_64_register_name. Return type changed to 'const char *'.
8226 (x86_64_register_name2nr): Rename to x86_64_register_number.
8227 (x86_64_gdbarch_init): Update to reflect the change.
8228 * x86-64-tdep.h: Ditto.
8229 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8230 (supply_fpregset): Ditto.
8232 2002-06-19 Andrew Cagney <cagney@redhat.com>
8234 * regcache.h: Update copyright.
8235 (struct regcache, struct gdbarch): Add opaque declarations.
8236 (current_regcache): Declare global variable.
8237 (regcache_read, regcache_write): Add gdbarch parameter.
8238 (regcache_save, regcache_save_no_passthrough)
8239 (regcache_restore, regcache_restore_no_passthrough)
8240 (regcache_dup, regcache_dup_no_passthrough)
8241 (regcache_cpy, regcache_cpy_no_passthrough)
8242 (deprecated_grub_regcache_for_registers)
8243 (deprecated_grub_regcache_for_register_valid)
8244 (regcache_valid_p): Add function declarations.
8246 * regcache.c: Update copyright.
8247 (regcache_descr_handle): New global variable.
8248 (struct regcache_descr): Define.
8249 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8250 (regcache_descr, xfree_regcache_descr): New functions.
8251 (struct regcache): Define.
8252 (regcache_xmalloc, regcache_xfree): New functions.
8253 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8254 (regcache_dup, regcache_dup_no_passthrough): New functions.
8255 (regcache_valid_p, regcache_read_as_address): New functions.
8256 (deprecated_grub_regcache_for_registers): New function.
8257 (deprecated_grub_regcache_for_register_valid): New function.
8258 (current_regcache): New global variable.
8259 (register_buffer): Add regcache parameter. Update calls.
8260 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8261 (read_register_gen, write_register_gen): Update register_buffer
8262 call. Test for legacy_p instead of gdbarch_register_read_p or
8263 gdbarch_register_write_p.
8264 (regcache_collect): Update register_buffer call.
8265 (build_regcache): Rewrite. Use deprecated grub functions.
8266 (regcache_save, regcache_save_no_passthrough): New functions.
8267 (regcache_restore, regcache_restore_no_passthrough): New
8269 (_initialize_regcache): Create the regcache_data_handle. Swap
8270 current_regcache global variable.
8272 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8273 parameter to regcache_read and regcache_write calls.
8274 (sh4_register_read): Ditto.
8275 (sh64_pseudo_register_read): Ditto.
8276 (sh64_register_read): Ditto.
8277 (sh_pseudo_register_write): Ditto.
8278 (sh4_register_write): Ditto.
8279 (sh64_pseudo_register_write): Ditto.
8280 (sh64_register_write): Ditto.
8282 * defs.h (XCALLOC): Define.
8284 2002-06-19 Grace Sainsbury <graces@redhat.com>
8286 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8287 * m68k-tdep.c (m68k_gdbarch_init): Added.
8288 (m68k_dump_tdep): Added.
8290 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8292 * ada-lang.c (fill_in_ada_prototype): Update comment.
8294 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8296 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8298 (mips_abi_string, mips_abi_strings): New.
8299 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8300 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8301 tdep->mips_abi_string. Honor mips_abi_string. Default to
8302 O32 if no ABI is found.
8303 (mips_dump_tdep): Use mips_abi_strings.
8304 (mips_abi_update): New function.
8305 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8306 ``set mips abi'' and ``show mips abi''. Check the size of
8309 2002-06-19 Andrew Cagney <cagney@redhat.com>
8311 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8314 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8316 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8317 current frame using only the first stack size adjustment. All
8318 subsequent size adjustments are not considered to be part of
8319 the "static" part of the current frame.
8320 Compute the address of the saved registers relative to the
8321 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8322 in use in this frame.
8324 2002-06-18 Don Howard <dhoward@redhat.com>
8326 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8327 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8328 suggesting this solution.
8330 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8332 * config/romp/xm-rtbsd.h: Delete file.
8333 * config/romp/rtbsd.mh: Delete file.
8335 2002-06-18 Keith Seitz <keiths@redhat.com>
8337 * breakpoint.c (condition_command): Post breakpoint_modify
8338 when a condition is added to an existing breakpoint.
8339 (commands_command): Likewise for commands.
8340 (set_ignore_count): Likewise for ignore counts.
8341 If no tty, do not simply return, still need to send event
8343 (ignore_command): Only print a newline if the command came
8345 Don't call breakpoints_changed, since this is now properly
8346 handled by set_ignore_count.
8348 2002-06-18 Andrew Cagney <cagney@redhat.com>
8350 * MAINTAINERS: Note that cris-elf target can be compiled with
8352 * cris-tdep.c (cris_register_name): Make return type constant.
8353 (cris_breakpoint_from_pc): Ditto.
8355 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8357 * frame.h (struct frame_info): Change type of context to
8360 2002-06-17 Andrew Cagney <cagney@redhat.com>
8362 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8364 * gdbarch.h, gdbarch.c: Regenerate.
8365 * config/mips/tm-mips.h (mips_register_name): Update.
8366 * i386-tdep.h (i386_register_name): Update.
8367 * mips-tdep.c (mips_register_name): Update
8368 * alpha-tdep.c (alpha_register_name): Update.
8369 * arch-utils.c (legacy_register_name): Update.
8370 * arch-utils.h (legacy_register_name): Update.
8371 * avr-tdep.c (avr_register_name): Update.
8372 * ia64-tdep.c (ia64_register_name): Update.
8373 * i386-tdep.c (i386_register_name): Update.
8374 * sparc-tdep.c (sparc32_register_name): Update.
8375 (sparc64_register_name): Update.
8376 (sparclite_register_name): Update.
8377 (sparclet_register_name): Update.
8378 * sh-tdep.c (sh_generic_register_name): Update.
8379 (sh_sh_register_name): Update.
8380 (sh_sh3_register_name): Update.
8381 (sh_sh3e_register_name): Update.
8382 (sh_sh_dsp_register_name): Update.
8383 (sh_sh3_dsp_register_name): Update.
8384 (sh_sh4_register_name): Update.
8385 (sh_sh64_register_name): Update.
8386 * s390-tdep.c (s390_register_name): Update.
8387 * rs6000-tdep.c (rs6000_register_name): Update.
8388 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8389 (ns32k_register_name_32382): Update.
8390 * d10v-tdep.c (d10v_ts2_register_name): Update.
8391 (d10v_ts3_register_name): Update.
8392 * xstormy16-tdep.c (xstormy16_register_name): Update.
8393 * vax-tdep.c (vax_register_name): Update.
8394 * v850-tdep.c (v850_register_name): Update.
8395 * m68hc11-tdep.c (m68hc11_register_name): Update.
8396 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8397 (am33_register_name): Update.
8399 2002-06-17 Grace Sainsbury <graces@redhat.com>
8401 * m68k-tdep.c: Reindented.
8403 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8405 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8406 list of predefined types.
8408 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8410 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8411 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8412 REGISTER_CONVERT_TO_RAW): Remove defines.
8413 (i386_register_virtual_type, i386_register_convertible,
8414 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8416 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8417 macros mentioned above.
8419 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8420 (i386lynx_saved_pc_after_call): Remove prototype.
8421 * i386ly-tdep.c: Include "i386-tdep.h".
8422 (i386lynx_saved_pc_after_call): Make static. Use
8423 read_memory_nobpt instead of read_memory. Use
8424 read_memory_unsigned_integer instead of read_memory_integer.
8425 (i386lynx_init_abi): New function.
8426 (i386lynx_coff_osabi_sniffer): New function.
8427 (_initialize_i386bsd_tdep): New function.
8429 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8430 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8431 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8432 (i386_fix_call_dummy): Remove prototype.
8433 * i386-tdep.c (i386_call_dummy_words): New variable.
8434 (i386_gdbarch_init): Adjust for removal of the
8435 macros mentioned above.
8437 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8439 * command.h (add_setshow_auto_boolean_cmd): Replace
8440 add_set_auto_boolean_cmd.
8441 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8442 add_set_auto_boolean_cmd.
8443 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8444 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8445 mask-address'' command.
8446 (show_mask_address): Add cmd parameter.
8447 * remote.c (add_packet_config_cmd): Update. Change type of
8448 set_func and show_func to cmd_sfunc_ftype.
8449 (_initialize_remote): Update `set remote Z-packet'
8450 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8451 (show_remote_protocol_e_packet_cmd): Ditto.
8452 (show_remote_protocol_E_packet_cmd): Ditto.
8453 (show_remote_protocol_P_packet_cmd): Ditto.
8454 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8455 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8456 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8457 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8458 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8459 (show_remote_protocol_Z_packet_cmd): Ditto.
8460 (show_remote_protocol_binary_download_cmd): Ditto.
8461 (show_remote_cmd): Pass NULL to all of above.
8463 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8465 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8466 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8467 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8468 POP_FRAME): Remove defines.
8469 (i386_push_arguments, i386_store_struct_return,
8470 i386_extract_return_value, i386_store_return_value,
8471 i386_extract_struct_value_address, i386_push_dummy_frame,
8472 i386_pop_frame): Renove prototypes.
8473 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8474 macros mentioned above.
8476 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8478 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8479 add_set_boolean_cmd.
8480 (add_setshow_cmd): New function.
8481 * command.h (add_setshow_boolean_cmd): Replace
8482 add_set_boolean_cmd.
8483 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8484 and ``set rdiromatzero''.
8485 * maint.c (_initialize_maint_cmds): Update commented out code.
8486 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8487 * target.c (initialize_targets): Update `set
8488 trust-readonly-sections'.
8489 * remote.c (_initialize_remote): Update `set remotebreak'.
8491 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8493 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8494 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8495 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8496 fit into multi-arch framework.
8497 (i386_breakpoint_from_pc): New function.
8498 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8501 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8502 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8503 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8504 (i386_frameless_function_invocation, i386_frame_num_args,
8505 i386_frame_init_saved_regs): Remove prototypes.
8506 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8507 macros mentioned above.
8509 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8511 * cli/cli-decode.c (set_cmd_cfunc): Update.
8512 (set_cmd_sfunc): Update.
8513 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8514 (set_cmd_sfunc, set_cmd_cfunc): Update.
8515 * cli/cli-decode.h: Update.
8517 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8519 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8520 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8522 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8524 * defs.h (auto_boolean): Declare enum.
8525 * command.h (cmd_auto_boolean): Delete enum.
8526 * mips-tdep.c (mask_address_var): Update.
8527 (mips_mask_address_p): Update.
8528 (show_mask_address): Update.
8529 * remote.c (struct packet_config): Update.
8530 (update_packet_config): Update.
8531 (show_packet_config_cmd): Update.
8532 (packet_ok): Update.
8533 (add_packet_config_cmd): Update.
8534 (_initialize_remote):
8535 * command.h: Update.
8536 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8537 (do_setshow_command): Update.
8538 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8539 * cli/cli-decode.h: Update.
8541 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8543 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8544 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8545 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8546 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8547 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8548 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8550 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8551 list of DJGPP COFF targets.
8553 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8554 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8555 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8556 (FP0_REGNUM): Remove define.
8557 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8558 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8559 (i386_register_virtual_size): Remove protoype.
8560 * i386-tdep.c (i386_register_virtual_size): Removed.
8561 (i386_extract_return_value, i386_store_return_value): Use
8562 FP0_REGNUM instead of NUM_FREGS to determine whether the
8563 floating-point registers are available.
8564 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8565 Adjust for removal of macros mentioned above.
8567 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8569 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8571 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8573 (supply_gregset, fill_gregset): Remove use of register keyword and
8574 remove declaration for regmap. Use I386_NUM_GREGS instead of
8575 NUM_REGS and NUM_FREGS.
8576 (FPREGSET_FSAVE_OFFSET): Remove.
8577 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8578 NUM_FREGS to determine whether the floating-point registers are
8581 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8582 gnu_store_registers): Replace usage of NUM_GREGS with
8585 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8586 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8587 usage of NUM_GREGS with I386_NUM_GREGS.
8589 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8591 * i386bsd-nat.c: Include "i386-tdep.h".
8592 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8595 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8596 and associated comment. They no longer make any sense, since we
8597 don't use this file anymore on Linux.
8599 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8600 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8601 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8602 elements in these arrays.
8603 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8606 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8608 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8609 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8611 2002-06-14 Andrew Cagney <cagney@redhat.com>
8613 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8614 EXTRACT_RETURN_VALUE.
8615 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8616 EXTRACT_STRUCT_VALUE_ADDRESS.
8617 * gdbarch.h, gdbarch.c: Regenerate.
8619 * values.c (value_being_returned): Handle
8620 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8621 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8623 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8624 * arm-tdep.c (arm_gdbarch_init): Update.
8625 * avr-tdep.c (avr_gdbarch_init): Update.
8626 * cris-tdep.c (cris_gdbarch_init): Update.
8627 * d10v-tdep.c (d10v_gdbarch_init): Update.
8628 * ia64-tdep.c (ia64_gdbarch_init): Update.
8629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8630 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8631 * s390-tdep.c (s390_gdbarch_init): Update.
8632 * sh-tdep.c (sh_gdbarch_init): Update.
8633 * s390-tdep.c (s390_gdbarch_init): Update.
8634 * sparc-tdep.c (sparc_gdbarch_init): Update.
8635 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8636 * v850-tdep.c (v850_gdbarch_init): Update.
8637 * vax-tdep.c (vax_gdbarch_init): Update.
8638 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8639 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8641 * config/arc/tm-arc.h: Update.
8642 * config/d30v/tm-d30v.h: Update.
8643 * config/fr30/tm-fr30.h: Update.
8644 * config/h8300/tm-h8300.h: Update.
8645 * config/h8500/tm-h8500.h: Update.
8646 * config/i386/tm-i386.h: Update.
8647 * config/i386/tm-ptx.h: Update.
8648 * config/i386/tm-symmetry.h: Update.
8649 * config/i960/tm-i960.h: Update.
8650 * config/m32r/tm-m32r.h: Update.
8651 * config/m68k/tm-delta68.h: Update.
8652 * config/m68k/tm-linux.h: Update.
8653 * config/m68k/tm-m68k.h: Update.
8654 * config/m88k/tm-m88k.h: Update.
8655 * config/mcore/tm-mcore.h: Update.
8656 * config/mips/tm-mips.h: Update.
8657 * config/mn10200/tm-mn10200.h: Update.
8658 * config/pa/tm-hppa.h: Update.
8659 * config/pa/tm-hppa64.h: Update.
8660 * config/sparc/tm-sp64.h: Update.
8661 * config/sparc/tm-sparc.h: Update.
8662 * config/sparc/tm-sparclet.h: Update.
8663 * config/z8k/tm-z8k.h: Update.
8665 2002-06-14 Andrew Cagney <cagney@redhat.com>
8667 * Makefile.in (i386_linux_tdep_h): Define.
8668 (i386_tdep_h, i387_tdep_h): Define.
8669 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8670 $(i386_tdep_h) and $(i387_tdep_h).
8671 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8673 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8675 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8676 Already covered by the default.
8678 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8679 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8680 (i386_gdbarch_init): Initialize long_double_format and long_double
8683 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8684 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8686 * config/i386/i386sol2.mh: ... here.
8687 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8688 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8689 (SIGCONTEXT_PC_OFFSET): Remove define.
8690 (IN_SIGTRAMP): Remove define.
8691 * i386-sol2-tdep.c: New file.
8693 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8694 * config/i386/tm-i386nw.h: Removed.
8696 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8697 USE_STRUCT_CONVENTION): Remove defines.
8698 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8699 (get_longjmp_target): Remove prototype.
8700 (IN_SIGTRAMP): Remove define.
8701 (i386bsd_in_sigtramp): Remove prototype.
8702 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8703 function. Update comment accordingly
8704 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8705 (FRAME_SAVED_PC): Remove define.
8706 (i386bsd_frame_saved_pc): Remove prototype.
8707 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8708 GET_LONGJMP_TARGET): Remove defines.
8709 (get_longjmp_target): Remove prototype.
8710 (IN_SIGTRAMP): Remove define.
8711 (i386bsd_in_sigtramp): Remove prototype.
8712 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8713 function. Update comment accordingly
8714 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8715 (FRAME_SAVED_PC): Remove define.
8716 (i386bsd_frame_saved_pc): Remove prototype.
8717 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8719 (USE_STRUCT_CONVENTION): Remove prototype.
8720 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8722 (_initialize_i386bsd_nat): Revise logic to determine some
8723 constants at compile time when compiling a native GDB. Warn if
8724 things don't match up with what we expect.
8725 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8727 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8728 to use date stored in `struct gdbarch_tdep'.
8729 (i386bsd_sigcontext_offset): Remove varaible.
8730 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8731 stored in `struct gdbarch_tdep'.
8732 (i386bsd_frame_saved_pc): Make static.
8733 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8734 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8735 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8736 i386fbsd4_sc_pc_offset): New variables.
8737 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8738 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8740 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8742 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8743 Modify the value of i386fbsd_sigtramp_start and
8744 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8745 i386fbsd_sigtramp_end.
8746 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8749 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8750 define to i386-linux-tdep.h.
8751 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8752 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8754 (i386_linux_register_name, i386_linux_register_byte,
8755 i386_linux_register_raw_size): Remove prototypes.
8756 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8757 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8758 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8759 TARGET_WRITE_PC): Remove defines.
8760 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8761 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8762 i386_linux_write_pc): Remove prototypes.
8763 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8764 (get_longjmp_target): Remove prototype.
8765 * i386-linux-tdep.h: New file.
8766 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8767 * i386-linux-tdep.c: Include "i386-tdep.h" and
8768 "i386-linux-tdep.h".
8769 (i386_linux_register_name, i386_linux_register_byte,
8770 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8771 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8773 (i386_linux_init_abi): New function.
8774 (_initialize_i386_linux_tdep): New function.
8776 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8777 (i386_saved_pc_after_call): Remove prototype.
8778 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8779 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8780 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8781 (i386_register_name, i386_stab_reg_to_regnum,
8782 i386_dwarf_reg_to_regnum): Remove prototypes.
8783 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8784 SIZEOF_SSE_REGS): Remove defines.
8785 (REGISTER_BYTES): Remove define.
8786 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8787 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8788 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8789 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8790 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8791 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8792 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8793 (get_longjmp_target): Remove prototype.
8794 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8795 (sigtramp_saved_pc): Remove define.
8796 (i386v4_sigtramp_saved_pc): Remove prototype.
8797 * config/i386/tm-go32.h (FRAME_CHAIN,
8798 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8799 (i386go32_frame_saved_pc): Remove prototype.
8800 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8801 (get_longjmp_target): Remove prototype.
8802 * i386-tdep.h: Include "osabi.h".
8803 (enum i386_abi): Removed.
8804 (enum struct_return): New enum.
8805 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8806 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8807 sc_pc_offset members.
8808 (i386_gdbarch_register_os_abi): Remove prototype.
8809 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8810 I386_SSE_NUM_REGS): New defines.
8811 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8812 I386_SSE_SIZEOF_REGS): New defines.
8813 (i386_register_name, i386_register_byte, i386_register_raw_size):
8815 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8816 (i386bsd_sigtramp_saved_pc): New prototype.
8817 * i386-tdep.c: Don't include "elf-bfd.h".
8818 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8819 i386_frame_chain, i386_saved_pc_after_call): Make static.
8820 (i386_frame_saved_pc): Rewrite to call architecture dependent
8821 function to deal with signal handlers. Make static.
8822 (i386go32_frame_saved_pc): Removed.
8823 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8825 (i386_get_longjmp_target): New function.
8826 (default_struct_convention, pcc_struct_convention,
8827 reg_struct_convention, valid_conventions, struct_convention): New
8829 (i386_use_struct_convention): New function.
8830 (i386v4_sigtramp_saved_pc): Renamed to
8831 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8832 (i386_pc_in_sigtramp): New function.
8833 (i386_abi_names): Removed.
8834 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8835 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8837 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8838 i386_gdbarch_register_os_abi): Removed.
8839 (struct i386_abi_handler): Removed.
8840 (i386_abi_handler_list): Removed.
8841 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8843 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8844 i386_nw_init_abi): New functions.
8845 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8846 Use set_gdbarch_xxx() calls instead of relying on macros for a
8848 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8849 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8850 Register the various architecture variants defined in this file.
8852 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8854 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8855 (struct main_type): Remove arg_types member. Update comments for
8857 (TYPE_ARG_TYPES): Remove.
8858 (TYPE_FN_FIELD_ARGS): Update.
8859 (smash_to_method_type): Update prototype.
8861 * c-typeprint.c (cp_type_print_method_args): Take method type
8862 instead of argument list. Use new argument layout. Simplify.
8863 (c_type_print_args): Use new argument layout. Simplify.
8864 (c_type_print_base): Update call to cp_type_print_method_args.
8865 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8866 argument; use die->type instead. Update call to
8867 smash_to_method_type.
8868 (read_structure_scope): Update call to dwarf2_add_member_fn.
8869 * gdbtypes.c (allocate_stub_method): Update comment.
8870 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8871 Use new argument layout.
8872 (check_stub_method): Use new argument layout. Don't count
8873 void as an argument.
8874 (print_arg_types): Update comments. Use new argument layout.
8875 (recursive_dump_type): Don't print arg_types member.
8876 * hpread.c (hpread_read_struct_type): Use new argument layout.
8877 (fixup_class_method_type): Likewise.
8878 (hpread_type_lookup): Likewise.
8879 * stabsread.c (read_type): Update calls to read_args and
8880 smash_to_method_type.
8881 (read_args): Use new argument layout. Simplify.
8882 * valops.c (typecmp): Use new argument layout. Update parameters
8883 and comments. Simplify.
8884 (hand_function_call): Use new argument layout.
8885 (search_struct_method): Update call to typecmp.
8886 (find_overload_match): Use new argument layout.
8888 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8890 * NEWS: Mention multithreaded debug support for gdbserver.
8892 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8894 * MAINTAINERS: Mention NEWS.
8896 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8898 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8899 (struct mips_objfile_private, compare_pdr_entries): New.
8900 (non_heuristic_proc_desc): Read the ".pdr" section if it
8903 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8905 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8906 (arm_debug): New static variable.
8907 (_initialize_arm_tdep): Add ``set debug arm'' command.
8909 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8911 * Makefile.in (sim_arm_h): Define.
8912 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8913 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8914 (arm_register_sim_regno): New function, map an internal REGNUM
8915 onto a simulator register number.
8916 (arm_gdbarch_init): Set register_sim_regno.
8918 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8920 * MAINTAINERS: Add self.
8922 2002-06-11 Jim Blandy <jimb@redhat.com>
8924 * source.c (source_info): Mention whether the symtab has
8925 information about preprocessor macros.
8927 Call the command `info macro', not `show macro'.
8928 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8930 (_initialize_macrocmd): Register `info_macro_command' in
8931 `infolist', not `showlist'.
8933 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8935 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8936 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8937 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8938 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8939 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8941 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8942 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8943 (_initialize_mips_tdep): Remove dead code.
8944 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8945 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8946 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8947 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8948 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8949 MIPS_LAST_FP_ARG_REGNUM): Remove.
8951 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8953 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8954 (unwind_tmp_obstack_free, parse_frame_info)
8955 (update_context, cfi_read_fp, cfi_write_fp)
8956 (cfi_frame_chain, cfi_init_extra_frame_info)
8957 (cfi_virtual_frame_pointer): Use the above function.
8958 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8960 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8962 * v850-tdep.c (v850_type_is_scalar): New function.
8963 (v850_use_struct_convention): Match current gcc implementation
8964 as close as possible.
8965 (v850_push_arguments): Fix stack_offset handling. Don't write
8966 struct_addr into register. This is done by v850_store_struct_return.
8967 (v850_extract_return_value): Care for structs.
8968 (v850_store_return_value): Ditto.
8969 (v850_store_struct_return): Actually write address.
8971 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8973 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8974 without debug information too.
8976 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8978 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8979 Make multi-arch pure.
8980 * gdbarch.h, gdbarch.c: Re-generate.
8981 * arm-tdep.c (arm_print_float_info): Update.
8982 * arch-utils.h (default_print_float_info): Update.
8983 * arch-utils.c (default_print_float_info): Update.
8984 * infcmd.c (float_info): Update call.
8986 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8988 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8989 the front of the initialize list.
8991 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8993 * infrun.c (struct inferior_status): Replace fields
8994 selected_frame_address and selected_level with field
8996 (save_inferior_status): Update. Use get_frame_id.
8997 (struct restore_selected_frame_args): Delete.
8998 (restore_selected_frame): Update. Use frame_find_by_id.
8999 (restore_inferior_status): Update.
9001 * breakpoint.h (struct breakpoint): Change type of
9002 watchpoint_frame to frame_id.
9003 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
9004 call to get_current_frame.
9005 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
9007 (watchpoint_check): Use frame_find_by_id.
9009 * frame.h (record_selected_frame): Delete declaration.
9010 * stack.c (record_selected_frame): Delete function.
9012 * frame.h (struct frame_id): Define.
9013 (get_frame_id): Declare.
9014 (frame_find_by_id): Declare.
9015 * frame.c (frame_find_by_id): New function.
9016 (get_frame_id): New function.
9018 2002-06-10 Andrey Volkov <avolkov@transas.com>
9020 * ser-e7kpc.c: Fix duplicated define and call of
9021 _initialize_ser_e7000pc
9023 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9025 * signals/signals.c (target_signal_from_host): Fix #ifdef
9027 (do_target_signal_to_host): Likewise.
9029 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9031 * mips-tdep.c (mips_find_abi_section): New function.
9032 (mips_gdbarch_init): Call it.
9034 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9036 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9037 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
9038 after Andrew's 2002-06-08 gdbarch change.
9040 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9042 * i386-linux-nat.c (suppy_gregset): Don't supply
9043 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9045 (fill_gregset): Don't fetch it under the same circumstances.
9047 2002-06-09 Andrew Cagney <cagney@redhat.com>
9049 * Makefile.in (callback_h): Define.
9050 (remote_sim_h): Update path to remote-sim.h.
9051 (remote-rdp.o): Add $(callback_h).
9052 (remote-sim.o): Use $(callback_h).
9053 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9054 * remote-rdp.c: Include "gdb/callback.h".
9056 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9058 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9059 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9061 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9063 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9064 * rdi-share/serpardr.c: Ditto.
9065 * rdi-share/unixcomm.c: Ditto.
9066 * rdi-share/serdrv.c: Ditto.
9067 * rdi-share/hostchan.h: Ditto.
9068 * rdi-share/hostchan.c: Ditto.
9069 * rdi-share/host.h: Ditto.
9070 * rdi-share/devsw.c: Ditto.
9072 * objfiles.h: Change type of obj_private to void pointer.
9073 * pa64solib.c: Update copyright. Don't include "assert.h", use
9074 strcmp instead of STREQ, use LONGEST, do not use PTR
9075 * somsolib.c: Ditto.
9077 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9078 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9079 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9081 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9083 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9084 (default_get_saved_register): Delete function.
9085 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9086 generic_unwind_get_saved_register.
9087 * gdbarch.h, gdbarch.c: Re-generate.
9089 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9091 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9092 generic_func_frame_chain_valid.
9093 * gdbarch.h, gdbarch.c: Re-generate.
9094 * blockframe.c (generic_func_frame_chain_valid): Only check
9095 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
9096 passing FP to PC_IN_CALL_DUMMY.
9099 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9101 * gdbarch.sh (struct gdbarch_data): Add field init_p.
9102 (register_gdbarch_data): Initialize init_p.
9103 (gdbarch_data): Initialize data pointer using the init function.
9104 (init_gdbarch_data): Delete function.
9105 (gdbarch_update_p): Update.
9106 (initialize_non_multiarch): Update.
9107 (struct gdbarch): Add field initialized_p.
9108 * gdbarch.h, gdbarch.c: Re-generate.
9110 2002-06-07 Michal Ludvig <mludvig@suse.cz>
9112 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9113 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9114 better do the things actually here.
9115 * x86-64-tdep.c (x86_64_register_name2nr): New.
9116 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9117 (x86_64_gdbarch_init): Respect the above change.
9118 * x86-64-tdep.h (x86_64_register_name2nr)
9119 (x86_64_register_nr2name): Add prototypes.
9120 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9122 2002-06-06 Michael Snyder <msnyder@redhat.com>
9124 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9125 Delete extra braces and re-indent.
9126 (d10v_store_return_value): Char return values
9127 must be shifted over by one byte in R0.
9128 (d10v_extract_return_value): Delete extra braces, re-indent.
9130 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9132 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9133 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9134 (d10v_integer_to_address): Rewrite.
9135 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9136 the d10v specific functions which take care of converting to the
9139 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9141 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9142 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9144 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9146 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9148 * config/tm-linux.h: Ditto.
9149 * config/alpha/tm-alphalinux.h: Ditto.
9150 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9151 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9152 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9153 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9154 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9155 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9156 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9157 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9158 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9159 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9160 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9161 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9162 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9163 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9164 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9165 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9166 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9167 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9168 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9169 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9170 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9171 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9172 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9173 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9174 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9175 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9176 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9177 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9178 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9179 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9180 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9181 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9182 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9183 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9184 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9185 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9186 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9188 2002-05-04 Aidan Skinner <aidan@velvet.net>
9190 * ada-exp.tab.c: New file
9191 * ada-exp.y: New file
9192 * ada-lang.c: New file
9193 * ada-lang.h: New file
9194 * ada-lex.c: New file
9195 * ada-lex.l: New file
9196 * ada-tasks.c: New file
9197 * ada-typeprint.c: New file
9198 * ada-valprint.c: New file
9200 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9202 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9203 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9205 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9207 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9208 insetead of ppc-linux-tdep.o.
9209 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9210 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9212 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9214 2002-05-07 Christian Groessler <chris@groessler.org>
9215 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9216 bit register contents for little endian hosts.
9218 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9220 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9223 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9225 * gdbarch.h: Regenerate.
9227 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9229 * MAINTAINERS: Add everyone to write-after-approval list.
9231 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9233 * stack.c (frame_info): Use frame_register_unwind instead of
9234 saved_regs. Mention when the SP is on the stack or in a register.
9236 * frame.h (frame_register_unwind_ftype): Define. Document.
9237 (struct frame_info): Add field register_unwind and
9238 register_unwind_cache.
9239 (frame_register_unwind): Declare.
9240 (generic_unwind_get_saved_register): Declare.
9242 * frame.c (frame_register_unwind): New function.
9243 (generic_unwind_get_saved_register): New function.
9245 * blockframe.c (generic_call_dummy_register_unwind): New function.
9246 (frame_saved_regs_register_unwind): New function.
9247 (set_unwind_by_pc): New function.
9248 (create_new_frame): New function.
9249 (get_prev_frame): New function.
9251 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9253 * a29k-share/: Delete directory.
9254 * remote-vx29k.c: Delete file.
9256 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9258 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9259 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9261 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9263 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9264 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9267 (sparcnbsd-tdep.o): New dependency lists.
9268 * NEWS: Note new UltraSPARC NetBSD native configuration.
9269 * configure.host (sparc64-*-netbsd*): New host.
9270 * configure.tgt (sparc-*-netbsdelf*)
9271 (sparc-*-netbsd*): Set gdb_target to nbsd.
9272 (sparc64-*-netbsd*): New target.
9273 * sparc64nbsd-nat.c: New file.
9274 * sparcnbsd-nat.c: New file.
9275 * sparcnbsd-tdep.c: New file.
9276 * sparcnbsd-tdep.h: New file.
9277 * config/sparc/nbsd.mt: New file.
9278 * config/sparc/nbsd64.mh: New file.
9279 * config/sparc/nbsd64.mt: New file.
9280 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9281 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9283 * config/sparc/nbsdaout.mt: Remove.
9284 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9285 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9287 * config/sparc/nbsdelf.mt: Remove.
9288 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9289 sparc-nat.c compatiblity defines.
9290 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9291 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9292 * config/sparc/tm-nbsd64.h: New file.
9293 * config/sparc/tm-nbsdaout.h: Remove.
9294 * config/sparc/xm-nbsd.h: Remove.
9296 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9298 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9299 * sparc-tdep.c: Include osabi.h.
9300 (gdbarch_tdep): Add osabi member.
9301 (_initialize_sparc_tdep): Use gdbarch_register.
9302 (sparc_gdbarch_init): Use generic OS ABI framework.
9303 (sparc_dump_tdep): New function.
9305 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9307 * corefile.c (do_captured_read_memory_integer): Return non-zero
9309 (safe_read_memory_integer): Copy result of memory read when
9310 status is non-zero. Also, add comments.
9312 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9314 * Makefile.in (ppc_tdep_h): Define.
9317 (rs6000-tdep.o): Use $(ppc_tdep_h).
9320 (ppcnbsd-tdep.o): New dependency lists.
9321 * ppc-tdep.h: Use generic OS ABI framework.
9322 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9323 (ppc_linux_init_abi): New functions.
9324 (ppc_sysv_abi_broken_use_struct_convention)
9325 (ppc_sysv_abi_use_struct_convention)
9326 (ppc_sysv_abi_push_arguments): Move to...
9327 * ppc-sysv-tdep.c: ...here.
9328 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9329 * rs6000-tdep.c (process_note_abi_tag_sections)
9330 (get_elfosabi): Remove.
9331 (rs6000_gdbarch_init): Use generic OS ABI framework.
9332 (rs6000_dump_tdep): New function.
9333 (_initialize_rs6000_tdep): Use gdbarch_register.
9334 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9335 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9336 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9337 of ppc-linux-tdep.o.
9338 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9339 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9340 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9341 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9342 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9343 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9345 2002-05-29 Jim Blandy <jimb@redhat.com>
9347 * macroscope.c (default_macro_scope): Put `void' in empty argument
9350 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9352 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9353 * arch-utils.c: Include "sim-regno.h".
9354 * gdbarch.sh: Don't include "sim-regno.h".
9355 * gdbarch.h, gdbarch.c: Regenerate.
9356 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9358 * arch-utils.h (legacy_register_sim_regno): To here.
9359 * remote-sim.c (legacy_register_sim_regno): Move function from
9361 * arch-utils.c (legacy_register_sim_regno): To here.
9363 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9365 * sim-regno.h: New file.
9366 * Makefile.in (sim_regno_h): Define.
9367 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9368 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9369 (legacy_register_sim_regno): New function.
9370 (one2one_register_sim_regno): New function.
9371 (gdbsim_fetch_register): Rewrite.
9372 (gdbsim_store_register): Only store a register when
9373 REGISTER_SIM_REGNO is valid.
9374 * d10v-tdep.c: Include "sim-regno.h".
9375 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9376 (d10v_ts3_register_sim_regno): Ditto.
9377 * gdbarch.sh: Include "sim-regno.h".
9378 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9379 * gdbarch.h, gdbarch.c: Regenerate.
9380 * arch-utils.h (default_register_sim_regno): Delete declaration.
9381 * arch-utils.c (default_register_sim_regno): Delete function.
9383 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9385 * ppcnbsd-nat.c: Rewrite.
9386 * ppcnbsd-tdep.c: New file.
9387 * ppcnbsd-tdep.h: New file.
9388 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9389 solib.o, and solib-svr4.o.
9390 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9391 nbsd-tdep.o, and corelow.o.
9393 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9395 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9396 `tr' and `sed'. Mention that `broken' targets are not expected to
9399 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9401 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9402 Let PC point right after the prologue before looking up symbols.
9404 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9406 * i386-tdep.c (i386_register_virtual_type): Return
9407 builtin_type_vec128i for SSE registers.
9409 * gdbtypes.h (builtin_type_vec128i): Declare.
9411 * gdbtypes.c (build_builtin_type_vec128i): New function.
9412 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9413 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9414 (build_gdbtypes): Initialize new builtin vector types.
9415 (_initialize_gdbtypes): Register new vector types with gdbarch.
9417 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9419 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9420 since it has been multi-arch'd.
9421 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9422 Move Alpha and VAX multi-arch news entries to same section
9423 as other multi-arch news.
9425 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9427 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9428 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9429 static. Rename some register numbers to put them in ns32k-tdep
9431 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9432 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9434 (_initialize_ns32k_tdep): Use gdbarch_register.
9435 * ns32k-tdep.h: New file.
9436 * ns32knbsd-tdep.c: New file.
9437 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9438 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9439 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9440 REGISTER_BYTES, REGISTER_BYTE): Remove.
9441 * config/ns32k/tm-ns32k.h: New file.
9442 * config/ns32k/tm-umax.h: Remove.
9444 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9446 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9447 ns32k_store_struct_return, ns32k_extract_return_value,
9448 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9450 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9451 ns32k_saved_pc_after_call.
9452 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9453 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9454 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9455 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9456 ns32k_extract_struct_value_address.
9458 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9460 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9461 ns32k_fix_call_dummy): New.
9462 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9463 ns32k_call_dummy_words.
9464 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9465 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9466 CALL_DUMMY_NARGS): Remove.
9467 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9469 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9471 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9472 ns32k_frame_saved_pc, ns32k_frame_args_address,
9473 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9474 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9475 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9476 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9477 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9478 (BREAKPOINT): Remove..
9479 (FRAME_CHAIN): Define as ns32k_frame_chain.
9480 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9481 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9482 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9483 (FRAME_FIND_SAVED_REGS): Remove.
9484 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9485 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9486 (POP_FRAME): Define as ns32k_pop_frame.
9488 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9490 * ns32k-tdep.c (ns32k_register_byte_32082,
9491 ns32k_register_byte_32382, ns32k_register_raw_size,
9492 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9494 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9495 ns32k_register_byte_32382.
9496 * config/ns32k/tm-umax.h: Update copyright years.
9497 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9498 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9499 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9500 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9501 (ns32k_get_enter_addr): Fix prototype.
9503 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9505 * ns32k-tdep.c: Update copyright years.
9506 (ns32k_register_name_32082): New function.
9507 (ns32k_register_name_32382): Ditto.
9508 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9509 (REGISTER_NAME): Define as ns32k_register_name_32382.
9510 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9511 (REGISTER_NAME): Define as ns32k_register_name_32082.
9513 2002-05-24 Jim Blandy <jimb@redhat.com>
9515 * dwarf2read.c (free_line_header): Use xfree, not free.
9517 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9519 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9520 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9522 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9524 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9526 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9528 From Ross Alexander at NEC Europe:
9529 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9531 2002-05-23 Michael Snyder <msnyder@redhat.com>
9533 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9534 for input, rather than parse_and_eval_address.
9536 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9538 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9539 * Makefile.in (sim_d10v_h): Update definition.
9541 2002-05-24 Andrew Cagney <cagney@redhat.com>
9543 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9544 change `2002-05-22 Michael Snyder' below.
9545 (d10v_push_arguments): Ditto.
9546 (d10v_extract_return_value): Ditto.
9548 2002-05-23 Jim Blandy <jimb@redhat.com>
9550 * macrotab.c (check_for_redefinition): Don't complain if the new
9551 definition is the same as the previous one. Take more arguments
9552 to allow the comparison.
9553 (macro_define_object, macro_define_function): Pass more arguments
9554 to check_for_redefinition.
9556 2002-05-22 Michael Snyder <msnyder@redhat.com>
9558 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9559 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9560 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9561 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9562 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9563 Add a temp variable to save a call (and a memory read).
9564 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9565 if possible (so that PC_IN_CALL_DUMMY will work).
9567 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9569 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9571 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9573 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9575 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9576 (dwarf2_build_frame_info): Add offset to fde->initial_location
9577 so that frames of shared libraries are mapped correctly.
9578 (execute_stack_op): Change type of 'result' from ULONGEST to
9581 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9583 * config/alpha/tm-nbsd.h: Include solib.h.
9585 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9587 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9588 assumptions about the host's byte order.
9590 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9592 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9594 * alphanbsd-tdep.c: Include solib-svr4.h.
9595 * shnbsd-tdep.c: Ditto.
9597 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9599 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9600 nbsd-tdep.h to dependency list.
9601 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9602 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9603 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9604 nbsdaout.mh and nbsdelf.mh consistently.
9605 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9606 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9607 nbsdaout.mt and nbsdelf.mh consistently.
9608 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9609 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9610 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9611 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9612 a.out shared library stuff from here...
9613 * config/nm-nbsdaout.h: ...to here.
9614 * config/tm-nbsd.h: Remove.
9615 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9616 * config/arm/nbsd.mh: Remove.
9617 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9619 * config/arm/nbsdaout.mh: New file.
9620 * config/arm/nbsdelf.mh: New file.
9621 * config/arm/nm-nbsdaout.h: New file.
9622 * config/i386/nbsd.mh: Remove.
9623 * config/i386/nbsd.mt: Remove.
9624 * config/i386/nbsdaout.mh: New file.
9625 * config/i386/nbsdaout.mt: New file.
9626 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9627 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9628 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9629 i386_register_u_addr): Remove.
9630 * config/i386/nm-nbsdaout.h: New file.
9631 * config/i386/nm-nbsdelf.h: Remove.
9632 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9633 (USE_STRUCT_CONVENTION): Remove.
9634 * config/i386/tm-nbsdaout.h: New file.
9635 * config/i386/tm-nbsdelf.h: Remove.
9636 * config/m68k/nbsd.mh: Remove.
9637 * config/m68k/nbsd.mt: Remove.
9638 * config/m68k/nbsdaout.mh: New file.
9639 * config/m68k/nbsdaout.mt: New file.
9640 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9641 * config/m68k/nm-nbsdaout.h: New file.
9642 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9643 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9644 * config/ns32k/nbsd.mh: Remove.
9645 * config/ns32k/nbsd.mt: Remove.
9646 * config/ns32k/nbsdaout.mh: New file.
9647 * config/ns32k/nbsdaout.mt: New file.
9648 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9649 * config/ns32k/nm-nbsdaout.h: New file.
9650 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9651 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9652 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9653 (SVR4_SHARED_LIBS): Remove.
9654 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9655 * config/sparc/nbsd.mh: Remove.
9656 * config/sparc/nbsd.mt: Remove.
9657 * config/sparc/nbsdaout.mh: New file.
9658 * config/sparc/nbsdaout.mt: New file.
9659 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9660 * config/sparc/nbsdelf.mt: New file.
9661 * config/sparc/nm-nbsdaout.h: New file.
9662 * config/sparc/nm-nbsdelf.h: Remove.
9663 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9664 * config/sparc/tm-nbsdaout.h: New file.
9666 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9668 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9670 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9672 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9674 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9676 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9678 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9680 * NEWS: Note new MIPS NetBSD native configuration.
9681 * configure.host (mips*-*-netbsd*): New host.
9682 * configure.tgt (mips*-*-netbsd*): New target.
9683 * mipsnbsd-nat.c: New file.
9684 * mipsnbsd-tdep.c: New file.
9685 * mipsnbsd-tdep.h: New file.
9686 * config/mips/nbsd.mh: New file.
9687 * config/mips/nbsd.mt: New file.
9688 * config/mips/nm-nbsd.h: New file.
9689 * config/mips/tm-nbsd.h: New file.
9691 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9693 * Makefile.in (SFILES): Add osabi.c.
9694 (COMMON_OBS): Add osabi.o.
9695 (osabi.o): New dependency list.
9696 * osabi.c: New file.
9697 * osabi.h: New file.
9698 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9700 * Makefile.in (alpha_tdep_h): Define and use instead of
9702 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9703 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9705 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9706 * alpha-tdep.h: Include osabi.h.
9707 (alpha_abi): Remove.
9708 (gdbarch_tdep): Use generic OS ABI framework.
9709 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9710 gdbarch_register_osabi.
9711 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9712 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9713 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9715 * Makefile.in (sh_tdep_h): Add osabi.h.
9716 * sh-tdep.h (sh_osabi): Remove.
9717 (gdbarch_tdep): Use generic OS ABI framework.
9718 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9719 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9720 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9721 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9723 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9724 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9725 gdbarch_register_osabi.
9726 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9727 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9728 (get_elfosabi): Rename to...
9729 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9730 ABI framework support routines.
9731 (arm_gdbarch_init): Use generic OS ABI framework.
9732 (arm_dump_tdep): Likewise.
9733 (_initialize_arm_tdep): Likewise.
9734 * arm-tdep.h: Include osabi.h.
9736 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9738 (arm_gdbarch_register_os_abi): Remove prototype.
9739 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9740 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9742 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9743 * mips-tdep.c: Include osabi.h.
9744 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9747 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9749 * h8300-tdep.c: Fix formatting.
9751 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9753 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9754 printing vector registers.
9756 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9758 From Fernando Nasser:
9759 * remote.c (remote_async_open_1): Re-throw the exception when the
9761 (remote_cisco_open): Ditto.
9762 (remote_open_1): Ditto.
9764 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9766 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9767 (remote_start_remote): Add uiout parameter. Pass through to
9768 remote_start_remote_dummy.
9769 (remote_open_1): Use catch_exception instead of catch_errors.
9770 (remote_async_open_1): Ditto.
9771 (remote_cisco_open): Ditto.
9773 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9775 * remote.c (remote_start_remote): Replace PTR with void pointer.
9776 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9779 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9781 * gdb_indent.sh: Allow the script to be run in the sim directory.
9783 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9785 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9786 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9788 * corelow.c (core_open): Only call set_gdbarch_from_file if
9791 2002-05-17 Andrey Volkov <avolkov@transas.com>
9793 * h8300-tdep.c: Add support of EXR register
9794 * config/h8300/tm-h8300.h: Ditto.
9796 2002-05-17 Andrey Volkov <avolkov@transas.com>
9798 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9800 2002-05-17 Andrey Volkov <avolkov@transas.com>
9802 * h8300-tdep.c: Change literal regnums to REGNO.
9804 2002-05-17 Jim Blandy <jimb@redhat.com>
9806 * NEWS: Note addition of macro support.
9808 Expand preprocessor macros in C expressions.
9809 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9810 (scan_macro_expansion, scanning_macro_expansion,
9811 finished_macro_expansion): New function declarations.
9812 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9813 variable declarations.
9814 * parser-defs.h (expression_context_pc): New declaration.
9815 * parse.c (expression_context_pc): New variable.
9816 (parse_exp_1): Set expression_context_pc, as well as
9817 expression_context_block.
9818 * c-exp.y (yylex): If we're not already reading the result of a
9819 macro expansion, try to macro-expand the next token. When we're
9820 done scanning a macro expansion, switch back to the mainline text.
9821 Commas and `if's in a macro's expansion don't terminate the input.
9822 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9823 (macro_original_text, macro_expanded_text,
9824 expression_macro_lookup_func, expression_macro_lookup_baton): New
9826 (scan_macro_expansion, scanning_macro_expansion,
9827 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9828 c_preprocess_and_parse): New functions.
9829 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9830 c_preprocess_and_parse, instead of c_parse.
9831 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9832 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9834 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9836 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9837 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9838 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9840 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9842 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9844 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9846 * Makefile.in (sh_tdep_h): Define and use.
9847 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9848 register enum): Move to...
9849 * * sh-tdep.h: ...here.
9850 * sh-tdep.c: Include sh-tdep.h.
9851 * sh3-rom.c: Likewise.
9852 * shnbsd-tdep.c: Likewise.
9854 2002-05-16 Michael Snyder <msnyder@redhat.com>
9856 * arm-tdep.c: Spelling fix in comment.
9858 2002-05-16 Jim Blandy <jimb@redhat.com>
9860 Add commands for manually expanding macros and showing their
9862 * macrocmd.c, macroscope.c, macroscope.h: New files.
9863 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9864 (macroscope_h): New variable.
9865 (HFILES_NO_SRCDIR): Add macroscope.h.
9866 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9867 (macroscope.o, macrocmd.o): New rules.
9869 Teach the Dwarf 2 reader to read macro information.
9870 * dwarf2read.c: #include "macrotab.h".
9871 (dwarf_macinfo_buffer): New variable.
9872 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9874 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9875 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9876 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9877 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9878 dwarf2_macro_spaces_in_definition): New complaints.
9879 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9880 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9881 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9882 the partial symbol table.
9883 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9884 from what's recorded in the partial symbol table.
9885 (read_file_scope): If the compilation unit has a
9886 `DW_AT_macro_info' attribute, read its macro information.
9887 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9889 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9892 * ser-tcp.c: Don't include <netinet/udp.h>.
9894 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9896 * MAINTAINERS: Update my email address.
9898 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9900 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9901 include file of the same name.
9903 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9905 * configure.tgt: Mark v850 as multi-arched.
9906 * config/v850/tm-v850.h: Remove file.
9907 * config/v850/v850.mt: Eliminate TM_FILE.
9909 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9911 * v850-tdep.c: Full multi-arch.
9912 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9913 Define GDB_MULTI_ARCH to 2.
9915 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9917 * p-exp.y (current_type): New static variable.
9918 Carries the type of the expression at the position that is parsed.
9919 (push_current_type, pop_current_type): Two new functions. Used
9920 to store/restore current_type in expression on specific tokens.
9921 (search_field): New static variable. Set to one after parsing a point
9922 as at that point only a FIELDNAME token should be searched.
9923 (FIELDNAME): New token. After a point only a token belonging to
9924 current_type type definition is allowed.
9925 (all over token rules): reset and change current_type according
9927 (exp '[' rule): insert implicit array index field if
9928 exp is a pascal string type.
9930 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9932 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9933 frame info. Use frame_info's saved_regs instead of matching member
9934 in extra_frame_info throughout.
9935 (v850_frame_init_saved_regs): New function.
9936 (v850_init_extra_frame_info): Move most functionality into
9937 v850_frame_init_saved_regs().
9938 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9939 (v850_frame_find_saved_regs): Remove declaration.
9940 (FRAME_FIND_SAVED_REGS): Remove definition.
9941 (v850_frame_init_saved_regs): Add declaration.
9942 (FRAME_INIT_SAVED_REGS): Add definition.
9944 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9946 * v850-tdep.c: Begin multi-arch'ing v850.
9947 (v850_target_architecture_hook): Remove function.
9948 (v850_gdbarch_init): New function. Add code previously in
9949 v850_target_architecture_hook().
9950 (_initialize_v850_tdep): Don't set target_architecture_hook.
9951 Call register_gdbarch_init() instead.
9953 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9955 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9956 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9957 (fixup_class_method_type): Likewise.
9959 2002-05-15 Jim Blandy <jimb@redhat.com>
9961 Add macro structures to GDB's symbol tables. Nobody puts anything
9963 * symtab.h (struct symtab): New member: `macro_table'.
9964 * buildsym.h (pending_macros): New global variable.
9965 * buildsym.c: #include "macrotab.h".
9966 (buildsym_init): Initialize `pending_macros'.
9967 (end_symtab): If we found macro information while reading a CU's
9968 debugging info, do build a symtab structure for it. Make the
9969 symtab point to the macro information, and clear the
9970 `pending_macros' pointer which held it while we were reading the
9972 (really_free_pendings): Free any pending macro table.
9973 * objfiles.h (struct objfile): New member: `macro_cache'.
9974 * objfiles.c (allocate_objfile): Set allocate and free functions
9975 for the macro cache's objstack.
9976 (free_objfile): Empty the macro cache's obstack.
9977 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9978 set new allocate and free functions for it.
9979 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9980 free functions for the macro cache's objstack. (Why is this
9981 function building its own objfile?)
9982 * symmisc.c (print_objfile_statistics): Print statistics on the
9984 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9986 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9988 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9989 (REGISTER_U_ADDR): Delete definition.
9990 (arm_register_u_addr): Delete declaration.
9992 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9994 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9995 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9997 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9999 * regcache.c (register_valid): Revise comments refering to "Not
10000 available" and "unavailable".
10001 * frame.c (frame_register_read): Ditto.
10002 * findvar.c (value_of_register): Ditto.
10004 2002-05-15 Andrew Cagney <cagney@redhat.com>
10006 * Makefile.in (remote_sim_h): Replace remote-sim_h.
10007 (remote-sim.o): Update dependencies.
10008 (d10v-tdep.o): Specify dependencies.
10009 (sim_d10v_h): Define.
10011 2002-05-14 Jim Blandy <jimb@redhat.com>
10013 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10014 * macrotab.c (macro_lookup_inclusion, find_definition,
10015 new_macro_table): Same.
10017 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10018 not `! strcmp ()'. This is a dubious improvement.
10019 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10021 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10022 although it's not necessary, to avoid a warning.
10024 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10026 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10027 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10028 TYPE_INSTANCE_FLAGS.
10029 (struct main_type): New.
10030 (struct type): Move most members to struct main_type. Change
10031 cv_type and as_type to new type_chain member. Add instance_flags.
10032 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10033 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10034 (finish_cv_type): Remove prototype.
10035 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
10037 (alloc_type_instance): New function.
10038 (smash_type): New function.
10039 (make_pointer_type, make_reference_type, make_function_type)
10040 (smash_to_member_type, smash_to_method_type): Call smash_type.
10041 (make_qualified_type): New function.
10042 (make_type_with_address_space): Call make_qualified_type.
10043 (make_cv_type): Likewise.
10044 (finish_cv_type): Remove unnecessary function.
10045 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
10046 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10047 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10048 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10049 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10050 * hpread.c (hpread_read_struct_type): Likewise.
10051 * stabsread.c (read_struct_type): Likewise.
10053 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
10055 * configure.tgt: Add a catch all sh* target, for cases like
10056 sh[2,3,4]-elf and sh-hms.
10058 2002-05-14 Keith Seitz <keiths@redhat.com>
10060 * event-loop.c (create_file_handler): Don't do anything but
10061 update data when we are given a fd which we are already
10064 2002-05-14 Michal Ludvig <mludvig@suse.cz>
10066 * dwarf2cfi.c (context_cpy): Copy registers correctly.
10067 (update_context): Use __func__ in warnings.
10069 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10071 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
10072 and tcp_close to net_open and net_close.
10073 (net_open): Accept "udp:" and "tcp:" specifications. Connect
10074 using UDP if requested. Don't try to disable Nagle on UDP
10076 * remote.c (remote_serial_open): New function. Warn about UDP.
10077 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10079 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10081 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10083 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10085 * configure.tgt: Remove sh-hms target.
10086 * MAINTAINERS: Don't list sh-hms as a separate target.
10088 2002-05-13 Jim Blandy <jimb@redhat.com>
10090 Add first preprocessor macro-expansion files.
10091 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10092 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10093 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10094 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10095 (COMMON_OBS): Add macrotab.o, macroexp.o.
10096 (macroexp.o, macrotab.o): New rules.
10098 2002-05-13 Andrew Cagney <ac131313@redhat.com>
10100 * config/m88k/tm-m88k.h: Update copyright.
10101 (m88k_target_write_pc): Declare
10102 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10103 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10104 (SHIFT_INST_REGS): Update definition.
10105 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10106 using old definition of TARGET_WRITE_PC.
10107 * regcache.c (generic_target_write_pc): Delete code handling
10109 * gdbarch.sh (NNPC_REGNUM): Delete.
10110 * gdbarch.h, gdbarch.c: Regenerate.
10112 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
10114 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10115 builtin reg number.
10117 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10119 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10120 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10121 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10123 * c-typeprint.c (cp_type_print_method_args): Likewise.
10124 (c_type_print_args): Likewise.
10125 * d10v-tdep.c (d10v_push_arguments): Likewise.
10126 (d10v_extract_return_value): Likewise.
10127 * expprint.c (print_subexp): Likewise.
10128 * gdbtypes.c (lookup_primitive_typename): Likewise.
10129 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10130 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10131 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10132 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10133 (TYPE_VECTOR): Likewise.
10134 * hpread.c (hpread_read_struct_type)
10135 (fix_static_member_physnames, fixup_class_method_type)
10136 (hpread_type_lookup): Likewise.
10137 * mdebugread.c (parse_symbol, parse_type): Likewise.
10138 * p-lang.c (is_pascal_string_type): Likewise.
10139 * valops.c (hand_function_call): Likewise.
10140 * x86-64-tdep.c (classify_argument): Likewise.
10142 * hpread.c (hpread_read_function_type)
10143 (hpread_read_doc_function_type): Call replace_type.
10144 * dstread.c (create_new_type): Delete.
10145 (decode_dst_structure, process_dst_function): Call alloc_type.
10146 Use type access macros.
10148 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10150 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10151 the're not supported by the current architecture.
10152 (i387_fill_fxsave): Likewise.
10154 2002-05-12 Fred Fish <fnf@redhat.com>
10156 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10157 sect_index_xxx members to index the first slot in section_offsets
10158 if all of the section_offsets are zero.
10160 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10162 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10163 checked in with last change.
10165 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10167 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10168 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10171 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10173 * Makefile.in: Update dependencies.
10175 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10177 * language.c (local_hex_string_custom): Simplify. Do not depend
10178 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10180 * memattr.c (mem_info_command): Replace calls to
10181 longest_local_hex_string and longest_local_hex_string_custom.
10182 * buildsym.c (make_blockvector): Ditto.
10183 * solib.c (info_sharedlibrary_command): Ditto.
10184 * tracepoint.c (tracepoints_info): Ditto.
10185 * symtab.c (print_msymbol_info): Ditto.
10187 * language.c (local_hex_string): Delete.
10188 (local_hex_string_custom): Delete.
10189 (longest_local_hex_string): Rename to local_hex_string.
10190 (longest_local_hex_string_custom): Rename to
10191 local_hex_string_custom.
10192 * language.h (local_hex_string): Change parameter type to LONGEST.
10193 (local_hex_string_custom): Ditto.
10194 (longest_local_hex_string): Delete declaration.
10195 (longest_local_hex_string_custom): Ditto.
10197 * solib.c: Update copyright.
10198 * memattr.c: Update copyright.
10200 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10202 * arch-utils.h (legacy_register_to_value): Declare.
10203 (legacy_value_to_register): Declare.
10204 (legacy_convert_register_p): Declare.
10205 * arch-utils.c (legacy_register_to_value): New function.
10206 (legacy_value_to_register): New function.
10207 (legacy_convert_register_p): New function.
10209 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10210 (VALUE_TO_REGISTER): Define.
10211 (CONVERT_REGISTER_P): Define.
10212 * gdbarch.h, gdbarch.c: Regenerate.
10214 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10216 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10217 CONVERT_REGISTER_P.
10219 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10220 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10222 * Makefile.in: Update dependencies for valops.c.
10223 * valops.c: Include "gdb_assert.h".
10224 (typecmp): Skip THIS parameter to methods.
10225 (find_method_list): Remove static_memfuncp argument,
10226 update callers. Check for stub methods.
10227 (find_value_oload_method_list): Don't set *static_memfuncp.
10228 (find_overload_match): Don't check for stub methods. Assert
10229 that methods are not stubbed. Handle static methods.
10230 (value_find_oload_method_list): Remove static_memfuncp argument.
10231 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10232 to the argument list for static stub methods.
10233 * value.h (value_find_oload_method_list): Update prototype.
10235 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10237 * arch-utils.h (generic_register_size): Declare.
10238 (generic_register_raw_size, generic_register_virtual_size): Delete
10240 * arch-utils.c (generic_register_raw_size): Delete.
10241 (generic_register_size): New function.
10242 (generic_register_virtual_size): Delete.
10244 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10245 default generic_register_size.
10246 * gdbarch.h, gdbarch.c: Re-generate.
10248 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10249 register_virtual_size.
10250 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10251 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10253 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10255 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10256 * gdbarch.h, gdbarch.c: Regenerate.
10257 * gnu-v3-abi.c: Update copyright.
10258 (vtable_address_point_offset): Update.
10259 (gnuv3_rtti_type): Update.
10260 (gnuv3_baseclass_offset): Update.
10261 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10262 (init_fetch_link_map_offsets): Update.
10263 * remote.c (get_remote_state): Update.
10265 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10267 * TODO: Remove value_headof/value_from_vtable_info comment.
10268 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10269 * values.c (value_headof, value_from_vtable_info): Delete.
10270 * value.h (value_from_vtable_info): Delete prototype.
10272 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10274 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10275 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10277 (gdb_assert_h): Define.
10278 (gdb_wait_h): Define.
10279 (gdb_regex_h): Define.
10281 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10283 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10284 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10286 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10288 * nbsd-tdep.c: Fix comment.
10290 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10292 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10293 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10294 (nbsd-tdep.o): New dependency list.
10295 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10297 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10298 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10299 * nbsd-tdep.c: New file.
10300 * nbsd-tdep.h: New file.
10301 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10303 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10304 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10305 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10306 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10308 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10310 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10311 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10312 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10313 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10314 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10315 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10317 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10319 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10320 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10321 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10322 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10323 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10324 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10325 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10327 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10329 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10330 fetch_elfcore_registers to...
10331 * i386nbsd-tdep.c: ...here.
10332 (i386nbsd_use_struct_convention): Rename to...
10333 (i386nbsd_aout_use_struct_convention): ...this.
10334 (i386nbsd_supply_reg): New function.
10335 (i386nbsd_fill_reg): New function.
10336 (fetch_core_registers): Use i386nbsd_supply_reg.
10337 (fetch_elfcore_registers): Likewise.
10338 (_initialize_i386nbsd_tdep): New function.
10339 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10340 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10341 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10342 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10343 (i386nbsd_aout_use_struct_convention): ...this.
10345 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10347 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10348 (store_inferior_registers): Use shnbsd_fill_reg.
10349 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10350 sh_nbsd_supply_register): Collapse into...
10351 (shnbsd_supply_reg): ...this.
10352 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10353 (shnbsd_fill_reg): ...this.
10354 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10355 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10356 (fetch_core_registers): Use shnbsd_supply_reg.
10357 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10358 (sh_nbsd_core_fns): Rename to...
10359 (shnbsd_core_fns): ...this.
10360 (sh_nbsd_elfcore_fns): Rename to...
10361 (shnbsd_elfcore_fns): ...this.
10362 (sh_nbsd_init_abi): Rename to...
10363 (shnbsd_init_abi): ...this.
10364 (_initialize_sh_nbsd_tdep): Rename to...
10365 (_initialize_shnbsd_tdep): ...this.
10366 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10367 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10368 sh_nbsd_fill_register): Remove prototypes.
10369 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10371 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10373 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10374 (i387-nat.o): Delete dependency list.
10375 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10376 (x86-64-linux-nat.o): Likewise.
10377 * i387-nat.c: Delete file, moving contents to...
10378 * i387-tdep.c: ...here.
10379 * i387-nat.h: Rename...
10380 * i387-tdep.h: ...to this.
10381 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10382 * i386-linux-nat.c: Likewise.
10383 * i386bsd-nat.c: Likewise.
10384 * i386gnu-nat.c: Likewise.
10385 * i386nbsd-nat.c: Likewise.
10386 * i386v4-nat.c: Likewise.
10387 * x86-64-linux-nat.c: Likewise.
10388 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10389 * config/i386/go32.mh (NATDEPFILES): Likewise.
10390 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10391 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10392 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10393 * config/i386/linux.mh (NATDEPFILES): Likewise.
10394 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10395 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10396 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10397 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10399 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10401 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10402 (alphanbsd-nat.o): Remove dependency list.
10403 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10404 * alphanbsd-nat.c: Delete. Contents moved to...
10405 * alphanbsd-tdep.c: ...here.
10406 (_initialize_alphanbsd_tdep): Register core functions.
10407 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10409 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10411 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10412 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10413 (alphanbsd-nat.o): Likewise.
10414 (alphabsd-tdep.o): New dependency list.
10415 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10416 (fill_gregset): Use alphabsd_fill_reg.
10417 (supply_fpregset): Use alphabsd_supply_fpreg.
10418 (fill_fpregset): Use alphabsd_fill_fpreg.
10419 (fetch_inferior_registers): Use struct reg and struct fpreg
10420 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10421 and alphabsd_supply_fpreg.
10422 (store_inferior_registers): Use struct reg and struct fpreg
10423 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10424 and alphabsd_fill_fpreg.
10425 * alphabsd-tdep.c: New file.
10426 * alphabsd-tdep.h: New file.
10427 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10428 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10429 alphabsd_supply_fpreg.
10430 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10431 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10433 2002-05-11 Eric Christopher <echristo@redhat.com>
10435 * mips-tdep.c (mips_double_register_type): Fix thinko.
10436 (mips_single_register_type): Ditto.
10437 * MAINTAINERS: Add self.
10439 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10441 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10442 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10443 right thing on architectures with different endianness and/or
10446 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10448 From Christian Limpach <chris@Pin.LU>
10449 * configure.in: Change sed expression which comments out
10450 NATDEPFILES to also comment out continuation lines.
10451 * configure: Regenerate.
10453 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10455 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10458 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10460 * sh-tdep.c: Include correct file.
10462 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10464 New support for sh64-elf (sh5) target.
10466 * configure.tgt: For sh64-elf target, default to sh-elf.
10468 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10469 (struct gdbarch_tdep): Add new fields for new registers and ABI
10472 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10473 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10474 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10475 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10476 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10477 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10478 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10479 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10480 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10481 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10482 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10483 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10484 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10485 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10486 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10487 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10488 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10489 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10490 sign_extend, sh64_nofp_frame_init_saved_regs,
10491 sh64_init_extra_frame_info, sh64_get_saved_register,
10492 sh64_extract_struct_value_address, sh64_pop_frame,
10493 sh64_push_arguments, sh64_extract_return_value,
10494 sh64_store_return_value, sh64_show_media_regs,
10495 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10496 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10497 sh_sh64_register_virtual_type,
10498 sh_sh64_register_convert_to_virtual,
10499 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10500 sh64_register_read, sh64_pseudo_register_write,
10501 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10502 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10503 sh64_do_pseudo_register, sh_compact_do_registers_info,
10504 sh64_do_registers_info, sh_gdbarch_init): New functions.
10506 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10508 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10510 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10512 * linespec.c (decode_line_1): Check for a double quote after
10513 a filename correctly.
10515 2002-05-10 Jim Blandy <jimb@redhat.com>
10517 Properly track the size of the current objfile's .debug_line section.
10518 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10519 (DWARF_LINE_SIZE): New macro.
10520 (dwarf2_build_psymtabs_hard): Record the line section's size in
10521 the partial symbol table.
10522 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10525 2002-05-10 Petr Sorfa <petrs@caldera.com>
10527 * ia64-tdep.c: Handle breakpoints on L instruction type
10528 in MLX instruction bundle by moving the breakpoint to
10529 the third slot (X instruction type) as L holds only data.
10531 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10533 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10534 (process_one_symbol): Complain about discarding local symbols
10535 due to a misplaced N_LBRAC entry.
10537 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10539 From Daniel Berlin <dan@cgsoftware.com>
10540 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10541 decrease the depth we are at, in the case of templates.
10543 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10545 * mips-tdep.c (mips_float_register_type): New function.
10546 (mips_double_register_type): New function.
10547 (mips_print_register): Use them.
10548 (do_fp_register_row): Likewise.
10550 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10552 * signals/signals.c (signals): Remove conditional compilation around
10553 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10554 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10556 2002-05-09 Michael Snyder <msnyder@redhat.com>
10558 * remote-rdp.c (remote_rdp_can_run): Remove.
10560 2002-05-09 Tom Tromey <tromey@redhat.com>
10562 * jv-valprint.c (java_val_print): Handle `char' as a special case
10565 2002-05-09 Michael Snyder <msnyder@redhat.com>
10567 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10568 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10569 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10570 str r(0123),[sp,#nn].
10571 (arm_skip_prologue): Ditto. Also make disassembly
10572 order-independent by placing it in a loop.
10574 2002-05-06 Michael Snyder <msnyder@redhat.com>
10576 * stabsread.c (read_type): Add recognition for new attribute:
10577 "@V;" means that an array type is actually a vector.
10578 This is analogous to the vector flag that's been added to dwarf2.
10580 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10582 * i386-tdep.h (i386_abi): New enum.
10583 (struct gdbarch_tdep): Replace os_ident member with abi.
10584 (i386_gdbarch_register_os_abi): New prototype.
10585 * i386-tdep.c (i386_abi_names): New array.
10586 (process_note_abi_tag_sections): Removed.
10587 (process_note_sections): New function.
10588 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10589 (struct i386_abi_handler): New struct.
10590 (i386_abi_handler_list): New variable.
10591 (i386_gdbarch_register_os_abi): New function.
10592 (i386_gdbarch_init): Adapt for the changes given above.
10594 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10596 * gregset.h: Say "GNU/Linux".
10598 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10600 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10601 (build_gdbtypes): Build builtin_type_v2_float.
10602 (_initialize_gdbtypes): Register new builtin type.
10604 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10606 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10607 (clear_gdbarch_swap): New function.
10608 (initialize_non_multiarch): Call.
10609 (gdbarch_update_p): Before calling init(), swap out and clear the
10610 existing architecture.
10611 * gdbarch.c: Regenerate.
10613 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10615 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10618 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10620 * sh-nbsd-nat.c: Rename to...
10621 * shnbsd-nat.c: ...this.
10622 * sh-nbsd-tdep.c: Rename to...
10623 * shnbsd-tdep.c: ...this.
10624 * sh-nbsd-tdep.h: Rename to...
10625 * shnbsd-tdep.h: ...this.
10626 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10627 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10629 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10631 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10632 concatenation for command help messages.
10634 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10636 * NEWS: Note new sh*-*-netbsdelf* configuration.
10637 * configure.host: Set gdb_host_cpu to sh for all sh*.
10638 (sh*-*-netbsdelf*): New host.
10639 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10640 (sh*-*-netbsdelf*): New target.
10641 * sh-nbsd-nat.c: New file.
10642 * sh-nbsd-tdep.c: New file.
10643 * sh-nbsd-tdep.h: New file.
10644 * config/sh/nbsd.mh: New file.
10645 * config/sh/nbsd.mt: New file.
10646 * config/sh/nm-nbsd.h: New file.
10647 * config/sh/tm-nbsd.h: New file.
10649 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10651 * sh-tdep.c (sh_osabi_names): Declare.
10652 (process_note_abi_tag_sections): New function.
10653 (get_elfosabi): Ditto.
10654 (sh_gdbarch_register_os_abi): Ditto.
10655 (sh_dump_tdep): Ditto.
10656 _initialize_sh_tdep): Use gdbarch_register to register
10657 sh_gdbarch_init and sh_dump_tdep.
10658 * config/sh/tm-sh.h (sh_osabi): Declare.
10659 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10661 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10663 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10664 (thumb_scan_prologue): Ditto.
10665 (arm_find_callers_reg): Ditto.
10666 (arm_frame_chain): Ditto.
10667 (arm_init_extra_frame_info): Ditto.
10668 (arm_frame_saved_pc): Ditto.
10669 (arm_pop_frame): Ditto.
10670 (arm_push_return_address): New function.
10671 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10672 call_dummy_location, call_dummy_breakpoint_offset_p,
10673 call_dummy_breakpoint_offset, call_dummy_p,
10674 call_dummy_stack_adjust_p, call_dummy_words,
10675 sizeof_call_dummy_words, call_dummy_start_offset,
10676 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10677 call_dummy_address, push_return_address and push_dummy_frame for
10678 generic dummy frames.
10680 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10682 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10683 size computation for alloca.
10684 (sh_fp_frame_init_saved_regs): Likewise.
10686 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10688 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10689 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10690 * arm-tdep.c (arm_store_return_value): Use them.
10691 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10692 * remote-rdp.c (remote_rdp_fetch_register): Use
10693 ARM_MAX_REGISTER_RAW_SIZE.
10694 (remote_rdp_store_register): Likewise.
10696 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10698 * dwarf2cfi.c: Code cleanup, removed unused variables,
10699 added default labels to switch {} statements.
10700 * x86-64-tdep.c: Ditto.
10701 * x86-64-linux-nat.c: Ditto.
10703 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10705 * solib.h: Protect against multiple inclusion.
10707 2002-05-06 Jim Blandy <jimb@redhat.com>
10709 Add first preprocessor macro-expansion files.
10710 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10711 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10712 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10713 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10714 (COMMON_OBS): Add macrotab.o, macroexp.o.
10715 (macroexp.o, macrotab.o): New rules.
10717 Separate the job of reading the line number info statement program
10718 header (...expialidocious) out into its own function.
10719 * dwarf2read.c (struct line_head, struct filenames, struct
10720 directories): Replace with...
10721 (struct line_header): New structure, containing the full
10722 contents of the statement program header, including the
10723 include directory and file name tables.
10724 (read_file_scope): If we have line number info, instead of just
10725 calling dwarf_decode_lines to do all the work, call
10726 dwarf_decode_line_header first to get a `struct line_header'
10727 containing the data in the statement program header, and then
10728 pass that to dwarf_decode_lines, which will pick up where that
10729 left off. Be sure to clean up the `struct line_header' object.
10730 (dwarf_decode_line_header, free_line_header, add_include_dir,
10731 add_file_name): New functions.
10732 (dwarf_decode_lines): Move all the code to read the statement
10733 program header into dwarf_decode_line_header. Take the line
10734 header it built as the first argument, instead of the offset to
10735 the compilation unit's line number info. Use the new `struct
10736 line_header' type instead of the old structures. No need to do
10737 cleanups here now, since we don't allocate anything.
10738 (dwarf2_statement_list_fits_in_line_number_section,
10739 dwarf2_line_header_too_long): New complaints.
10741 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10743 * gdbtypes.c (init_vector_type): New function.
10744 (build_builtin_type_vec128): Simplify the representation of SIMD
10746 (build_gdbtypes): Initialize new builtin vector types.
10747 (_initialize_gdbtypes): Register new vector types with gdbarch.
10748 (builtin_type_v4_float, builtin_type_v4_int32,
10749 builtin_type_v8_int16, builtin_type_v16_int8,
10750 builtin_type_v2_int32, builtin_type_v4_int16,
10751 builtin_type_v8_int8): New (renamed) SIMD types.
10753 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10755 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10756 (i387_fill_fxsave): Likewise.
10758 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10760 * alpha-tdep.c (alpha_extract_return_value): Don't use
10761 non-constant array size in prototype.
10763 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10765 From Brian Taylor <briant at model dot com>:
10766 * ui-out.c (ui_out_field_core_addr): Use the function
10767 longest_local_hex_string_custom'to format addresses > 32 bits
10770 * ui-out.c (ui_out_field_core_addr): Update comment.
10772 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10774 * stack.c (select_and_print_frame): Make static. Delete the
10776 (func_command): Update call.
10777 (select_frame_command): Delete code computing the frame level.
10778 * frame.h (select_and_print_frame): Delete declaration.
10780 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10782 * sparc-tdep.c (sparc_get_saved_register): Comment why
10783 get_prev_frame call is safe.
10785 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10787 * frame.h (select_frame): Delete level parameter.
10788 * stack.c (select_frame): Update. Use frame_relative_level to
10789 obtain the frame's level.
10790 (select_and_print_frame): Update call.
10791 (select_frame_command): Ditto.
10792 (up_silently_base): Ditto.
10793 (down_silently_base): Ditto.
10794 * ocd.c (ocd_start_remote): Ditto.
10795 * remote-rdp.c (remote_rdp_open): Ditto.
10796 * remote-mips.c (mips_initialize): Ditto.
10797 (common_open): Ditto.
10798 * remote-e7000.c (e7000_start_remote): Ditto.
10799 * m3-nat.c (select_thread): Ditto.
10800 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10801 (child_get_current_exception_event): Ditto.
10802 * varobj.c (varobj_create): Ditto.
10803 (varobj_update): Ditto.
10804 (c_value_of_root): Ditto.
10805 * tracepoint.c (finish_tfind_command): Ditto.
10806 * corelow.c (core_open): Ditto.
10807 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10808 * thread.c (info_threads_command): Ditto.
10809 (switch_to_thread): Ditto.
10810 * infrun.c (normal_stop): Ditto.
10811 (restore_selected_frame): Ditto.
10812 (restore_inferior_status): Ditto.
10813 * breakpoint.c (insert_breakpoints): Ditto.
10814 (watchpoint_check): Ditto.
10815 (bpstat_stop_status): Ditto.
10816 (do_enable_breakpoint): Ditto.
10817 * blockframe.c (flush_cached_frames): Ditto.
10818 (reinit_frame_cache): Ditto.
10820 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10822 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10825 2002-05-04 Jim Blandy <jimb@redhat.com>
10827 * gdbtypes.c (replace_type): Doc fix.
10829 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10831 * valprint.c (strcat_longest): Delete commented out function.
10834 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10836 * MAINTAINERS: Mark a29k as deleted.
10837 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10838 Move new configurations to the top.
10839 * configure.tgt: Remove a29k.
10840 * config/a29k/tm-vx29k.h: Delete.
10841 * config/a29k/vx29k.mt: Delete.
10842 * config/a29k/tm-a29k.h: Delete.
10843 * config/a29k/a29k-udi.mt: Delete.
10844 * config/a29k/a29k.mt: Delete.
10845 * a29k-tdep.c: Delete.
10846 * remote-udi.c: Delete.
10847 * remote-mm.c: Delete.
10848 * remote-eb.c: Delete.
10849 * remote-adapt.c: Delete.
10850 * Makefile.in: Remove obsolete code.
10851 * config/s390/s390x.mt: Ditto.
10852 * config/s390/s390.mt: Ditto.
10853 * config/sparc/sparclynx.mh: Ditto.
10854 * config/sparc/linux.mh: Ditto.
10855 * config/pa/hppaosf.mh: Ditto.
10856 * config/pa/hppabsd.mh: Ditto.
10857 * config/ns32k/nbsd.mt: Ditto.
10858 * config/mips/vr5000.mt: Ditto.
10859 * config/m68k/sun3os4.mh: Ditto.
10860 * config/m68k/nbsd.mt: Ditto.
10861 * config/m68k/m68klynx.mh: Ditto.
10862 * config/m32r/m32r.mt: Ditto.
10863 * config/i386/x86-64linux.mt: Ditto.
10864 * config/i386/nbsdelf.mt: Ditto.
10865 * config/i386/nbsd.mt: Ditto.
10866 * config/i386/i386lynx.mh: Ditto.
10868 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10870 * target.c (debug_print_register): New function. Handle oversize
10872 (debug_to_fetch_registers): Call.
10873 (debug_to_store_registers): Call.
10875 2002-05-03 Jim Blandy <jimb@redhat.com>
10877 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10878 (read_type): Doc fix.
10879 * gdbtypes.c (replace_type): Doc fix.
10881 * stabsread.c (multiply_defined_struct): New complaint.
10882 (read_struct_type): If the type we were passed isn't empty, or
10883 incomplete, don't read the new struct type into it; complain,
10884 and return the original type unchanged. Take a new `type_code'
10885 argument, which is the type code for the new type.
10886 (read_type): Rather than storing the type's type code here, pass
10887 it as an argument to read_struct_type, and let that take care of
10888 storing it. That way, we don't overwrite the original type code,
10889 so read_struct_type can use it to decide whether we're overwriting
10890 something we shouldn't.
10891 (complain_about_struct_wipeout): New function.
10893 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10895 * gdbarch.sh: Assert that gdbarch is non-NULL.
10896 * gdbarch.c: Regenerate.
10898 2002-05-03 Jason Merrill <jason@redhat.com>
10900 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10903 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10905 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10906 (x86_64_dwarf2gdb_regno_map_length),
10907 (x86_64_dwarf2_reg_to_regnum): Added.
10908 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10909 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10910 (_initialize_x86_64_tdep): Synced with the change above.
10911 (x86_64_skip_prologue): Reformulated message.
10913 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10915 * f-exp.y: Also use new prev_lexptr variable
10916 to improve error reporting. Based on Michael Snyder
10917 2002-04-24 dated patch to c-exp.y.
10918 * jv-exp.y: Likewise.
10919 * m2-exp.y: Likewise.
10921 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10923 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10924 we are dealing with vectors.
10926 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10928 * config/m68k/tm-nbsd.h: Obvious fix,
10929 correct machine name.
10931 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10933 * p-typeprint.c (pascal_type_print_base): Add support
10934 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10936 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10938 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10939 for fondamental pascal 'char' type.
10941 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10943 * p-lang.h (is_pascal_string_type): Declaration changed,
10944 new sixth argument of type char ** added.
10945 * p-lang.c (is_pascal_string_type): Implementation
10946 changed. Args length_pos, length_size, string_pos, char_size
10947 can now be NULL. New argument arrayname set to the field
10948 name of the char array. Return value set to char array
10949 field index plus one.
10950 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10951 is_pascal_string_type function.
10953 2002-05-02 Andrew Cagney <cagney@redhat.com>
10955 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10956 <cagney@redhat.com> change.
10957 * gdbarch.c: Regenerate.
10959 2002-05-02 Andrew Cagney <cagney@redhat.com>
10961 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10962 before probing for a new one. Detect errorenous gdbarch_init
10964 * gdbarch.c: Regenerate.
10966 2002-05-01 Andrew Cagney <cagney@redhat.com>
10968 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10969 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10970 * config/v850/tm-v850.h: Ditto. Update copyright.
10972 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10974 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10977 2002-04-30 Michael Snyder <msnyder@redhat.com>
10979 * arm-tdep.c: Whitespace clean-ups.
10980 (arm_skip_prologue): Fix thinko; two lines
10981 should have been removed as part of 4/24 change.
10983 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10985 * rs6000-tdep.c: Added comment describing how fpscr register
10986 numbers were chosen.
10988 2002-04-30 Michael Snyder <msnyder@redhat.com>
10990 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10992 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10994 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10995 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10996 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10998 2002-04-29 Kevin Buettner <kevinb@redhat.com>
11000 From Louis Hamilton <hamilton@redhat.com>:
11001 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
11002 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
11003 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
11004 not bfd-private xcoff data, to determine wordsize.
11005 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
11007 2002-04-29 Andrew Cagney <ac131313@redhat.com>
11009 GDB 5.2 released from 5.2 branch.
11011 2002-04-29 Michal Ludvig <mludvig@suse.cz>
11013 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11014 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11015 (x86_64_register_info_table): Added comments with register numbers.
11017 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11019 * rs6000-tdep.c (rs6000_extract_return_value,
11020 rs6000_store_return_value): Handle returning vectors.
11021 (rs6000_gdbarch_init): Use
11022 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11023 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11025 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11027 (ppc_sysv_abi_push_arguments): Handle vector parameters.
11028 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11030 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11032 * hpread.c (hpread_psymtab_to_symtab_1,
11033 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11034 with fprintf_unfiltered (gdb_stderr,...).
11036 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11038 * remote-array.c (printf_monitor, write_monitor,
11039 array_insert_breakpoint, array_remove_breakpoint ):
11040 Replace fprintf (stderr,...
11041 with fprintf_unfiltered (gdb_stderr,....
11042 * remote-es.c: Likewise.
11043 * remote-os9k.c: Likewise.
11044 * remote-st.c: Likewise.
11046 2002-04-28 Andreas Schwab <schwab@suse.de>
11048 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11049 linux-proc.o and gcore.o.
11051 2002-04-26 Michal Ludvig <mludvig@suse.cz>
11053 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11054 code without frame pointers.
11056 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11058 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11059 ON_STACK is needed.
11061 2002-04-26 Ben Elliston <bje@redhat.com>
11063 * target.c (do_xfer_memory): Correct reference to the new option
11064 "trust-readonly-sections".
11066 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
11068 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11069 * gdbtypes.c (recursive_dump_type): Output the vector flag.
11070 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11072 (read_array_type): Record the fact that this array type is really a
11073 vector (i.e. are passed in by value).
11075 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
11077 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11078 * alpha-tdep.c (alpha_sigcontext_addr): New function.
11079 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11080 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11081 * alpha-linux-tdep.c: Include frame.h.
11082 (alpha_linux_sigcontext_addr): New function.
11083 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11084 alpha_linux_sigcontext_addr.
11085 * alpha-osf1-tdep.c: Include gdbcore.h.
11086 (alpha_osf1_sigcontext_addr): New function.
11087 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11088 alpha_osf1_sigcontext_addr.
11089 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11090 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11092 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11094 * stack.c (selected_frame_level):
11095 (select_frame): Do not set selected_frame_level.
11096 * frame.h (selected_frame_level): Delete declaration.
11098 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11100 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11101 convert_from_func_ptr-addr when AIX / PowerOpen.
11103 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11105 * valops.c (hand_function_call): Call
11106 generic_save_call_dummy_addr.
11107 * frame.h (generic_save_call_dummy_addr): Declare.
11108 * blockframe.c (struct dummy_frame): Add fields call_lo and
11110 (generic_find_dummy_frame): Check for PC in range call_lo to
11111 call_hi instead of entry_point_address.
11112 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11113 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11114 (generic_save_call_dummy_addr): New function.
11116 2002-04-24 David S. Miller <davem@redhat.com>
11118 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11119 sparc_skip_prologue.
11120 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11121 information to find prologue when possible.
11122 (sparc_prologue_frameless_p): Call examine_prologue directly.
11123 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11124 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11126 (SKIP_PROLOGUE): Likewise.
11128 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11130 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11131 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11132 indicate that the condition it was testing is always true.
11133 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11134 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11135 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11137 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11139 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11140 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11141 tdep->jb_pc and tdep->jb_elt_size.
11142 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11143 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11144 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11145 * alpha-nat.c (get_longjmp_target): Remove.
11146 (JB_ELEMENT_SIZE): Ditto.
11148 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11149 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11150 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11151 to alpha_get_longjmp_target.
11152 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11153 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11154 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11156 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11158 * README: Update to GDB 5.2.
11160 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11162 * gdbarch.sh (LC_ALL): Set to `c'.
11164 2002-04-25 Theodore A. Roth <troth@verinet.com>
11166 * avr-tdep.c: Ran through gdb_indent.sh.
11168 2002-04-25 Theodore A. Roth <troth@verinet.com>
11170 * MAINTAINERS: Add myself as AVR maintainer.
11171 * NEWS: Note new target avr.
11173 2002-04-25 Theodore A. Roth <troth@verinet.com>
11175 * Makefile.in: Add support for AVR target.
11176 * configure.tgt: Add support for AVR target.
11177 * avr-tdep.c: New file
11178 * config/avr/avr.mt: New file.
11180 2002-04-25 Theodore A. Roth <troth@verinet.com>
11182 * MAINTAINERS: Add myself to write-after-approval.
11184 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11186 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11187 with fprintf_unfiltered (gdb_stderr,....
11189 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11192 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11194 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11196 * p-exp.y: Also use new prev_lexptr variable
11197 to improve error reporting. Based on Michael Snyder
11198 2002-04-24 dated patch to c-exp.y.
11200 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11202 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11203 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11204 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11206 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11208 (FUNCTION_START_OFFSET): Remove.
11209 (BREAKPOINT): Ditto.
11211 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11213 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11216 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11218 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11219 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11220 alpha_linux_pc_in_sigtramp.
11221 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11222 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11223 alpha_osf1_pc_in_sigtramp.
11224 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11225 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11226 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11227 alphafbsd_pc_in_sigtramp.
11228 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11229 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11230 alphanbsd_pc_in_sigtramp.
11231 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11232 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11234 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11236 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11238 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11240 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11242 (alphanbsd-nat.o): New dependency list.
11243 (alphanbsd-tdep.o): Ditto.
11244 * NEWS: Note new native NetBSD/alpha configuration.
11245 * alphanbsd-nat.c: New file.
11246 * alphanbsd-tdep.c: Ditto.
11247 * configure.host (alpha*-*-netbsd*): New host.
11248 * configure.tgt (alpha*-*-netbsd*): New target.
11249 * config/alpha/nbsd.mh: New file.
11250 * config/alpha/nbsd.mt: Ditto.
11251 * config/alpha/nm-nbsd.h: Ditto.
11252 * config/alpha/tm-nbsd.h: Ditto.
11254 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11256 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11257 (alpha-osf1-tdep.o): New dependency list.
11258 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11259 and skip_sigtramp_frame members.
11260 * alpha-linux-tdep.c: Include gdbcore.h.
11261 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11262 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11263 * alpha-osf1-tdep.c: New file.
11264 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11266 (alpha_frame_past_sigtramp_frame): New function.
11267 (alpha_dynamic_sigtramp_offset): Ditto.
11268 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11269 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11270 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11271 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11272 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11273 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11274 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11275 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11276 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11277 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11278 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11279 to find_solib_trampoline_target.
11280 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11281 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11282 (SKIP_TRAMPOLINE_CODE): Remove.
11283 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11284 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11285 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11286 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11287 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11288 (PROC_SIGTRAMP_MAGIC): Ditto.
11289 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11290 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11291 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11292 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11293 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11295 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11297 * NEWS: Note that Alpha targets are now multi-arch.
11299 2002-04-24 Michael Snyder <msnyder@redhat.com>
11301 * parser-defs.h (prev_lexptr): New external variable.
11302 * parse.c (parse_exp_1): Set prev_lexptr to null before
11303 calling the language-specific parser.
11304 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11305 (yyerror): Use prev_lexptr in error reporting.
11307 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11309 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11310 * gregset.h: If FILL_FPXREGSET is defined, provide
11311 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11312 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11313 is defined, call fill_fpxregset.
11315 2002-04-24 Roland McGrath <roland@frob.com>
11317 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11318 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11319 (supply_gregset, supply_fpregset): New functions.
11321 * gnu-nat.c (gnu_find_memory_regions): New function.
11322 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11323 (gnu_xfer_memory): Add a cast.
11325 2002-04-24 Michael Snyder <msnyder@redhat.com>
11327 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11328 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11329 of argument regs ("str r(0123), [r11, #-nn"]).
11330 (arm_skip_prologue): Better handling for frameless functions.
11331 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11332 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11334 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11336 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11337 NUM_PSEUDO_REGS can be used.
11339 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11341 * arch-utils.h: Update copyright.
11343 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11344 * gdbarch.h, gdbarch.c: Re-generate.
11346 * inferior.h (IN_SIGTRAMP): Delete definition.
11347 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11348 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11350 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11351 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11352 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11353 (find_proc_framesize): Ditto.
11354 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11355 (alpha_init_extra_frame_info): Ditto.
11356 * infrun.c (handle_inferior_event): Ditto.
11357 (handle_inferior_event): Ditto.
11358 (check_sigtramp2): Ditto.
11359 * blockframe.c (create_new_frame): Ditto.
11360 (get_prev_frame): Ditto.
11361 * ppc-linux-tdep.c: Update comments.
11362 * i386-linux-tdep.c: Update comments.
11363 * breakpoint.c (bpstat_what): Update comment.
11365 2002-04-24 David S. Miller <davem@redhat.com>
11367 * i960-tdep.c (register_in_window_p): New function.
11368 (i960_find_saved_register): Use it instead of
11369 REGISTER_IN_WINDOW_P.
11370 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11372 * symtab.h (find_stab_function_addr): Kill extern.
11373 * minsyms.c (find_stab_function_addr): Remove from here...
11374 * dbxread.c: ... to here, and mark it static.
11376 2002-04-20 David S. Miller <davem@redhat.com>
11378 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11379 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11381 2002-04-21 David S. Miller <davem@redhat.com>
11383 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11384 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11385 (vx_write_register): Likewise.
11387 2002-04-23 J. Brobecker <brobecker@gnat.com>
11389 * source.c (is_regular_file): New function.
11390 (openp): Check wether file to open is a regular file
11391 to avoid opening directories.
11393 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11395 * findvar.c (extract_signed_integer): Cast printf argument
11396 to suppress format warning.
11397 (extract_unsigned_integer): Likewise.
11398 * infcmd.c (registers_info): Likewise.
11399 * top.c (get_prompt_1): Likewise.
11400 * valops.c (value_assign): Likewise.
11401 * valprint.c (print_decimal): Likewise.
11403 2002-04-22 H.J. Lu (hjl@gnu.org)
11405 * c-exp.y (typebase): Support
11407 [long|long long|short] [signed|unsigned] [int|]
11411 signed [long|long long|short] int
11413 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11415 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11417 * vax-tdep.h: New file.
11418 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11419 Make several routines static.
11420 (vax_get_saved_register): New function.
11421 (vax_gdbarch_init): New function.
11422 (_initialize_vax_tdep): Register vax_gdbarch_init.
11423 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11424 Remove macros now under the control of gdbarch.
11426 2002-04-22 Michael Snyder <msnyder@redhat.com>
11428 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11429 Some whitespace and coding standards tweaks.
11431 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11433 * vax-tdep.c: Include regcache.h.
11434 (vax_call_dummy_words): New.
11435 (sizeof_vax_call_dummy_words): New.
11436 (vax_fix_call_dummy): New function.
11437 (vax_saved_pc_after_call): Ditto.
11438 * config/vax/tm-vax.h: Don't include regcache.h.
11439 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11440 (CALL_DUMMY): Remove.
11441 (CALL_DUMMY_WORDS): Define.
11442 (SIZEOF_CALL_DUMMY_WORDS): Define.
11443 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11445 2002-04-18 Michael Snyder <msnyder@redhat.com>
11447 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11449 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11451 * vax-tdep.c (vax_frame_chain): New function.
11452 (vax_push_dummy_frame): Ditto.
11453 (vax_pop_frame): Ditto.
11454 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11455 (FRAMELESS_FUNCTION_INVOCATION): Use
11456 generic_frameless_function_invocation_not.
11457 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11458 (POP_FRAME): Use vax_pop_frame.
11460 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11462 * vax-tdep.c (vax_store_struct_return): New function.
11463 (vax_extract_return_value): Ditto.
11464 (vax_store_return_value): Ditto.
11465 (vax_extract_struct_value_address): Ditto.
11466 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11467 vax_store_struct_return.
11468 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11469 (STORE_RETURN_VALUE): Use vax_store_return_value.
11470 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11472 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11474 * vax-tdep.c (vax_frame_saved_pc): New function.
11475 (vax_frame_args_address_correct): Ditto.
11476 (vax_frame_args_address): Ditto.
11477 (vax_frame_locals_address): Ditto.
11478 (vax_frame_num_args): Move code to be in proximity to
11479 other frame-related functions.
11480 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11481 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11482 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11483 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11484 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11486 2002-04-22 H.J. Lu (hjl@gnu.org)
11488 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11491 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11493 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11494 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11495 (FRAME_INIT_SAVED_REGS): New macro.
11497 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11499 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11501 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11503 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11505 (fetch_osf_core_registers): Likewise.
11506 (supply_gregset): Likewise.
11508 2002-04-22 J. Brobecker <brobecker@gnat.com>
11510 * symfile.h (get_section_index): Define.
11511 * symfile.c (get_section_index): New function.
11512 * mdebugread.c (SC_IS_SBSS): New macro.
11513 (SC_IS_BSS): Return true for the scBss storage class only, as
11514 the scSBss storage class refers to the .sbss section.
11515 (parse_partial_symbols): Discard the symbols which associated
11516 section does not exist.
11517 Make sure to use the .sbss section index for symbols which
11518 storage class is scBss, rather than using the .bss section index.
11520 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11522 * vax-tdep.c: Update copyright years.
11523 (vax_register_name): New function.
11524 (vax_register_byte): Ditto.
11525 (vax_register_raw_size): Ditto.
11526 (vax_register_virtual_size): Ditto.
11527 (vax_register_virtual_type): Ditto.
11528 * config/vax/tm-vax.h: Update copyright years.
11529 (REGISTER_NAMES): Remove.
11530 (REGISTER_NAME): Define.
11531 (REGISTER_BYTE): Use vax_register_byte.
11532 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11533 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11534 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11536 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11538 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11540 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11542 2002-04-21 David S. Miller <davem@redhat.com>
11544 * arch-utils.c (generic_prologue_frameless_p): Kill
11545 SKIP_PROLOGUE_FRAMELESS_P code.
11546 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11548 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11549 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11550 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11552 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11553 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11554 (sparc_gdbarch_init): Pass it to
11555 set_gdbarch_prologue_frameless_p.
11557 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11559 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11560 (alphabsd-nat.o): New dependency list.
11562 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11564 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11566 (alpha-linux-tdep.o): New dependency list.
11567 (alphafbsd-tdep.o): Likewise.
11569 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11571 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11573 * alpha-tdep.c: ...from here.
11574 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11576 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11578 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11579 prototype from here...
11580 * alpha-tdep.h: ...to here.
11582 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11584 * frame.h (selected_frame_level): Document as deprecated.
11585 (frame_relative_level): Declare.
11586 * stack.c (frame_relative_level): New function.
11587 (selected_frame_level): Document as deprecated.
11588 (select_frame): Do not set the selected_frame_level.
11590 * stack.c (frame_info, record_selected_frame): Update.
11591 (frame_command, current_frame_command): Update.
11592 (up_silently_base, up_command, down_silently_base): Update.
11593 (down_command): Update.
11594 * inflow.c (kill_command): Update.
11595 * tracepoint.c (finish_tfind_command): Update.
11596 * corelow.c (core_open): Update.
11597 * thread.c (info_threads_command): Update.
11598 (do_captured_thread_select): Update.
11599 * infcmd.c (finish_command): Update.
11600 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11602 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11604 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11606 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11608 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11611 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11613 * alphafbsd-tdep.c: Update copyright years. Include
11615 (alphafbsd_use_struct_convention): Make static.
11616 (alphafbsd_init_abi): New function.
11617 (_initialize_alphafbsd_tdep): New function.
11618 * config/alpha/tm-fbsd.h: Update copyright years.
11619 (USE_STRUCT_CONVENTION): Remove.
11621 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11623 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11624 an Alpha ABI variant.
11625 (alpha_abi_handler_list): Declare.
11626 (alpha_gdbarch_register_os_abi): New function.
11627 (alpha_gdbarch_init): Give registered ABI variant handlers a
11628 chance to tweak the gdbarch once we have set up defaults.
11629 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11631 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11633 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11634 to standard_coerce_float_to_double.
11635 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11637 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11639 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11640 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11641 from gdbarch_tdep rather than a constant.
11642 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11643 the default text address for all Alpha Unix ABIs.
11644 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11645 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11647 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11649 * alpha-tdep.h: New file. Includes several Alpha target constants
11651 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11652 let gdbarch deal with.
11653 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11654 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11655 to dependency list.
11656 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11657 Alpha target register names.
11658 * alphabsd-nat.c: Likewise.
11659 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11660 Alpha target register names. Make serveral routines static.
11661 (alpha_get_saved_register): New function.
11662 (alpha_abi_names): New.
11663 (process_note_abi_tag_sections): New function.
11664 (get_elfosabi): New function.
11665 (alpha_gdbarch_init): New function.
11666 (alpha_dump_tdep): New function.
11667 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11669 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11671 * frame.c (find_saved_register): Delete #ifdef
11672 HAVE_REGISTER_WINDOWS code.
11673 * config/sparc/tm-sparc.h: Update comments.
11674 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11676 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11678 * i960-tdep.c (i960_find_saved_register): New function.
11679 (i960_get_saved_register): New function.
11680 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11681 (i960_get_saved_register): Declare.
11682 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11684 2002-04-20 David S. Miller <davem@redhat.com>
11686 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11688 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11690 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11691 instead of NUM_PSEUDO_REGS.
11693 2002-04-20 David S. Miller <davem@redhat.com>
11695 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11696 GDB_MULTI_ARCH_PARTIAL
11697 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11698 define, let tm-sp64.h do it.
11700 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11702 * frame.c (find_saved_register): Avoid a NULL pointer
11703 dereference and actually walk the frame list.
11705 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11707 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11708 sorted in most most-recent-used order. Document.
11709 * gdbarch.h, gdbarch.c: Regenerate.
11711 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11713 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11715 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11716 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11717 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11720 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11723 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11724 (build_builtin_type_vec128): Ditto.
11725 (append_composite_type_field): Fix calculation of type length in
11728 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11730 * config/djgpp/README: Update.
11732 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11735 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11737 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11738 (alpha_setup_arbitrary_frame): ...to this.
11739 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11740 for alpha_setup_arbitrary_frame.
11742 2002-04-18 Andrew Cagney <cagney@redhat.com>
11744 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11745 * gdbarch.h, gdbarch.c: Regenerate.
11747 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11748 * target.h (memory_breakpoint_from_pc): Update declaration.
11749 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11751 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11752 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11753 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11754 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11755 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11756 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11757 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11758 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11759 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11760 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11761 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11762 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11764 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11766 * monitor.c (monitor_insert_breakpoint): Ditto.
11767 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11769 * config/mcore/tm-mcore.h: Update copyright.
11770 * mem-break.c: Ditto.
11771 * xstormy16-tdep.c: Ditto.
11773 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11775 * p-exp.y: Add precedence rule for '^' token.
11776 This removes the shift/reduce conflicts.
11777 Remove the comment concerning these shift/reduce conflicts.
11779 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11781 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11782 (registers_powerpc_nofp): New register set for processors
11783 without floating point unit.
11785 2002-04-18 David S. Miller <davem@redhat.com>
11787 * MAINTAINERS: Add myself to write-after-approval.
11789 2002-04-17 Michael Snyder <msnyder@redhat.com>
11791 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11793 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11795 * rs6000-tdep.c (frame_initial_stack_address): Use
11796 frame_register_read to read the alloca_reg.
11798 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11800 * frame.c (find_saved_register): Find saved registers in the next
11804 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11806 * gdbarch.sh (LANG): Set to ``c''.
11808 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11810 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11812 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11814 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11817 * hpread.c (hpread_get_lntt): Add declaration.
11818 Also fix PR gdb/391.
11820 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11822 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11823 * aclocal.m4, configure: Re-generate.
11826 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11828 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11829 instead of tm_print_insn.
11831 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11833 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11835 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11837 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11838 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11839 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11841 2002-04-12 Don Howard <dhoward@redhat.com>
11843 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11844 max_user_call_depth.
11845 (init_cmd_lists): Initialize the new value;
11846 * cli/cli-script.c (execute_user_command): Limit the call depth of
11847 user defined commands. This avoids a core-dump when user commands
11848 are infinitly recursive.
11850 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11852 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11853 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11854 from tdep struct instead of DEFAULT_LR_SAVE.
11855 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11856 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11857 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11859 2002-04-12 Michael Snyder <msnyder@redhat.com>
11861 * Remote.c: Spelling fix.
11862 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11863 If no symbol found for "sbrk", try "_sbrk".
11864 (make_output_phdrs): Use bfd_section_name.
11865 (gcore_copy_callback): Use bfd_section_name.
11866 * eval.c: Indentation fix-ups.
11867 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11868 in case it gets applied to an address that is already
11869 in the instruction space.
11870 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11871 * symfile.c: Fix indentation, long lines.
11872 * source.c: White space fix-up.
11874 2002-04-12 Andrew Cagney <cagney@redhat.com>
11876 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11877 * frame.c (frame_register_read): New function. Return non-zero on
11879 (read_relative_register_raw_bytes_for_frame): Delete.
11880 (read_relative_register_raw_bytes): Delete.
11881 * frame.h (frame_register_read): Declare.
11882 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11883 * sh-tdep.c: Ditto.
11884 * infcmd.c (do_registers_info): Ditto.
11885 * hppa-tdep.c: Ditto.
11886 * rs6000-tdep.c: Ditto.
11887 * h8500-tdep.c: Ditto.
11888 * mips-tdep.c: Ditto.
11889 * h8300-tdep.c: Ditto.
11890 * z8k-tdep.c: Ditto.
11892 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11894 From Jimi X <jimix@watson.ibm.com>:
11895 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11898 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11900 From Jimi X <jimix@watson.ibm.com>:
11901 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11904 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11906 From Jimi X <jimix@watson.ibm.com>:
11907 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11908 register sets for these processor variants.
11910 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11912 * regformats/reg-ppc.dat: Support FPSCR.
11914 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11916 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11917 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11918 Add fpscr as an invalid/unfetchable register.
11919 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11920 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11921 (fill_fpregset): Add support for register fpscr.
11922 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11923 (fill_gregset): Account for the fact that register ``mq'' might
11925 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11926 (registers_power): Add fpscr to register set at slot 71.
11927 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11928 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11930 2002-04-11 Michael Snyder <msnyder@redhat.com>
11932 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11933 * configure: Regenerate.
11934 * config.in: Regenerate.
11935 * acconfig.h: Add define for _SYSCALL32.
11936 * core-sol2.c: Remove #define _SYSCALL32.
11937 * solib-legacy.c: Remove #define _SYSCALL32.
11939 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11941 * stack.c (select_frame): Cleanup internal error message, do not
11944 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11946 * stack.c (select_frame): Check that selected_frame and the
11947 specified level are as expected.
11948 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11950 * frame.h (struct frame_info): Add field `level'. Update
11952 Work-in-progress PR gdb/464.
11954 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11956 * maint.c (maint_print_section_info): Rename print_section_info.
11957 (print_bfd_section_info, print_objfile_section_info): Update.
11958 * inferior.h (struct gdbarch): Add opaque declaration.
11959 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11960 * gdbarch.h: Regenerate.
11962 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11964 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11965 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11966 (kernel_u_size): Added.
11967 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11968 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11970 2002-04-04 Jim Ingham <jingham@apple.com>
11972 * valarith.c (find_size_for_pointer_math): New function, either returns
11973 the size for a pointer's target, returns 1 for void *, or errors for
11975 (value_add, value_sub): use find_size_for_pointer_math.
11977 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11979 * linux-low.c (linux_look_up_symbols): New hook.
11980 (linux_target_ops): Add linux_look_up_symbols.
11981 * remote-utils.c (decode_address): New function.
11982 (look_up_one_symbol): New function.
11983 * server.c (handle_query): Call target look_up_symbols hook.
11984 * server.h (look_up_one_symbol): Add prototype.
11985 * target.h (struct target_ops): Add look_up_symbols hook.
11987 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11989 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11990 override FP_REGNUM with frame->fp. Update copyright.
11991 * parse.c (num_std_regs, std_regs): Delete.
11992 (target_map_name_to_register): Do not search std_regs. Update
11993 function description.
11994 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11995 declarations. Update copyright.
11998 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
12000 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
12001 after the last symbol in a block.
12003 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
12005 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
12006 is non zero as a found symbol.
12008 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12010 * findvar.c: Include "builtin-regs.h".
12011 (value_of_register): Call value_of_builtin_reg when applicable.
12012 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12013 (target_map_name_to_register): Call
12014 builtin_reg_map_name_to_regnum.
12015 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12016 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12017 (builtin_regs_h): Define.
12018 (builtin-regs.o): New target.
12019 (findvar.o): Add $(builtin_regs_h).
12020 * builtin-regs.c, builtin-regs.h: New files.
12021 * std-regs.c: New file.
12022 Partial fix for PR gdb/251.
12024 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12026 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12027 it's no longer required.
12029 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12031 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12033 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12035 From Jimi X <jimix@watson.ibm.com>:
12036 * rs6000-tdep.c (rs6000_software_single_step): Use
12037 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12038 and size. Use target_insert_breakpoint() and
12039 target_remove_breakpoint() to insert and remove breakpoints
12040 instead of explicit memory reads and writes.
12042 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12044 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12045 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12046 ELF_OBJECT_FORMAT ifdef.
12048 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12050 From Jimi X <jimix@watson.ibm.com>:
12051 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12053 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12055 From Jimi X <jimix@watson.ibm.com>:
12056 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12057 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12059 2002-04-07 Mark Kettenis <kettenis@gnu.org>
12061 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12062 s/asprintf/xasprintf/.
12063 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12065 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12067 I believe Jeff Law denies responsability for this one:
12068 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12069 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12070 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12071 Work-around for PR gdb/366.
12073 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12075 * remote-e7000.c (write_small, e7000_read_inferior_memory,
12076 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12077 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12079 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12081 * sh-tdep.c (sh_fp_frame_init_saved_regs,
12082 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12085 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12087 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12090 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12092 * README (Reporting Bugs in GDB): Document the bug web page as the
12093 prefered way of submitting bugs.
12096 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12098 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12099 -1. Update comment.
12100 * gdbarch.h, gdbarch.c: Re-generate.
12102 2002-04-07 Andreas Schwab <schwab@suse.de>
12104 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12105 buffer to regcache_collect.
12107 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12109 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12110 * gdbarch.c, gdbarch.h: Re-generate.
12112 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12114 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12115 declaration. Fix -Werror.
12117 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12119 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12120 * gdbarch.c: Regenerate.
12122 2002-04-05 Michael Snyder <msnyder@redhat.com>
12124 * breakpoint.c (clear_command): Rewrite middle section to
12125 combine two loops with identical control conditions.
12126 Add a cleanup to eliminate a memory leak.
12127 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12129 2002-04-05 H.J. Lu (hjl@gnu.org)
12131 * solib-svr4.c (bkpt_names): Add "__start".
12133 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12135 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12136 as test for 64 bit target.
12138 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12140 * h8500-tdep.c (h8500_write_fp): Delete function.
12141 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12142 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12143 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12145 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12146 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12148 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12149 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12150 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12151 (d10v_write_fp): Delete function.
12152 * inferior.h (write_fp, generic_target_write_fp): Delete
12154 * regcache.c (generic_target_write_fp): Delete function.
12155 (write_fp): Delete function.
12156 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12157 * gdbarch.h, gdbarch.c: Regenerate.
12158 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12159 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12160 (sparc64_write_fp): Delete declaration.
12161 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12162 (h8500_write_fp): Delete declaration.
12164 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12166 * sparc-tdep.c (sparc64_write_fp): Delete.
12167 (sparc_push_dummy_frame): Replace write_fp call with code to store
12169 (sparc_gdbarch_init): Do not initialize write_fp.
12171 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12173 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12176 2002-03-29 Jim Blandy <jimb@redhat.com>
12178 * stack.c (get_selected_block): Add new argument `addr_in_block',
12179 used to return the exact code address we used to select the block,
12180 not just the block.
12181 * blockframe.c (get_frame_block, get_current_block): Same.
12182 * frame.h (get_frame_block, get_current_block,
12183 get_selected_block): Update declarations.
12184 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12185 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12187 2002-04-05 Michael Snyder <msnyder@redhat.com>
12189 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12192 2002-04-05 J. Brobecker <brobecker@gnat.com>
12194 * utils.c (xfullpath): New function.
12195 * defs.h (xfullpath): Add declaration.
12196 * source.c (openp): Use xfullpath in place of gdb_realpath to
12197 avoid resolving the basename part of filenames when the
12198 associated file is a symbolic link. This fixes a potential
12199 inconsistency between the filenames known to GDB and the
12200 filenames it prints in the annotations.
12201 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12202 to be able to match a filename with either the real filename, or
12203 the name of any symbolic link to this file.
12204 (lookup_partial_symtab): Ditto.
12206 2002-04-04 Michael Snyder <msnyder@redhat.com>
12208 * breakpoint.c: Add support for hardware breakpoints in overlays.
12209 (overlay_events_enabled): New state variable.
12210 (insert_breakpoints): Use overlay_events_enabled to decide
12211 whether to attempt to set a breakpoint at the overlay load addr.
12212 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12213 (remove_breakpoint): Use overlay_events_enabled to decide
12214 whether breakpoints need to be removed from overlay load addr.
12215 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12216 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12217 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12218 disable_overlay_breakpoints): Update overlay_events_enabled.
12220 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12222 * dwarf2read.c (struct function_range): New.
12223 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12224 (check_cu_functions): New.
12225 (read_file_scope): Initialize global function lists.
12226 Call dwarf_decode_line after processing children.
12227 (read_func_scope): Add to global function list.
12228 (dwarf_decode_lines): Call check_cu_functions everywhere
12229 record_line is called. Call record_line with a linenumber
12230 of 0 to mark sequence ends.
12232 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12234 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12235 change sync with glibc.
12237 2002-04-03 Jim Blandy <jimb@redhat.com>
12239 * configure.in: Call AC_C_INLINE.
12240 * configure: Regenerated.
12242 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12244 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12245 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12247 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12249 * NEWS: Mention gcore support on FreeBSD/i386.
12251 * fbsd-proc.c: New file.
12252 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12253 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12255 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12258 2002-03-29 Jim Blandy <jimb@redhat.com>
12260 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12261 unescaped newlines in string literals, but newer ones don't. So
12264 2002-03-26 Michael Snyder <msnyder@redhat.com>
12265 Andrew Cagney <cagney@redhat.com>
12267 * cli/cli-dump.c: New file. Dump memory to file,
12268 restore file to memory.
12269 * cli/cli-dump.h: New file.
12270 * Makefile.in: Add rules, dependencies for cli-dump.o.
12271 * NEWS: Mention new commands.
12273 2002-03-28 Michael Snyder <msnyder@redhat.com>
12275 * symfile.c (symbol_file_add): Move test for null symbols to later.
12277 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12279 From veksler at il.ibm.com:
12280 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12281 the xstrduped original path.
12284 2002-03-27 Michael Snyder <msnyder@redhat.com>
12286 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12287 * infcmd.c (_initialize_infcmd): Ditto.
12288 * language.c (_initialize_language): Ditto.
12289 * symfile.c (_initialize_symfile): Ditto.
12290 * top.c (_init_main): Ditto.
12291 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12293 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12295 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12296 vector registers handling.
12297 (skip_prologue): Handle new AltiVec instructions. Fill in new
12298 fields of frame data.
12299 (frame_get_saved_regs): Fill in information for AltiVec registers.
12301 2002-03-27 Jim Blandy <jimb@redhat.com>
12303 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12304 a function; leave this macro here to invoke that function.
12305 (symbol_init_mangled_name): Declaration for that function.
12306 * symtab.c (symbol_init_mangled_name): New function.
12308 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12310 * valarith.c: Replace strerror with safe_strerror.
12311 * tracepoint.c: Ditto.
12312 * lin-lwp.c: Ditto.
12313 * go32-nat.c: Ditto.
12315 * gnu-nat.c: Ditto.
12317 2002-03-27 Andreas Schwab <schwab@suse.de>
12319 * event-top.c (command_line_handler): Remove useless if.
12321 2002-03-27 Andreas Jaeger <aj@suse.de>
12323 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12326 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12328 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12329 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12330 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12331 (x86_64_linux_dr_get_status, supply_gregset),
12332 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12333 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12334 (x86_64_register_info_table): Add.
12335 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12336 (x86_64_register_raw_size, x86_64_register_virtual_type),
12337 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12338 general x86_64_register_info_table.
12339 (i386_gdbarch_init): gdbarch_register_bytes is now set
12340 dynamicaly during initialization.
12341 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12342 * gdbserver/linux-x86-64-low.c: Ditto.
12344 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12346 * gdbserver/server.c (main): Call target_signal_to_host_p
12347 and target_signal_to_host on signals received from the remote.
12348 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12349 target_signal_from_host on signals sent to the remote.
12350 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12351 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12353 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12355 * signals/signals.c: Include "server.h" in gdbserver build.
12356 (target_signal_from_name): Don't use STREQ.
12357 (_initialize_signals): Likewise. Don't include function in
12360 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12362 * signals.c: Moved to...
12363 * signals/signals.c: Here.
12364 * Makefile (signals.o): Update.
12366 2002-03-26 Jeff Law (law@redhat.com)
12368 * somread.c (som_symtab_read): Remove some commented out code and
12369 updated related comments. Do not set the minimal symbol table to
12370 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12371 in a dynamic executable.
12372 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12373 where we are unable to find the minimal symbol for the given
12376 2002-03-25 Jeff Law (law@redhat.com)
12378 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12380 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12382 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12384 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12386 * command.h: Update copyright.
12387 (struct cmd_list_element): Replace definition with opaque
12389 (enum cmd_types): Document that it will eventually be moved to
12391 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12392 (MALLOCED_REPLACEMENT): Delete macro.
12393 * Makefile.in (cli_decode_h): Add $(command_h).
12394 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12395 * top.c: Include "cli/cli-decode.h".
12396 * completer.c: Include "cli/cli-decode.h".
12397 * maint.c: Include "cli/cli-decode.h".
12398 * cli/cli-decode.h: Include "command.h".
12399 (enum command_class): Delete.
12400 (enum cmd_types): Comment out.
12401 (enum cmd_auto_boolean): Delete.
12402 (enum var_types): Delete.
12404 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12406 * cli/cli-decode.c: Include "gdb_assert.h".
12407 (add_set_or_show_cmd): New static function.
12408 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12409 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12410 all fields, such as func, from the set command.
12412 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12414 * MAINTAINERS (sh-elf): Change warning flag to -w.
12416 2002-03-23 Andrew Cagney <cagney@redhat.com>
12418 * defs.h (error): Add printf format attribute.
12419 * thread-db.c (thread_from_lwp): Fix error format string.
12420 * stack.c (parse_frame_specification): Ditto.
12421 * cli/cli-decode.c (undef_cmd_error): Ditto.
12422 * scm-lang.c (scm_lookup_name): Ditto.
12423 * tracepoint.c (trace_error): Ditto.
12424 * remote-utils.c (usage): Ditto.
12425 * remote.c (compare_sections_command): Ditto.
12428 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12430 * gdbtypes.c (append_composite_type_field): New function.
12431 (init_composite_type): New function.
12432 * gdbtypes.h (append_composite_type_field): Declare.
12433 (init_composite_type): Ditto.
12435 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12437 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12439 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12440 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12441 structure returning convention for SYSV ABI case, but not
12442 for GNU/Linux, FreeBSD, or NetBSD.
12444 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12446 * symtab.h (lookup_block_symbol): Add mangled_name argument
12449 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12450 with new mangled_name argument.
12451 * linespec.c (decode_line_1): Likewise.
12452 * valops (value_of_this): Likewise.
12453 * symtab.c (lookup_transparent_type): Likewise.
12454 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12455 (lookup_symbol): If we are given a mangled name, pass it down
12456 to lookup_symbol_aux.
12457 (lookup_block_symbol): If we are given a mangled name to check
12458 against, only return symbols which match it.
12460 2002-03-22 Christopher Faylor <cgf@redhat.com>
12462 * win32-nat.c (child_create_inferior): Check for proper shell to use
12463 here, in case the user changes it on the fly.
12464 (_initialize_inftarg): Remove shell path considerations.
12466 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12468 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12469 for gdbarch_max_register_raw_size and max_register_virtual_size.
12470 Adjust copyright year.
12472 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12474 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12475 in a function to cover the entire beginning of the function
12476 as well if it does not already.
12478 2002-03-21 Tom Rix <trix@redhat.com>
12480 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12481 (rs6000_ptrace64): Renamed from ptrace64.
12483 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12485 * gdbserver/remote-utils.c (remote_open): Don't call
12486 getprotobyname, we're all using TCP here so just use
12488 * gdbserver/gdbreplay.c (remote_open): Ditto.
12490 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12492 * regcache.c (_initialize_regcache): No need to call
12493 build_regcache() at this time; it gets called whenever
12494 the gdbarch changes.
12496 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12498 * sparc-nat.c: Include sys/param.h where possible.
12500 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12503 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12504 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12505 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12507 * stabsread.c (rs6000_builtin_type): Likewise.
12508 (read_sun_floating_type): Likewise.
12510 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12512 * stabsread.c (read_member_functions): Remove skip code for duplicate
12513 constructor/destructor methods. Use standard parsing for these
12514 methods and just do not chain them to the list of methods after
12517 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12519 * coffread.c: Remove redundant static declarations. Replace
12520 occurrences of `PTR' with `void *'.
12521 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12522 * top.h (quit_cover): Likewise.
12523 * defs.h (catch_errors): Likewise.
12525 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12527 * defs.h (XMALLOC): Define.
12528 * gdb-events.sh (XMALLOC): Delete macro.
12529 * gdb-events.c, gdb-events.h: Regenerate.
12530 * gdbarch.sh (XMALLOC): Delete macro.
12531 * gdbarch.c: Regenerate.
12532 * serial.c (XMALLOC): Delete macro.
12533 * ui-file.c (XMALLOC): Ditto.
12534 * ser-unix.h (XMALLOC): Ditto.
12535 * sh-tdep.c (XMALLOC): Ditto.
12536 * ui-out.c (XMALLOC): Ditto.
12537 * utils.c (XMALLOC): Ditto.
12538 * i386-tdep.c (XMALLOC): Ditto.
12539 * gdb-events.c (XMALLOC): Ditto.
12540 * d10v-tdep.c (XMALLOC): Ditto.
12541 * cli-out.c (XMALLOC): Ditto.
12543 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12544 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12545 * ui-file.c, ui-out.c: Ditto.
12547 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12549 * command.h (struct cmd_list_element): Add field context.
12550 (set_cmd_context, get_cmd_context): Declare.
12551 * cli/cli-decode.h: Ditto.
12552 * cli/cli-decode.c (get_cmd_context): New function.
12553 (set_cmd_context): New function.
12554 (add_cmd): Initialize context.
12555 Part of fixing PR gdb/145 and PR gdb/146.
12557 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12559 * cli/cli-decode.c (cmd_type): New function.
12560 * command.h (cmd_type): Declare.
12561 * infrun.c (set_schedlock_func): Call function cmd_type.
12562 * kod.c (kod_set_os): Call cmd_type.
12563 * cris-tdep.c (cris_version_update): Use function cmd_type.
12564 (cris_mode_update, cris_abi_update): Ditto.
12566 * command.h: (execute_cmd_post_hook): Declare.
12567 (execute_cmd_pre_hook): Declare.
12568 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12569 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12570 functions. Execute pre/post hook while ensuring that afterwords
12571 hook_in is cleared.
12572 * top.c (execute_command): Use execute_cmd_post_hook, and
12573 execute_cmd_pre_hook to execute pre/post commands.
12574 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12576 (hook_stop_stub): Call execute_cmd_pre_hook.
12578 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12580 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12581 set'' and this leads to a core dump. Move xstrdup of
12582 operating_system to after check that it is not NULL.
12584 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12586 * kod.c (kod_set_os): Remove unnecessary check that
12587 ``command->type'' is set_cmd.
12589 * valprint.c (set_input_radix): Use input_radix.
12590 (set_output_radix): Use output_radix.
12591 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12594 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12596 * value.h (struct value): Delete field ``substring_addr''. Change
12597 aligner fields to force_doublest_align, force_longest_align,
12598 force_core_addr_align and force_pointer_aligh.
12600 * value.h (struct value): Fix typo in above change.
12602 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12604 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12605 to fix internal_error from ``maintenance print architecture''.
12607 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12609 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12610 for gcc versions after gcc-2.8.1.
12612 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12614 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12615 for method resolution. Restore adjustment of ``this'' pointer after
12616 calling value_struct_elt, which was accidentally removed during the
12619 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12621 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12623 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12624 get_saved_register.
12625 * value.h (value_of_register): Update.
12627 2002-03-14 Richard Henderson <rth@redhat.com>
12629 * configure.in: Detect declaration for canonicalize_file_name.
12630 * utils.c (canonicalize_file_name): Declare, if needed.
12631 (gdb_realpath): Prefer realpath if available and usable.
12632 * config.in, configure: Rebuild.
12634 2002-03-14 Richard Henderson <rth@redhat.com>
12636 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12637 a constant array bound.
12639 * MAINTAINERS: Add myself to write-after-approval.
12641 2002-03-14 Michael Snyder <msnyder@redhat.com>
12643 * symfile.c (syms_from_objfile): Return immediately if no syms.
12644 (symbol_file_add): Return immediately if no syms.
12645 (find_sym_fns): Return immediately if no syms.
12647 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12649 * gdbserver/remote-util.c (remote_open): Print remote-side's
12650 IP address when remote debugging over the network.
12652 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12654 * config/sparc/fbsd.mh: Fix copyright.
12655 * config/sparc/fbsd.mt: Likewise.
12657 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12659 * MAINTAINERS: Fix typo in name of gdb warnings option.
12660 (x86-64): Fix formating so that this can be parsed by awk.
12662 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12664 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12665 * defs.h: Include "gdb/signals.h".
12666 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12668 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12670 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12671 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12674 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12675 Don Howard <dhoward@redhat.com>
12677 * mips-tdep.c (ST0_FR): Define.
12678 (mips2_fp_compat): New function, temporarily disabled.
12679 (mips_read_fp_register_single): New function.
12680 (mips_read_fp_register_double): New function.
12681 (mips_print_register): Use them.
12682 (do_fp_register_row): Likewise.
12684 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12686 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12689 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12691 * stabsread.c (read_member_functions): Fix is_stub test for
12692 static member functions, improve comment.
12694 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12696 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12697 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12698 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12699 commands that set boolean values.
12700 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12701 (arm_rdi_resume): Always initialize PC.
12702 (arm_rdi_open): Don't use rslt as a boolean.
12703 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12704 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12705 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12706 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12708 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12710 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12711 * configure: Rebuilt.
12713 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12715 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12716 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12718 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12720 * cli/cli-decode.c (set_cmd_completer): New function.
12721 * command.h (set_cmd_completer): Declare.
12722 * cli/cli-decode.h (set_cmd_completer): Ditto.
12724 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12725 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12726 * win32-nat.c (_initialize_inftarg): Ditto.
12727 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12728 * proc-api.c (_initialize_proc_api): Ditto.
12729 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12730 * source.c (_initialize_source): Ditto.
12731 * exec.c (_initialize_exec): Ditto.
12732 * solib.c (_initialize_solib): Ditto.
12733 * top.c (init_main): Ditto.
12734 * tracepoint.c (_initialize_tracepoint): Ditto.
12735 * symfile.c (_initialize_symfile): Ditto.
12736 * printcmd.c (_initialize_printcmd): Ditto.
12737 * infcmd.c (_initialize_infcmd): Ditto.
12738 * corefile.c (_initialize_core): Ditto.
12740 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12742 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12744 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12746 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12748 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12750 * NEWS: Update headings, 5.2 has branched.
12752 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12754 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12755 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12756 (register_addr, REGISTER_RAW_SIZE): Likewise.
12757 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12758 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12760 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12762 * MAINTAINERS (x86-64): Add myself.
12763 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12764 changed value_ptr -> struct value *
12766 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12768 * configure.host (sparc64-*-freebsd): Add.
12769 * configure.tgt: Likewise.
12770 * config/sparc/fbsd.mh: New file.
12771 * config/sparc/fbsd.mt: Likewise.
12772 * config/sparc/nm-fbsd.h: Likewise.
12773 * config/sparc/tm-fbsd.h: Likewise.
12775 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12777 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12778 regformats/reg-s390x.dat.
12780 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12782 * utils.c: Add FIXME explaining true/false problem.
12784 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12786 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12788 2002-02-28 Michael Chastain <mec@shout.net>
12790 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12792 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12794 * gdbserver/linux-s390-low.c: New file.
12795 * regformats/reg-s390.dat: New file.
12796 * regformats/reg-s390x.dat: New file.
12797 * gdbserver/configure.srv: Add S/390.
12798 * gdbserver/Makefile.in: Add S/390.
12799 * configure.tgt: Enable gdbserver for S/390.
12801 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12803 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12804 first line of the doc string for "info dos", except at the end of
12805 the sentence, since the short help stops at the first period.
12807 2002-02-28 Jason Merrill <jason@redhat.com>
12809 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12811 2002-02-27 Fred Fish <fnf@redhat.com>
12813 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12814 comment (dumy -> dummy).
12816 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12818 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12820 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12822 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12824 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12826 * gdbserver/acconfig.h: New file.
12827 * gdbserver/i387-fp.c: New file.
12828 * gdbserver/i387-fp.h: New file.
12829 * gdbserver/linux-x86-64.c: New file.
12830 * regformats/reg-x86-64.dat: New file.
12831 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12832 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12833 * gdbserver/configure.in: Add support for regsets.
12834 * gdbserver/config.in: Regenerate.
12835 * gdbserver/configure: Regenerate.
12836 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12837 * gdbserver/linux-low.h: New file.
12838 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12840 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12841 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12842 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12843 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12844 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12845 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12846 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12847 "i387-fp.h". Add PTRACE_GETREGS and friends.
12848 * gdbserver/regcache.c (supply_register): New function.
12849 (supply_register_by_name): New function.
12850 (collect_register): New function.
12851 (collect_register_by_name): New function.
12853 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12855 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12856 (config.status): Add configure.srv dependency.
12857 (server_h): Add config.h dependency.
12859 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12861 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12862 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12863 * gdbserver/configure.srv: Change i386-*-linux* to use
12866 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12868 * x86-64-tdep.c: Re-indent. Update copyright date.
12870 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12872 From Michal Ludvig <mludvig@suse.cz>:
12873 * x86-64-tdep.c (value.h): Delete.
12874 (gdb_assert.h): Include.
12875 (x86_64_register_convert_to_virtual,
12876 x86_64_register_convert_to_raw ): Add check which lets only
12877 floating-point values to be converted.
12878 (value_push): Delete.
12879 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12880 (i386_gdbarch_init): Number of register_bytes fixed.
12882 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12884 * MAINTAINERS: Add x86-64 target.
12886 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12888 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12889 * osfsolib.c (solib_map_sections): Ditto.
12890 * irix5-nat.c (solib_map_sections): Ditto.
12891 * corelow.c (gdb_check_format): Ditto.
12892 * symfile.c (symfile_bfd_open): Ditto.
12893 * solib.c (solib_map_sections): Ditto.
12896 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12898 * remote.c (_initialize_remote): By default, disable ``e'' and
12899 ``E'' step out-of-range packets.
12901 2002-02-26 Andreas Schwab <schwab@suse.de>
12903 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12904 m68k_linux_frame_saved_pc.
12905 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12907 (SIGCONTEXT_PC_OFFSET): Remove.
12908 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12909 m68k_linux_sigtramp_saved_pc): New functions.
12910 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12911 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12912 (UCONTEXT_PC_OFFSET): Define.
12913 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12914 non-RT and RT signal trampolines.
12916 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12918 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12919 (TARGET_NBPG, STACK_END_ADDR): Delete
12920 (VARIABLES_INSIDE_BLOCK): Delete.
12922 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12924 * utils.c (perror_with_name): Make string parameter constant.
12925 (print_sys_errmsg): Ditto.
12927 * defs.h (perror_with_name): Update.
12928 (print_sys_errmsg): Update.
12931 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12933 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12934 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12936 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12938 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12939 if it already matches the current architecture from the exec file.
12940 Include arch-utils.h for gdbarch_info_init prototype.
12941 * Makefile.in (rs6000-nat.o): Update dependencies.
12943 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12945 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12946 list of exported variables.
12948 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12950 * gdbserver/configure.srv: New file.
12951 * gdbserver/configure.in: Use configure.srv instead
12952 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12954 * gdbserver/configure: Regenerated.
12955 * gdbserver/terminal.h: New file.
12956 * gdbserver/Makefile.in: Update for configure changes. Remove
12957 more unneeded include paths.
12959 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12961 From wiz at danbala:
12962 * config/sparc/tm-sp64.h: Fix grammar and typos.
12965 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12967 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12968 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12969 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12970 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12971 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12972 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12973 * s390-tdep.c: Ditto.
12974 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12975 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12976 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12977 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12978 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12979 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12980 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12981 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12982 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12983 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12986 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12988 * lin-thread.c: Delete file.
12989 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12990 to gdb_proc_service.h.
12991 * configure: Re-generate.
12993 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12994 * serial.c (serial_open): Delete check for "ocd".
12997 * Makefile.in (linux-thread.o): Delete target.
12998 * linux-thread.c: Delete file.
13000 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
13001 renamed SH files to be consistent.
13003 * symtab.c (sort_search_symbols): Use xfree.
13005 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13007 * arm-linux-tdep.c (arm_linux_init_abi): Register
13008 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13009 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13010 definition with undef, since we don't want the sysvr4 definition.
13011 (SKIP_TRAMPOLINE_CODE): Likewise.
13013 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13015 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13017 * configure.in: (AC_CHECK_FUNCS) Added test for
13018 canonicalize_file_name Regenerated.
13019 * config.in, configure: Regenerated.
13020 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13021 defined use canonicalize_file_name.
13023 2002-02-23 Michael Chastain <mec@shout.net>
13025 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13027 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13029 * README: Remove references to cygnus.com.
13030 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13031 dot com'' form. Remove references to cygnus.com and sourceware.
13033 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13035 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13036 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13037 1003.1-2001 no longer allows "head -1".
13038 * gdb/Makefile.in (version.c): Likewise.
13039 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13040 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13041 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
13043 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13045 * cli/cli-decode.c (cmd_cfunc_eq): New function.
13046 * command.h (cmd_cfunc_eq): Declare.
13047 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13049 * cli/cli-cmds.h (is_complete_command): Change parameter to a
13050 ``struct cmd_list_element *''.
13051 * cli/cli-cmds.c (is_complete_command): Update. Use
13053 * top.c (execute_command): Pass the command to
13054 is_complete_command.
13055 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13057 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13059 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13060 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13061 architecture defines.
13062 * s390-tdep.c (s390_gdbarch_init): Likewise.
13064 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13066 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13067 (arm_linux_push_arguments): Likewise.
13068 (arm_linux_init_abi): Register them. Also register linux-specific
13070 (find_minsym_and_objfile): Use strcmp, not STREQ.
13071 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13072 (arm_linux_call_dummy_words): Delete declaration.
13073 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13074 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13076 (LOWEST_PC): Delete.
13078 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13080 * maint.c (print_section_info): Do not prepend `0x' to filepos
13081 output, it will be handled by local_hex_string_custom.
13083 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13085 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13086 (store_newfpe_double, store_newfpe_extended, store_fpregister)
13087 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13089 2002-02-22 Jim Blandy <jimb@redhat.com>
13091 Indicate that the bcache functions don't change the strings
13093 * bcache.h (bcache, hash): Add `const' keywords to declarations.
13094 * bcache.c (bcache, hash): Add `const' keywords to definitions.
13096 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
13098 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13100 2002-02-21 Christopher Faylor <cgf@redhat.com>
13102 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13103 find the complete path to a loaded DLL.
13105 2002-02-21 Fred Fish <fnf@redhat.com>
13107 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13108 that marks the end of the range of a function, enter a line number
13109 entry that has a line number of zero and a PC offset that matches
13110 the end of the function. This starts a range of PC's for which no
13111 line number information is known.
13112 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13113 PC's for which no line number info is found (line number is zero)
13114 then we didn't find any valid line information.
13115 * symtab.h: Document use of zero line number entry.
13117 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13119 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13120 (have_ptrace_getvrregs): Define for run time checks.
13121 (gdb_vrregset_t): New type for Altivec register handling.
13122 (fetch_register, store_register): Fetch/store altivec register
13124 (fetch_altivec_register, store_altivec_register): New functions.
13125 (supply_vrregset, fill_vrregset): New functions.
13126 (fetch_altivec_registers, store_altivec_registers): New functions.
13127 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13130 2002-02-21 Jiri Smid <smid@suse.cz>
13132 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13134 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13136 * Makefile.in (armnbsd-nat.o): Update dependencies.
13137 * armnbsd-nat.c (supply_gregset): New function. Common code to
13138 supply the integer register set.
13139 (supply_fparegset): New function. Similar for FPA registers.
13140 (fetch_regs, fetch_fp_regs): Use them.
13141 (fetch_core_registers): Likewise.
13142 (fetch_elfcore_registers): New function.
13143 (arm_netbsd_elfcore_fns): New core-file type specification.
13144 (_initialize_arm_netbsd_nat): Register it.
13146 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13148 * armnbsd-nat.c: Include gdbcore.h.
13149 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13150 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13151 'void' to declaration, to shut up ARI.
13152 (fetch_core_registers): Make static. Rewrite using supply_register.
13153 (arm_netbsd_core_fns): New core-file type specification.
13154 (_initialize_arm_netbsd_nat): New function.
13156 2002-02-21 Christopher Faylor <cgf@redhat.com>
13158 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13161 2002-02-20 Christopher Faylor <cgf@redhat.com>
13163 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13166 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13168 * jv-exp.y (parse_number): Change type of implicit longs
13169 to builtin_type_uint64.
13171 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13173 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13174 to be an integer instead of a `union wait'.
13176 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13178 * mips-linux-nat.c: Call the operating system GNU/Linux.
13179 * mips-linux-tdep.c: Likewise.
13180 * mips-tdep.c: Likewise.
13182 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13185 * jv-exp.y (parse_number): Handle 64-bit integers.
13187 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13189 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13190 AC_STDC_HEADERS to AC_HEADER_STDC.
13191 * gdbserver/configure: Regenerated.
13193 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13195 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13197 * sparc-tdep.c (get_longjmp_target): Likewise.
13199 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13201 * News: Add news about ARM and Multi-arch. Mention the new target
13204 2002-02-19 Jim Blandy <jimb@redhat.com>
13206 * stabsread.c (error_type_complaint): Improve error message.
13208 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13210 * gdbserver/README: Update documentation.
13211 * gdbserver/configure.in: Update configury to match documentation.
13212 * gdbserver/Makefile.in: Likewise.
13213 * gdbserver/configure: Regenerated.
13214 * gdbserver/aclocal.m4: New file, generated by aclocal.
13215 * gdbserver/config.in: New file, generated by autoheader.
13217 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13219 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13222 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13224 * arm-tdep.h (enum arm_float_model): New enum.
13225 (struct gdbarch_tdep): Add fp_model.
13226 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13227 up floating-point conversions until we know the floating-point model
13228 in use by the inferior. Don't complain about being unable to
13229 determine the ABI of the inferior when we don't have one.
13230 (arm_extract_return_value): Support different floating-point models.
13231 (arm_store_return_value): Likewise.
13232 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13234 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13236 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13238 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13239 of ``current_gdbarch''.
13241 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13243 * armnbsd-nat.c : ANSIfy all function declarations.
13244 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13245 (fetch_inferior_registers): Re-implement in terms of above.
13246 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13247 (store_inferior_registers): Re-implement in terms of above.
13249 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13251 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13253 * arm-linux-tdep.c: Likewise.
13254 * config/arm/tm-linux.h: Likewise.
13256 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13258 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13259 * config/arm/nbsd.mt (TM_FILE): Delete.
13260 * config/arm/tm-nbsd.h: Delete.
13262 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13264 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13265 Initialize CALL_DUMMY_LENGTH.
13267 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13269 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13271 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13272 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13273 defines one thing and that is incorrect for this port.
13274 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13276 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13278 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13280 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13282 * win32-nat.c (display_selector): New function. Displays information
13283 about the information returned by GetThreadSelectorEntry API function.
13284 (display_selectors): New function. Displays the infomation of
13285 the selector given as argument, or of CS, DS ans FS selectors
13286 if no argument is given.
13287 ( _initialize_inftarg): Add "w32" as info prefix command.
13288 Add "info w32 selector" as command calling display_selectors.
13290 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13292 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13293 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13296 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13298 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13300 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13302 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13303 (arm_fix_call_dummy): Call it.
13304 (arm_call_dummy_breakpoint_offset): Delete.
13305 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13306 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13308 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13310 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13311 Default to func_frame_chain_valid.
13312 * gdbarch.h, gdbarch.c: Re-generate.
13313 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13315 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13317 * ppc-linux-nat.c: Update copyright.
13318 (fetch_register, store_register): Add tid parameter, don't compute
13320 (fetch_ppc_registers, store_ppc_registers): Add tid
13321 parameter. Pass it along to callees.
13322 (fetch_inferior_registers, store_inferior_registers): Compute tid
13323 here, and pass it to calleed functions.
13324 (fill_gregset, supply_fpregset): Clean up formatting.
13326 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13328 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13329 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13331 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13333 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13334 * gdbarch.c gdbarch.h: Regenerate.
13335 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13337 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13338 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13339 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13341 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13342 * arm-tdep.c (arm_get_longjmp_target): New function.
13343 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13344 this to a positive value register arm_get_longjmp_target as the
13346 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13347 (arm_linux_init_abi): Set up longjmp description in tdep.
13348 * armnbsd-nat.c (get_longjmp_target): Delete.
13349 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13350 description in tdep.
13351 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13352 (get_longjmp_target): Delete declaration.
13353 (GET_LONGJMP_TARGET): Delete.
13354 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13355 (GET_LONGJMP_TARGET): Delete.
13357 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13359 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13360 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13361 of ``current_gdbarch''.
13363 2002-02-17 Tom Tromey <tromey@redhat.com>
13365 * cli/cli-cmds.c (compare_strings): New function.
13366 (complete_command): Only print each unique item once.
13367 * completer.h (complete_line): Declare.
13368 * completer.c (complete_line): New function.
13369 (line_completion_function): Use it.
13371 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13373 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13374 * gdbarch.h, gdbarch.c: Re-generate.
13376 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13378 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13380 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13382 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13383 * valops.c (value_arg_coerce): Don't take the address of a reference
13384 to convert an argument to a reference.
13386 2002-02-15 Christopher Faylor <cgf@redhat.com>
13388 * win32-nat.c (get_image_name): New function.
13389 (handle_load_dll): Use get_image_name function.
13390 (get_child_debug_event): Avoid registering debug events until possibly
13391 execed process is started.
13392 (child_create_inferior): Allow invocation via shell so that command
13393 line redirection, etc. works ok.
13394 (_initialize_inftarg): Add new command: "set shell" to control whether
13395 a shell is used to start a process.
13397 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13399 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13400 instead of find_register_by_number.
13401 (cannot_store_register): Likewise.
13403 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13405 * dwarf2read.c: Replace fprintf (stderr, ...) by
13406 fprintf_unfiltered (gdb_stderr, ...).
13408 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13410 * gdbserver/gdbserver.1: Document --attach.
13412 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13414 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13416 * arm-tdep.c (arm_default_arm_le_breakpoint)
13417 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13418 (arm_default_thumb_be_breakpoint): New. Initialize them from
13419 traditional breakpoint defines.
13420 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13421 (arm_gdbarch_init): Initialize new breakpoint variables.
13422 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13423 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13424 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13425 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13427 (arm_netbsd_init_abi_common): ... here; new function.
13428 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13429 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13430 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13431 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13433 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13435 * arm-tdep.h (enum arm_abi): New enum.
13436 (struct gdbarch_tdep): New structure.
13437 (LOWEST_PC): Provide a default.
13438 (arm_gdbarch_register_os_abi): Declare new function.
13439 * arm-tdep.c (arm_abi_names): New array.
13440 (process_note_abi_tag_sections): New function.
13441 (get_elfosabi): New function.
13442 (arm_gdbarch_register_os_abi): New function.
13443 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13444 support for that ABI has been built in, then call the appropriate
13445 configuration routine. Use gdbarch_num_regs() to get the number
13447 (arm_dump_tdep): New function.
13448 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13449 place-holder functions.
13450 (_initialize_arm_tdep): Register them.
13451 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13453 * armnbsd-tdep.c: New file.
13454 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13455 * config/arm/nbsd.mt (TDEPFILES): Add it.
13456 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13458 * armnbsd-nat.c: Include regcache.h.
13459 * Makefile.in (armnbsd-nat.o): Update dependency list.
13461 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13463 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13465 * gdbserver/Makefile.in: Fix typos in target rules.
13467 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13469 Fix part of PR gdb/267.
13470 * linespec.c (find_methods): Handle constructors specially for now.
13472 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13474 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13476 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13477 standard_coerce_float_to_double().
13479 2002-02-14 Christopher Faylor <cgf@redhat.com>
13481 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13484 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13486 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13487 find_variant_by_name, because it confuses the multiarch
13488 framework. Return NULL if there isn't an architecture with the
13489 user supplied name, instead of forcing a different one without
13490 recording the change with the multiarch machinery.
13491 (find_variant_by_name): Delete.
13493 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13495 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13496 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13498 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13500 * stack.c (print_frame_info_base): When calling
13501 print_frame_info_listing_hook, set current_source_symtab.
13503 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13505 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13506 and remove unused $(INCLUDE_DIR).
13507 Add regcache.c to OBS.
13508 Add generated register protocol files to clean target.
13509 Update dependencies for new objects, obsolete old target code.
13511 * gdbserver/linux-low.c: Remove all platform-specific code to
13512 new files. Remove various dead code. Update to use regcache
13514 * gdbserver/remote-utils.c (fromhex): Add return statement
13516 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13518 (input_interrupt): Add integer parameter to match prototype
13519 of a signal handler.
13520 (outreg): Use register_data ().
13521 (prepare_resume_reply): Use gdbserver_expedite_regs.
13522 * gdbserver/server.c (main): Dynamically allocate own_buf because
13523 PBUFSIZ is no longer constant. Use registers_to_string () and
13524 registers_from_string ().
13525 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13526 for error (), fatal (), and warning (). Update definition of
13527 PBUFSIZ to use regcache functionality. Add include guard.
13528 * gdbserver/utils.c (fatal): Add missing ``const''.
13529 (warning): New function.
13531 * regformats/regdat.sh: Include "regcache.h" in generated files.
13532 Provide init_registers () function.
13533 * regformats/regdef.h: Add prototype for set_register_cache ().
13536 * gdbserver/linux-arm-low.c: New file.
13537 * gdbserver/linux-i386-low.c: New file.
13538 * gdbserver/linux-ia64-low.c: New file.
13539 * gdbserver/linux-m68k-low.c: New file.
13540 * gdbserver/linux-mips-low.c: New file.
13541 * gdbserver/linux-ppc-low.c: New file.
13542 * gdbserver/linux-sh-low.c: New file.
13544 * gdbserver/regcache.c: New file.
13545 * gdbserver/regcache.h: New file.
13547 * gdbserver/low-linux.c: Removed obsolete file.
13549 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13551 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13552 * config/i386/linux.mt: Likewise.
13553 * config/ia64/linux.mt: Likewise.
13554 * config/m68k/linux.mh: Likewise.
13555 * config/powerpc/linux.mh: Likewise.
13556 * config/mips/linux.mt: Likewise.
13558 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13560 * config/i386/i386lynx.mh: Mark gdbserver variables
13561 as (currently) obsolete for this target.
13562 * config/i386/nbsd.mt: Likewise.
13563 * config/i386/nbsdelf.mt: Likewise.
13564 * config/m32r/m32r.mt: Likewise.
13565 * config/m68k/m68klynx.mh: Likewise.
13566 * config/m68k/nbsd.mt: Likewise.
13567 * config/m68k/sun3os4.mh: Likewise.
13568 * config/mips/vr5000.mt: Likewise.
13569 * config/ns32k/nbsd.mt: Likewise.
13570 * config/pa/hppabsd.mh: Likewise.
13571 * config/pa/hppaosf.mh: Likewise.
13572 * config/powerpc/nbsd.mt: Likewise.
13573 * config/rs6000/rs6000lynx.mh: Likewise.
13574 * config/s390/s390.mt: Likewise.
13575 * config/s390/s390x.mt: Likewise.
13576 * config/sparc/sparclynx.mh: Likewise.
13577 * config/sparc/sun4os4.mh: Likewise.
13578 * config/i386/x86-64linux.mt: Likewise.
13579 * config/sparc/linux.mh: Likewise.
13581 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13583 * configure.tgt: Configure gdbserver only for known working
13584 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13585 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13586 SUBDIRS if it is configured. Update comment for ${nativefile}.
13587 * configure: Regenerated.
13589 2002-02-13 Michael Snyder <msnyder@redhat.com>
13591 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13593 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13594 (default_gcore_mach): Just return 0, work around a problem in bfd.
13595 (default_gcore_target): OK to return NULL if exec_bfd is null.
13596 (make_mem_sec): Use a cast, avoid a warning.
13598 * procfs.c (find_memory_regions_callback): Use a cast instead of
13599 calling host_pointer_to_address (which complains if
13600 sizeof (host pointer) != sizeof (target pointer)).
13601 (procfs_make_note_section): Avoid overflow in psargs string.
13603 * procfs.c (procfs_make_note_section): Make the default
13604 implementation return an error.
13606 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13608 * procfs.c (procfs_make_note_section): Provide a default definition
13609 (for alpha-dec-osf4.0f). Fix typos.
13611 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13613 * linux-proc.c: Add include of regcache.h.
13614 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13616 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13618 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13619 * memattr.c (create_mem_region): Disallow useless empty region.
13620 Regions are half-open intervals, so allow [A..B) [B..C) as
13623 2002-02-13 Michael Chastain <mec@shout.net>
13625 * defs.h: Kill CONST_PTR.
13626 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13627 * c-lang.c (c_builtin_types): Likewise.
13628 * ch-lang.c (ch_builtin_types): Likewise.
13629 * f-lang.c (f_builtin_types): Likewise.
13630 * language.c (unknown_builtin_types): Likewise.
13631 * m2-lang.c (m2_builtin_types): Likewise.
13632 * p-lang.c (pascal_builtin_types): Likewise.
13633 * scm-lang.c (c_builtin_types): Likewise.
13635 2002-02-13 Keith Seitz <keiths@redhat.com>
13637 * arm-tdep.h (arm_get_next_pc): Add declaration.
13639 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13641 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13642 with other related struct-returning functions.
13643 (arm_extract_struct_value_address): New function.
13644 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13645 initialize float_format, double_format and long_double_format as
13646 appropriate to the endianness of the target.
13647 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13648 (arm_use_struct_convention): Delete declaration.
13649 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13651 2002-02-13 Keith Seitz <keiths@redhat.com>
13653 * defs.h (core_addr_to_string_nz): New function.
13655 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13657 Apply missing bits of 2002-01-15 patch.
13658 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13659 (fill_fpregset): Use i387_fill_fsave.
13661 2002-02-12 Keith Seitz <keiths@redhat.com>
13663 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13664 (core_addr_to_string_nz): New function.
13666 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13668 * arm-linux-nat.c: Really include arm-tdep.h.
13669 * config/arm/tm-linux.h (struct type, struct value): Declare.
13671 2002-02-11 Michael Snyder <msnyder@redhat.com>
13673 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13674 (gcore section): Ifdef for Solaris and Unixware only.
13675 (procfs_do_thread_registers): Unixware needs one lwpstatus
13676 per thread (not one prstatus or pstatus).
13677 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13678 not over all gdb threads. For unixware, call elfcore_write_pstatus
13679 once before iterating over threads.
13681 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13683 * arm-tdep.h: New file.
13684 * arm-tdep.c: Include arm-tdep.h.
13685 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13686 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13687 (arm_print_float_info, arm_register_type, convert_to_extended)
13688 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13689 (arm_extract_return_value, arm_register_name): Make static.
13690 (arm_software_single_step): Similarly. Fix types in declaration.
13691 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13692 (arm_store_return_value, arm_store_struct_return): New functions.
13693 (arm_gdbarch_init): Register the above functions. Also register
13694 call_dummy_start_offset, sizeof_call_dummy_words,
13695 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13696 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13697 max_register_virtual_size, register_size. Set up
13698 prologue_cache.saved_regs here, rather than ...
13699 (_initialize_arm_tdep): ... here.
13700 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13702 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13703 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13704 (arm_print_float_info, arm_register_type, convert_to_extended)
13705 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13706 (arm_extract_return_value, arm_register_name): Delete declarations.
13707 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13708 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13709 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13710 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13711 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13712 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13713 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13714 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13715 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13716 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13717 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13718 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13720 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13721 * remote-rdi.c remote-rdp.c: Likewise.
13722 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13723 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13724 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13727 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13728 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13729 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13730 from non-ARM_ prefixed definitions.
13731 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13733 * remote-rdi.c remote-rdp.c: Likewise.
13734 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13736 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13738 * arm-tdep.c (arm_frameless_function_invocation)
13739 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13740 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13741 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13742 (arm_pop_frame, arm_get_next_pc): Make static.
13743 (arm_gdbarch_init): Register above in gdbarch structure.
13744 (arm_read_fp): Renamed from arm_target_read_fp.
13745 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13746 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13747 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13748 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13749 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13750 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13751 (arm_pc_is_thumb_dummy): Delete declarations.
13752 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13753 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13754 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13755 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13757 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13759 * symtab.c (compare_search_syms): New function.
13760 (sort_search_symbols): New function.
13761 (search_symbols): Sort symbols after searching rather than
13764 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13766 * NEWS: Linux -> GNU/Linux.
13768 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13770 * gdbarch.sh: For for level one methods, disallow a definition
13771 when partially multi-arched. Add comments explaining rationale.
13772 * gdbarch.h: Re-generate.
13774 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13776 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13777 multi-arch partial.
13779 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13781 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13782 field. Use diff -u.
13783 * gdbarch.c: Re-generate.
13785 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13787 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13788 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13791 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13793 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13794 multi-arch partial.
13795 (PUSH_ARGUMENTS): Switch to using predefault.
13796 * gdbarch.c: Regenerate.
13798 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13800 * valops.c (PUSH_ARGUMENTS): Delete definition.
13801 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13802 partial. Default to default_push_arguments.
13803 * gdbarch.h, gdbarch.c: Regenerate.
13805 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13807 * defs.h (throw_exception): Rename return_to_top_level. Update
13809 * utils.c (error_stream, internal_verror, quit): Ditto.
13810 * top.c (throw_exception, catcher): Ditto.
13811 * sparclet-rom.c (sparclet_load): Ditto.
13812 * remote.c (interrupt_query, minitelnet): Ditto.
13813 * remote-sds.c (interrupt_query): Ditto.
13814 * remote-mips.c (mips_error, mips_kill): Ditto.
13815 * ocd.c (interrupt_query): Ditto.
13816 * monitor.c (monitor_interrupt_query): Ditto.
13817 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13818 * target.h: Update comment.
13820 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13822 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13824 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13825 default_double_format.
13826 * gdbarch.h, gdbarch.c: Re-generate.
13827 * findvar.c (floatformat_unknown): Delete variable definition.
13828 * doublest.h (floatformat_unknown): Delete variable declaration.
13830 2002-02-09 Jim Blandy <jimb@redhat.com>
13832 * stabsread.c (read_type): Add code to parse Sun's syntax for
13833 prototyped function types.
13835 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13837 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13838 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13840 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13842 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13843 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13844 now _initialize_xcoffsolib gets called again and overrides the
13845 commands from solib.c in a native configuration.
13847 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13849 * doublest.c (store_typed_floating): Don't try to return a value.
13852 2002-02-08 Jim Blandy <jimb@redhat.com>
13854 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13855 is prototyped and has no arguments, print its argument list as
13858 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13860 * MAINTAINERS (write-after-approval): Add myself.
13861 (paper-trail): I've escaped!
13863 2002-02-08 Christopher Faylor <cgf@redhat.com>
13865 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13867 (_initialize_check_for_gdb_ini): Ditto.
13869 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13871 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13872 xaprintf -> xasprintf.
13874 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13876 * win32-nat.c: Remove use of printf and sprintf functions.
13878 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13880 * arm-tdep.c (arm_frame_chain_valid): Make static.
13881 (arm_push_arguments): Likewise.
13882 (arm_gdbarch_init): New function.
13883 (_initialize_arm_tdep): Call it.
13884 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13885 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13886 (FRAME_CHAIN_VALID): Delete.
13887 (arm_frame_chain_valid): Delete declaration.
13888 (PUSH_ARGUMENTS): Delete.
13889 (arm_push_arguments): Delete declaration.
13890 (CALL_DUMMY_P): Delete.
13892 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13893 Corinna Vinschen <vinschen@redhat.com>
13895 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13896 on builtin float types.
13898 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13900 * utils.c: Include <curses.h> before "bfd.h".
13901 * tui/tui-hooks.c: Likewise.
13902 * tui/tui.c: Likewise.
13903 * tui/tuiCommand.c: Likewise.
13904 * tui/tuiData.c: Likewise.
13905 * tui/tuiDataWin.c: Likewise.
13906 * tui/tuiDisassem.c: Likewise.
13907 * tui/tuiGeneralWin.c: Likewise.
13908 * tui/tuiIO.c: Likewise.
13909 * tui/tuiLayout.c: Likewise.
13910 * tui/tuiRegs.c: Likewise.
13911 * tui/tuiSource.c: Likewise.
13912 * tui/tuiSourceWin.c: Likewise.
13913 * tui/tuiStack.c: Likewise.
13914 * tui/tuiWin.c: Likewise.
13916 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13918 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13919 to include space for pseudoregs as well. Update loops accordingly.
13920 (sh_fp_frame_init_saved_regs): Ditto.
13921 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13923 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13925 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13926 Add Richard Earnshaw to Arm maintainers.
13928 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13930 * defs.h (warning_begin): Delete declaration.
13932 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13935 2002-02-07 Michael Snyder <msnyder@redhat.com>
13937 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13938 Logic bug, remove misplaced else.
13940 2002-02-07 Klee Dienes <klee@apple.com>
13942 * fork-inferior.c (fork_inferior): Add '!' to the list of
13943 characters that need to be quoted when building a string for the
13944 shell. Quote '!' specifically with a backslash, since CSH chokes
13945 when trying to evaluate "str!str".
13947 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13949 * rdi-share/host.h: Only provide a typedef for bool if it is not
13952 2002-02-04 Michael Snyder <msnyder@redhat.com>
13954 * breakpoint.h (enum bptype): Add new overlay event bp type.
13955 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13957 * breakpoint.c (create_internal_breakpoint): New function.
13958 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13959 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13960 (create_thread_event_breakpoint): Ditto.
13961 (create_solib_event_breakpoint): Ditto.
13962 (create_overlay_event_breakpoint): New function.
13963 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13964 (update_breakpoints_after_exec): Delete and re-initialize
13965 overlay event breakpoints after an exec. Add FIXME comment
13966 about longjmp breakpoint.
13967 (print_it_typical): Ignore overlay event breakpoints.
13968 (print_one_breakpoint): Ditto.
13970 (bpstat_what): Do not stop for overlay event breakpoints.
13971 (delete_breakpoint): Don't delete overlay event breakpoints.
13972 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13973 (breakpoint_re_set): Re-create overlay event breakpoint.
13975 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13976 (overlay_manual_command): Disable overlay breakpoints.
13977 (overlay_off_command): Disable overlay breakpoints.
13979 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13981 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13982 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13983 to here from config/tm-arm.h.
13984 (coff_sym_is_thumb): Make static.
13985 (arm_elf_make_msymbol_special): New function.
13986 (arm_coff_make_msymbol_special): New function.
13987 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13988 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13989 (coff_sym_is_thumb): Delete declaration.
13990 (arm_elf_make_msymbol_special): Declare.
13991 (arm_coff_make_msymbol_special): Declare.
13992 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13993 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13995 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13997 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13999 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14001 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
14002 * gdbarch.c gdbarch.h: Regenerate.
14003 * arch-utils.c (default_print_float_info): New function.
14004 * arch-utils.h (default_print_float_info): Prototype it.
14005 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
14006 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
14007 (PRINT_FLOAT_INFO): Document it.
14009 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14010 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14011 (PRINT_FLOAT_INFO): Define.
14013 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
14015 * win32-nat.c (_initialize_check_for_gdb_ini):
14016 Add typecast to sprintf argument to suppress a warning.
14018 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
14020 * win32-nat.c (last_sig): Changed type of variable to target_signal,
14021 to allow easier handling of pass state.
14022 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14023 that gives exception name and address.
14024 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14025 and set last_sig value to ourstatus->value.sig. Some missing
14027 (child_continue): Correctly report continue_status.
14028 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14029 TARGET_SIGNAL_0 (new default value).
14030 (child_resume): consider sig argument passed to decide if
14031 the exception should be passed to debuggee or not.
14033 2002-02-05 Michael Snyder <msnyder@redhat.com>
14035 * regcache.c (fetch_register): Call target_fetch_register
14036 only if we don't call FETCH_PSEUDO_REGISTER.
14037 (store_register): Call target_store_register only if we
14038 don't call STORE_PSEUDO_REGISTER.
14040 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
14042 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14043 ELF_MAKE_MSYMBOL_SPECIAL.
14044 * gdbarch.c, gdbarch.h: Regenerate.
14045 * arch-utils.c (default_make_msymbol_special): New function.
14046 * arch-utils.h (default_make_msymbol_special): Export.
14047 * elfread.c (elf_symtab_read): Compile use of
14048 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14050 * coffread.c (coff_symtab_read): Ditto, for
14051 COFF_MAKE_MSYMBOL_SPECIAL.
14053 2002-02-05 Jim Blandy <jimb@redhat.com>
14055 * solib-svr4.c (svr4_truncate_ptr): New function.
14056 (svr4_relocate_section_addresses): Do the address arithmetic with
14057 the appropriate truncation for target addresses, even when
14058 CORE_ADDR is larger than a target address.
14060 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14062 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14065 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14067 * gdbserver/linux-low.c (kill_inferior): Remove commented out
14070 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14072 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14074 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14076 * gdbserver/linux-low.c: Remove unused include files.
14078 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14080 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14081 (read_inferior_memory): Use it.
14082 (write_inferior_memory): Likewise.
14084 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14086 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14087 grubbing through sys_errlist.
14089 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14091 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14093 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14094 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14096 2002-02-04 Andrew Cagney <ac131313@redhat.com>
14098 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14099 (do_sfunc, set_cmd_sfunc): New functions.
14101 * command.h (struct cmd_list_element): Add field func.
14102 * cli/cli-decode.h (struct cmd_list_element): Ditto.
14103 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14104 * cli/cli-decode.h: Ditto.
14106 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14107 (help_all, help_cmd_list): Ditto.
14108 (find_cmd, complete_on_cmdlist): Ditto.
14109 * top.c (execute_command): Ditto.
14111 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14114 * infcmd.c (notice_args_read): Fix function signature.
14116 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14117 * cli/cli-decode.c (add_set_cmd): Ditto.
14118 * utils.c (initialize_utils): Ditto.
14119 * maint.c (_initialize_maint_cmds): Ditto.
14120 * infrun.c (_initialize_infrun): Ditto.
14121 * demangle.c (_initialize_demangler): Ditto.
14122 * remote.c (add_packet_config_cmd): Ditto.
14123 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14124 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14125 * proc-api.c (_initialize_proc_api): Ditto.
14126 * kod.c (_initialize_kod): Ditto.
14127 * valprint.c (_initialize_valprint): Ditto.
14128 * top.c (init_main): Ditto.
14129 * infcmd.c (_initialize_infcmd): Ditto.
14130 * corefile.c (_initialize_core): Ditto.
14131 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14132 * arch-utils.c (initialize_current_architecture): Ditto.
14133 (_initialize_gdbarch_utils): Ditto.
14134 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14136 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14137 * wince.c (_initialize_inftarg): Ditto.
14138 * symfile.c (_initialize_symfile): Ditto.
14139 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14140 * language.c (_initialize_language): Ditto.
14141 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14143 2002-02-04 Michael Snyder <msnyder@redhat.com>
14145 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14147 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14149 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14150 Add rules for building the register data files.
14152 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14154 * regformats/regdat.sh: Add braces to the definition of
14155 expedite_regs_${arch}.
14157 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14159 * regformats/regdef.h (struct reg): Add comment describing the
14160 requirements for offset and size fields.
14162 2002-02-04 Andreas Schwab <schwab@suse.de>
14164 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14165 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14167 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14169 * gdbarch.sh (copyright): Update years in generated header.
14170 (SMASH_TEXT_ADDRESS): Add rule.
14171 * gdbarch.h, gdbarch.c: Re-generate.
14172 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14173 * dbxread.c: Likewise.
14174 * dwarfread.c: Likewise.
14175 * elfread.c: Likewise.
14176 * somread.c: Likewise.
14178 * arm-tdep.c (arm_smash_text_address): New function.
14179 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14181 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14183 Add support for hardware watchpoints on win32 native.
14184 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14185 CONTEXT_DEBUG_REGISTERS.
14186 (dr variable): New variable. Static array containing a local copy
14187 of debug registers.
14188 (debug_registers_changed): New variable. Reflects when debug registers
14189 are changed and need to be written to inferior.
14190 (debug_registers_used): New variable. Reflects when any debug register
14191 was set, used when new threads are created.
14192 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14194 (thread_rec): Set dr array if id is the thread of current_event .
14195 (child_continue, child_resume): Change the debug registers for all
14196 threads if debug_registers_changed.
14197 (child_add_thread): Change the debug registers if debug_registers_used.
14198 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14199 Link nm.h to new nm-cygwin.h file.
14200 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14201 of hardware registers.
14203 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14205 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14206 Restore behavour broken by 2002-01-20 Andrew Cagney
14207 <ac131313@redhat.com> IEEE_FLOAT removal.
14209 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14211 * c-valprint.c (c_val_print): Pass a proper valaddr to
14212 cp_print_class_method.
14213 * valops.c (search_struct_method): If there is only one method
14214 and args is NULL, return that method.
14216 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14218 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14219 accessing tag_name directly.
14221 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14223 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14224 of accessing tag_name directly.
14226 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14229 * gdbtypes.c (replace_type): New function.
14230 * gdbtypes.h (replace_type): Add prototype.
14231 * stabsread.c (read_type): Use replace_type.
14233 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14235 * Makefile.in (memattr.o): Add missing dependencies rule.
14237 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14239 * breakpoint.c (break_at_finish_command): Really export.
14240 (break_at_finish_at_depth_command): Ditto.
14241 (tbreak_at_finish_command): Ditto.
14242 * hppa-tdep.c: Include completer.h.
14243 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14244 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14246 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14248 * utils.c (do_write): New function.
14249 (error_stream): Rewrite combining the code from error_begin and
14251 (verror): Rewrite using error_stream.
14252 (error_begin): Delete function.
14254 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14256 * utils.c (error_begin): Make static.
14257 * defs.h (error_begin): Delete declaration.
14259 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14260 (decode_line_1): Use cplusplus_error instead of error_begin,
14261 cplusplus_hint and return_to_top_level.
14262 * coffread.c (coff_symfile_read): Use error instead of error_begin
14263 and return_to_top_level.
14264 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14266 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14268 * language.h (type_error, range_error): Make string parameter
14270 * language.c (warning_pre_print): Delete extern declaration.
14271 * dwarfread.c (warning_pre_print): Ditto.
14272 * language.c (type_error, range_error): Rewrite to use verror and
14273 vwarning instead of warning_begin.
14275 2002-02-01 Michael Snyder <msnyder@redhat.com>
14277 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14278 (set_ignore_count): Move misplaced comment back where it belongs.
14280 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14282 * command.h (NO_FUNCTION): Delete macro.
14283 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14284 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14285 * tracepoint.c (_initialize_tracepoint): Ditto.
14286 * cli/cli-decode.c (add_set_cmd): Ditto.
14287 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14289 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14291 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14292 Update ``this'' pointer when calling virtual functions.
14294 2002-02-01 Michael Snyder <msnyder@redhat.com>
14296 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14297 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14299 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14301 * regformats/reg-arm.dat: New file.
14302 * regformats/reg-i386.dat: New file.
14303 * regformats/reg-ia64.dat: New file.
14304 * regformats/reg-m68k.dat: New file.
14305 * regformats/reg-mips.dat: New file.
14306 * regformats/reg-ppc.dat: New file.
14307 * regformats/reg-sh.dat: New file.
14308 * regformats/regdef.h: New file.
14309 * regformats/regdat.sh: New file.
14311 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14313 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14314 (arm_frame_args_address, arm_frame_locals_address): New functions.
14315 (arm_frame_num_args): New function.
14316 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14317 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14318 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14320 2002-01-31 Michael Snyder <msnyder@redhat.com>
14322 * breakpoint.c (break_at_finish_command): Export.
14323 (break_at_finish_at_depth_command): Export.
14324 (tbreak_at_finish_command): Export.
14325 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14326 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14327 "txbreak" commands, which are HPPA specific.
14329 * printcmd.c (disassemble_command): Remove an ancient
14330 artifact of an old merge.
14332 * symfile.h (enum overlay_debugging_state):
14333 Define enum constant values for overlay mode.
14334 * symfile.c (overlay_debugging): Use enums instead of literals.
14335 (overlay_is_mapped, overlay_auto_command,
14336 overlay_manual_command): Ditto.
14338 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14339 breakpoint_here_p, breakpoint_inserted_here_p,
14340 breakpoint_thread_match, bpstat_stop_status,
14341 describe_other_breakpoints, check_duplicates, clear_command):
14342 Coding standard fixes.
14344 * target.c (target_xfer_memory): Add spaces, coding standard.
14345 (do_xfer_memory): Add missing line to trust-readonly
14346 code: check bfd SEC_READONLY flag for section.
14348 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14350 * PROBLEMS: Fix typo, 5.1->5.1.1.
14352 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14354 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14355 data symbols, since we search based on textlow and texthigh.
14356 (find_pc_sect_symtab): Likewise.
14358 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14360 * defs.h (vwarning): Declare.
14361 * utils.c (vwarning): New function.
14362 (warning): Call vwarning.
14363 (warning_begin): Delete function.
14365 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14366 the warning message.
14367 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14370 2002-01-30 Michael Snyder <msnyder@redhat.com>
14372 * NEWS: Mention "set trust-readonly-sections" command.
14373 Mention generate-core-file command.
14375 2002-01-15 Michael Snyder <msnyder@redhat.com>
14377 * target.c: New command, "set trust-readonly-sections on".
14378 (do_xfer_memory): Honor the suggestion to trust readonly sections
14379 by reading them from the object file instead of from the target.
14380 (initialize_targets): Register command "set trust-readonly-sections".
14382 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14384 * parse.c (target_map_name_to_register): Simplify, search regs and
14385 pseudo-regs using a single loop.
14387 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14389 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14391 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14393 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14394 * config/i386/i386v42mp.mh: Add i387-nat.o .
14395 * i386v4-nat.c: Include i387-nat.h.
14396 (supply_fpregset): Use i387_supply_fsave.
14397 (fill_fpregset): Use i387_fill_fsave.
14399 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14401 * arm-tdep.c (arm_call_dummy_words): Define.
14402 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14403 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14404 (CALL_DUMMY_WORDS): Define.
14405 (arm_call_dummy_words): Declare.
14406 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14407 (arm_linux_call_dummy_words): Declare.
14409 2002-01-30 Andreas Schwab <schwab@suse.de>
14411 * m68klinux-nat.c: Fix last change to use regcache_collect
14412 instead of referencing registers[] directly.
14414 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14416 * parse.c (target_map_name_to_register): Delete code wrapped in
14417 #ifdef REGISTER_NAME_ALIAS_HOOK.
14419 2002-01-28 Michael Snyder <msnyder@redhat.com>
14421 * regcache.c (legacy_read_register_gen): Need to be able to
14422 read pseudo-register as well as real register.
14423 (legacy_write_register_gen): Ditto.
14425 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14427 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14428 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14429 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14430 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14431 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14432 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14433 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14434 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14435 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14436 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14437 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14438 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14439 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14440 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14441 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14442 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14443 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14444 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14445 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14446 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14448 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14450 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14451 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14452 (initialize_current_architecture): Update target_byte_order using
14453 information from BFD.
14454 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14455 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14457 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14459 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14460 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14462 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14463 #ifdef INVALID_FLOAT.
14464 * infcmd.c (do_registers_info): Ditto.
14465 * values.c (unpack_double): Ditto. Add comment.
14467 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14468 already commented out.
14470 2002-01-26 Andreas Schwab <schwab@suse.de>
14472 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14473 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14474 registers and add support for PTRACE_GETREGS.
14476 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14478 GDB 5.1.1 released from 5.1 branch.
14479 * NEWS: Add 5.1.1 news.
14480 * README: Sync with 5.1 branch.
14482 2002-01-23 Fred Fish <fnf@redhat.com>
14484 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14485 stabstring on initial malloc. Reallocing will copy it for us,
14488 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14490 * Makefile.in (hpread_h): Delete.
14491 (HFILES_NO_SRCDIR): Remove hpread.h.
14492 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14493 (hpread.o): Update dependencies.
14494 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14496 * hp-psymtab-read.c: Remove file.
14497 * hp-symtab-read.c: Remove file.
14498 * hpread.h: Remove file.
14500 * hpread.c: Merge all contents of hp-psymtab-read.c,
14501 hp-symtab-read.c and hpread.h into this file, as it was prior to
14504 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14505 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14506 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14507 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14509 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14511 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14512 fill_gregset): Call gdbarch_tdep() just once, assign result to
14513 variable and use that, instead of calling the function several
14516 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14518 * configure.host: Accept sparcv9 as alias for sparc64.
14519 * configure.tgt: Likewise.
14521 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14523 * solib-aix5.c (build_so_list_from_mapfile)
14524 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14525 arguments is not reversed.
14526 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14527 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14529 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14531 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14532 modified version of obsolete sh_fetch_pseudo_register.
14533 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14534 (sh4_register_read): New function.
14535 (sh_pseudo_register_write): New function. Renamed and modified
14536 version of obsolete sh_store_pseudo_register.
14537 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14538 (sh4_register_write): New function.
14539 (sh_gdbarch_init): Remove setting of gdbarch function
14540 fetch_pseudo_register and store_pseudo_register. Remove setting of
14541 register_convert_to_raw, register_convert_to_virtual,
14542 register_convertible.
14543 (sh_sh4_register_convertible): Delete. No longer needed. All is
14544 taken care by architecture specific functions
14545 register_read/register_write.
14546 (sh_sh4_register_convert_to_virtual): Make static.
14547 (sh_sh4_register_convert_to_raw): Ditto.
14549 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14551 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14552 (floatformat_is_nan, floatformat_mantissa): Ditto.
14554 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14555 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14556 builtin_type_ieee_double_little,
14557 builtin_type_ieee_double_littlebyte_bigword,
14558 builtin_type_m68881_ext, builtin_type_i960_ext,
14559 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14560 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14561 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14562 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14564 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14566 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14567 parameter. Set frameless flag if it exists and depended of
14568 whether the scanned function is frameless or not.
14569 (xstormy16_skip_prologue): If function is frameless, return
14570 result of xstormy16_scan_prologue().
14571 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14574 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14576 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14577 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14578 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14579 sh_sh4_register_byte, sh_sh4_register_raw_size,
14580 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14581 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14582 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14583 sh_store_pseudo_register, sh_do_pseudo_register): Call
14584 gdbarch_tdep() just once, assign result to variable and use that,
14585 instead of calling the function several times.
14587 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14589 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14590 macros instead of LAST_FPU_CTRL_REGNUM.
14591 (store_register): Likewise.
14593 2002-01-21 Jim Blandy <jimb@redhat.com>
14595 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14596 is up-to-date before running the program, not just when a program
14599 2002-01-21 Fred Fish <fnf@redhat.com>
14601 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14602 when we have found all instructions we are looking for.
14604 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14606 * arm-tdep.c (arm_register_name): New function.
14607 (arm_registers_names): Make static.
14608 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14609 (arm_register_name): Declare.
14610 (REGISTER_NAME): Use it.
14612 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14613 Kevin Buettner <kevinb@redhat.com>
14615 Convert arm targets to new FRAME interface.
14616 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14617 (arm_frame_find_save_regs): Delete.
14618 (arm_frame_init_saved_regs): New.
14619 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14620 Allocate extra_info as required. Convert all uses of fsr.regs
14621 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14623 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14624 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14625 (check_prologue_cache, save_prologue_cache): Likewise.
14626 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14627 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14628 (FRAME_FIND_SAVED_REGS): Delete.
14629 (arm_frame_find_saved_regs): Delete prototype.
14630 (arm_frame_init_saved_regs): New prototype.
14631 (FRAME_INIT_SAVED_REGS): Define.
14633 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14635 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14637 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14639 From Jeff Law <law@redhat.com>:
14640 * infttrace.c: Include <sys/pstat.h>.
14641 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14642 exec file if the ttrace equivalent fails.
14644 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14646 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14647 (closeLogFile): Ditto.
14649 2002-01-20 Michael Chastain <mec@shout.net>
14651 * top.c (print_gdb_version): Bump copyright year to 2002.
14653 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14655 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14656 Zannoni and Eli Zaretskii.
14658 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14660 * buildsym.c: Update copyright years.
14661 * c-typeprint.c: Likewise.
14662 * dwarf2read.c: Likewise.
14663 * f-typeprint.c: Likewise.
14664 * gdbtypes.c: Likewise.
14665 * gdbtypes.h: Likewise.
14666 * hp-symtab-read.c: Likewise.
14667 * hpread.c: Likewise.
14668 * mdebugread.c: Likewise.
14669 * p-typeprint.c: Likewise.
14671 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14673 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14674 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14675 byte-order selectable.
14676 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14677 * arch-utils.c: Ditto.
14678 (set_endian): Ditto.
14679 (set_endian_from_file): Ditto.
14680 * gdbserver/low-sim.c (create_inferior): Ditto.
14681 * gdbarch.sh: Ditto.
14682 * gdbarch.h: Re-generate.
14683 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14684 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14685 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14686 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14687 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14688 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14689 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14690 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14692 * config/mips/tm-wince.h: Remove #undef of macro
14693 TARGET_BYTE_ORDER_SELECTABLE.
14694 * config/sh/tm-wince.h: Ditto.
14696 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14698 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14699 member function fields. Add accessor macro
14700 TYPE_FN_FIELD_ARTIFICIAL.
14701 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14702 * c-typeprint.c (c_type_print_base): Skip artificial member
14705 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14707 * f-typeprint.c: Delete unused function f_type_print_args.
14708 * p-typeprint.c: Delete unused function pascal_type_print_args.
14710 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14712 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14713 comment. Add ``artificial'' to ``union field_location''.
14715 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14717 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14718 * mdebugread.c (parse_symbol): Likewise.
14719 * stabsread.c (define_symbol): Likewise.
14720 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14721 initializing TYPE_FIELD_BITPOS to n (obsolete).
14722 (hpread_doc_function_type): Likewise.
14723 * hpread.c (hpread_function_type): Likewise.
14725 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14727 * configure.in (host_makefile_frag): Only require a host makefile
14728 fragment when a native build.
14729 * configure: Re-generate.
14731 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14733 * doublest.h (floatformat_from_type): Declare.
14734 * doublest.c (floatformat_from_type): New function.
14735 (convert_typed_floating): Use.
14737 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14738 call to function floatformat_from_type.
14740 * gdbarch.sh (IEEE_FLOAT): Delete.
14741 * gdbarch.h, gdbarch.c: Re-generate.
14742 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14743 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14744 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14745 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14746 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14747 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14748 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14749 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14750 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14751 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14752 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14753 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14755 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14756 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14757 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14758 * sh-tdep.c (sh_gdbarch_init): Ditto.
14759 * mips-tdep.c (mips_gdbarch_init): Ditto.
14760 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14761 * cris-tdep.c (cris_gdbarch_init): Ditto.
14763 2002-01-20 Jiri Smid <smid@suse.cz>
14765 * configure.host, configure.tgt: Support x86-64.
14766 * NEWS: Note new target x86-64.
14768 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14769 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14770 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14771 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14772 x86-64-linux-nat.o): Fix dependencies.
14774 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14776 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14777 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14778 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14779 * config/sparc/xm-sun4os4.h: Delete file.
14780 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14782 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14784 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14785 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14786 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14787 * config/i386/i386lynx.mh (XM_FILE): Delete.
14788 * config/rs6000/xm-rs6000ly.h: Delete file.
14789 * config/sparc/xm-sparclynx.h: Delete file.
14790 * config/m68k/xm-m68klynx.h: Delete file.
14791 * config/i386/xm-i386lynx.h: Delete file.
14792 * config/xm-lynx.h: Delete file.
14793 * config/djgpp/fnchange.lst: Update.
14795 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14797 * alpha-tdep.c (alpha_register_byte): New function.
14798 (alpha_register_raw_size): Ditto.
14799 (alpha_register_virtual_size): Ditto.
14800 (alpha_skip_prologue_internal): Renamed from
14801 alpha_skip_prologue.
14802 (alpha_skip_prologue): New version that calls
14803 alpha_skip_prologue_internal.
14804 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14805 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14806 second argument from alpha_skip_prologue.
14807 (REGISTER_BYTE): Use alpha_register_byte.
14808 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14809 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14810 (FRAMELESS_FUNCTION_INVOCATION): Use
14811 generic_frameless_function_invocation_not.
14812 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14813 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14815 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14817 * config/mips/xm-news-mips.h: Delete file.
14818 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14820 * config/m88k/xm-m88k.h: Delete file.
14821 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14822 * config/m88k/xm-delta88v4.h: Ditto.
14823 * config/m88k/xm-delta88.h: Ditto.
14825 * config/alpha/xm-fbsd.h: Delete file.
14826 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14828 * config/sparc/xm-sparc.h: Delete file.
14829 * Makefile.in (xm-sun4os4.h): Delete dependency.
14830 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14831 * config/sparc/xm-sun4os4.h: Ditto.
14832 * config/sparc/xm-linux.h: Ditto.
14834 * config/i386/xm-windows.h: Delete file.
14836 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14838 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14839 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14841 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14843 * alpha-tdep.c (alpha_call_dummy_words): New.
14844 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14845 (CALL_DUMMY_P): Define.
14846 (CALL_DUMMY_WORDS): Define.
14847 (SIZEOF_CALL_DUMMY_WORDS): Define.
14849 2002-01-19 Per Bothner <per@bothner.com>
14851 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14852 isn't NULL, which can happen with some gcj-3.x-produced code.
14854 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14856 * alpha-tdep.c (alpha_register_virtual_type): New function.
14857 (alpha_init_frame_pc_first): Ditto.
14858 (alpha_fix_call_dummy): Ditto.
14859 (alpha_store_struct_return): Ditto.
14860 (alpha_extract_struct_value_address): Ditto.
14861 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14862 alpha_register_virtual_type.
14863 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14864 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14865 alpha_extract_struct_value_address.
14866 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14867 (INIT_FRAME_PC): Use init_frame_pc_noop.
14868 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14870 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14872 * i386gnu-nat.c: Include "i386-tdep.h".
14873 (fetch_fpregs): Simplify code dealing with uninitialized floating
14874 point states such that it doesn't require FP7_REGNUM.
14876 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14878 * alpha-tdep.c (frame_extra_info): New.
14879 (alpha_find_saved_regs): Make static. Use
14881 (alpha_frame_init_saved_regs): New function.
14882 (alpha_frame_saved_pc): Use frame->extra_info.
14883 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14884 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14885 (init_extra_frame_info): Rename to...
14886 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14887 (alpha_print_extra_frame_info): New function.
14888 (alpha_frame_locals_address): Ditto.
14889 (alpha_frame_args_address): Ditto.
14890 (alpha_pop_frame): Use frame->extra_info.
14891 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14892 alpha_frame_args_address.
14893 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14894 (alpha_find_saved_regs): Remove prototype.
14895 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14896 (EXTRA_FRAME_INFO): Remove.
14897 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14898 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14900 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14902 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14903 (alpha_cannot_fetch_register): Ditto.
14904 (alpha_cannot_store_register): Ditto.
14905 (alpha_register_convertible): Ditto.
14906 (alpha_use_struct_convention): Ditto.
14907 * config/alpha/tm-alpha.h: Update copyright years.
14908 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14909 (INNER_THAN): Use core_addr_lessthan.
14910 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14911 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14912 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14913 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14914 (FRAME_CHAIN): Remove unnecessary cast.
14916 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14918 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14921 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14923 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14924 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14925 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14926 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14927 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14928 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14929 * x86-64-linux-nat.c: Ditto.
14931 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14933 * alpha-tdep.c (alpha_register_name): New function.
14934 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14935 (REGISTER_NAME): Define.
14937 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14939 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14941 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14943 * alpha-tdep.c: Update copyright years.
14944 (alpha_next_pc): New function.
14945 (alpha_software_single_step): Ditto.
14946 * config/alpha/tm-alpha.h: Add prototype for
14947 alpha_software_single_step.
14949 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14951 * alphabsd-nat.c: Update copyright years.
14952 (fill_gregset): Use regcache_collect.
14953 (fill_fpregset): Likewise.
14954 (fetch_inferior_registers): Only fetch integer registers
14955 if requested to do so.
14956 (store_inferior_registers): Only store integer registers
14957 if requested to do so.
14959 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14961 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14962 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14963 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14964 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14965 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14966 * config/arm/linux.mh (XDEPFILES): Delete.
14967 * config/arm/nbsd.mh (XDEPFILES): Delete.
14968 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14969 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14970 * config/i386/i386m3.mh (XDEPFILES): Delete.
14971 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14972 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14973 * config/i386/fbsd.mh (XDEPFILES): Delete.
14974 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14975 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14976 * config/i386/i386v4.mh (XDEPFILES): Delete.
14977 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14978 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14979 * config/i386/i386aix.mh (XDEPFILES): Delete.
14980 * config/i386/go32.mh (XDEPFILES): Delete.
14981 * config/i386/cygwin.mh (XDEPFILES): Delete.
14982 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14983 * config/i386/i386mach.mh (XDEPFILES): Delete.
14984 * config/i386/i386v32.mh (XDEPFILES): Delete.
14985 * config/i386/linux.mh (XDEPFILES): Delete.
14986 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14987 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14988 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14989 * config/i386/i386sco.mh (XDEPFILES): Delete.
14990 * config/i386/i386v.mh (XDEPFILES): Delete.
14991 * config/i386/nbsd.mh (XDEPFILES): Delete.
14992 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14993 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14994 * config/i386/symmetry.mh (XDEPFILES): Delete.
14995 * config/i386/obsd.mh (XDEPFILES): Delete.
14996 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14997 * config/ia64/linux.mh (XDEPFILES): Delete.
14998 * config/ia64/aix.mh (XDEPFILES): Delete.
14999 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
15000 * config/m68k/dpx2.mh (XDEPFILES): Delete.
15001 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
15002 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
15003 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
15004 * config/m68k/linux.mh (XDEPFILES): Delete.
15005 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
15006 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
15007 * config/m68k/nbsd.mh (XDEPFILES): Delete.
15008 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15009 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15010 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15011 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15012 * config/m88k/delta88.mh (XDEPFILES): Delete.
15013 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15014 * config/m88k/m88k.mh (XDEPFILES): Delete.
15015 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15016 * config/mips/linux.mh (XDEPFILES): Delete.
15017 * config/mips/irix6.mh (XDEPFILES): Delete.
15018 * config/mips/irix5.mh (XDEPFILES): Delete.
15019 * config/mips/irix4.mh (XDEPFILES): Delete.
15020 * config/mips/irix3.mh (XDEPFILES): Delete.
15021 * config/mips/decstation.mh (XDEPFILES): Delete.
15022 * config/mips/mipsm3.mh (XDEPFILES): Delete.
15023 (NATDEPFILES): Move core-aout.o to here.
15024 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15025 * config/pa/hpux1020.mh (XDEPFILES): Delete.
15026 * config/pa/hppabsd.mh (XDEPFILES): Delete.
15027 * config/pa/hppahpux.mh (XDEPFILES): Delete.
15028 * config/pa/hpux11w.mh (XDEPFILES): Delete.
15029 * config/pa/hppaosf.mh (XDEPFILES): Delete.
15030 * config/pa/hpux11.mh (XDEPFILES): Delete.
15031 * config/powerpc/aix.mh (XDEPFILES): Delete.
15032 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15033 * config/powerpc/linux.mh (XDEPFILES): Delete.
15034 * config/romp/rtbsd.mh: Rename XDEPFILES.
15035 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15036 * config/rs6000/aix4.mh (XDEPFILES): Delete.
15037 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15038 * config/s390/s390.mh (XDEPFILES): Delete.
15039 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15040 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15041 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15042 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15043 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15044 * config/sparc/nbsd.mh (XDEPFILES): Delete.
15045 * config/sparc/linux.mh (XDEPFILES): Delete.
15046 * config/vax/vaxult.mh (XDEPFILES): Delete.
15047 * config/vax/vaxult2.mh (XDEPFILES): Delete.
15048 * Makefile.in (DEPFILES): Remove XDEPFILES.
15050 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15052 * utils.c (internal_verror): Fix comments, default is yes not no.
15053 Update queries to match. Default to quit and dump core.
15055 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15057 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
15059 * defs.h, event-top.c, gdbcmd.h: Ditto.
15060 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15061 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15062 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15063 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15064 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15065 * mi/mi-main.c:Ditto.
15067 * stack.c, symfile.c: Update copyright.
15069 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15071 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15072 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15073 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15074 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15076 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15078 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15079 * gdbserver/low-lynx.c (myattach): Likewise.
15080 * gdbserver/low-nbsd.c (myattach): Likewise.
15081 * gdbserver/low-sim.c (myattach): Likewise.
15082 * gdbserver/low-sparc.c (myattach): Likewise.
15083 * gdbserver/low-sun3.c (myattach): Likewise.
15085 * gdbserver/low-linux.c (myattach): New function.
15087 * gdbserver/server.c (attach_inferior): New function.
15088 (main): Handle "--attach".
15090 2002-01-16 Andrew Cagney <ac131313@redhat.com>
15092 * MAINTAINERS (language support): Daniel Jacobwitz is C++
15095 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
15097 * c-typeprint.c (is_type_conversion_operator): Add additional
15098 check for non-conversion operators.
15100 2002-01-15 Michael Snyder <msnyder@redhat.com>
15102 * linux-proc.c: Add "info proc" command, a la procfs.c.
15103 (read_mapping): New function, abstract and re-use code.
15104 (linux_find_memory_regions): Use new func read_mapping.
15105 (linux_info_proc_cmd): New function, implement "info proc".
15106 (_initialize_linux_proc): Add new command "info proc".
15108 2002-01-15 Michael Snyder <msnyder@redhat.com>
15110 * symfile.c (generic_load): Use bfd_map_over_sections method
15111 instead of manipulating bfd structure members directly.
15112 (add_section_size_callback): New function, bfd sections callback
15113 used by generic_load.
15114 (load_sections_callback): New function, bfd sections callback
15115 used by generic_load.
15117 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15119 [Based on work by Jim Blandy]
15120 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15121 (builtin_type_vec128): Export.
15122 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15124 (builtin_type_vec128): New builtin type for 128 bit vector
15126 (build_gdbtypes): Initialize builtin_type_v16qi and
15127 builtin_type_v8hi. Create the vec128 register builtin type
15129 (build_builtin_type_vec128): New function.
15130 (_initialize_gdbtypes): Register builtin_type_v16qi and
15131 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15132 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15133 AltiVec register to new builtin type.
15135 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15137 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15140 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15142 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15143 CLEAN_UP_REGISTER_VALUE.
15144 * regcache.c (supply_register): Update only call.
15146 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15148 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15149 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15150 a29k-*-vxworks* targets as obsolete.
15152 2002-01-14 Michael Snyder <msnyder@redhat.com>
15154 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15155 until we can resolve portability issues.
15156 * gregset.h: Remove references to fpxregs.
15157 * gcore.c (gcore_command): Initialize note_sec to NULL.
15159 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15161 * signals.c (target_signal_to_name): Rewrite. Only use
15162 signals[].name when in bounds and non-NULL.
15164 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15166 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15167 * signals.c (target_signal_to_name): Verify that SIG is within the
15168 bounds of the signals array.
15170 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15172 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15174 2002-01-13 Keith Seitz <keiths@redhat.com>
15176 * stack.c (print_frame_info_base): Print the frame's pc
15177 only if when print_frame_info_listing_hook is not defined.
15179 2002-01-13 Keith Seitz <keiths@redhat.com>
15181 * varobj.c (varobj_set_value): Make sure that there were no
15182 errors evaluating the object before attempting to set its
15184 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15185 so this offset adjustment is no longer necessary.
15186 (create_child): Don't set the error flag if the child is
15187 a CPLUS_FAKE_CHILD.
15188 (value_of_child): If value_fetch_lazy fails, return NULL
15189 so that callers will be notified that an error occurred.
15190 (c_value_of_variable): Delay check of variable's validity
15191 until later. We actually want all structs and unions to have
15193 Do not return "???" for variables which could not be evaluated.
15194 This error condition must be returned to the caller so that it
15195 can get the error condition from gdb.
15196 (cplus_name_of_child): Adjust index for vptr before figuring
15197 out the name of the child.
15198 (cplus_value_of_child): If a child's (real) parent is not valid,
15199 don't even bother trying to give a value for it. Just return
15200 an error. Change all instances in this function.
15201 (cplus_type_of_child): If our parent is one of the "fake"
15202 parents, we need to get at the type of the real parent, and
15203 derive the child's true type using this information.
15205 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15207 From 2002-01-09 John Marshall <johnm@falch.net>:
15208 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15209 sources.redhat.com, and tweak some related URLs which had
15210 suffered from linkrot.
15212 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15215 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15216 structures passed in registers.
15218 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15220 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15221 white space which prevented compilation. Reported by DSK
15222 <dsk@student.unsw.edu.au>.
15224 2002-01-11 Michael Snyder <msnyder@redhat.com>
15226 * symfile.c (build_section_addr_info_from_section_tab):
15227 Use bfd access method instead of manipulating bfd directly.
15228 (syms_from_objfile): Ditto.
15229 (simple_overlay_update_1): Ditto.
15230 (simple_overlay_update): Ditto.
15231 (generic_load): Ditto.
15232 (overlay_unmapped_address): FIXME comment, bfd access methods.
15233 (sections_overlap): FIXME comment, bfd access methods.
15234 (pc_in_mapped_range): FIXME comment, bfd access methods.
15235 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15236 (section_is_mapped): FIXME comment, bfd access methods.
15237 (section_is_overlay): FIXME comment, bfd access methods.
15239 * symfile.c (generic_load): Whitespace and long line cleanups.
15240 Remove duplicate variable, change several local variables to
15241 more appropriate data types.
15242 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15244 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15246 From Peter Schauer:
15247 * language.c (longest_local_hex_string_custom): Use phex_nz to
15248 convert NUM to a hex string.
15250 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15252 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15254 Update Copyright year.
15256 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15258 * language.c (longest_raw_hex_string): Delete unused function.
15260 2002-01-11 Petr Sorfa <petrs@caldera.com>
15262 * MAINTAINERS (write-after-approval): Add myself.
15263 * dwarf2read.c (read_tag_string_type): Handling of
15265 (read_tag_string_type): FORTRAN fix to prevent propagation of
15267 (set_cu_language): Handling of DW_LANG_Fortran95
15269 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15271 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15272 GETPID(inferior_ptid).
15273 (store_inferior_registers): Likewise.
15275 2002-01-10 Jason Merrill <jason@redhat.com>
15277 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15280 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15282 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15283 and bfd/elf32-sh-nbsd.c.
15285 2002-01-10 Michael Snyder <msnyder@redhat.com>
15287 * NEWS: Mention --pid and corefile/proc-id behavior change.
15289 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15290 * gcore.c: Include cli/cli-decode.h instead of command.h.
15292 * main.c (captured_main): Add new command line option "--pid".
15293 If the second command line argument (following the symbol-file)
15294 begins with a digit, try to attach to it before trying to open
15296 (print_gdb_help): Document the "--pid" argument.
15298 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15300 * completer.c (command_completer): New function.
15302 * completer.h <command_completer>: Add prototype.
15304 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15305 completer for the "help" command.
15307 2002-01-09 Jason Merrill <jason@redhat.com>
15309 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15311 2002-01-09 Michael Snyder <msnyder@redhat.com>
15313 * i386-linux-nat.c (fill_fpxregset): Make global.
15314 (store_fpxregset): Ditto.
15316 * gregset.h (gdb_fpxregset_t): Define.
15317 (supply_fpxregset): Prototype.
15318 (fill_fpxregset): Prototype.
15320 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15322 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15324 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15325 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15326 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15328 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15330 * MAINTAINERS: Update target maintainer rules so that any
15331 Maintainer can approve a tested patch for a maintenance-only
15334 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15336 * MAINTAINERS (write-after-approval): Add myself.
15338 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15341 2002-01-08 Michael Snyder <msnyder@redhat.com>
15343 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15344 real name of the executable, rather than the /proc name.
15346 2002-01-03 Michael Snyder <msnyder@redhat.com>
15348 Implement a "generate-core-file" command in gdb, save target state.
15349 * gcore.c: New file. Implement new command 'generate-core-file'.
15350 Save a corefile image of the current state of the inferior.
15351 * linux-proc.c: Add linux-specific code for saving corefiles.
15352 * target.h (struct target_ops): Add new target vectors for saving
15353 corefiles; to_find_memory_regions and to_make_corefile_notes.
15354 (target_find_memory_regions): New macro.
15355 (target_make_corefile_notes): New macro.
15356 * target.c (update_current_target): Inherit new target methods.
15357 (dummy_find_memory_regions): New place-holder method.
15358 (dummy_make_corefile_notes): New place-holder method.
15359 (init_dummy_target): Initialize new dummy target vectors.
15360 * exec.c (exec_set_find_memory_regions): New function.
15361 Allow the exec_ops vector for memory regions to be taken over.
15362 (exec_make_note_section): New function, target vector method.
15363 * defs.h (exec_set_find_memory_regions): Export prototype.
15364 * procfs.c (proc_find_memory_regions): New function, corefile method.
15365 (procfs_make_note_section): New function, corefile method.
15366 (init_procfs_ops): Set new target vector pointers.
15367 (find_memory_regions_callback): New function.
15368 (procfs_do_thread_registers): New function.
15369 (procfs_corefile_thread_callback): New function.
15370 * sol-thread.c (sol_find_memory_regions): New function.
15371 (sol_make_note_section): New function.
15372 (init_sol_thread_ops): Initialize new target vectors.
15373 * inftarg.c (inftarg_set_find_memory_regions): New function.
15374 Allow to_find_memory_regions vector to be taken over.
15375 (inftarg_set_make_corefile_notes): New function.
15376 Allow to_make_corefile_notes vector to be taken over.
15377 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15378 interface layer if not target_has_execution (may be a corefile).
15379 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15380 * config/sparc/sun4sol2.mh: Ditto.
15381 * config/alpha/alpha-linux.mh: Ditto.
15382 * config/arm/linux.mh: Ditto.
15383 * config/i386/x86-64linux.mh: Ditto.
15384 * config/ia64/linux.mh: Ditto.
15385 * config/m68k/linux.mh: Ditto.
15386 * config/mips/linux.mh: Ditto.
15387 * config/powerpc/linux.mh: Ditto.
15388 * config/sparc/linux.mh: Ditto.
15390 2002-01-07 Michael Snyder <msnyder@redhat.com>
15392 * arm-linux-nat.c: Remove references to regcache.c internal data
15393 (registers[] and register_valid[]).
15395 2002-01-07 Michael Snyder <msnyder@redhat.com>
15397 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15398 so that attaching to a pid will automatically read the process's
15399 symbol file and shlibs.
15400 * Makefile.in: Add rule for linux-proc.o.
15401 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15402 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15403 * config/arm/linux.mh: Ditto.
15404 * config/i386/linux.mh: Ditto.
15405 * config/i386/x86-64linux.mh: Ditto.
15406 * config/ia64/linux.mh: Ditto.
15407 * config/m68k/linux.mh: Ditto.
15408 * config/mips/linux.mh: Ditto.
15409 * config/powerpc/linux.mh: Ditto.
15410 * config/sparc/linux.mh: Ditto.
15412 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15414 * win32-nat.c: Add i386-tdep.h dependency.
15416 2002-01-07 Michael Snyder <msnyder@redhat.com>
15418 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15419 instead of bfd_get_arch_size. Don't bail out just because
15420 there's no exec_bfd.
15422 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15423 * p-valprint.c (pascal_object_print_value): Ditto.
15424 * somread.c (som_symtab_read): Ditto.
15425 * symfile.c (simple_free_overlay_region_table): Ditto.
15426 * valops.c (value_assign): Ditto.
15428 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15429 use tilde_expand and strerror for opening save-tracepoints file.
15431 * thread-db.c (thread_db_new_objfile): Indendation fix.
15433 * infptrace.c (GDB_MAX_ALLOCA): New define.
15434 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15435 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15436 can be overridden with whatever value is appropriate to the host).
15437 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15438 alloca to allocate potentially large buffer.
15439 * rs6000-nat.c (child_xfer_memory): Ditto.
15440 * symm-nat.c (child_xfer_memory): Ditto.
15441 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15443 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15445 From Nick Clifton <nickc@redhat.com>
15446 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15448 2002-01-07 Michael Snyder <msnyder@redhat.com>
15450 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15451 Don't use exec_bfd if it's NULL.
15453 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15455 * valops.c (value_arg_coerce): Fix formatting.
15457 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15459 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15460 * gnu-nat.c: Ditto.
15462 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15464 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15465 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15466 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15467 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15468 z8k-coff have not been multi-arched. Update z8k-coff build
15471 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15473 * MAINTAINERS: Mark a29k target as obsolete.
15474 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15475 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15477 * NEWS: Note that a29k targets are obsolete.
15478 * a29k-tdep.c: Mark as obsolete.
15479 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15480 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15481 a29k-*-vxworks* targets as obsolete.
15482 * remote-adapt.c: Obsolete.
15483 * remote-eb.c: Obsolete.
15484 * remote-mm.c: Obsolete.
15485 * remote-udi.c: Obsolete.
15486 * config/a29k/a29k-udi.mt: Obsolete.
15487 * config/a29k/a29k.mt: Obsolete.
15488 * config/a29k/tm-a29k.h: Obsolete.
15489 * config/a29k/tm-vx29k.h: Obsolete.
15490 * config/a29k/vx29k.mt: Obsolete.
15492 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15494 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15495 with BFD_ENDIAN_BIG.
15497 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15499 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15500 * configure, config.in: Re-generate.
15501 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15502 * defs.h: Do not include <endian.h>.
15504 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15506 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15507 * config.in: Regenerate.
15508 * configure.in: Update copyright years.
15509 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15510 * configure: Regenerate.
15511 * i386bsd-nat.c: Update copyright years.
15512 (fill_gregset): Use regcache_collect.
15513 (fetch_inferior_registers): Only fetch integer registers
15514 if requested to do so. Add support for XMM registers
15515 using PT_GETXMMREGS.
15516 (store_inferior_registers): Only store integer registers
15517 if requested to do so. Add support for XMM registers
15518 using PT_SETXMMREGS.
15519 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15520 (store_inferior_registers): Remove.
15521 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15522 (fetch_elfcore_registers): New function.
15523 (i386nbsd_elfcore_fns): New.
15524 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15525 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15527 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15528 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15529 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15530 * config/i386/tm-nbsd.h: Update copyright years.
15531 (HAVE_SSE_REGS): Define.
15532 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15533 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15534 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15535 (SIGCONTEXT_PC_OFFSET): Remove.
15536 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15538 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15540 * configure.tgt: Remove powerpc-*-macos* target.
15541 * config/m68k/xm-mpw.h: Delete file.
15542 * config/xm-mpw.h: Delete file.
15543 * ser-mac.c: Delete file.
15544 * mpw-make.sed: Delete file.
15545 * mpw-config.in: Delete file.
15546 * mac-xdep.c: Delete file.
15547 * mac-gdb.r: Delete file.
15548 * mac-defs.h: Delete file.
15549 * mac-nat.c: Delete file.
15550 * config/powerpc/macos.mh: Delete file.
15551 * config/powerpc/macos.mt: Delete file.
15552 * config/powerpc/nm-macos.h: Delete file.
15553 * config/powerpc/tm-macos.h: Delete file.
15554 * source.c (openp, open_source_file): Remove obsolete code.
15555 * top.c (gdb_readline): Ditto.
15556 * utils.c (query): Ditto.
15557 * event-top.c (display_gdb_prompt): Ditto.
15558 * Makefile.in (ser-mac.o): Delete obsolete target.
15561 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15563 * defs.h (BIG_ENDIAN): Delete macro definition.
15564 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15565 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15566 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15567 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15568 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15569 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15570 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15571 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15572 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15573 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15574 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15575 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15576 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15577 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15578 * gdbarch.c: Re-generate.
15580 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15582 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15585 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15587 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15589 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15591 * value.h (value_ptr): Delete typedef.
15593 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15595 * i386nbsd-nat.c: Update copyright years.
15596 Include i386-tdep.h.
15598 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15600 * stabsread.c: Update copyright years.
15602 From Debashis Mahata <debashis.mahata@wipro.com>:
15603 (read_struct_fields): Deal with Sun C compiler erroneous stab
15604 output for structs and unions.
15607 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15609 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15612 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15614 * cp-abi.c: Fix whitespace.
15615 (baseclass_offset): New wrapper function.
15616 * cp-abi.h (baseclass_offset): Add prototype.
15617 (struct cp_abi_ops): Add baseclass_offset pointer.
15619 * valops.c (vb_match): Move to...
15620 * gnu-v2-abi.c (vb_match): here.
15621 * valops.c (baseclass_offset): Move to...
15622 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15624 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15626 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15627 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15628 * hpacc-abi.c (init_hpacc_ops): Likewise.
15630 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15632 * valops.c (find_overload_match): Accept obj as a
15633 reference parameter. Update it before returning.
15634 * value.h (find_overload_match): Update prototype.
15635 * eval.c (evaluate_subexp_standard): Pass object to
15636 find_overload_match by reference.
15638 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15640 * valarith.c: Replace value_ptr with struct value pointer. Remove
15641 register attribute from value declarations.
15644 * scm-lang.c (scm_lookup_name): Ditto.
15646 2002-01-03 Michael Snyder <msnyder@redhat.com>
15648 Abstract the functionality of iterating over mapped memory
15649 regions into a general purpose iterator function.
15650 * procfs.c (iterate_over_mappings): New function, general purpose
15651 iterator for memory sections.
15652 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15653 (solib_mappings_callback): New function, callback for above.
15654 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15655 (info_mappings_callback): New function, callback for above.
15657 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15659 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15661 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15662 * i386-tdep.c: Include "elf-bfd.h".
15663 (process_note_abi_tag_sections): New function.
15664 (i386_gdbarch_init): Add code to recognize various OS/ABI
15667 * maint.c (_initialize_maint_cmds): Add missing \ in
15670 For older changes see ChangeLog-2001
15676 version-control: never