1 2003-01-09 Andrew Cagney <ac131313@redhat.com>
3 * somsolib.h: Fix function indentation.
4 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
5 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
6 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
7 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
8 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10 * infrun.c (follow_fork): Use ISO C definition.
11 * expprint.c (print_subexp): Use xfree instead of free.
12 * charset.c: Include "gdb_string.h" instead of <string.h>.
13 (register_iconv_charsets): Use ISO C definition.
14 (host_charset, target_charset): Ditto.
15 * Makefile.in (charset.o): Update dependencies.
16 (mi-cmd-env.o): Update dependencies.
18 2003-01-08 Andrew Cagney <cagney@redhat.com>
20 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
23 2003-01-08 Andrew Cagney <ac131313@redhat.com>
25 * gdb_mbuild.sh: Add --keep option. When specified, keep the
26 build directories. Save edited gdb output in Mbuild.log. If a
27 build fails, remove any final GDB executable.
29 2003-01-08 Andrew Cagney <ac131313@redhat.com>
31 * gdb_mbuild.sh: Edit the output of `maint print architecture'
32 replacing hex constants with function names and stripping leading
33 file name directory prefixes.
35 2003-01-08 Andrew Cagney <cagney@redhat.com>
37 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
40 2003-01-08 David Carlton <carlton@math.stanford.edu>
42 * linespec.c (decode_line_1): Move code into decode_variable.
43 (decode_variable): New function.
45 2003-01-08 Andrew Cagney <ac131313@redhat.com>
47 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
49 2003-01-08 Andrew Cagney <cagney@redhat.com>
51 * cris-tdep.c (cris_frame_init_saved_regs): Use
52 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
54 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
55 (sh64_nofp_frame_init_saved_regs): Ditto.
56 (sh_fp_frame_init_saved_regs): Ditto.
57 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
58 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
59 * mcore-tdep.c (analyze_dummy_frame): Ditto.
60 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
62 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
64 * minsyms.c (lookup_minimal_symbol): Update comment.
65 (lookup_minimal_symbol_text): Update comment. Use the hash table.
66 (lookup_minimal_symbol_solib_trampoline): Likewise.
68 2003-01-08 Andrew Cagney <cagney@redhat.com>
70 * d10v-tdep.c (d10v_init_extra_frame_info): Use
73 * alpha-tdep.c: Use get_frame_extra_info.
74 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
75 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
76 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
77 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
79 * alpha-tdep.c: Use get_next_frame.
80 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
81 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
82 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
83 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
84 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
85 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
86 * xstormy16-tdep.c: Ditto.
88 2003-01-07 Andrew Cagney <cagney@redhat.com>
90 * alpha-tdep.c: Use get_frame_base.
91 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
92 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
93 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
94 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
95 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
96 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
97 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
98 * config/sparc/tm-sparc.h: Ditto.
100 2003-01-07 Andrew Cagney <cagney@redhat.com>
102 * frame.c (deprecated_get_frame_context): New function.
103 (deprecated_set_frame_context): New function.
104 * frame.h (deprecated_get_frame_context): Declare.
105 (deprecated_set_frame_context): Declare.
106 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
107 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
109 2003-01-07 Andrew Cagney <cagney@redhat.com>
111 * frame.c (deprecated_set_frame_next_hack): New function.
112 (deprecated_set_frame_prev_hack): New function.
113 * frame.h (deprecated_set_frame_next_hack): Declare.
114 (deprecated_set_frame_prev_hack): Declare.
115 * mcore-tdep.c (analyze_dummy_frame): Use
116 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
117 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
119 2003-01-07 David Carlton <carlton@math.stanford.edu>
121 * linespec.c (decode_line_1): Move code into decode_dollar.
122 (decode_dollar): New function.
124 2003-01-07 Andrew Cagney <cagney@redhat.com>
126 * arm-tdep.c (arm_init_extra_frame_info): Use
127 deprecated_update_frame_base_hack.
128 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
129 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
130 (fix_frame_pointer): Ditto.
131 (mn10300_analyze_prologue): Ditto.
133 2003-01-07 Andrew Cagney <cagney@redhat.com>
135 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
136 extra_info using frame_extra_info_zalloc.
137 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
138 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
139 (sh64_init_extra_frame_info): Ditto.
140 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
141 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
142 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
143 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
144 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
145 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
146 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
147 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
148 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
149 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
150 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
151 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
153 * mn10300-tdep.c (analyze_dummy_frame): Use
154 deprecated_set_frame_extra_info_hack.
155 * mcore-tdep.c (analyze_dummy_frame): Ditto.
157 2003-01-07 J. Brobecker <brobecker@gnat.com>
159 * mdebugread.c (parse_symbol): Skip stProc entries which storage
160 class is not scText. These do not define "real" procedures.
161 (parse_partial_symbols): Likewise.
163 2003-01-06 Michael Snyder <msnyder@redhat.com>
165 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
167 2003-01-06 Andrew Cagney <ac131313@redhat.com>
169 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
170 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
171 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
172 deprecated_frame_xmalloc_with_cleanup.
173 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
174 deprecated_frame_xmalloc.
175 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
176 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
178 2003-01-06 Andrew Cagney <cagney@redhat.com>
180 * x86-64-linux-tdep.c: Include "osabi.h".
181 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
183 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
185 2003-01-06 Andrew Cagney <cagney@redhat.com>
187 * MAINTAINERS (Target Instruction Set Architectures): Update
188 arm-elf. Can be built with -Werror, has been multiarched.
190 * value.h (unpack_long): Make buffer parameter constant.
191 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
192 * scm-lang.h (scm_parse): Ditto.
193 * defs.h (extract_typed_address, extract_address): Ditto.
194 (extract_long_unsigned_integer): Ditto.
195 * inferior.h (unsigned_pointer_to_address): Ditto.
196 (signed_pointer_to_address): Ditto.
197 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
198 * gdbarch.h, gdbarch.c: Regenerate.
199 * findvar.c (extract_long_unsigned_integer): Update.
200 (extract_address): Update.
201 (extract_typed_address): Update.
202 (unsigned_pointer_to_address): Update.
203 * values.c (unpack_long): Update.
204 (unpack_double): Update.
205 (unpack_pointer): Update.
206 (unpack_field_as_long): Update.
207 * d10v-tdep.c (d10v_pointer_to_address): Update.
208 * avr-tdep.c (avr_pointer_to_address): Update.
209 * scm-lang.c (scm_unpack): Update.
210 * findvar.c (signed_pointer_to_address): Update.
212 2003-01-06 Michal Ludvig <mludvig@suse.cz>
214 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
215 since it is in i386-tdep.c.
217 2003-01-06 J. Brobecker <brobecker@gnat.com>
219 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
220 failure introduced in the previous change.
222 2003-01-05 Michael Chastain <mec@shout.net>
224 * README: Remove references to deleted remote-*.c files:
225 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
226 remote-nrom.c, remote-os9k.c, remote-udi.c.
228 2003-01-05 Mark Kettenis <kettenis@gnu.org>
230 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
231 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
232 i386_get_longjmp_target.
234 2003-01-05 Andrew Cagney <ac131313@redhat.com>
236 * arm-tdep.c (prologue_cache): Change to a pointer.
237 (_initialize_arm_tdep): Allocate prologue_cache.
238 (check_prologue_cache): Update.
239 (save_prologue_cache): Update.
240 (arm_gdbarch_init): Update.
242 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
244 * stabsread.c (update_method_name_from_physname): Call complaint()
247 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
249 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
250 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
251 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
253 * blockframe.c: Include "gdbcmd.h" and "command.h".
254 (backtrace_below_main): New variable.
255 (file_frame_chain_valid, func_frame_chain_valid)
256 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
257 (generic_func_frame_chain_valid): Remove functions.
258 (frame_chain_valid, do_flush_frames_sfunc): New functions.
259 (_initialize_blockframe): New function.
260 * Makefile.in (blockframe.o): Update dependencies.
261 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
262 comment. Call frame_chain_valid ().
263 * frame.h: Remove old prototypes. Add prototype for
264 frame_chain_valid and update comments to match.
265 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
267 * gdbarch.h: Regenerated.
268 * gdbarch.c: Regenerated.
270 * alpha-tdep.c (alpha_gdbarch_init): Don't call
271 set_gdbarch_frame_chain_valid.
272 * avr-tdep.c (avr_gdbarch_init): Likewise.
273 * cris-tdep.c (cris_gdbarch_init): Likewise.
274 * frv-tdep.c (frv_gdbarch_init): Likewise.
275 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
276 * i386-tdep.c (i386_svr4_init_abi): Likewise.
277 (i386_nw_init_abi): Likewise.
278 (i386_gdbarch_init): Likewise.
279 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
281 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
282 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
283 * mips-tdep.c (mips_gdbarch_init): Likewise.
284 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
285 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
286 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
287 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
288 * s390-tdep.c (s390_gdbarch_init): Likewise.
289 * sh-tdep.c (sh_gdbarch_init): Likewise.
290 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
291 * v850-tdep.c (v850_gdbarch_init): Likewise.
292 * vax-tdep.c (vax_gdbarch_init): Likewise.
293 * x86-64-tdep.c (x86_64_init_abi): Likewise.
295 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
296 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
297 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
298 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
299 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
300 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
301 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
302 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
304 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
306 * Makefile.in (acconfig_h): Remove incorrect macro.
308 (osabi.o): Update dependencies.
309 * configure.tgt: Set gdb_osabi based on target triplet.
310 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
311 * configure: Regenerated.
312 * config.in: Regenerated.
313 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
314 (GDB_OSABI_DEFAULT): Define if not already defined.
315 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
316 (set_osabi_string): New variables.
317 (gdbarch_register_osabi): Add new OS ABI to
318 gdb_osabi_available_names.
319 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
320 (set_osabi, show_osabi): New functions.
321 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
323 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
325 * arch-utils.c (gdbarch_info_init): Set osabi to
326 GDB_OSABI_UNINITIALIZED.
327 * gdbarch.sh: Add osabi to struct gdbarch and to struct
328 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
329 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
330 * gdbarch.c: Regenerated.
331 * gdbarch.h: Regenerated.
332 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
334 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
335 * osabi.h (enum gdb_osabi): Move to defs.h.
336 (gdbarch_init_osabi): Update prototype.
337 * defs.h (enum gdb_osabi): Moved here.
338 * Makefile.in: Update dependencies.
340 * alpha-tdep.h: Don't include "osabi.h".
341 (struct gdbarch_tdep): Remove osabi member.
342 * alpha-tdep.c: Include "osabi.h".
343 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
344 iterate over arches. Update call to gdbarch_init_osabi.
345 (alpha_dump_tdep): Don't dump osabi.
346 * alpha-linux-tdep.c: Include "osabi.h".
347 * alpha-osf1-tdep.c: Include "osabi.h".
348 * alphafbsd-tdep.c: Include "osabi.h".
349 * alphanbsd-tdep.c: Include "osabi.h".
351 * arm-tdep.h: Don't include "osabi.h".
352 (struct gdbarch_tdep): Remove osabi member.
353 * arm-tdep.c: Include "osabi.h".
354 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
355 iterate over arches. Update call to gdbarch_init_osabi.
356 (arm_dump_tdep): Don't dump osabi.
357 * arm-linux-tdep.c: Include "osabi.h".
358 * armnbsd-tdep.c: Include "osabi.h".
360 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
361 Update call to gdbarch_init_osabi.
363 * i386-tdep.h: Don't include "osabi.h".
364 (struct gdbarch_tdep): Remove osabi member.
365 * i386-tdep.c: Include "osabi.h".
366 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
367 iterate over arches. Update call to gdbarch_init_osabi.
368 (i386_dump_tdep): Don't dump osabi.
369 * i386-linux-tdep.c: Include "osabi.h".
370 * i386-sol2-tdep.c: Include "osabi.h".
371 * i386bsd-tdep.c: Include "osabi.h".
372 * i386gnu-tdep.c: Include "osabi.h".
373 * i386ly-tdep.c: Include "osabi.h".
374 * i386nbsd-tdep.c: Include "osabi.h".
375 * i386obsd-tdep.c: Include "osabi.h".
377 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
378 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
379 check osabi when iterating over arches. Update call to
381 (mips_dump_tdep): Don't dump osabi.
383 * ns32k-tdep.h: Don't include "osabi.h".
384 (struct gdbarch_tdep): Remove.
385 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
386 gdbarch_lookup_osabi. Don't iterate over arches. Don't
387 allocate tdep. Update call to gdbarch_init_osabi.
388 (ns32k_dump_tdep): Remove.
389 (_initialize_ns32k_tdep): Update call to gdbarch_register.
390 * ns32knbsd-tdep.c: Include "osabi.h".
392 * ppc-tdep.h: Don't include "osabi.h".
393 (struct gdbarch_tdep): Remove osabi member.
394 * rs6000-tdep.c: Include "osabi.h".
395 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
396 osabi when iterating over arches. Update call to
398 (rs6000_dump_tdep): Don't dump osabi.
399 * ppc-linux-tdep.c: Include "osabi.h".
400 * ppcnbsd-tdep.c: Include "osabi.h".
402 * sh-tdep.h: Don't include "osabi.h".
403 (struct gdbarch_tdep): Remove osabi member.
404 * sh-tdep.c: Include "osabi.h".
405 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
406 iterate over arches. Update call to gdbarch_init_osabi.
407 (sh_dump_tdep): Don't dump osabi.
408 * shnbsd-tdep.c: Include "osabi.h".
410 * sparc-tdep.c: Include "osabi.h".
411 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
412 iterate over arches. Update call to gdbarch_init_osabi.
413 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
416 * vax-tdep.h: Don't include "osabi.h".
417 (struct gdbarch_tdep): Remove.
418 * vax-tdep.c: Include "osabi.h".
419 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
420 iterate over arches. Don't allocate tdep. Update call
421 to gdbarch_init_osabi.
422 (vax_dump_tdep): Remove.
423 (_initialize_vax_tdep): Update call to gdbarch_register.
425 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
427 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
429 (breakpoint_re_set_one): Don't fetch the value for a disabled
432 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
434 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
435 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
436 (COERCE_FLOAT_TO_DOUBLE): Remove.
437 * gdbarch.c: Regenerate.
438 * gdbarch.h: Regenerate.
439 * Makefile.in: Remove value_h from gdbarch_h.
440 * valops.c (coerce_float_to_double): New variable.
441 (default_coerce_float_to_double): Remove.
442 (standard_coerce_float_to_double): Remove.
443 (value_arg_coerce): Use coerce_float_to_double.
444 (_initialize_valops): Add "set coerce-float-to-double".
445 * value.h (default_coerce_float_to_double): Remove prototype.
446 (standard_coerce_float_to_double): Remove prototype.
448 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
450 * mdebugread.c (parse_symbol): Likewise.
451 * stabsread.c (define_symbol): Mark all functions as prototyped.
453 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
454 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
455 set_gdbarch_coerce_float_to_double.
456 * arm-tdep.c (arm_gdbarch_init): Likewise.
457 * frv-tdep.c (frv_gdbarch_init): Likewise.
458 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
459 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
460 * mips-tdep.c (mips_gdbarch_init): Likewise.
461 (mips_coerce_float_to_double): Remove.
462 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
463 (rs6000_coerce_float_to_double): Remove.
464 * s390-tdep.c (s390_gdbarch_init): Likewise.
465 * sh-tdep.c (sh_gdbarch_init): Likewise.
466 (sh_coerce_float_to_double): Remove.
467 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
468 (sparc_coerce_float_to_double): Remove.
469 * v850-tdep.c (v850_gdbarch_init): Likewise.
470 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
471 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
472 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
473 (hppa_coerce_float_to_double): Remove prototype.
474 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
476 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
478 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
480 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
482 Suggested by Stewart Brown <sb24@avaya.com>:
483 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
484 in recursive calls. Handle TYPE_CODE_TYPEDEF.
485 (c_type_print_varspec_suffix): Likewise.
487 2003-01-04 Mark Kettenis <kettenis@gnu.org>
489 * configure.in: Don't set and AC_SUBST SUBDIRS.
490 * configure: Regenerated.
492 * configure.in: Remove code dealing with shared libraries.
493 * Makefile.in: Remove HLDFLAGS and HLDENV.
494 * configure: Regenerated.
496 2003-01-04 Andrew Cagney <ac131313@redhat.com>
498 * frame.c (deprecated_frame_xmalloc): New function.
499 (deprecated_set_frame_saved_regs_hack): New function.
500 (deprecated_set_frame_extra_info_hack): New function.
501 * frame.h (deprecated_frame_xmalloc): Declare.
502 (deprecated_set_frame_saved_regs_hack): Declare.
503 (deprecated_set_frame_extra_info_hack): Declare.
505 2003-01-04 Mark Kettenis <kettenis@gnu.org>
507 * configure.in: Move code that provides the --enable-gdbtk option
508 right after the code that handles the --enable-tui option, and
510 * configure: Regenerated.
512 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
513 AC_CHECK_FUNCS and remove the old check for pread64.
514 * acinclude.m4 (AC_GNU_SOURCE): New macro.
515 * acconfig.h (_GNU_SOURCE): Add.
516 (HAVE_PREAD64): Remove.
517 * configure, aclocal.m4, config.in: Regenerated.
519 2003-01-03 Andrew Cagney <ac131313@redhat.com>
521 * alpha-tdep.c: Use get_frame_saved_regs.
522 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
523 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
524 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
525 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
526 * vax-tdep.c, xstormy16-tdep.c: Ditto.
528 2003-01-03 Mark Kettenis <kettenis@gnu.org>
530 * configure.in: Remove all use of the SUBDIRS variable; add
531 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
532 code providing the --enable-multi-ice option, and move it right in
533 front of the code that checks whether gdbserver is supported.
535 * configure: Regenerated.
536 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
539 2003-01-03 Andrew Cagney <cagney@redhat.com>
541 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
542 * avr-tdep.c, cris-tdep.c: Ditto.
543 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
544 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
546 2003-01-03 Mark Kettenis <kettenis@gnu.org>
548 * configure.in: Remove --enable-netrom option.
549 * configure: Regenerated.
551 2003-01-03 Mark Kettenis <kettenis@gnu.org>
553 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
554 declaration for `struct re_pattern_buffer' instead.
555 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
557 2003-01-03 J. Brobecker <brobecker@gnat.com>
559 * mdebugread.c (parse_symbol): Count until the stEnd matching
562 2003-01-02 Mark Kettenis <kettenis@gnu.org>
564 * configure.in: Remove --with-cpu option.
565 subscripts. Remove evil changequotes here.
566 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
567 * config.in, configure: Regenerated.
569 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
570 * configure.in: Cleanup section that sources GDB and BFD configure
571 subscripts. Remove evil changequotes here.
572 * config.in, configure: Regenerated.
574 2003-01-02 Andrew Cagney <ac131313@redhat.com>
576 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
577 frame accessor methods.
578 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
579 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
580 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
581 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
582 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
583 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
586 2003-01-02 Mark Kettenis <kettenis@gnu.org>
588 * configure.in: Remove UI_OUT configuration code.
589 * ada-lang.c: Update assuming UI_OUT is always true.
590 * Makefile.in (UIOUT_CFLAGS): Remove.
591 * configure: Regenerated.
592 * TODO: Remove blurb about elimination of -DUI_OUT.
594 * configure.in: Move code that provides the --enable-gdbcli,
595 --enable-gdbmi options right before the code that handles the
596 --enable-tui option. Polish a bit.
597 * configure: Regenerated.
599 * configure.in: Rewrite check for GNU regex and the
600 --without-included regex option, and move it into the "Checks for
601 library functions" section. This makes us use the system regex
602 again by default on systems with version 2 of the GNU C library.
603 This was apparently broken.
604 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
605 * acconfig.h (USE_INCLUDED_REGEX): Remove.
606 * config.in, configure: Regenerated.
608 * configure.in: Move code that provides the --enable-tui option
609 before the "Checks for libraries" section. Polish the code
610 somewhat and set need_curses to yes if we build the TUI. Rewrite
611 code that looks for a library providing termcap functionality to
612 match more closely what's done in the Readline library, and move
613 it into to the "Checks for libraries" section.
614 * configure: Regenerated.
615 * Makefile.in (TERMCAP): Remove variable.
616 * config/i386/go32.mh (TERMCAP): Remove variable.
618 2003-01-02 Andrew Cagney <ac131313@redhat.com>
620 * MAINTAINERS: Mention gdb_mbuild.sh.
621 * gdb_mbuild.sh: Rewrite.
623 2003-01-02 Mark Kettenis <kettenis@gnu.org>
625 * configure.in: Fix typo in last change.
626 * config.in, configure: Regenerated.
628 2003-01-02 Andrew Cagney <ac131313@redhat.com>
630 * valarith.c (value_binop): Delete obsolete code and comments.
631 * configure.host: Ditto.
632 * buildsym.h (make_blockvector): Ditto.
633 * buildsym.c (make_blockvector): Ditto.
634 * defs.h (enum language): Ditto.
635 (chill_demangle): Ditto.
636 * elfread.c (elf_symtab_read): Ditto.
637 * dwarfread.c (CHILL_PRODUCER): Ditto.
638 (set_cu_language): Ditto.
639 (handle_producer): Ditto.
640 * expprint.c (print_subexp): Ditto.
641 * gdbtypes.c (chill_varying_type): Ditto.
642 * gdbtypes.h (builtin_type_chill_bool): Ditto.
643 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
644 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
645 (chill_varying_type): Ditto.
646 * language.h (_LANG_chill): Ditto.
647 * language.c (binop_result_type, integral_type): Ditto.
648 (character_type, string_type, structured_type): Ditto.
649 (lang_bool_type, binop_type_check): Ditto.
650 * stabsread.h (os9k_stabs): Ditto.
651 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
652 (define_symbol, read_type, read_struct_fields): Ditto.
653 (read_array_type, read_enum_type, read_huge_number): Ditto.
654 (read_range_type, start_stabs): Ditto.
655 * symfile.c (init_filename_language_table): Ditto.
656 (add_psymbol_with_dem_name_to_list): Ditto.
657 * symtab.c (symbol_init_language_specific): Ditto.
658 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
659 * symtab.h (struct general_symbol_info): Ditto.
660 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
661 * typeprint.c (typedef_print): Ditto.
662 * utils.c (fprintf_symbol_filtered): Ditto.
663 * valops.c (value_cast, search_struct_field, value_slice): Delete
665 (varying_to_slice): Delete function.
666 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
667 (varying_to_slice): Delete declaration.
668 * MAINTAINERS: Update.
670 2003-01-02 Mark Kettenis <kettenis@gnu.org>
672 * configure.in: Reorganize "Checks for library functions section"
673 a bit. Remove check for `btowc' and `isascii' functions.
674 * configure: Regenerated.
676 * acconfig.h (_MSE_INT_H): Remove.
677 * configure.in: Create "Checks for header files" section, and move
678 appropriate tests there. Don't check for objlist.h, wchar.h,
679 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
680 misdetection fix. Also add "Checks for types", "Checks for
681 compiler characteristics" and "Checks for library functions"
683 * config.in, configure: Regenerated.
685 * configure.in: Create "Checks for programs" section, and move
686 appropriate tests there.
688 2003-01-01 Mark Kettenis <kettenis@gnu.org>
690 * configure.in: Create "Checks for libraries" section, and move
691 appropriate tests there. Cleanup check for wctype in libw. Use
692 AC_SEARCH_LIBS to see whether we need libsocket.
693 * configure: Regenerated.
695 2002-12-31 Mark Kettenis <kettenis@gnu.org>
697 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
698 * config.in, configure: Regenerated.
700 2002-12-31 Mark Kettenis <kettenis@gnu.org>
702 * gdb_dirent.h: Cleanup and update code to match the example in
704 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
705 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
706 * configure: Regenerated.
708 2002-12-30 Adam Fedor <fedor@gnu.org>
710 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
711 (yylex): Initialize c to avoid uninitialized warning.
713 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
715 * doc/fdl.texi: Revert the last change.
717 2002-12-29 Mark Kettenis <kettenis@gnu.org>
719 * tracepoint.c (ISATTY): Removed.
721 2002-12-26 J. Brobecker <brobecker@gnat.com>
723 Continuing work to convert the hppa targets to multiarch partil.
725 * hppa-tdep.c: Add some missing forward declarations.
726 (frameless_function_invocation): Prefix the function name
727 by "hppa_" to avoid polluting the namespace. Update all calls
728 to use the new function name.
729 (saved_pc_after_call): Ditto.
730 (init_extra_frame_info): Ditto.
731 (frame_chain): Ditto.
732 (push_dummy_frame): Ditto.
733 (target_read_pc): Ditto.
734 (target_write_pc): Ditto.
735 (in_solib_call_trampoline): Ditto.
736 (in_solib_return_trampoline): Ditto.
737 (skip_trampoline_code): Ditto.
738 (hppa_read_fp): New function, renamed from target_read_fp.
739 (hppa_target_read_fp): New function, using hppa_read_fp.
740 This function conforms to the function profile for the
741 READ_FP gdbarch method.
742 (hppa_extract_struct_value_address): New function, extracted
743 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
745 (hppa_frame_num_args): New function.
746 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
748 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
749 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
750 for the switch to multiarch partial.
751 Update some of the macros definitions to match some changes
752 described above in the name of the function they are calling.
753 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
754 not be straightforward to convert. Do now wrap it inside
755 "#if !... #endif" to remember that this macro has still not
757 (FIX_CALL_DUMMY): Likewise.
759 2002-12-26 J. Brobecker <brobecker@gnat.com>
761 Continuing work to convert the hppa targets to multiarch partial.
763 * hppa-tdep.c (hppa_register_raw_size): New function replacing
764 the body of macro REGISTER_RAW_SIZE.
765 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
766 config/pa/tm-hppah.h. These functions will be used to initialize
767 the gdbarch structure.
768 (hppa_hpux_pc_in_sigtramp): New function.
769 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
770 (hppa_hpux_frame_base_before_sigtramp): New function.
771 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
772 Add gdbcore.h #include.
773 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
774 of this gdbarch-eligible macro to a call to the new associated
776 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
777 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
778 into a call to the new associated function.
779 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
780 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
781 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
783 2002-12-24 David Carlton <carlton@math.stanford.edu>
785 * config/sparc/tm-sparc.h: Delete duplicate definition of
786 DEPRECATED_PC_IN_CALL_DUMMY.
788 2002-12-24 Kevin Buettner <kevinb@redhat.com>
790 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
792 * configure.tgt: Recognize mips64*-*-linux*.
793 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
794 (supply_32_bit_reg): New function.
795 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
796 (fill_gregset): Use regcache_collect() instead of
797 deprecated_registers[].
798 (register_addr): Change name to mips_linux_register_addr().
799 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
800 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
801 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
802 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
803 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
804 (MIPS64_LINUX_JB_PC): New defines.
805 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
806 (mips64_elf_fpregset_t): New typedefs.
807 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
808 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
809 (mips64_linux_register_addr, set_mips_linux_register_addr)
810 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
811 (init_register_addr_data)
813 (fetch_core_registers): Add support for core file formats with 64-bit
815 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
816 (register_addr_data): New static global variable.
817 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
818 gdbarch_register_osabi() for each MIPS machine.
819 * config/mips/linux64.mt: New file.
820 * config/mips/tm-linux64.h: New file.
822 2002-12-23 Adam Fedor <fedor@gnu.org>
824 * maint.c (maintenance_demangle): Add switch to demangle
825 ObjC language symbols as well.
827 2002-12-23 Adam Fedor <fedor@gnu.org>
829 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
830 last argument from complaint function call.
832 2002-12-23 Kevin Buettner <kevinb@redhat.com>
834 * exec.c (print_section_info): Add FIXME comments regarding format
837 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
839 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
840 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
842 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
844 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
846 2002-12-23 David Carlton <carlton@math.stanford.edu>
848 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
849 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
850 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
851 information associated to a minsym, not lookup_symbol.
853 2002-12-21 Mark Kettenis <kettenis@gnu.org>
855 * x86-64-tdep.h (x86_64_init_abi): New prototype.
856 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
857 (x86_64_init_abi): Make non-static. Set number of pseudo
859 (x86_64_gdbarch_init): Remove function.
860 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
861 Remove code dealing with dissambly.
862 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
863 (_initialize_x86_64_linux_tdep): New function.
864 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
867 2002-12-14 Mark Kettenis <kettenis@gnu.org>
869 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
870 (struct gdb_osabi_handler): Remove member `arch'. Add member
872 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
873 construct a `struct bfd_arch_info' and store it in the `struct
874 gdb_osabi_handler' that is created.
875 (gdbarch_init_osabi): Check for compatibility based on machine
876 type and architecture.
877 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
879 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
880 second argument in call to gdbarch_register_osabi.
881 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
882 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
883 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
884 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
885 * arm-tdep.c (_initialize_arm_tdep): Likewise.
886 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
887 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
888 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
889 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
890 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
891 * i386-tdep.c (_initialize_i386_tdep): Likewise.
892 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
893 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
894 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
895 _initialize_i386bsd_tdep and updated likewise.
896 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
897 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
898 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
899 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
900 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
901 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
902 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
903 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
904 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
905 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
907 2002-12-20 Kevin Buettner <kevinb@redhat.com>
909 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
910 DT_MIPS_RLD_MAP case for 64-bit targets.
912 2002-12-20 Kevin Buettner <kevinb@redhat.com>
914 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
915 ``temp_saved_regs'', not the pointer or other storage contiguous
918 2002-12-20 Kevin Buettner <kevinb@redhat.com>
920 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
921 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
922 (mips_linux_get_longjmp_target): Delete declarations.
923 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
924 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
925 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
926 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
927 (mips_linux_get_longjmp_target)
928 (mips_linux_svr4_fetch_link_map_offsets): Make static.
929 (mips_linux_init_abi): New function.
930 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
932 2002-12-19 Keith Seitz <keiths@redhat.com>
934 patch committed by Elena Zannoni <ezannoni@redhat.com>
935 * thread.c (do_captured_list_thread_ids): Call prune_threads and
936 target_find_new_threads. Fix for PR mi/669.
938 2002-12-19 David Carlton <carlton@math.stanford.edu>
940 * linespec.c (decode_line_1): Move code into decode_all_digits.
941 (decode_all_digits): New function.
943 2002-12-19 Kevin Buettner <kevinb@redhat.com>
945 * exec.c (print_section_info): Select a format string to use with
946 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
948 2002-12-18 Andrew Cagney <ac131313@redhat.com>
950 * frame.c (deprecated_update_current_frame_pc_hack): Replace
951 deprecated_update_current_frame_pc_hack.
952 (deprecated_update_frame_base_hack): New function.
953 * frame.h (deprecated_update_frame_pc_hack): Replace
954 (deprecated_update_frame_base_hack): Declare.
955 * infrun.c (normal_stop): Update.
957 2002-12-18 Andrew Cagney <ac131313@redhat.com>
959 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
960 frame_extra_info_zalloc.
961 (rs6000_frame_args_address): Use get_frame_extra_info.
962 (frame_get_saved_regs): Use get_frame_saved_regs.
963 (frame_initial_stack_address): Use get_frame_saved_regs and
964 get_frame_extra_info.
965 (frame_initial_stack_address): Use get_frame_extra_info.
967 2002-12-17 Kevin Buettner <kevinb@redhat.com>
969 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
971 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
972 checks for r3900_regnames[].
974 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
976 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
978 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
980 2002-12-17 David Carlton <carlton@math.stanford.edu>
982 * symtab.c (lookup_partial_symbol): Don't search past the end of
985 2002-12-17 Andrew Cagney <ac131313@redhat.com>
987 * stack.c (frame_info): Use get_frame_saved_regs.
988 * breakpoint.c (until_break_command): Use get_frame_pc.
990 2002-12-16 Kevin Buettner <kevinb@redhat.com>
992 * buildsym.c (block_end_complaint, anon_block_end_complaint)
993 (innerblock_complaint, innerblock_anon_complaint)
994 (blockvector_complaint): Delete deprecated complaint structs.
995 (finish_block, make_blockvector, end_symtab): Replace calls
996 to complain() with calls to complaint().
997 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
998 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
999 (unexpected_type_complaint, bad_sclass_complaint)
1000 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
1001 Delete deprecated complaint structs.
1002 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
1003 Replace calls to complain() with calls to complaint().
1004 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
1005 (unknown_symtype_complaint, unknown_symchar_complaint)
1006 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
1007 (lbrac_mismatch_complaint, repeated_header_complaint)
1008 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
1009 Delete deprecated complaint structs.
1010 (unknown_symtype_complaint, lbrac_mismatch_complaint)
1011 (repeated_header_complaint)
1012 (function_outside_compiliation_unit_complaint): New functions.
1013 (add_old_header_file, find_corresponding_bincl_psymtab)
1014 (set_namestring, find_stab_function_addr, read_dbx_symtab)
1015 (process_one_symbol): Replace calls to complain() with, possibly
1016 indirect, calls to complaint().
1017 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
1018 (unknown_attribute_form, unknown_attribute_length)
1019 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
1020 (const_ignored, botched_modified_type, op_deref2, op_deref4)
1021 (basereg_not_handled, dup_user_type_allocation)
1022 (dup_user_type_definition, missing_tag, bad_array_element_type)
1023 (subscript_data_items, unhandled_array_subscript_format)
1024 (unknown_array_subscript_format, not_row_major)
1025 (missing_at_name): Delete deprecated complaint structs.
1026 (bad_die_ref_complaint, unknown_attribute_form_complaint)
1027 (dup_user_type_definition_complaint)
1028 (bad_array_element_type_complaint): New functions.
1029 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
1030 (decode_subscript_data_item, dwarf_read_array_type)
1031 (read_tag_string_type, read_subroutine_type, read_func_scope)
1032 (locval, scan_partial_symbols, decode_modified_type)
1033 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
1034 (attribute_size): Replace calls to complain() with, possibly
1035 indirect, calls to complaint().
1036 * elfread.c (section_info_complaint, section_info_dup_complaint)
1037 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
1038 Delete deprecated complaint structs.
1039 (elf_symtab_read, elfstab_offset_sections): Replace calls to
1040 complain() with calls to complaint().
1041 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
1043 (stub_noname_complaint): New function.
1044 (check_typedef, add_mangled_type): Replace calls to complain()
1045 with calls to complaint().
1046 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
1047 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
1048 (hpread_unhandled_type_complaint, hpread_struct_complaint)
1049 (hpread_array_complaint, hpread_type_lookup_complaint)
1050 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
1051 (hpread_unhandled_common_complaint)
1052 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
1053 struct definitions and declarations.
1054 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
1055 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
1056 Replace calls to complain() with, possibly indirect, calls to
1058 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
1060 * mdebugread.c (bad_file_number_complaint, index_complaint)
1061 (aux_index_complaint, block_index_complaint)
1062 (unknown_ext_complaint, unknown_sym_complaint)
1063 (unknown_st_complaint, block_overflow_complaint)
1064 (basic_type_complaint, unknown_type_qual_complaint)
1065 (array_index_type_complaint, bad_tag_guess_complaint)
1066 (block_member_complaint, stEnd_complaint)
1067 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
1068 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
1069 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1070 (bad_continued_complaint, bad_rfd_entry_complaint)
1071 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1072 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1073 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1074 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1076 (index_complaint, unknown_ext_complaint, basic_type_complaint)
1077 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1078 (unexpected_type_code_complaint)
1079 (function_outside_compilation_unit_complaint): New functions.
1080 (parse_symbol, parse_type, upgrade_type, parse_procedure)
1081 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1082 Replace calls to complain() with, possibly indirect calls to
1084 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1085 Delete deprecated complaint structs.
1086 (lookup__objc_class, lookup_child_selector): Replace complain()
1088 * remote-vx.c (cant_contact_target): Delete deprecated complaint
1090 (vx_lookup_symbol): Replace complain() with complaint().
1091 * stabsread.c (invalid_cpp_abbrev_complaint)
1092 (invalid_cpp_type_complaint, member_fn_complaint)
1093 (const_vol_complaint, error_type_complaint)
1094 (invalid_member_complaint, range_type_base_complaint)
1095 (reg_value_complaint, vtbl_notfound_complaint)
1096 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1097 (unresolved_sym_chain_complaint, stabs_general_complaint)
1098 (lrs_general_complaint, multiply_defined_struct): Delete
1099 deprecated complaint structs.
1100 (invalid_cpp_abbrev_complaint, ref_value_complaint)
1101 (stabs_general_complaint, lrs_general_complaint)
1102 (msg_unknown_complaint): New functions.
1103 (dbx_lookup_type, read_cfront_baseclasses)
1104 (read_cfront_member_functions, resolve_symbol_reference)
1105 (define_symbol, resolve_live_range, add_live_range, read_type)
1106 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1107 (read_one_struct_field, read_baseclasses, read_tilde_fields)
1108 (read_cfront_static_fields, attach_fields_to_type)
1109 (complain_about_struct_wipeout, read_range_type)
1110 (common_block_start, common_block_end, cleanup_undefined_types)
1111 (scan_file_globals): Replace complain() with complaint().
1112 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1113 Delete deprecated complaint struct declarations.
1114 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1115 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1116 (bf_not_found_complaint, ef_complaint, eb_complaint)
1117 (function_outside_compilation_unit_complaint): New functions.
1118 (record_include_begin, record_include_end, enter_line_range)
1119 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1120 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1121 complain() with complaint().
1123 2002-12-16 Andrew Cagney <ac131313@redhat.com>
1125 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1126 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1127 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1128 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1129 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1130 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1131 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1132 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1133 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1134 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1135 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1136 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1137 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1138 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1139 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1140 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1141 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1142 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1143 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1144 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1145 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1146 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1147 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1148 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1149 * config/m88k/xm-dgux.h: Delete.
1150 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1151 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1152 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1153 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1154 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1155 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1156 * ch-valprint.c: Delete.
1158 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1160 * infrun.c (handle_inferior_event): Rearrange code to resume if
1161 no catchpoint triggers for an event.
1163 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1165 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1166 and TARGET_WAITKIND_VFORKED cases.
1168 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1170 * infrun.c (handle_inferior_event): Assume that catchpoints
1171 are not affected by DECR_PC_AFTER_BREAK.
1173 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1175 * target.c (update_current_target): Don't inherit DONT_USE.
1176 * target.h (struct target_ops): Remove DONT_USE.
1177 (target_next): Remove macro.
1179 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1181 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1183 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1185 * arm-tdep.c (convert_from_extended): New argument to hold the
1186 type of floating point result we want to convert to. Make input
1187 argument const. Fix all callers.
1188 (convert_to_extended): Similarly.
1189 (arm_extract_return_value): Now takes a regcache argument. Change
1190 code to use regcache accessor functions. Correctly extract
1191 smaller-than-word results on big-endian machines.
1192 (arm_store_return_value): Now takes a regcache argument. Change
1193 code to use regcache accessor functions. Correctly zero/sign extend
1194 smaller than word results before storing into r0.
1195 (arm_gdbarch_init): Register new-style extract_return_value and
1196 store_return_value functions.
1198 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1200 * thread-db.c (thread_from_lwp): Uniquify error msg.
1201 (lwp_from_thread): Ditto.
1202 (check_event): Ditto.
1203 (find_new_threads_callback): Ditto.
1204 (thread_db_pid_to_str): Ditto.
1206 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1208 * frame.h (get_frame_saved_regs): Declare.
1209 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1211 * frame.c (get_frame_saved_regs): New function.
1212 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1214 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1216 * frame.c (deprecated_update_current_frame_pc_hack): New
1218 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1219 * infrun.c (normal_stop): Use said function instead of directly
1220 modifying the frame's PC.
1222 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1224 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1226 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1228 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1229 config/mips/tm-irix6.h (NUM_REGS): Delete.
1230 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1231 (temp_saved_regs): Declare as a pointer rather than an array.
1232 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1233 that ``temp_saved_regs'' has storage allocated to it and that
1234 it's the correct size.
1236 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1238 * defs.h (init_last_source_visited): New prototype.
1240 * source.c (add_path): New function that adds to a specified path.
1241 (mod_path): Change to call add_path.
1242 (init_last_source_visited): New function to allow interfaces to
1243 initialize static variable: last_source_visited. Part of fix
1245 * Makefile.in: Add support for mi/mi-cmd-env.c.
1247 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1249 * frame.h (frame_id_unwind): Declare.
1250 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1252 (frame_id_unwind_ftype): Declare.
1253 * frame.c (frame_id_unwind): New function.
1254 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1255 (create_new_frame, get_prev_frame): Pass id_unwind to
1257 (frame_saved_regs_id_unwind): New function.
1258 (frame_saved_regs_id_unwind): New function.
1259 * dummy-frame.c (dummy_frame_id_unwind): New function.
1260 (struct dummy_frame): Add field id.
1261 (generic_push_dummy_frame): Initialize `id'.
1262 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1264 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1266 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1267 pass that to set_momentary_breakpoint. Move comments to where they
1269 * frame.h (set_current_frame): Delete declaration.
1270 * frame.c (set_current_frame): Delete function.
1272 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1274 * frame.c (frame_extra_info_zalloc): New function.
1275 * frame.h (frame_extra_info_zalloc): Declare.
1277 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1279 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1280 in the previous prototype change to set_momentary_breakpoint.
1282 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1284 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1286 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1287 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1288 (stop_stepping): Remove outdated check for child vfork events.
1290 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1292 * GDB 5.3 released from gdb_5_3-branch.
1294 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1296 * corelow.c (init_core_ops): Delete references to to_require_attach
1297 and to_require_detach.
1298 * exec.c (init_exec_ops): Likewise.
1299 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1300 hppa_require_detach directly.
1301 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1302 * inftarg.c (child_detach): Remove.
1303 (child_detach_from_process): Rename to child_detach, remove
1304 after_fork argument.
1305 (child_attach): Remove.
1306 (child_attach_to_process): Rename to child_attach, remove after_fork
1308 (init_child_ops): Delete references to to_require_attach
1309 and to_require_detach.
1310 * infttrace.c (hppa_require_attach): Update comment.
1311 * target.c (cleanup_target, update_current_target)
1312 (init_dummy_target, setup_target_debug): Delete references to
1313 to_require_attach and to_require_detach.
1314 (find_default_require_detach, find_default_require_attach)
1315 (debug_to_require_attach, debug_to_require_detach): Remove
1317 * target.h (struct target_ops): Remove to_require_attach
1318 and to_require_detach.
1319 (target_require_attach, target_require_detach): Delete macros.
1320 (find_default_require_detach, find_default_require_attach): Delete
1322 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1324 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1326 * frame.c (get_frame_extra_info): New function.
1327 * frame.h (get_frame_extra_info): Declare.
1329 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1331 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1332 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1333 with `struct frame_id'.
1334 (set_longjmp_resume_breakpoint): Ditto.
1335 * infrun.c (handle_inferior_event): Update.
1336 * breakpoint.c (watch_command_1, until_break_command): Update.
1337 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1338 (handle_inferior_event, step_over_function): Update.
1339 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1340 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1341 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1342 * infcmd.c (finish_command, run_stack_dummy): Update.
1344 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1346 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1347 (dwarf2_non_const_array_bound_ignored)
1348 (dwarf2_missing_line_number_section)
1349 (dwarf2_statement_list_fits_in_line_number_section)
1350 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1351 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1352 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1353 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1354 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1355 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1356 (dwarf2_missing_member_fn_type_complaint)
1357 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1358 (dwarf2_const_value_length_mismatch)
1359 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1360 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1361 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1362 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1363 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1364 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1365 complaints using deprecated struct..
1366 (dwarf2_non_const_array_bound_ignored_complaint)
1367 (dwarf2_complex_location_expr_complaint)
1368 (dwarf2_unsupported_at_frame_base_complaint)
1369 (dwarf2_const_value_length_mismatch_complaint)
1370 (dwarf2_macros_too_long_complaint)
1371 (dwarf2_macro_malformed_definition_complaint)
1372 (dwarf2_invalid_attrib_class_complaint): New functions.
1373 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1374 (read_structure_scope, read_array_type, read_common_block)
1375 (read_tag_pointer_type, read_base_type, read_partial_die)
1376 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1377 (new_symbol, dwarf2_const_value, read_type_die)
1378 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1379 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1380 complain() with, possibly indirect, calls to complaint().
1382 2002-12-11 Andrew Cagney <cagney@redhat.com>
1384 * frame.c (deprecated_get_frame_saved_regs): Rename
1385 get_frame_saved_regs.
1386 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1387 * sparc-tdep.c: Update.
1388 * hppa-tdep.c: Update.
1389 * h8500-tdep.c: Update.
1391 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1393 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1394 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1395 ``char *'' for return and parameter types.
1396 * gdbarch.h, gdbarch.c: Regenerate.
1397 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1398 return type from ``char *'' to ``const char *''.
1399 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1402 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1404 * i386-tdep.c: Include "dummy-frame.h".
1405 (i386_frame_chain, i386_frame_saved_pc): Replace
1406 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1407 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1409 2002-12-10 Andrew Cagney <cagney@redhat.com>
1411 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1412 Change to a function with predicate.
1413 * gdbarch.h, gdbarch.c: Re-generate.
1414 * frame.c (get_prev_frame): Update. Test
1415 DEPRECATED_INIT_FRAME_PC_P.
1416 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1417 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1418 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1419 * alpha-tdep.c (alpha_gdbarch_init): Update.
1420 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1421 * mips-tdep.c (mips_gdbarch_init): Update.
1422 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1423 * arm-tdep.c: Update comments.
1424 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1425 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1426 * frv-tdep.c (frv_gdbarch_init): Ditto.
1427 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1428 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1429 * s390-tdep.c (s390_gdbarch_init): Ditto.
1430 * v850-tdep.c (v850_gdbarch_init): Ditto.
1431 * vax-tdep.c (vax_gdbarch_init): Ditto.
1432 * sh-tdep.c (sh_gdbarch_init): Ditto.
1433 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1434 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1435 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1436 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1437 * i386-tdep.c (i386_gdbarch_init): Ditto.
1438 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1439 * cris-tdep.c (cris_gdbarch_init): Ditto.
1440 * avr-tdep.c (avr_gdbarch_init): Ditto.
1441 * arm-tdep.c (arm_gdbarch_init): Ditto.
1442 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1443 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1445 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1447 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1449 * hppah-nat.c (saved_vfork_pid): Add.
1450 (child_post_follow_vfork): Remove.
1451 (child_follow_fork): New function.
1452 (child_wait): Call detach_breakpoints after receiving the child vfork.
1453 Call child_resume directly instead of going through resume ().
1454 Make sure we have the exec before reporting the vfork.
1455 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1456 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1457 (follow_fork): New function. Call target_follow_fork.
1458 (follow_inferior_reset_breakpoints): New function broken out from
1459 old follow_inferior_fork.
1460 (resume): Remove hack to follow exec after vfork.
1461 * inftarg.c (child_post_follow_vfork): Remove.
1462 (child_follow_fork): New function.
1463 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1464 * target.c (cleanup_target): Replace to_post_follow_vfork with
1466 (update_current_target): Likewise.
1467 (setup_target_debug): Likewise.
1468 (debug_to_post_follow_vfork): Remove.
1469 (debug_to_follow_fork): New function.
1470 * target.h (struct target_ops): Replace to_post_folow_vfork with
1472 (child_post_follow_vfork): Remove prototype.
1473 (child_follow_fork): Add prototype.
1474 (target_post_follow_vfork): Remove macro.
1475 (target_follow_fork): Add macro.
1477 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1479 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1480 (child_post_follow_vfork): Cancel pending exec event if we follow
1482 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1483 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1484 event at the following wait call if necessary.
1485 * infrun.c (follow_vfork): Don't follow_exec here.
1486 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1487 case about HP/UX 10.20. Remove code pushed down to
1488 hppah-nat.c:child_wait.
1489 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1490 vfork_in_flight is set.
1492 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1494 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1495 for the parent's fork event.
1496 * infrun.c (handle_inferior_event): Only expect one fork event.
1497 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1498 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1500 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1502 * PROBLEMS: Delete reference to PR gdb/725.
1504 * MAINTAINERS (gdb.c++): Add David Carlton.
1506 2002-12-09 David Carlton <carlton@math.stanford.edu>
1508 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1509 * cli/cli-cmds.c: Ditto.
1511 2002-12-09 Andrew Cagney <cagney@redhat.com>
1513 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1514 function address in <>.
1515 * gdbarch.c: Re-generate.
1517 2002-12-09 David Carlton <carlton@math.stanford.edu>
1519 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1521 2002-12-09 David Carlton <carlton@math.stanford.edu>
1523 * linespec.c (symtab_from_filename): New function.
1524 (decode_line_1): Move code into symtab_from_filename.
1526 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1528 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1530 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1532 * f-valprint.c (info_common_command): Use get_frame_pc.
1533 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1534 * ax-gdb.c (agent_command): Ditto.
1535 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1536 (rs6000_pop_frame): Ditto.
1537 (rs6000_frameless_function_invocation): Ditto.
1538 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1539 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1540 * macroscope.c (default_macro_scope): Ditto.
1541 * stack.c (print_frame_info_base): Ditto.
1542 (print_frame, frame_info, print_frame_label_vars): Ditto.
1543 (return_command, func_command, get_frame_language): Ditto.
1544 * infcmd.c (finish_command): Ditto.
1545 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1546 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1547 (break_at_finish_at_depth_command_1): Ditto.
1548 (break_at_finish_command_1): Ditto.
1549 (until_break_command, get_catch_sals): Ditto.
1550 * blockframe.c (func_frame_chain_valid): Ditto.
1551 (frameless_look_for_prologue): Ditto.
1552 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1554 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1556 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1557 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1559 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1561 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1563 * gdbarch.h, gdbarch.c: Re-generate.
1564 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1565 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1567 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1568 declaration to a function returning a CORE_ADDR.
1569 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1570 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1571 (init_frame_pc_default): Ditto.
1572 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1573 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1574 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1575 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1576 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1577 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1579 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1580 to init_frame_pc_noop.
1581 (i386_interix_init_frame_pc): Delete function.
1582 * z8k-tdep.c (init_frame_pc): Delete function.
1583 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1584 (INIT_FRAME_PC_FIRST): Ditto.
1585 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1586 (INIT_FRAME_PC_FIRST): Ditto.
1587 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1588 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1590 (INIT_FRAME_PC_FIRST): Convert to an expression.
1591 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1593 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1595 * blockframe.c: Use get_frame_base instead of directly accessing
1596 the `struct frame_info' member frame.
1597 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1598 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1600 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1602 * Makefile.in (readline_h): Define.
1603 (completer.o): Depend on readline_h.
1605 (event-top.o): Ditto.
1612 (tracepoint.o): Ditto.
1614 (cli-dump.o): Ditto.
1615 (tui-hooks.o): Ditto.
1618 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1620 More cleanup from import of readline 4.3.
1621 * completer.h (complete_line, readline_line_completion_function):
1623 (line_completion_function): Removed, not used outside of completer.c.
1624 * completer.c (readline_line_completion_function,
1625 complete_function, line_completion_function): Use const for first
1627 (line_completion_function): Make static.
1628 (filename_completer): filename_completion_function is now called
1629 rl_filename_completion_function
1630 * corelow.c: Include <readline/readline.h>.
1636 * top.c (init_main): No need to coerce
1637 readline_line_completion_function anymore.
1638 * cli/cli-dump.c: Include <readline/readline.h>.
1640 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1642 * stack.c (frame_info): Use get_prev_frame.
1643 * blockframe.c (frame_address_in_block): Ditto.
1644 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1645 (rs6000_frameless_function_invocation): Ditto.
1646 (rs6000_frame_saved_pc): Ditto.
1647 (rs6000_frame_chain): Ditto.
1648 * arch-utils.c (init_frame_pc_default): Ditto.
1650 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1652 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1653 Delete redundant definition.
1655 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1657 Import of readline 4.3:
1658 * cli/cli-cmds.c: Include readline/tilde.h.
1659 * cli/cli-setshow.c: Ditto.
1660 * defs.h: Don't declare tilde_expand anymore, since readline
1663 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1665 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1666 -Werror on this file.
1668 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1670 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1672 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1673 * gdbarch.c: Regenerate.
1675 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1677 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1678 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1679 provide a default value.
1680 * gdbarch.h, gdbarch.c: Regenerate.
1681 * frame.c (get_prev_frame): Update. Check
1682 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1683 * s390-tdep.c (s390_gdbarch_init): Update.
1684 * mips-tdep.c (mips_gdbarch_init): Update.
1685 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1686 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1687 * alpha-tdep.c (alpha_gdbarch_init): Update.
1689 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1691 * ia64-linux-nat.c: Include gdb_string.h.
1692 * alpha-nat.c: Ditto.
1693 * ppc-linux-nat.c: Ditto.
1694 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1695 Update dependencies.
1697 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1699 * gdbthread.h: Include "frame.h".
1700 (struct thread_info): Replace step_frame_address with
1702 * inferior.h: Include "frame.h".
1703 (step_frame_id): Replace external variable step_frame_address.
1704 * gdbthread.h (save_infrun_state): Replace step_frame_address
1705 parameter with step_frame_id parameter.
1706 (load_infrun_state): Ditto.
1707 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1708 * infcmd.c (step_frame_id, step_1, step_once): Update.
1709 * thread.c (load_infrun_state, save_infrun_state): Update.
1710 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1711 (handle_inferior_event, step_over_function): Update.
1712 (normal_stop, context_switch, restore_inferior_status): Update.
1713 (struct inferior_status): Replace step_frame_address with
1716 2002-12-05 David Carlton <carlton@math.stanford.edu>
1718 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1719 DW_TAG_member as well as a declaration as being a C++ static data
1721 (read_structure_scope): Combine tests for DW_TAG_member and
1724 2002-12-05 David Carlton <carlton@math.stanford.edu>
1726 * linespec.c (decode_compound): New function.
1727 (decode_line_1): Move code into decode_compound.
1729 2002-12-05 David Carlton <carlton@math.stanford.edu>
1731 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1733 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1734 the static block. See PR gdb/804.
1736 2002-12-05 David Carlton <carlton@math.stanford.edu>
1738 * symtab.c (lookup_symbol_aux_block): New function.
1739 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1741 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1743 * gdbarch.sh: Dump the predicate function and macro values.
1744 (read): Print error on standard error.
1745 * gdbarch.c: Regenerate.
1747 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1749 * Makefile.in (mips_tdep_h): Define.
1750 (mips-tdep.o): Add mips_tdep_h to dependency list.
1751 * mips-tdep.h: New file.
1752 * mips-tdep.c (mips-tdep.h): Include.
1753 (enum mips_abi): Move to mips-tdep.h.
1754 (mips_abi): New function.
1756 2002-12-04 David Carlton <carlton@math.stanford.edu>
1758 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1760 2002-12-04 David Carlton <carlton@math.stanford.edu>
1762 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1764 (lookup_symbol_aux_minsyms): New function.
1766 2002-12-04 J. Brobecker <brobecker@gnat.com>
1768 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1770 2002-12-04 J. Brobecker <brobecker@gnat.com>
1772 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1773 which is an obsolete macro name.
1775 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1777 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1778 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1780 2002-12-03 H.J. Lu (hjl@gnu.org)
1782 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1783 (create_breakpoints): Make sure the addr_string field is not
1786 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1788 * sparc-nat.c (fetch_inferior_registers)
1789 (store_inferior_registers): Add comment on problem of LWP vs
1792 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1793 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1794 (lin_lwp_store_registers): Remove.
1795 (init_lin_lwp_ops): Use fetch_inferior_registers
1796 and store_inferior_registers directly.
1797 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1798 (store_inferior_registers): Likewise.
1801 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1803 * frame.h (get_frame_id): Convert to a function.
1804 (null_frame_id, frame_id_p): Declare.
1805 (frame_id_eq, frame_id_inner): Declare.
1806 (frame_id_build): New function.
1807 * frame.c (get_frame_id): Update. Use null_frame_id.
1808 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1810 (null_frame_id, frame_id_p): Define.
1811 (frame_id_eq, frame_id_inner): Define.
1812 (frame_id_build): New function.
1813 * varobj.c (varobj_create): Update.
1814 (varobj_update): Update.
1815 * valops.c (value_assign): Update.
1816 (new_root_variable): Update.
1817 * infrun.c (save_inferior_status): Update.
1818 * breakpoint.c (watch_command_1): Update.
1820 2002-12-03 J. Brobecker <brobecker@gnat.com>
1822 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1825 2002-12-03 Andrew Cagney <cagney@redhat.com>
1827 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1830 * PROBLEMS: Mention PR gdb/725.
1832 2002-12-03 Andreas Schwab <schwab@suse.de>
1834 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1836 2002-12-02 Adam Fedor <fedor@gnu.org>
1837 Klee Dienes <kdienes@apple.com>
1839 * objc-lang.c (objc_printstr): Add width arg to match
1841 (compare_selectors): Add 'const' to arg types.
1842 (compare_classes): Likewise.
1843 (find_imps): Cast msym pointer to avoid compiler warning.
1844 (print_object_command): Validate the address before
1845 passing it to the print routine.
1846 (find_objc_msgcall_submethod): Change function argument to
1848 * objc-lang.h: Add 'extern' to all function declarations.
1849 (value_nsstring): Add declaration.
1851 2002-12-02 J. Brobecker <brobecker@gnat.com>
1853 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1854 Fixes a build failure on HP/UX.
1856 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1858 (hpread_has_name): Advance declaration to avoid a compilation warning.
1859 (pst_syms_count): Add missing variable type. By change, the compiler
1860 was defaulting to int, which seems a good choice. Fixes a compilation
1862 (pst_syms_size): Likewise.
1864 2002-12-02 J. Brobecker <brobecker@gnat.com>
1866 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1867 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1868 later to set the proper gdbarch methods depending on the osabi.
1869 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1871 2002-12-02 J. Brobecker <brobecker@gnat.com>
1873 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1874 * osabi.c (gdb_osabi_name): Add strings images for the two new
1876 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1878 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1880 * MAINTAINERS (Java): Global maintainers are responible for Java.
1881 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1882 part Java maintainers.
1884 2002-12-02 J. Brobecker <brobecker@gnat.com>
1886 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1887 Fixes a compilation failure on AiX.
1889 2002-12-02 J. Brobecker <brobecker@gnat.com>
1891 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1892 why aix-thread.o is not listed.
1894 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1896 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1897 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1898 * gdbarch.h, gdbarch.c: Re-generate.
1899 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1900 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1901 * config/pa/tm-hppa.h, frame.h: Update.
1902 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1903 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1904 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1905 * cris-tdep.c, alpha-tdep.c: Update.
1906 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1907 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1908 (get_prev_frame): Ditto.
1910 2002-11-30 Andrew Cagney <cagney@redhat.com>
1912 * exec.c (xfer_memory): Replace boolean with int.
1913 * p-exp.y: Use 0 instead of false.
1914 * corelow.c (gdb_check_format): Change return type to int from
1916 * utils.c: Don't include <curses.h> or <term.h> first.
1918 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1920 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1921 (m68hc11_register_byte): Remove.
1922 (m68hc11_gdbarch_init): Don't set the above.
1924 2002-11-29 Andrew Cagney <cagney@redhat.com>
1926 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1927 by calling get_selected_frame.
1928 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1929 set_current_frame, create_new_frame, select_frame and
1931 * remote-e7000.c (e7000_start_remote): Ditto.
1932 * remote-mips.c (common_open): Ditto
1933 * remote-rdp.c (remote_rdp_open): Ditto.
1935 2002-11-29 Andreas Schwab <schwab@suse.de>
1937 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1938 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1939 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1940 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1941 read_memory_unsigned_integer instead of read_memory_integer when
1942 dealing with addresses and instruction opcodes.
1943 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1944 (m68k_linux_frame_saved_pc): Likewise.
1946 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1948 * stack.c (selected_frame, select_frame): Move from here ...
1949 * frame.c (selected_frame, select_frame): ... to here. Include
1951 * Makefile.in (frame.o): Update dependencies.
1952 * frame.c (get_selected_frame): New function.
1953 * frame.h (get_selected_frame): Declare.
1954 (deprecated_selected_frame): Rename selected_frame.
1955 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1956 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1957 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1958 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1959 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1960 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1961 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1962 * z8k-tdep.c, cli/cli-cmds.c: Update.
1964 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1966 * frame.h (get_selected_block): Add comments.
1968 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1970 * frame.c (pc_notcurrent): New function.
1971 (find_frame_sal): New function.
1972 * frame.h (find_frame_sal): Declare.
1973 (struct symtab_and_line): Add opaque declaration.
1974 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1976 (frame_info): Ditto.
1977 * ada-lang.c (find_printable_frame): Ditto.
1979 2002-11-28 J. Brobecker <brobecker@gnat.com>
1981 * configure.in: Check that the pthdebug library is recent enough
1982 before enabling thread support on native AiX.
1983 * configure: Regenerate.
1985 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1986 from the list of object files as it is now appended by configure
1987 if thread support is enabled.
1988 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1989 if thread support is enabled.
1991 2002-11-28 Andrew Cagney <cagney@redhat.com>
1993 * stack.c (get_selected_block): In-line get_current_block.
1994 * frame.h (get_current_block): Delete declaration.
1995 * blockframe.c (get_current_block): Delete function.
1997 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1999 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
2000 USE_GENERIC_DUMMY_FRAMES.
2001 * gdbarch.h, gdbarch.c: Regenerate.
2002 * valops.c, frame.c: Update.
2003 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
2004 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
2005 * config/pa/tm-hppa.h, blockframe.c: Update.
2006 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
2007 * m68k-tdep.c, alpha-tdep.c: Ditto.
2009 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
2010 * mips-tdep.c: Ditto.
2012 2002-11-27 Andrew Cagney <ac131313@redhat.com>
2014 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
2015 (USE_GENERIC_DUMMY_FRAMES): Default to true.
2016 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
2017 * gdbarch.c, gdbarch.h: Re-generate.
2018 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
2019 (CALL_DUMMY_LOCATION): Delete macro definition.
2020 (PC_IN_CALL_DUMMY): Delete macro definitions.
2022 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
2023 default is already generic_pc_in_call_dummy.
2024 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2025 * v850-tdep.c (v850_gdbarch_init): Ditto.
2026 * sh-tdep.c (sh_gdbarch_init): Ditto.
2027 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2028 * mips-tdep.c (mips_gdbarch_init): Ditto.
2029 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2031 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2032 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2033 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2034 * avr-tdep.c (avr_gdbarch_init): Ditto.
2036 * arm-tdep.c (arm_gdbarch_init): Do not set
2037 use_generic_dummy_frames, default is already 1.
2038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2039 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2040 * v850-tdep.c (v850_gdbarch_init): Ditto.
2041 * sh-tdep.c (sh_gdbarch_init): Ditto.
2042 * s390-tdep.c (s390_gdbarch_init): Ditto.
2043 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2044 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2045 * mips-tdep.c (mips_gdbarch_init): Ditto.
2046 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2047 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2048 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2049 * i386-tdep.c (i386_gdbarch_init): Ditto.
2050 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2051 * frv-tdep.c (frv_gdbarch_init): Ditto.
2052 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2053 * cris-tdep.c (cris_gdbarch_init): Ditto.
2054 * avr-tdep.c (avr_gdbarch_init): Ditto.
2056 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2057 call_dummy_location, default is already AT_ENTRY_POINT.
2058 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2059 * v850-tdep.c (v850_gdbarch_init): Ditto.
2060 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2061 * sh-tdep.c (sh_gdbarch_init): Ditto.
2062 * s390-tdep.c (s390_gdbarch_init): Ditto.
2063 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2064 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2065 * mips-tdep.c (mips_gdbarch_init): Ditto.
2066 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2067 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2068 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2069 * i386-tdep.c (i386_gdbarch_init): Ditto.
2070 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2071 * frv-tdep.c (frv_gdbarch_init): Ditto.
2072 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2073 * cris-tdep.c (cris_gdbarch_init): Ditto.
2074 * avr-tdep.c (avr_gdbarch_init): Ditto.
2075 * arm-tdep.c (arm_gdbarch_init): Ditto.
2076 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2078 2002-11-28 Andrew Cagney <cagney@redhat.com>
2080 * frame.h: Update comments on set_current_frame, create_new_frame,
2081 flush_cached_frames, reinit_frame_cache, select_frame and
2084 2002-11-27 Andrew Cagney <cagney@redhat.com>
2086 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2087 deprecated pc_in_call_dummy function.
2088 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2089 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2090 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2091 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2092 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2094 2002-11-26 Martin M. Hunt <hunt@redhat.com>
2096 * Makefile.in: Remove Tix dependencies.
2097 * acinclude.m4: Ditto.
2098 * aclocal.m4: Ditto.
2099 * configure.in: Ditto.
2100 * configure: Regenerated.
2102 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2104 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2105 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2106 * gdbarch.c: Re-generate.
2108 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2110 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2111 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2112 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2113 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2114 pc_in_call_dummy_at_entry_point.
2115 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2116 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2117 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2118 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2119 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2120 pc_in_call_dummy_on_stack.
2121 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2122 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2123 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2124 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2125 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2127 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2129 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2130 pc_in_call_dummy_before_text_end
2131 (deprecated_pc_in_call_dummy_after_text_end): Rename
2132 pc_in_call_dummy_after_text_end.
2133 (deprecated_pc_in_call_dummy_on_stack): Rename
2134 pc_in_call_dummy_on_stack.
2135 (deprecated_pc_in_call_dummy_at_entry_point): Rename
2136 pc_in_call_dummy_at_entry_point.
2137 * m68k-tdep.c (m68k_gdbarch_init): Update.
2138 * s390-tdep.c (s390_gdbarch_init): Update.
2139 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2140 * vax-tdep.c (vax_gdbarch_init): Update.
2141 * sparc-tdep.c (sparc_gdbarch_init): Update.
2142 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2143 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2144 * i386-tdep.c (i386_gdbarch_init): Update.
2145 * frv-tdep.c (frv_gdbarch_init): Update.
2146 * cris-tdep.c (cris_gdbarch_init): Update.
2147 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2148 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2149 (deprecated_pc_in_call_dummy_after_text_end)
2150 (deprecated_pc_in_call_dummy_on_stack)
2151 (deprecated_pc_in_call_dummy_at_entry_point): Update.
2152 * alpha-tdep.c (alpha_gdbarch_init): Update.
2154 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
2156 * acconfig.h (HAVE_PREAD64): Add.
2157 * configure.in: Check for pread64.
2158 * config.in: Regenerated.
2159 * configure: Regenerated.
2160 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2161 * linux-proc.c (linux_proc_xfer_memory): New function.
2162 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2164 2002-11-25 David Carlton <carlton@math.stanford.edu>
2166 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2169 2002-11-25 Andrew Cagney <ac131313@redhat.com>
2171 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2172 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2174 2002-11-25 Jim Blandy <jimb@redhat.com>
2176 * symfile.c (init_objfile_sect_indices): New function.
2177 (default_symfile_offsets): Move the section-index-initializing
2178 stuff into init_objfile_sect_indices, and call that.
2180 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2181 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2183 * symfile.c (syms_from_objfile): Adjust indentation.
2185 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2186 || info_verbose isn't true.
2188 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2190 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2191 default to get_frame_base.
2192 * gdbarch.h, gdbarch.c: Regenerate.
2193 * arch-utils.c (default_frame_address): Delete function.
2194 * arch-utils.h (default_frame_address): Delete declaration
2196 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2198 * varobj.c (find_frame_addr_in_frame_chain):
2199 Use get_frame_base instead of FRAME_FP,
2202 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2204 * frame.h (FRAME_FP): Delete macro.
2205 (get_frame_base): New function declaration.
2206 * frame.c (get_frame_base): New function.
2207 (get_frame_id): Use ->frame.
2208 (frame_find_by_id): Rewrite to use get_frame_id.
2209 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2210 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2211 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2212 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2213 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2214 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2215 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2217 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2219 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2221 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2223 * frame.c (set_unwind_by_pc): Revert change below, use
2225 (get_prev_frame): Ditto.
2227 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2229 * dummy-frame.c (pc_in_dummy_frame): New function.
2230 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2231 (find_dummy_frame): Update comment.
2232 (generic_pop_current_frame): Use get_frame_type.
2233 * dummy-frame.h (pc_in_dummy_frame): Declare.
2234 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2235 (create_new_frame): Use pc_in_dummy_frame.
2236 (get_prev_frame): Use pc_in_dummy_frame.
2237 (frame_saved_regs_register_unwind): Use get_prev_frame.
2238 (deprecated_generic_get_saved_register): Use get_prev_frame.
2240 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2242 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2244 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2245 (varobj_create): Note that frame ID should be used.
2246 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2248 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2250 * breakpoint.c: Include "gdb_assert.h".
2251 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2253 * Makefile.in (breakpoint.o): Update dependencies.
2254 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2255 deprecated_frame_in_dummy.
2256 * stack.c (print_frame_info_base): Ditto.
2257 (frame_info): Ditto.
2258 (print_frame_info_base): Ditto. Delete dead code.
2260 2002-11-23 Andreas Schwab <schwab@suse.de>
2262 * Makefile.in (m68k_tdep_h): Define.
2263 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2264 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2265 * m68k-tdep.c: Move register number enum ...
2266 * m68k-tdep.h: ... to this new file and rename the constants from
2267 E_* to M68K_*. All uses changed.
2268 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2269 * abug-rom.c: Include "m68k-tdep.h". Use
2270 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2271 * cpu32bug-rom.c: Likewise.
2272 * dbug-rom.c: Likewise.
2273 * m68k-tdep.c: Likewise.
2274 * m68klinux-nat.c: Likewise.
2275 * remote-est.c: Likewise.
2276 * rom68k-rom.c: Likewise.
2277 * config/m68k/tm-linux.h: Likewise.
2279 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2281 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2282 dummy frame initialization code.
2283 * mips-tdep.c (mips_gdbarch_init): Ditto.
2285 2002-11-22 Christopher Faylor <cgf@redhat.com>
2287 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2290 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2292 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2293 to default_frame_address.
2294 * gdbarch.h, gdbarch.c: Re-generate.
2296 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2297 or frame_locals_address to default_frame_address.
2298 * m68k-tdep.c (m68k_gdbarch_init): Update.
2299 * i386-tdep.c (i386_gdbarch_init): Update.
2300 * frv-tdep.c (frv_gdbarch_init): Update.
2301 * sh-tdep.c (sh_gdbarch_init): Update.
2302 * v850-tdep.c (v850_gdbarch_init): Update.
2303 * sparc-tdep.c (sparc_gdbarch_init): Update.
2304 * mips-tdep.c (mips_gdbarch_init): Update.
2305 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2306 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2307 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2309 * cris-tdep.c (cris_frame_args_address): Delete function.
2310 (cris_frame_locals_address): Delete function.
2311 (cris_gdbarch_init): Do not set frame_args_address or
2312 frame_locals_address.
2314 2002-11-22 Michael Snyder <msnyder@redhat.com>
2316 * thread-db.c (thread_db_load): Tell the user what's going on
2317 if dlopen fails on libthread_db.
2319 2002-11-23 Andreas Schwab <schwab@suse.de>
2321 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2322 invariant return values.
2324 2002-11-22 Andreas Schwab <schwab@suse.de>
2326 * valops.c (value_slice): Move declaration of `offset' to avoid
2329 2002-11-22 Christopher Faylor <cgf@redhat.com>
2331 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2332 (struct so_stuff): Add end_addr field.
2333 (register_loaded_dll): Calculate and store end address of loaded dll.
2334 (solib_address): New function.
2335 (child_solib_loaded_library_pathname): Pass carefully constructed
2336 section info to safe_symbol_file_add rather than ignoring it.
2337 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2339 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2340 (child_create_inferior): Fix a compiler warning.
2341 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2342 (solib_address): Declare new function.
2344 2002-11-22 Andreas Schwab <schwab@suse.de>
2346 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2349 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2351 * maint.c (_initialize_maint_cmds): Fix typo. From
2352 Francesco Potorti` <pot@gnu.org>.
2354 2002-11-21 Andrew Cagney <cagney@redhat.com>
2356 * mips-tdep.c (mips_dump_tdep): Delete references to
2357 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2358 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2359 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2360 * printcmd.c (build_address_symbolic): Delete calls to
2361 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2362 (address_info): Ditto.
2365 2002-11-19 Klee Dienes <kdienes@apple.com>
2366 Adam Fedor <fedor@gnu.org>
2368 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2369 the ability to explicitly specify the quote characters and word
2370 break characters; if NULL is specified for either, use the old
2371 behavior of using the characters used by the completer.
2372 (skip_chars): New function. Convenience wrapper around
2373 skip_quoted_chars to provide the original skip_chars behavior.
2374 * completer.h (skip_quoted_chars): Add prototype.
2376 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2378 Problems reported by Paul Eggert.
2379 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2381 2002-11-19 Andreas Schwab <schwab@suse.de>
2383 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2384 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2385 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2386 (m68k_linux_frame_saved_pc): Move to ...
2387 * m68klinux-tdep.c: ... here. New file.
2388 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2389 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2391 2002-11-19 Adam Fedor <fedor@gnu.org>
2393 * objc-exp.y: Revert to old skip_quoted usage.
2395 2002-11-19 Adam Fedor <fedor@gnu.org>
2397 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2398 (objc_lang_h): Define.
2399 (YYFILES): Add objc-exp.tab.c.
2400 (local-maintainer-clean): Remove objc-exp.tab.c.
2401 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2403 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2405 * p-exp.y (typecast rule): Add automatic dereference of
2406 pascal classes if needed.
2407 (THIS): Set current_type.
2408 Automatically dereference pascal classes.
2409 (typebase rule): Add ^typebase recognition.
2411 2002-11-18 Adam Fedor <fedor@gnu.org>
2413 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2414 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2415 (op_name): Handle OP_OBJC_SELF.
2416 * Makefile.in (expprint.o): Add additional depends.
2418 2002-11-18 Adam Fedor <fedor@gnu.org>
2420 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2421 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2422 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2423 * objc-exp.y: Likewise.
2425 2002-11-18 Adam Fedor <fedor@gnu.org>
2427 * gdb/parser-defs.h: (struct objc_class_str): New structure
2428 for parsing ObjC classes.
2430 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2432 * stack.c (frame_relative_level): Copy function from here ...
2433 * frame.c (frame_relative_level): ...to here.
2435 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2437 * frame.h (enum frame_type): Define.
2438 (get_frame_type): Declare.
2439 (struct frame_info): Add field `type'. Delete field
2440 signal_handler_caller.
2441 (deprecated_set_frame_signal_handler_caller): Declare.
2442 * frame.c (get_frame_type): New function.
2443 (deprecated_set_frame_type): New function.
2444 (create_new_frame): Set the frame's type.
2445 (get_prev_frame): Similar.
2446 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2447 * s390-tdep.c: Ditto.
2448 * m68klinux-nat.c: Ditto.
2449 * ns32k-tdep.c: Ditto.
2450 * x86-64-linux-tdep.c: Ditto.
2451 * vax-tdep.c: Ditto.
2452 * rs6000-tdep.c: Ditto.
2453 * ppc-linux-tdep.c: Ditto.
2454 * i386-interix-tdep.c: Ditto.
2455 * mips-tdep.c: Ditto.
2456 * m68k-tdep.c: Ditto.
2457 * hppa-tdep.c: Ditto.
2458 * ia64-tdep.c: Ditto.
2459 * cris-tdep.c: Ditto.
2460 * arm-tdep.c: Ditto.
2461 * alpha-tdep.c: Ditto.
2462 * i386-tdep.c: Ditto.
2464 * ada-lang.c: Ditto.
2465 * blockframe.c: Update.
2466 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2467 deprecated_set_frame_type instead of signal_handler_caller.
2468 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2469 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2470 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2472 2002-11-18 Klee Dienes <kdienes@apple.com>
2474 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2476 2002-11-18 Klee Dienes <kdienes@apple.com>
2478 * buildsym.c (pop_context): Add comment.
2480 2002-11-18 Klee Dienes <kdienes@apple.com>
2482 * buildsym.h (pop_context): Convert to function, defined in
2484 * buildsym.c: Include gdb_assert.h.
2485 (pop_context): Implement as C function. Add check for stack
2487 * dbxread.c (process_one_symbol): Complain and stop processing
2488 that symbol if we are already at the top of the context stack for
2489 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2490 when processing N_RBRAC.
2492 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2494 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2496 (struct target_waitstatus): Add opaque definition.
2497 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2498 * exec.c (init_exec_ops): Likewise.
2499 * fork-child.c (clone_and_follow_inferior): Remove.
2500 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2501 * inferior.h (clone_and_follow_inferior): Remove prototype.
2502 * infrun.c (follow_fork_mode_both): Remove.
2503 (follow_fork_mode_kind_names): Remove commented out "both".
2504 (follow_inferior_fork): Remove follow_fork_mode_both support.
2505 * inftarg.c (child_clone_and_follow_inferior): Remove.
2506 (child_post_follow_inferior_by_clone): Remove.
2507 (init_child_ops): Don't set to_clone_and_follow_inferior
2508 or to_post_follow_inferior_by_clone.
2509 * target.c (default_clone_and_follow_inferior): Remove.
2510 (cleanup_target): Don't set to_clone_and_follow_inferior
2511 or to_post_follow_inferior_by_clone.
2512 (find_default_clone_and_follow_inferior): Remove.
2513 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2514 (debug_to_clone_and_follow_inferior): Remove.
2515 (debug_to_post_follow_inferior_by_clone): Remove.
2516 (setup_target_debug): Don't set to_clone_and_follow_inferior
2517 or to_post_follow_inferior_by_clone.
2518 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2519 and to_post_follow_inferior_by_clone.
2520 (child_clone_and_follow_inferior): Remove prototype.
2521 (child_post_follow_inferior_by_clone): Remove prototype.
2522 (target_clone_and_follow_inferior): Remove macro.
2523 (target_post_follow_inferior_by_clone): Remove macro.
2524 (find_default_clone_and_follow_inferior): Remove prototype.
2526 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2528 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2529 inferior_has_vforked, and inferior_has_execd instead of
2530 target_has_forked, target_has_vforked, and target_has_execd.
2531 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2532 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2533 (CHILD_WAIT): Define.
2534 (child_wait): Add prototype.
2535 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2537 (hpux_has_vforked): Likewise, from child_has_vforked.
2538 (hpux_has_execd): Likewise, from child_has_execd.
2539 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2540 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2541 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2542 and hpux_has_syscall_event instead of the target hooks.
2543 * infrun.c (inferior_has_forked, inferior_has_vforked)
2544 (inferior_has_execd): New functions.
2545 * inftarg.c (not_same_real_pid): Remove.
2546 (child_wait): Remove references to not_same_real_pid,
2547 target_has_forked, target_has_vforked, target_has_execd,
2548 and target_has_syscall_event.
2549 (child_has_forked, child_has_vforked, child_has_execd)
2550 (child_has_syscall_event): Remove.
2551 (init_child_ops): Remove references to child_has_forked,
2552 child_has_vforked, child_has_execd, and child_has_syscall_event.
2553 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2554 (hpux_has_vforked): Likewise, from child_has_vforked.
2555 (hpux_has_execd): Likewise, from child_has_execd.
2556 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2557 * target.c (cleanup_target): Remove references to
2558 to_has_forked, to_has_vforked, to_has_execd, and
2559 to_has_syscall_event.
2560 (update_current_target): Likewise.
2561 (setup_target_debug): Likewise.
2562 (debug_to_has_forked): Remove.
2563 (debug_to_has_vforked): Remove.
2564 (debug_to_has_execd): Remove.
2565 (debug_to_has_syscall_event): Remove.
2566 * target.h (struct target_ops): Remove to_has_forked.
2567 to_has_vforked, to_has_execd, and to_has_syscall_event.
2568 (child_has_forked, child_has_vforked, child_has_execd)
2569 (child_has_syscall_event): Remove prototypes.
2570 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2572 (target_has_forked, target_has_vforked, target_has_execd)
2573 (target_has_syscall_event): Remove macros.
2575 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2577 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2578 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2579 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2580 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2581 * target.c (cleanup_target): Remove reference to
2582 to_can_follow_vfork_prior_to_exec.
2583 (update_current_target): Likewise.
2584 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2585 (setup_target_debug): Remove reference to
2586 to_can_follow_vfork_prior_to_exec.
2587 * target.h (struct target_ops): Remove
2588 to_can_follow_vfork_prior_to_exec.
2589 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2590 (target_can_follow_vfork_prior_to_exec): Remove definition.
2591 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2593 * infrun.c (follow_vfork_when_exec): Remove.
2594 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2595 (follow_exec): Likewise.
2596 (handle_inferior_event): Likewise.
2597 (keep_going): Likewise.
2599 2002-11-15 Andrew Cagney <cagney@redhat.com>
2601 * frame.c (generic_unwind_get_saved_register): Make static.
2602 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2603 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2604 defaults to generic_unwind_get_saved_register.
2605 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2606 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2607 * frv-tdep.c (frv_gdbarch_init): Ditto.
2608 * i386-tdep.c (i386_gdbarch_init): Ditto.
2609 * s390-tdep.c (s390_gdbarch_init): Ditto.
2610 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2611 * v850-tdep.c (v850_gdbarch_init): Ditto.
2612 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2613 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2614 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2616 2002-11-15 Andrew Cagney <cagney@redhat.com>
2618 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2621 2002-11-15 Andrew Cagney <cagney@redhat.com>
2623 * frame.h (sigtramp_saved_pc): Delete declaration.
2624 * blockframe.c (sigtramp_saved_pc): Delete function.
2625 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2626 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2627 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2628 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2630 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2632 * frame.c (frame_pc_unwind): New function.
2633 (frame_saved_regs_pc_unwind): New function.
2634 (frame_register_unwind): Pass unwind_cache instead of
2635 register_unwind_cache.
2636 (set_unwind_by_pc): Add unwind_pc parameter, set.
2637 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2638 (get_prev_frame): Ditto.
2639 * frame.h (frame_pc_unwind_ftype): Declare.
2640 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2641 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2642 (frame_pc_unwind): Declare.
2643 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2644 (struct dummy_frame): Add comment mentioning that values are for
2646 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2647 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2648 (generic_file_frame_chain_valid): Ditto.
2649 * stack.c (frame_info): Ditto.
2651 2002-11-15 David Carlton <carlton@math.stanford.edu>
2653 * linespec.c (locate_first_half): New function.
2654 (decode_line_1): Move code into locate_first_half.
2656 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2658 * complaints.h: Add comment explaining how to eliminate a
2659 deprecated_complain call.
2660 * complaints.h: Fix spelling errors.
2662 2002-11-15 David Carlton <carlton@math.stanford.edu>
2664 * printcmd.c: Remove #include "disasm.h".
2666 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2668 * frame.h: Move the most relevant interface functions to the start
2671 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2673 * regcache.h (deprecated_registers): Rename registers.
2674 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2675 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2676 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2677 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2678 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2679 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2680 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2681 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2682 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2683 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2684 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2685 * v850ice.c: Update.
2687 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2689 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2692 2002-11-13 Andrew Cagney <cagney@redhat.com>
2694 * regcache.h (deprecated_read_register_bytes): Rename
2695 read_register_bytes.
2696 (deprecated_write_register_bytes): Rename write_register_bytes.
2697 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2698 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2699 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2700 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2701 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2702 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2703 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2704 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2705 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2706 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2707 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2708 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2709 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2710 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2712 2002-11-13 Jim Blandy <jimb@redhat.com>
2714 * findvar.c (read_var_value): Doc fix.
2716 2002-11-13 Andrew Cagney <cagney@redhat.com>
2718 * regcache.c (struct regcache): Replace passthough_p with
2720 (regcache_xmalloc): Initialize readonly_p.
2721 (build_regcache): Initialize readonly_p.
2722 (regcache_save): New function.
2723 (regcache_restore): New function.
2724 (regcache_cpy): Re-implement using regcache_save and
2726 (regcache_raw_read): Update.
2727 (regcache_cooked_read): When a read-only cache, checked for cached
2728 pseudo register values.
2729 (regcache_raw_write): Assert that the cache is not read-only.
2730 Remove code handling a non-passthrough cache.
2731 * regcache.h (regcache_save): Declare.
2732 (regcache_restore): Declare.
2734 2002-11-13 Andrew Cagney <cagney@redhat.com>
2736 * regcache.c (struct regcache_descr): Add fields
2737 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2738 (init_legacy_regcache_descr): Compute the size of a cooked
2739 register cache and then assign that to sizeof_raw_registers. Set
2740 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2741 (init_legacy_regcache_descr): Ditto.
2743 2002-11-13 Andrew Cagney <cagney@redhat.com>
2745 * regcache.c (register_buffer): Move to near start of file, update
2747 (regcache_raw_read): Use.
2748 (regcache_raw_write): Use.
2749 (struct regcache): Rename raw_registers to registers and
2750 raw_register_valid_p to register_valid_p.
2751 (regcache_xmalloc): Update.
2752 (regcache_xfree): Update.
2753 (register_buffer): Update.
2754 (regcache_cpy): Update.
2755 (regcache_cpy_no_passthrough): Update.
2756 (regcache_valid_p): Update.
2757 (deprecated_grub_regcache_for_registers): Update.
2758 (deprecated_grub_regcache_for_register_valid): Update.
2759 (set_register_cached): Update.
2760 (regcache_raw_write): Update.
2762 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2764 * p-exp.y (name_not_typename): Use copy_name to
2765 set current_type variable for fields of THIS.
2767 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2769 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2770 * monitor.c (init_base_monitor_ops): Likewise.
2771 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2772 * remote-array.c (init_array_ops): Likewise.
2773 * remote-e7000.c (init_e7000_ops): Likewise.
2774 * remote-es.c (init_es1800_ops): Likewise.
2775 (init_es1800_child_ops): Likewise.
2776 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2777 * remote-sim.c (init_gdbsim_ops): Likewise.
2778 * remote-st.c (init_st2000_ops): Likewise.
2779 * sol-thread.c (init_sol_core_ops): Likewise.
2780 (init_sol_thread_ops): Likewise.
2781 * v850ice.c (init_850ice_ops): Likewise.
2782 * win32-nat.c (init_child_ops): Likewise.
2783 * wince.c (init_child_ops): Likewise.
2785 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2787 * utils.c (gdb_realpath): Make rp a constant pointer.
2789 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2791 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2792 a constant buffer; cannonicalize_file_name(); realpath() with a
2793 pathconf() defined buffer, xstrdup().
2795 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2797 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2798 to hang2.C; hang3.c to hang3.C.
2800 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2802 * findvar.c (read_var_value): Reenable TLS code.
2804 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2805 Jim Blandy <jimb@redhat.com>
2807 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2808 * target.c (update_current_target): Add
2809 to_get_thread_local_address.
2810 * target.h (to_get_thread_local_address): Export.
2811 (target_get_thread_local_address): Define.
2812 (target_get_thread_local_address_p): Define.
2813 * thread-db.c: Include solib-svr4.h.
2814 (td_thr_tls_get_addr_p): Define.
2815 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2816 (thread_db_get_thread_local_address): New function.
2817 (init_thread_db_ops): Initialize to_get_thread_local_address.
2818 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2819 * configure: Regenerate.
2820 * config.in: Regenerate.
2822 2002-11-11 David Carlton <carlton@math.stanford.edu>
2824 * linespec.c (set_flags): New function.
2825 (decode_line_1): Move code into set_flags.
2827 2002-11-11 David Carlton <carlton@math.stanford.edu>
2829 * linespec.c (decode_line_1): Move chunks of code to separate
2831 (initialize_defaults): New function.
2832 (decode_indirect): New function.
2834 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2836 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2837 instead of void_code_ptr.
2838 (sigtramp_saved_pc): Ditto.
2840 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2843 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2845 * gdbtypes.h (struct main_type): Move artificial flag out of
2846 loc. New member of ``struct field'' named static_kind. Reduce
2847 overloaded meaning of bitsize.
2848 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2849 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2850 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2852 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2854 (template_to_fixed_record_type, template_to_static_fixed_type)
2855 (to_record_with_fixed_variant_part): Likewise.
2856 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2857 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2858 * dwarfread.c (struct_type, enum_type): Likewise.
2859 * hpread.c (hpread_read_enum_type)
2860 (hpread_read_function_type, hpread_read_doc_function_type)
2861 (hpread_read_struct_type): Likewise.
2862 * mdebugread.c (parse_symbol): Likewise.
2864 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2866 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2867 * stack.c (print_frame_info_base): Update.
2868 (print_frame_info_base, frame_info): Update.
2869 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2870 (sparc_frame_saved_pc): Update.
2871 * ada-lang.c (find_printable_frame): Update.
2872 * breakpoint.c (deprecated_frame_in_dummy): Update.
2874 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2876 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2878 (regmap): Extend to cover all registers.
2879 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2880 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2882 (fetch_register, sore_register): Simplify.
2883 (old_fetch_inferior_registers, old_store_inferior_registers):
2885 (cannot_fetch_register, cannot_store_register): Change
2886 implementation to use regmap array to decide which registers
2887 cannot be fetched/stored. This removes $orig_eax from the
2888 registers that cannot be fetched/stored.
2889 (fetch_inferior_registers): Call fetch_register directly instead
2890 of calling old_fetch_inferior_registers.
2891 (store_inferior_registers): Call store_register directly instead
2892 of calling old_store_inferior_registers.
2893 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2894 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2895 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2897 2002-11-09 Klee Dienes <kdienes@apple.com>
2899 * i387-tdep.c (i387_supply_register): When called with NULL as a
2900 buffer, mark the register as not provided (to mirror the behavior
2901 of supply_register).
2902 (i387_supply_fxsave): Ditto.
2903 (i387_supply_fsave): Ditto (inherits the behavior from
2904 i387_supply_register).
2906 2002-11-09 Klee Dienes <kdienes@apple.com>
2908 * blockframe.c (sigtramp_saved_pc): Use
2909 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2910 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2911 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2913 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2915 * frame.c (get_prev_frame): Test prev_p to identify a previously
2916 unwound frame. Initialize prev_p.
2917 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2920 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2922 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2923 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2924 more comments. Zap dead code.
2926 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2928 * infcmd.c (print_vector_info, print_float_info): Move code that
2929 checks whether the target has any registers and whether there is a
2930 selected frame up, such that it is also used if a target provides
2931 multi-arch definitions of these functions.
2933 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2935 * Makefile.in (DESTDIR): Define.
2936 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2939 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2940 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2942 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2944 * i386-linux-tdep.c: Include "reggroups.h".
2945 (i386_linux_register_reggroup_p): New function.
2946 (i386_linux_init_abi): Set register_reggroup_p to
2947 i386_linux_register_reggroup_p.
2948 * i386-tdep.h (i386_register_reggroup_p): Declare.
2949 * i386-tdep.c: Include "reggroups.h".
2950 (i386_init_reggroups): New function.
2951 (i386_add_reggroups): New function.
2952 (i386_register_reggroup_p): New function.
2953 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2954 (_initialize_i386_tdep): Call i386_init_reggroups.
2955 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2958 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2960 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2961 request that's available in *BSD.
2963 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2965 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2968 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2970 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2971 * dummy-frame.c (find_dummy_frame): Rename
2972 generic_find_dummy_frame, make static. Return the dummy frame
2973 instead of the regcache.
2974 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2975 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2976 (dummy_frame_register_unwind): Rename
2977 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2978 * dummy-frame.h (dummy_frame_register_unwind): Rename
2979 generic_call_dummy_register_unwind.
2981 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2983 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2984 except the inclusion of "i386/tm-i386.h", to...
2985 * config/i386/nm-i386v42mp.h: ...here.
2986 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2988 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2990 * Makefile.in (frame.o): Update dependencies.
2991 * blockframe.c (current_frame, frame_obstack_alloc)
2992 (frame_saved_regs_zalloc, get_current_frame)
2993 (set_current_frame, create_new_frame)
2994 (set_unwind_by_pc, get_next_frame)
2995 (flush_cached_frames, reinit_frame_cache)
2996 (frame_saved_regs_register_unwind)
2997 (deprecated_generic_get_saved_register)
2998 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2999 (_initialize_blockframe): Move frame code from here...
3000 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
3001 "annotate.h" and "dummy-frame.h".
3002 (_initialize_frame): New function.
3004 2002-11-08 Jim Blandy <jimb@redhat.com>
3006 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
3007 when we finish a function a context.
3008 * buildsym.h (outermost_context_p): New macro.
3009 (Bug analyzed by David Edelsohn.)
3011 2002-11-08 Andrew Cagney <ac131313@redhat.com>
3013 * blockframe.c: Include "dummy-frame.h".
3014 (struct dummy_frame, dummy_frame_stack)
3015 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
3016 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
3017 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
3018 (generic_save_call_dummy_addr, generic_pop_current_frame)
3019 (generic_pop_dummy_frame, generic_fix_call_dummy)
3020 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
3021 dummy frame code from here...
3022 * dummy-frame.c: ...to here. New file.
3023 * dummy-frame.h: New file.
3024 (generic_call_dummy_register_unwind): Declare.
3025 (generic_find_dummy_frame): Declare.
3026 * Makefile.in (SFILES): Add dummy-frame.c.
3027 (dummy-frame.o): Specify dependencies.
3028 (dummy_frame_h): Define.
3029 (COMMON_OBS): Add dummy-frame.o.
3030 (blockframe.o): Update dependencies.
3032 2002-11-08 Jim Blandy <jimb@redhat.com>
3034 * dwarf2read.c (read_func_scope): Restore local_symbols and
3035 param_symbols after we finish the function context. (Based on a
3036 patch from David Edelsohn.)
3038 2002-11-08 David Carlton <carlton@math.stanford.edu>
3040 * linespec.c (symbol_found): New function.
3041 (minsym_found): New function.
3042 (decode_line_1): Separate out some code into separate functions.
3044 2002-11-08 Joel Brobecker <brobecker@gnat.com>
3046 * i386-tdep.c (i386_frameless_signal_p): Make non static for
3047 the benefit of the interix target.
3048 * i386-tdep.h (i386_frameless_signal_p): Declare.
3050 2002-11-08 Andrew Cagney <ac131313@redhat.com>
3052 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
3053 declaration that snuck in from change below.
3055 2002-11-06 Andrew Cagney <cagney@redhat.com>
3057 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
3059 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
3060 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
3061 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
3062 (i386_mxcsr_regnum_p): new function. Use instead of
3064 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
3065 (i386_sse_regnum_p): Declare.
3066 (i386_mxcsr_regnum_p): Declare.
3067 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
3068 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
3069 (IS_FP_REGNUM): Update definition.
3070 (IS_FPU_CTRL_REGNUM): Update definition..
3071 (IS_SSE_REGNUM): Update definition..
3072 * i386v-nat.c (register_u_addr): Update.
3073 * go32-nat.c (fetch_register): Update.
3074 (store_register): Update.
3076 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3078 Preparation work to convert the hppa targets to multiarch partial.
3080 * hppa-tdep.c: Add new functions replacing macro bodies from
3081 config/pa/tm-hppa.h. These function will be used to initialize
3082 the gdbarch structure. Import some comments from tm-hppa.h,
3083 and place them where appropriate, to avoid loosing them when
3084 we cleanup this file.
3085 (hppa_reg_struct_has_addr): New function.
3086 (hppa_inner_than): New function.
3087 (hppa_stack_align): New function.
3088 (hppa_pc_requires_run_before_use): New function.
3089 (hppa_instruction_nullified): New function.
3090 (hppa_register_byte): New function.
3091 (hppa_register_virtual_type): New function.
3092 (hppa_store_struct_return): New function.
3093 (hppa_cannot_store_register): New function.
3094 (hppa_frame_args_address): New function.
3095 (hppa_frame_locals_address): New function.
3096 (hppa_smash_text_address): New function.
3097 (hppa_coerce_float_to_double): New function. Requires the inclusion
3100 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3102 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3103 gdbarch-eligible macro to a call to the new associated function
3104 created in hppa-tdep.c.
3105 (INNER_THAN): Likewise.
3106 (STACK_ALIGN): Likewise.
3107 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3108 (INSTRUCTION_NULLIFIED): Likewise.
3109 (REGISTER_BYTE): Likewise.
3110 (REGISTER_VIRTUAL_TYPE): Likewise.
3111 (STORE_STRUCT_RETURN): Likewise.
3112 (CANNOT_STORE_REGISTER): Likewise.
3113 (FRAME_ARGS_ADDRESS): Likewise.
3114 (FRAME_LOCALS_ADDRESS): Likewise.
3115 (SMASH_TEXT_ADDRESS): Likewise.
3116 (COERCE_FLOAT_TO_DOUBLE): Likewise.
3117 (ABOUT_TO_RETURN): Delete, as no longer used.
3119 2002-11-07 Fernando Nasser <fnasser@redhat.com>
3121 * printcmd.c (disassemble_command): Remove obsolete function.
3122 (_initialize_printcmd): Do not create disassemble command here.
3123 * cli/cli-cmds.c (disassemble_command): New function. Implements
3124 disassemble command.
3125 (init_cli_cmds): Create disassemble command here instead.
3127 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3129 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3131 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3133 * regcache.h (regcache_cooked_read_using_offset_hack)
3134 (regcache_cooked_write_using_offset_hack): Delete declarations.
3135 (register_changed): Delete declaration.
3136 * regcache.c (regcache_cooked_read_using_offset_hack)
3137 (regcache_cooked_write_using_offset_hack): Delete functions.
3138 (cooked_xfer_using_offset_hack): Delete function.
3139 (register_changed): Delete function.
3141 2002-11-07 Jim Blandy <jimb@redhat.com>
3143 * macroscope.c: #include "complaints.h".
3144 (sal_macro_scope): Cope with filenames that appear in the symtabs,
3145 but not in the macro table.
3146 * Makefile.in (macroscope.o): Record dependency.
3148 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3150 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3152 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3154 * regcache.c (deprecated_registers_fetched): Update.
3155 * regcache.h (deprecated_registers_fetched): Rename
3157 * remote-vxsparc.c (vx_read_register): Update.
3158 * remote-vxmips.c (vx_read_register): Update.
3159 * remote-vx68.c (vx_read_register): Update.
3160 * irix5-nat.c (fetch_core_registers): Update.
3161 * mipsm3-nat.c (fetch_inferior_registers): Update.
3162 * sun3-nat.c (fetch_inferior_registers): Update.
3163 * symm-nat.c (fetch_inferior_registers): Update.
3164 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3165 (fetch_core_registers): Update.
3166 (fetch_kcore_registers): Update.
3167 * mips-nat.c (fetch_inferior_registers): Update.
3168 * corelow.c (get_core_registers): Update.
3169 * a68v-nat.c (fetch_inferior_registers): Update.
3171 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3173 Put in place the framework necessary for multiarching the hppa targets.
3174 * hppa-tdep.c (hppa_gdbarch_init): New function.
3175 (hppa_dump_tdep): New function.
3176 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3177 tdep structure dumper.
3178 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3179 until the multi-arching conversion has partially been completed.
3181 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3183 * valops.c (value_assign): Merge lval_register case into
3184 lval_reg_frame_relative. Use frame_register and
3185 regcache_cooked_write instead of get_saved_register and
3186 write_register_bytes. After flushing the register cache, try to
3187 re-select the selected frame.
3189 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3191 * regcache.h (deprecated_register_valid): Rename register_valid.
3192 * regcache.c: Update.
3193 * ia64-aix-nat.c: Update.
3194 * i386gnu-nat.c: Update.
3195 * alpha-nat.c: Update.
3196 * sparc-nat.c: Update.
3197 * lynx-nat.c: Update.
3198 * remote-mips.c: Update.
3200 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3202 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3203 to end of file, to be more consistent with the pratice followed
3206 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3208 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3209 (print_float_info): Print registers in float_reggroup.
3210 (print_vector_info): Print registers in vector_reggroup.
3211 (default_print_registers_info): When all, print registers in
3212 all_reggroup. Otherwize, print registers in general_reggroup.
3213 (registers_info): Rewrite. Add support for register groups.
3216 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3218 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3220 (symtab_symbol_info): Remove eons old ifdeffed out code.
3221 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3224 2002-11-06 Theodore A. Roth <troth@openavr.org>
3226 * c-exp.y: Add missing semi-colons.
3227 * f-exp.y: Add missing semi-colons.
3228 * m2-exp.y: Add missing semi-colons.
3229 * p-exp.y: Add missing semi-colons.
3230 Add empty action to start rule to avoid a type clash error when
3231 building with bison >= 1.50.
3233 2002-11-06 Jim Blandy <jimb@redhat.com>
3235 * macrotab.h (struct macro_source_file): Doc fix.
3237 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3239 * varobj.c (child_exists, cplus_number_of_children): Change
3240 STREQ macro references to strcmp.
3241 (cplus_name_of_child): Change code to handle the fact that
3242 fields are not necessarily contiguous with regards to their
3243 access control. This is a fix for PR gdb/792.
3245 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3247 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3248 * gdbarch.h, gdbarch.c: Regnerate.
3249 * frame.h (frame_register): Declare.
3250 * frame.c (frame_register): New function.
3251 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3252 GET_SAVED_REGISTER, otherwize call
3253 generic_unwind_get_saved_register.
3254 (frame_register_read): Use frame_register instead of
3257 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3259 From Jim Ingham <jingham@apple.com>:
3260 * event-top.c (gdb_disable_readline): New function.
3261 (_initialize_event_loop): Move comment.
3263 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3265 * event-loop.c (start_event_loop): Add comment.
3268 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3270 * infcmd.c (default_print_registers_info): Do not call
3271 PRINT_REGISTER_HOOK.
3273 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3275 * sparc-tdep.c (sparc_print_register_hook): Make static.
3276 (sparc_print_registers_info): New function.
3277 (sparc_do_registers_info): New function.
3278 (sparclet_print_registers_info): New function.
3279 (sparclet_do_registers_info): New function.
3280 (do_sparc_print_registers_info): New function.
3281 (sparc_print_registers): New static function, clone of infcmd.c's
3282 default_print_registers_info.
3283 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3284 (sparclet_do_registers_info): Declare.
3285 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3286 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3288 (sparc_do_registers_info): Declare.
3289 (PRINT_REGISTER_HOOK): Delete macro.
3290 (sparc_print_register_hook): Delete declaration.
3292 2002-11-05 David Carlton <carlton@math.stanford.edu>
3294 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3296 (lookup_symbol_aux_local): New function.
3297 (lookup_symbol_aux_symtabs): New function.
3298 (lookup_symbol_aux_psymtabs): New function.
3300 2002-11-05 David Carlton <carlton@math.stanford.edu>
3302 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3303 previous values of 'objfile' and 'block'.
3305 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3307 * values.c (value_change_enclosing_type): Set
3308 enclosing_type field correctly also for the case where
3309 more memory needs to be allocated.
3311 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3313 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3316 * i387-tdep.c (i387_print_float_info): Replace calls to
3317 register_read and deprecated_read_register_gen with calls to
3318 frame_register_read, and make the necessary adjustments to the
3321 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3323 * gdbarch.sh (register_reggroup_p): Allow default value.
3324 * gdbarch.h, gdbarch.c: Regenerate.
3326 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3328 * regcache.h: Add coment indicating replacements for deprecated
3331 2002-11-02 Andrew Cagney <cagney@redhat.com>
3333 * reggroups.h, reggroups.c: New files.
3334 * regcache.c: Include "reggroups.h".
3335 (enum regcache_dump_what): Add `regcache_dump_groups'.
3336 (regcache_dump): Contract size of the "Type" column. When
3337 specified, dump the register's groups.
3338 (maintenance_print_register_groups): New function.
3339 (_initialize_regcache): Add command `maint print register-groups'.
3340 * Makefile.in (COMMON_OBS): Add reggroups.o
3341 (SFILES): Add reggroups.c.
3342 (reggroups_h): Define.
3343 (regcache.o, gdbarch.o): Update dependencies.
3344 (reggroups.o): Specify dependencies.
3345 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3346 Add opaque declaration for `struct reggroup' in generated .h file.
3347 Include "reggroups.h" in generated .c file.
3348 gdbarch.h, gdbarch.c: Re-generate.
3350 2002-11-02 Andrew Cagney <cagney@redhat.com>
3352 * regcache.h (deprecated_read_register_gen): Rename
3354 (deprecated_write_register_gen): Rename write_register_gen.
3355 * i387-tdep.c: Update.
3356 * x86-64-linux-nat.c: Update
3358 * thread-db.c: Update.
3359 * win32-nat.c: Update.
3360 * mips-tdep.c: Update.
3361 * d10v-tdep.c: Update.
3362 * cris-tdep.c: Update.
3363 * remote-sim.c: Update.
3364 * remote-rdi.c: Update.
3365 * remote-rdp.c: Update.
3368 * blockframe.c: Update.
3369 * x86-64-tdep.c: Update.
3370 * xstormy16-tdep.c: Update.
3371 * sh-tdep.c: Update.
3372 * s390-tdep.c: Update.
3373 * rs6000-tdep.c: Update.
3374 * sparc-tdep.c: Update.
3375 * i386-tdep.c: Update.
3376 * dwarf2cfi.c: Update.
3377 * regcache.c: Update.
3379 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3381 New interix-specific files:
3382 * config/i386/nm-interix.h: New file.
3383 * config/i386/interix.mh: New file.
3384 * config/i386/interix.mt: New file.
3385 * i386-interix-nat.c: New file.
3386 * i386-interix-tdep.c: New file.
3388 2002-11-01 Andrew Cagney <cagney@redhat.com>
3390 * frame.h (deprecated_generic_get_saved_register): Rename
3391 generic_get_saved_register.
3392 * blockframe.c (deprecated_generic_get_saved_register): Update.
3393 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3394 (xstormy16_frame_saved_register): Update.
3395 * sh-tdep.c (sh_gdbarch_init): Update.
3396 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3397 * ia64-tdep.c (ia64_get_saved_register): Update.
3398 * cris-tdep.c (cris_gdbarch_init): Update.
3399 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3400 * arm-tdep.c (arm_gdbarch_init): Update.
3402 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3404 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3406 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3408 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3409 trampolines in sigaction.
3411 2002-10-31 Andrew Cagney <cagney@redhat.com>
3413 * h8300-tdep.c: Include "gdb_assert.h".
3414 (h8300_print_register): Add gdbarch, file and frame parameters.
3415 Use frame_read_unsigned_register to read the register's value.
3416 Use fprintf_filtered to display output.
3417 (h8300_print_registers_info): Replace h8300_do_registers_info.
3418 (h8300_gdbarch_init): Set print_registers_info.
3420 2002-10-31 Andrew Cagney <cagney@redhat.com>
3422 * frame.c (frame_read_unsigned_register): New function.
3423 (frame_read_signed_register): New function.
3424 * frame.h (frame_read_unsigned_register): Declare.
3425 (frame_read_signed_register): Declare.
3427 2002-10-31 Andrew Cagney <cagney@redhat.com>
3429 * h8500-tdep.c (h8500_print_registers_info): New static function,
3430 clone of infcmd.c's default_print_registers_info.
3431 (h8500_do_registers_info): New funtion.
3432 (h8500_print_register_hook): Rename print_register_hook, make
3435 * config/h8500/tm-h8500.h: Update copyright.
3436 (DEPRECATED_DO_REGISTERS_INFO): Define.
3437 (h8500_do_registers_info: Declare.
3438 (PRINT_REGISTER_HOOK): Delete macro.
3439 (print_register_hook): Delete function.
3441 2002-10-31 Andrew Cagney <cagney@redhat.com>
3443 * z8k-tdep.c (z8k_print_register_hook): Make static.
3444 (z8k_print_registers_info): New static function, clone of
3445 infcmd.c's default_print_registers_info.
3446 (z8k_do_registers_info): New function. Wrap
3447 z8k_print_registers_info.
3448 * config/z8k/tm-z8k.h: Update copyright.
3449 (PRINT_REGISTER_HOOK): Delete macro.
3450 (z8k_print_register_hook): Delete declaration.
3451 (DEPRECATED_DO_REGISTERS_INFO): Define.
3452 (z8k_do_registers_info): Declare.
3454 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3456 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3457 as this is already provided by value.h, and was actually causing
3458 a compilation error because of a conflict in parameter type
3459 declaration due to a missing const keyword.
3460 (low_text_segment_addres): Fix a compilation warning.
3462 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3464 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3465 registers without a name.
3466 (mips_linux_cannot_store_register): Don't store registers without
3469 2002-10-28 David Carlton <carlton@math.stanford.edu>
3471 * symtab.c (find_addr_symbol): Delete. (It was already commented
3473 * symtab.h: Delete prototype for find_addr_symbol.
3475 2002-10-26 Andrew Cagney <cagney@redhat.com>
3477 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3479 gdbarch.h, gdbarch.c: Re-generate.
3480 * infcmd.c (default_print_registers_info): Update reference.
3481 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3482 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3483 * sh-tdep.c (sh_gdbarch_init): Ditto.
3484 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3485 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3487 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3489 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3490 cfi_init_extra_frame_info.
3491 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3492 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3494 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3495 target where necessary. Add more comments and remove the ones
3496 that don't provide any useful information.
3498 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3499 deprecated_read_register_dummy with
3500 frame_unwind_unsigned_register.
3502 * i386-tdep.c (i386_extract_struct_value_address): Use
3503 regcache_raw_read_unsigned instead of
3504 regcache_cooked_read_unsigned since we know that the register
3505 we're reading isn't a pseudo register. Rename variable 'val' into
3506 the more descriptive 'addr'.
3508 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3509 (x86_64_push_return_address): Add comment.
3510 (x86_64_pop_frame): Make static.
3511 (examine_argument): Clarify comment.
3512 (x86_64_skip_prologue): Make prolog_expact variable static.
3514 * dwarf2cfi.c: Fix some formatting problems.
3515 (context_cpy, read_encoded_pointer): Clarify comments.
3517 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3518 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3519 i386 target back into x86_64_gdbarch_init. Add some comments and
3520 remove meaningless ones.
3522 2002-10-25 Andrew Cagney <cagney@redhat.com>
3524 * complaints.h (struct deprecated_complaint): Rename `struct
3526 * complaints.c (complain): Update.
3527 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3528 incorrect comment indicating that "symfile.h" was being included
3529 for the `struct complaint' definition.
3530 * remote-vx.c: Update.
3531 * objc-lang.c: Update.
3532 * xcoffread.c: Update.
3534 * mdebugread.c: Update.
3535 * stabsread.c: Update.
3536 * dwarf2read.c: Update.
3537 * dwarfread.c: Update.
3538 * elfread.c: Update.
3539 * coffread.c: Update.
3540 * stabsread.h: Update.
3541 * dbxread.c: Update.
3542 * buildsym.c: Update.
3543 * gdbtypes.c: Update.
3544 * macrotab.c: Update.
3546 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3548 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3549 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3550 (x86_64_init_abi): ...new function.
3552 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3553 * i386v-nat.c: Include "i386-tdep.h".
3555 2002-10-25 Andrew Cagney <cagney@redhat.com>
3557 * gdbtypes.c (address_space_name_to_int): Update.
3558 (address_space_int_to_name): Update.
3559 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3560 multi-arch predicate.
3561 (address_class_name_to_type_flags): Ditto.
3562 * gdbarch.h, gdbarch.c: Re-generate.
3564 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3566 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3568 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3570 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3572 * symtab.h (INIT_SAL): Delete macro.
3574 * symtab.c (init_sal): New function.
3576 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3577 to init_sal function call.
3578 (find_sal_from_funcs_and_line): Ditto.
3579 (all_sals_for_line): Ditto.
3580 * breakpoint.c (create_internal_breakpoint): Ditto.
3581 (create_fork_vfork_event_catchpoint): Ditto.
3582 (create_exec_event_catchpoint): Ditto.
3583 (parse_breakpoint_sals): Ditto.
3584 (watch_command_1): Ditto.
3585 (handle_gnu_4_16_catch_command): Ditto.
3586 (clear_command): Ditto.
3587 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3588 * infcmd.c (run_stack_dummy): Ditto.
3589 * infrun.c (process_event_stop_test): Ditto.
3590 (check_sigtramp2): Ditto.
3591 (step_over_function): Ditto.
3592 * linespec.c (decode_line_2): Ditto.
3593 (decode_line_1): Ditto.
3594 * source.c (line_info): Ditto.
3595 * symtab.c (find_pc_sect_line): Ditto.
3597 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3599 * dwarf2cfi.c (struct context)
3600 (struct context_reg): Moved to dwarf2cfi.h
3601 (context_alloc, frame_state_alloc, context_cpy):
3602 Made extern instead of static, removed prototypes.
3603 * dwarf2cfi.h (struct context)
3604 (struct context_reg): New, moved from dwarf2cfi.c
3605 (context_alloc, frame_state_alloc, context_cpy):
3607 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3608 Changed from static to extern.
3609 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3610 (LINUX_SIGCONTEXT_FP_OFFSET)
3611 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3612 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3613 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3614 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3615 set_gdbarch_*() calls now use x86-64 specific functions
3616 instead of DWARF2 CFI ones.
3617 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3618 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3619 (x86_64_init_extra_frame_info): New prototypes.
3621 2002-10-23 David Carlton <carlton@math.stanford.edu>
3623 * linespec.c: #include "parser-defs.h".
3624 Delete prototype for find_template_name_end.
3625 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3627 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3629 * NEWS: add recent mi fixes.
3630 * varobj.c (struct varobj): Add new "updated" flag.
3631 (new_variable): Default "updated" flag to 0.
3632 (varobj_set_value): Set "updated" flag to 1 if value
3634 (varobj_update): Check varobj "updated" flag before
3635 comparing old and refreshed values. Fix for
3638 2002-10-23 David Carlton <carlton@math.stanford.edu>
3640 * parse.c (parse_exp_1): Use BLOCK_START.
3641 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3643 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3645 2002-10-23 David Carlton <carlton@math.stanford.edu>
3647 * symtab.c: Delete cplusplus_hint.
3648 Delete prototype for find_template_name_end.
3650 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3652 * symtab.h: Update comment.
3654 2002-10-23 Michael Snyder <msnyder@redhat.com>
3656 * printcmd.c (address_info): Restore quotes in output.
3657 * valops.c (value_of_local): Restore quotes in error message.
3659 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3661 * symtab.c (symbol_demangled_name): New function.
3662 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3663 turning most of it into a function.
3664 (symbol_demangled_name): Export.
3666 2002-10-23 Michael Snyder <msnyder@redhat.com>
3668 * valops.c (value_of_local): Restore quotes in error message.
3670 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3672 * symtab.c (symbol_init_language_specific): New function.
3673 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3674 turning most of it into a function.
3675 (symbol_init_language_specific): Export.
3677 2002-10-23 David Carlton <carlton@math.stanford.edu>
3679 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3680 (dwarf_attr_name): Ditto.
3681 (dwarf_type_encoding_name): Ditto.
3682 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3683 (process_die): Handle DW_TAG_namespace,
3684 DW_TAG_imported_declaration, DW_TAG_imported_module.
3685 (read_namespace): New function.
3687 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3689 * configure.in: Define NEW_PROC_API on Interix too.
3690 * configure: Regenerate.
3692 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3694 * configure: Regenerate using the proper version of autoconf.
3696 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3698 * findvar.c (read_var_value): Temporarily disable TLS code, until
3699 complete TLS support is added.
3701 2002-10-21 Jim Blandy <jimb@redhat.com>
3702 Elena Zannoni <ezannoni@redhat.com>
3704 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3705 for thread local storage locations.
3706 (struct symbol): Add objfile field.
3707 (SYMBOL_OBJFILE): Define.
3708 * dwarf2read.c (is_thread_local): New static variable.
3709 (new_symbol): If variable is in thread local fill in address class
3710 and objfile appropriately.
3711 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3713 * printcmd.c (address_info): Print the information for thread
3714 local storage variable.
3715 * findvar.c (read_var_value): In case of thread local variable,
3716 defer to the target vector code to compute address.
3718 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3720 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3721 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3723 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3725 * symtab.h (address_class): Rename
3726 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3727 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3728 * printcmd.c (address_info): Ditto.
3729 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3731 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3733 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3734 DBREG_DRX macro to acces debug registers.
3736 * Makefile.in (i386obsd-tdep.o): New target.
3738 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3739 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3741 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3742 * config/i386/obsd.mt: New file.
3743 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3744 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3745 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3746 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3747 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3748 * i386obsd-tdep.c: New file.
3750 2002-10-19 Adam Fedor <fedor@gnu.org>
3752 * objc-exp.y (name_not_typename): Fix invalid comment.
3754 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3756 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3757 to allocate partial syms and macro byte caches.
3759 2002-10-18 David Carlton <carlton@math.stanford.edu>
3761 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3763 2002-10-18 Adam Fedor <fedor@gnu.org>
3765 * stabsread.c (find_name_end): New function.
3766 (define_symbol): Use it.
3768 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3770 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3771 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3772 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3773 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3775 2002-10-17 David Carlton <carlton@math.stanford.edu>
3777 * symfile.h: Add opaque declaration for struct obstack.
3778 Declare obsavestring to take a const char *.
3779 * symfile.c (obsavestring): Make first argument a const char *.
3781 2002-10-16 Adam Fedor <fedor@gnu.org>
3783 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3784 names when matching breakpoints in current file.
3786 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3788 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3789 (read_tag_pointer_type): Add address class support.
3790 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3791 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3793 * gdbarch.h, gdbarch.c: Regenerate.
3794 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3795 (make_type_with_address_space, recursive_type_dump): Add address
3797 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3798 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3799 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3801 2002-10-16 Klee Dienes <kdienes@apple.com>
3803 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3804 to get the last character of a char[] buffer, not
3805 name[sizeof(vptr_name)-1].
3807 2002-10-14 Adam Fedor <fedor@gnu.org>
3809 * symtab.h: New objc_specific struct.
3810 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3811 (SYMBOL_DEMANGLED_NAME): Likewise.
3813 2002-10-14 Adam Fedor <fedor@gnu.org>
3815 * symfile.c (init_filename_language_table): Add ObjC file extension.
3817 2002-10-14 Adam Fedor <fedor@gnu.org>
3819 * utils.c (puts_filtered_tabular): New function.
3820 (fprintf_symbol_filtered): Get ObjC demangled name.
3821 * defs.h (puts_filtered_tabular): Declared.
3823 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3825 * c-lang.h (c_type_print_varspec_prefix): Delete.
3826 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3827 ``need_post_space'' parameter. Adjust all callers.
3829 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3831 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3832 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3833 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3834 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3836 2002-10-13 Adam Fedor <fedor@gnu.org>
3838 * source.c (print_source_lines): Update comments.
3840 2002-10-13 Adam Fedor <fedor@gnu.org>
3842 * valops.c (value_of_local): New function.
3843 (value_of_this): Use it.
3844 * value.h (value_of_local): Declared.
3846 2002-10-13 Adam Fedor <fedor@gnu.org>
3848 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3849 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3851 2002-10-12 Adam Fedor <fedor@gnu.org>
3853 * language.c (binop_result_type): Add language_objc to case.
3854 (integral_type): Likewise.
3855 (character_type): Likewise.
3856 (string_type): Likewise.
3857 (boolean_type): Likewise.
3858 (structured_type): Likewise.
3859 (binop_type_check): Likewise.
3861 2002-10-11 Adam Fedor <fedor@gnu.org>
3863 * printcmd.c (address_info): Print 'self' for ObjC.
3865 2002-10-11 Adam Fedor <fedor@gnu.org>
3867 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3870 2002-10-11 Adam Fedor <fedor@gnu.org>
3872 * language.h (CAST_IS_CONVERSION): Add language_objc.
3874 2002-10-11 Adam Fedor <fedor@gnu.org>
3876 * defs.h (enum language): Add language_objc.
3878 2002-10-11 Klee Dienes <kdienes@apple.com>
3880 * corefile.c (read_memory_typed_address): New function.
3881 * gdbcore.h (read_memory_typed_address): Add prototype.
3882 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3883 to read a value destined for a CORE_ADDR, not read_memory_integer.
3884 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3885 (f77_get_dynamic_lowerbound): Ditto.
3887 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3889 * utils.c (string_to_core_addr): After turning string into
3890 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3891 which will do necessary sign-extension, etc.
3893 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3895 * c-exp.y (THIS): Delete token and grammar rule.
3896 (yylex): Don't return THIS.
3897 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3898 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3899 * demangle.c (cplus_markers): Update comment. Put '$'
3900 first. Remove CPLUS_MARKER.
3901 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3902 * jv-exp.y (THIS): Delete token and grammar rule.
3903 (yylex): Don't return THIS.
3904 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3905 * objc-exp.y (THIS): Delete token and grammar rule.
3906 (yylex): Don't return THIS.
3907 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3908 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3909 (read_member_functions): Likewise for opname.
3910 (read_tilde_fields): Use is_cplus_marker.
3912 * defs.h (CPLUS_MARKER): Don't define.
3913 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3914 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3915 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3916 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3917 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3919 * config/i386/tm-i386v4.h: Delete file.
3920 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3921 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3922 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3923 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3924 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3925 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3926 * config/i386/i386v4.mt (TM_FILE): Likewise.
3927 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3929 2002-10-10 Marko Mlinar <markom@opencores.org>
3931 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3932 accidentially not commited 2002-10-09
3933 * gdbarch.h, gdbarch.c: Re-generate.
3935 2002-10-09 Marko Mlinar <markom@opencores.org>
3937 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3938 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3939 * gdbarch.h, gdbarch.c: Re-generate.
3941 2002-10-08 Petr Sorfa <petrs@caldera.com>
3943 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3945 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3946 so we can work on more than one compilation unit at a time. This
3947 helps prepare GDB to handle inter-CU die references.
3948 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3949 the code to be defined before struct comp_unit_head.
3950 (comp_unit_head): Added new members - offset, cu_head,
3951 begin_die, next and dwarf2_abbrevs.
3952 (dwarf2_abbrevs): Removed single static var; now member of
3953 struct comp_unit_head.
3954 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3956 (psymtab_to_symtab_1): Changed to work with the new
3957 struct comp_unit_head.
3958 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3959 constructs the dwarf2_abbrevs[] inside the cu_header.
3960 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3961 dwarf2_abbrev table to clean up.
3962 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3963 handling of dwarf2_abbrevs inside the cu_header.
3964 (read_partial_die): Now supports the call to the new
3965 dwarf2_lookup_abbrev.
3966 (read_full_die): Now supports the call to the new
3967 dwarf2_lookup_abbrev.
3969 2002-10-06 Christopher Faylor <cgf@redhat.com>
3971 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3972 insure that shell variables, such as "transformed_name" are propagated
3973 to later shell statements in rule.
3975 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3977 * config/i386/nm-i386sco.h: Add protection against
3978 multiple-inclusion. Include "i386/nm-i386v.h".
3979 (REGISTER_U_ADDR): Remove define.
3980 (i386_register_u_addr): Remove prototype.
3982 2002-10-04 Michael Snyder <msnyder@redhat.com>
3984 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3985 before treating it as a single-step event.
3987 2002-10-03 Adam Fedor <fedor@gnu.org>
3989 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3990 (objc_demangle): Remove assignment in if statements, Replace
3992 (add_msglist): Likewise.
3993 (end_msglist): Likewise.
3994 (complare_selectors): Likewise.
3995 (selectors_info): Likewise.
3996 (compare_classes): Likewise.
3997 (classes_info): Likewise.
3998 (print_object_command): Likewise.
3999 (find_objc_msgcall_submethod): Replace PTR with void *.
4000 * objc-lang.h: Remove check for __STDC__.
4002 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
4004 * ui-out.h (ui_out_field_fmt_int): New prototype.
4005 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
4006 of field width and alignment.
4007 * stack.c (print_frame_info_base): When printing frame level, use
4008 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
4011 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
4013 * MAINTAINERS: Add self to Write After Approval list.
4015 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4017 * infcmd.c (interrupt_target_command_wrapper): Delete.
4018 (interrupt_target_command): Make non static.
4019 (nofp_registers_info): Make static.
4020 * stack.c (return_command_wrapper): Delete.
4021 (return_command): Make non static.
4023 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4025 * event-top.c (gdb_setup_readline): New function. Code moved from
4026 _initialize_event_loop().
4027 (_initialize_event_loop): Call gdb_setup_readline().
4029 2002-10-02 Andrew Cagney <ac131313@redhat.com>
4031 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
4032 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
4033 * gdbarch.h, gdbarch.c: Re-generate.
4035 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
4038 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
4040 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
4041 of fill_in_vptr_fieldno.
4043 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4045 * inferior.h (registers_info, stepi_command, nexti_command,
4046 continue_command, interrupt_target_command): Export from infcmd.c.
4047 * frame.h (args_info, selected_frame_level_changed_hook,
4048 return_command): Export from stack.c.
4049 * v850ice.c (stepi_command, nexti_command, continue_command): use
4050 prototypes from inferior.h.
4051 * tracepoint.c (registers_info, args_info, locals_info): Use
4052 prototypes from frame.h and inferior.h.
4053 * Makefile.in (mi-main.o): Add dependency on frame.h.
4055 2002-10-02 Andrew Cagney <ac131313@redhat.com>
4057 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
4058 value in register 3 adjusted by ppc_gp0_regnum.
4060 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
4062 2002-10-02 Marko Mlinar <markom@opencores.org>
4064 * MAINTAINERS: Add myself to the Write After Approval list.
4066 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
4068 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4069 of the section for the N64 ABI, fixed.
4071 * config/mips/tm-irix6.h: Include solib.h.
4073 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
4075 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4078 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4080 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4081 and that "mi0" syntax has been removed.
4083 2002-09-30 David Carlton <carlton@math.stanford.edu>
4085 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4086 * ppc-sysv-tdep.c: #include "gdb_string.h".
4087 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4090 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4092 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4093 "vrsave"'s register number.
4095 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4097 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4098 use frame_unwind_signed_register to obtain the PC.
4099 (mips_frame_chain): Handle a generic dummy frame.
4100 (mips_init_extra_frame_info): When a generic dummy frame, don't
4101 re-compute the frame base.
4102 (mips_pop_frame): Handle generic dummy frames.
4103 (mips_gdbarch_init): When generic dummy frames, set
4104 use_generic_dummy_frames, push_dummy_frame to
4105 generic_push_dummy_frame, pc_in_call_dummy to
4106 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4107 generic_save_dummy_frame_tos.
4109 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4111 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
4112 against TOP when TOP was explictly set.
4113 (generic_push_dummy_frame): Set TOP to zero.
4115 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
4117 * event-loop.c (start_event_loop): Rename variable 'result' to
4118 'gdb_result', to avoid conflicts with upcoming intepreters changes.
4120 2002-09-30 Keith Seitz <keiths@redhat.com>
4122 * gdb-events.sh (selected_thread_changed): New event.
4123 * gdb-events.c: Regenerated.
4124 * gdb-events.h: Regenerated.
4126 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
4128 * MAINTAINERS: Add self to Write After Approval list.
4130 2002-09-30 Fernando Nasser <fnasser@redhat.com>
4132 * disasm.c: New file.
4133 * disasm.h: New file.
4134 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4135 (compare_lines): Ditto.
4136 (dump_insns): Ditto.
4137 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4139 (do_assembly_only): Ditto.
4140 (do_disassembly): Renamed to gdb_disassembly and moved to
4141 disasm.c. Sdded uiout argument.
4142 * Makefile.in: Add new files. Reorder SFILES list. Update
4143 dependencies. Include libgdb.a later in the insight executable.
4145 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4147 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4148 bfd/elf64-alpha-fbsd.c.
4150 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4152 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4155 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4157 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4159 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4161 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4162 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4163 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4164 (S_msg_sig_post_reply): Ditto.
4166 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
4168 * sh-tdep.c (sh_use_struct_convention): Use definition according
4170 (sh_push_arguments): Store in register with correct endianess.
4171 (sh_default_store_return_value): Ditto.
4172 (sh_gdbarch_init): Set sizeof long double to 8.
4174 2002-09-27 Mark Kettenis <kettenis@gnu.org>
4176 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4177 Fix some whitespace problems.
4179 2002-09-27 David Carlton <carlton@math.stanford.edu>
4181 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4182 (mcore-tdep.o): Ditto.
4183 (ns32k-tdep.o): Ditto.
4184 (ns32knbsd-tdep.o): Ditto.
4186 (vax-tdep.o): Ditto.
4187 * cris-tdep.c: #include "gdb_string.h"
4188 * mcore-tdep.c: Ditto.
4189 * ns32k-tdep.c: Ditto.
4190 * ns32knbsd-tdep.c: Ditto.
4192 * vax-tdep.c: Ditto.
4194 2002-09-27 David Carlton <carlton@math.stanford.edu>
4196 * config/djgpp/fnchange.lst: Add entries for
4197 gdb/testsuite/gdb.c++/m-static files.
4199 2002-09-27 Jim Wilson <wilson@redhat.com>
4201 * MAINTAINERS: Add myself to the Write After Approval list.
4203 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4205 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4208 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4210 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4213 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4215 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4216 (rs6000_struct_return_address): Delete variable.
4217 (rs6000_store_struct_return): Update.
4218 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4219 deprecated_extract_struct_value_address.
4220 (rs6000_frame_align): New function.
4221 (rs6000_gdbarch_init): Set frame_align.
4223 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4225 From Grace Sainsbury <graces@redhat.com>:
4226 * Makefile.in (gdbtk-main.o): New target.
4227 (gdb.o): New target.
4229 (main.o): Update dependencies.
4230 (gdb$(EXEEXT)): Add gdb.o.
4231 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4232 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4233 (SUBDIR_GDBTK_CLEAN): Set.
4234 (install-gdbtk): Install the insight binary.
4235 (uninstall-gdbtk): New target.
4236 (all-gdbtk, clean-gdbtk): New rule.
4237 * top.c (use_windows): Default to zero.
4238 * main.c: Include "main.h".
4240 (struct captured_main_args): Delete.
4241 (gdb_main): New function.
4245 2002-09-25 Andrew Cagney <cagney@redhat.com>
4247 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4248 (frame_map_regnum_to_name): New function.
4249 (frame_map_name_to_regnum): New function.
4250 * frame.h (frame_map_name_to_regnum): Declare.
4251 (frame_map_regnum_to_name): Declare.
4252 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4253 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4254 * parse.c: Do not include "builtin-regs.h".
4255 (target_map_name_to_register): Delete function.
4256 (write_dollar_variable): Use frame_map_name_to_regnum.
4257 * parser-defs.h (target_map_name_to_register): Delete declaration.
4258 * expprint.c: Include "frame.h".
4259 (print_subexp): Use frame_map_regnum_to_name.
4260 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4261 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4263 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4265 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4266 wasn't saved, and the next innermost frame is a dummy, return the
4267 dummy frame's link register.
4269 2002-09-24 Jim Blandy <jimb@redhat.com>
4271 Fix from Paul Breed:
4272 * main.c (captured_main): Add a `break' after the case for 'b'.
4274 2002-09-24 Keith Seitz <keiths@redhat.com>
4276 * varobj.c (c_type_of_child): Use get_target_type instead
4277 of TYPE_TARGET_TYPE.
4279 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4281 * source.c (get_current_or_default_source_symtab_and_line): Remove
4283 (set_default_source_symtab_and_line): New function. Attempts to
4284 determine a source file to list lines from if one is not currently
4286 (get_current_source_symtab_and_line): Initialize sal.pc and
4288 (set_current_source_symtab_and_line): Mark argument as const.
4289 * source.h: Update declarations and comments.
4290 * linespec.c (decode_line_1): Replace call to removed routine above.
4291 * stack.c (print_frame_info_base): Ditto.
4292 * cli/cli-cmds.c (edit_command): Ditto.
4293 (list_command): Ditto.
4295 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4297 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4298 sal.pc and sal.end fields.
4299 (get_current_or_default_source_symtab_and_line): Ditto.
4300 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4301 so we do not cause a new source symtab to be searched for (reverting an
4302 unintentional change from the 2002-09-20 patch).
4303 * scm-lang.c (scm_unpac): Ditto.
4305 2002-09-21 Andrew Cagney <cagney@redhat.com>
4307 * complaints.c (symfile_explanations): Remove new-line from
4308 ``isolated_message''.
4309 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4310 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4312 2002-09-20 Nick Clifton <nickc@redhat.com>
4314 * NEWS: Announce that V850EA ISA is no longer supported.
4315 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4317 2002-09-20 David Carlton <carlton@math.stanford.edu>
4319 * Makefile.in (c-lang.o): Correct dependencies.
4320 (utils.o): Gather dependencies.
4322 * c-lang.c: #include "gdb_string.h"
4324 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4326 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4327 * cli/cli-cmds.c (list_command): New function. Implements the new
4329 (_init_cli_cmds): Add new command definition.
4330 * gdb.1: Document edit command.
4331 * doc/gdb.texinfo: Document edit command.
4333 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4335 * source.c: Make global variables current_source_symtab and
4336 current_source_line static.
4337 (list_command): Moved to cli/cli-cmds.c.
4338 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4339 (get_first_line_listed): New accessor function.
4340 (get_lines_to_list): New accessor function.
4341 (get_current_source_symtab_and_line): New function. Retrieves the
4342 position in the source code that we consider current.
4343 (get_current_or_default_source_symtab_and_line): New function.
4344 Like the above but attempts to determine a default position if one
4345 is not currently defined.
4346 (set_current_source_symtab_and_line): New function. Sets the source
4347 code position considered current and returns the previously set one.
4348 (clear_current_source_symtab_and_line): Reset stored information about
4349 a current source line.
4350 (_initialize_source): Remove registration for the "list" command and
4352 * source.h: Add declarations for the new functions above.
4353 * symtab.h: Remove declarations for the global variables mentioned
4355 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4356 obtain current source line.
4357 * linespec.c (decode_line_1): Ditto.
4358 * macroscope.c (default_macro_scope): Ditto.
4359 * scm-lang.c (scm_unpac): Ditto.
4360 * stack.c (print_frame_info_base): Ditto.
4361 * symfile.c (clear_symtab_users): Ditto.
4362 * symtab.c (decode_line_spec): Ditto.
4363 * cli/cli-cmds.c (list_command): Moved here from source.c.
4364 (ambiguous_line_spec): Moved here from source.c.
4365 (_init_cli_cmds): Add definition for "list" and its alias.
4366 * Makefile.in: Update dependencies.
4368 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4370 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4371 with what gcc thinks is correct.
4373 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4375 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4376 multiple register push instruction.
4378 2002-09-19 Jim Blandy <jimb@redhat.com>
4380 Add support for distinct host and target character sets.
4381 * charset.c, charset.h: New files.
4382 * c-exp.y: #include "charset.h".
4383 (yylex): Convert character and string literals to the target
4384 character set, before returning them as the semantic value of the
4386 * c-lang.c: #include "charset.h".
4387 (c_emit_char): Use charset-specific methods to recognize
4388 characters with backslash escape forms, to decide which characters
4389 to print literally and which to print using numeric escape
4390 sequences, and to convert target characters to host characters
4392 * utils.c: #include "charset.h".
4393 (no_control_char_error): New function.
4394 (parse_escape): Use charset-specific methods to recognize
4395 backslash escapes, parse `control character' notation, and convert
4396 characters from the host character set to the target character set.
4397 * configure.in: Set the default host character set.
4398 Check where to find iconv, and what its argument types might be.
4399 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4400 * Makefile.in (SFILES): List charset.c.
4401 (COMMON_OBS): List charset.o.
4402 (charset.o): New rule.
4403 (charset_h): New header dependency variable.
4404 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4405 (LIBICONV): New variable, set by configure.
4406 (CLIBS): Include $(LIBICONV) here.
4407 * aclocal.m4, config.in, configure: Regenerated.
4409 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4411 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4414 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4416 * gdb_mbuild.sh: New file.
4418 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4420 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4422 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4424 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4425 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4426 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4427 valops.c, value.h: Revert previous change.
4429 2002-09-18 Michael Snyder <msnyder@redhat.com>
4431 Preliminary support for Objective-C:
4432 * defs.h (language_objc): New enum value.
4433 (puts_filtered_tabular): Declaration only, exported from utils.c.
4434 (skip_quoted): Delete, declared in completer.h.
4435 * c-exp.y: Include completer.h.
4438 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4439 New operator enum values.
4440 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4441 * language.c (binop_result_type): Handle language_objc case.
4442 (integral_type, character_type, string_type, boolean_type,
4443 structured_type, binop_type_check): Ditto.
4444 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4445 (struct objc_specific): Add to general_symbol_info.
4446 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4447 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4448 * parser-defs.h (struct objc_class_str): New struct type.
4449 (start_msglist, end_msglist, add_msglist): Declaration only,
4450 exported from objc-lang.c.
4451 * value.h (value_of_local, value_nsstring,
4452 call_function_by_hand_expecting_type): Exported from valops.c.
4453 * valops.c (find_function_addr): Export.
4454 (call_function_by_hand_expecting_type): New function.
4455 (value_of_local): New function.
4456 * symfile.c (init_filename_language_table): Add ".m" extension
4458 * utils.c (puts_filtered_tabular): New function.
4459 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4460 (set/show demangle): Extend help-string to refer to ObjC.
4461 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4462 * stabsread.c (symbol_reference_defined): Objective-C symbols
4463 may contain colons: make allowances when scanning stabs strings
4465 (objc_find_colon): New function.
4466 * printcmd.c (address_info): If language == objc then print
4467 "self" instead of "this".
4468 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4469 OP_NSSTRING, and OP_SELF.
4470 (prefixify_subexp): Ditto.
4471 * source.c (print_source_lines): Mention objc in comment.
4472 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4475 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4477 * complaints.h: Update copyright.
4478 (struct complaints): Declare.
4479 (struct complaint): Make `message' constant.
4480 (internal_complaint): Declare.
4481 (complaint): Declare.
4482 (complaint_root): Delete declaration.
4483 (symfile_complaints): Delete declaration.
4484 (struct complaints): Add opaque declaration.
4485 (clear_complaints): Add a complaints parameter.
4486 * complaints.c: Update copyright.
4487 (enum complaint_series): Define.
4488 (complaint_root): Delete.
4489 (struct complaints): Define.
4490 (complaint_sentinel, symfile_complaint_book): New variables.
4491 (symfile_explanations, symfile_complaints): New variables.
4493 (get_complaints): New function.
4494 (vcomplaint): New function.
4495 (complaint): New function.
4496 (internal_complaint): New function.
4497 (complain): Call vcomplain with symfile_complaint.
4498 (clear_complaints): Rewrite.
4499 (_initialize_complaints): Use add_setshow_command.
4500 * Makefile.in (complaints.o): Update dependencies.
4501 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4502 to call to clear_complaints.
4503 (new_symfile_objfile, reread_symbols): Ditto.
4504 (oldsyms_complaint): Delete.
4505 (empty_symtab_complaint, unknown_option_complaint): Delete.
4506 (free_named_symtabs): Use complaint instead of complain.
4508 2002-09-18 Michael Snyder <msnyder@redhat.com>
4510 Contributed by Apple Computer, Inc. Merged with current sources
4511 by Adam Fedor <fedor@doc.com> [cagney].
4513 * objc-lang.c: First clean-up round: comments, indentation.
4514 * objc-lang.h: Ditto.
4515 * objc-lang.y: Ditto.
4517 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4519 * maint.c (maintenance_internal_error): Print the parameter as the
4521 (maintenance_internal_warning): New function.
4522 (_initialize_maint_cmds): Add command `maint internal-warning'.
4524 * defs.h (internal_warning, internal_vwarning): Declare.
4525 * utils.c (struct internal_problem): Define.
4526 (internal_vproblem): New function.
4527 (internal_warning): New function.
4528 (internal_vwarning): New function.
4529 (internal_warning_problem, internal_error_problem): New variables.
4530 (internal_verror): Just call internal_vproblem.
4532 2002-09-18 Michael Snyder <msnyder@redhat.com>
4534 * objc-lang.c: New file, support for Objective-C.
4535 Preliminary check-in, not yet integrated into gdb.
4536 * objc-lang.h: New file.
4537 * objc-exp.y: New file.
4539 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4541 * infrun.c (signal_stop_update): Convert definition to ISO C.
4542 (signal_print_update): Ditto.
4543 (signal_pass_update): Ditto.
4544 * inflow.c (terminal_save_ours): Ditto.
4546 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4549 * config/djgpp/fnchange.lst: Handle name clashes between
4550 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4553 * i386-linux-tdep.h: Fix tipo.
4555 2002-09-18 Adam Fedor <fedor@gnu.org>
4557 * MAINTAINERS: Add myself to the Write After Approval list.
4559 2002-09-18 Jim Blandy <jimb@redhat.com>
4561 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4562 texthigh and textlow to reader-specific structs caused
4563 objfile_relocate to miss them. This is fixable, but the work that
4564 the change was supposed to prepare GDB for never got done anyway.
4566 2002-09-18 David Carlton <carlton@math.stanford.edu>
4568 * MAINTAINERS: Alphabetize Write After Approval list.
4570 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4573 * values.c (value_static_field): Call read_var_value.
4575 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4577 * valops.c (hand_function_call): Align the initial stack pointer
4578 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4579 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4581 * mips-tdep.c (mips_frame_align): New function.
4582 (mips_gdbarch_init): Set frame_align.
4583 * gdbarch.sh (FRAME_ALIGN): New method.
4584 * gdbarch.h, gdbarch.c: Re-generate.
4586 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4588 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4591 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4593 * NEWS: Mention that MIPS $fp behavior changed.
4594 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4595 reference to FP_REGNUM.
4596 (mipsnbsd_cannot_store_register): Ditto.
4597 * mips-linux-nat.c: Update copyright.
4598 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4599 (mips_linux_cannot_store_register): Ditto.
4600 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4601 * config/mips/tm-mips.h: Update copyright.
4602 (FP_REGNUM): Delete macro.
4603 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4604 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4605 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4606 (mips_r3041_reg_names, mips_r3051_reg_names)
4607 (mips_r3081_reg_names): Replace "fp" with "".
4610 2002-09-17 Theodore A. Roth <troth@verinet.com>
4612 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4613 generic_read_register_dummy() (PR gdb/703).
4614 (avr_push_return_address): #if 0 out unused vars.
4615 (avr_gdbarch_init): Enable use of avr_push_return_address().
4617 2002-09-17 Michael Snyder <msnyder@redhat.com>
4619 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4620 RTE will take care of it.
4622 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4624 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4625 invalid, return SP_REGNUM.
4627 2002-09-17 Michael Snyder <msnyder@redhat.com>
4629 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4630 point registers without sign extension.
4632 2002-09-17 Andrew Cagney <cagney@redhat.com>
4634 * blockframe.c (deprecated_read_register_dummy): Rename
4635 generic_read_register_dummy.
4636 * frame.c (frame_unwind_signed_register): New function.
4637 (frame_unwind_unsigned_register): New function.
4638 * frame.h (frame_unwind_signed_register): Declare.
4639 (frame_unwind_unsigned_register): Declare.
4640 (deprecated_read_register_dummy): Rename
4641 generic_read_register_dummy.
4643 * h8300-tdep.c (h8300_frame_chain): Update.
4644 (h8300_frame_saved_pc): Update.
4645 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4646 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4647 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4648 (s390_frame_chain): Update.
4649 * v850-tdep.c (v850_find_callers_reg): Update.
4650 (v850_frame_saved_pc): Update.
4651 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4652 (m32r_find_callers_reg): Update.
4653 (m32r_frame_saved_pc): Update.
4654 * sh-tdep.c (sh_find_callers_reg): Update.
4655 (sh64_get_saved_pr): Update.
4656 (sh_init_extra_frame_info): Update.
4657 (sh_init_extra_frame_info): Update.
4658 (sh64_init_extra_frame_info): Update.
4659 (sh64_init_extra_frame_info): Update.
4660 * mcore-tdep.c (mcore_find_callers_reg): Update.
4661 (mcore_frame_saved_pc): Update.
4662 (mcore_init_extra_frame_info): Update.
4663 * i386-tdep.c (i386_frame_saved_pc): Update.
4664 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4665 (ia64_init_extra_frame_info): Update.
4666 (ia64_init_extra_frame_info): Update.
4667 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4668 * cris-tdep.c (cris_init_extra_frame_info): Update.
4669 * avr-tdep.c (avr_frame_chain): Update.
4670 (avr_init_extra_frame_info): Update.
4671 (avr_frame_saved_pc): Update.
4672 * arm-tdep.c (arm_find_callers_reg): Update.
4673 (arm_init_extra_frame_info): Update.
4674 (arm_frame_saved_pc): Update.
4676 2002-09-17 Tom Tromey <tromey@redhat.com>
4678 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4681 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4683 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4684 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4686 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4689 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4691 * osfsolib.c: Remove file, replaced by solib-osf.c.
4692 * Makefile.in: Remove compilation rules for osfsolib.c.
4694 2002-09-16 David Carlton <carlton@math.stanford.edu>
4696 * cp-valprint.c (cp_print_class_method): Correct args to
4697 check_stub_method_group.
4699 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4701 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4702 `set architecture'. Unify naming convention of functions.
4703 (h8300_skip_prologue): Improve prologue analysis.
4704 (h8300_push_arguments): Rewritten to more closely match GCC's
4705 bizarre argument-passing behavior, along with the comment describing
4707 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4708 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4709 sim, remote-e7000.c, remote-hms.c and remote.c
4711 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4713 * i386-tdep.c (gdb_print_insn_i386): Removed.
4714 (i386_print_insn): New function.
4715 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4716 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4719 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4721 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4724 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4726 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4727 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4728 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4730 2002-09-13 Christopher Faylor <cgf@redhat.com>
4732 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4734 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4736 * gdbtypes.c (check_stub_method): Make static.
4737 (check_stub_method_group): New function.
4738 * gdbtypes.h: Update prototypes.
4739 * cp-support.c: New file.
4740 * cp-support.h: New file.
4742 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4743 (update_method_name_from_physname): New function.
4744 (read_member_functions): Correct method names for operators
4745 and v3 constructors/destructors. Separate v2 constructors and
4747 * Makefile.in (stabsread.o): Update dependencies.
4748 (SFILES): Add cp-support.c.
4749 (COMMON_OBS): Add cp-support.o.
4750 (cp_support_h, cp-support.o): Add.
4752 * cp-valprint.c (cp_print_class_method): Call
4753 check_stub_method_group instead of check_stub_method. Remove
4755 * p-valprint.c (pascal_object_print_class_method): Likewise.
4756 * valops.c (search_struct_method): Likewise.
4757 (find_method_list, value_struct_elt_for_reference): Likewise.
4759 2002-09-13 Andrew Cagney <cagney@redhat.com>
4761 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4762 * gdbarch.h, gdbarch.c: Regenerate.
4764 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4766 * frame.c (find_saved_register): Delete function.
4767 * frame.h (find_saved_register): Delete declaration.
4770 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4772 * mips-tdep.c (read_next_frame_reg): Re-hack using
4773 frame_register_unwind.
4775 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4777 * mips-tdep.c (mips_get_saved_register): Re-hack using
4778 frame_register_unwind.
4780 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4782 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4783 vector. Will be useful for Interix.
4784 * gdbarch.h, gdbarch.c: Regenerate.
4786 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4787 name of the malloc function by NAME_OF_MALLOC.
4789 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4791 * value.h (find_function_in_inferior): Add const keyword to
4792 one of the parameters. Allows us to invoke this function with
4794 * valops.c (find_function_in_inferior): Likewise.
4796 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4798 * exec.c (xfer_memory): Fix compilation warning with old versions
4800 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4802 2002-09-12 David Carlton <carlton@math.stanford.edu>
4804 * symtab.h: Run through gdb_indent.h.
4805 Add 2002 to Copyright year list.
4807 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4809 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4811 * MAINTAINERS: Add myself to write after approval list.
4813 2002-09-11 J. Brobecker <brobecker@gnat.com>
4815 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4817 2002-09-11 J. Brobecker <brobecker@gnat.com>
4819 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4822 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4824 * procfs.c (do_detach): Clear current signal, not just fault.
4825 Corrects problem with breakpoint trap signal leaking to detached
4828 2002-09-10 Michael Snyder <msnyder@redhat.com>
4830 * buildsym.c (finish_block): Protect against null pointer.
4832 2002-09-10 Andrew Cagney <cagney@redhat.com>
4834 * infcmd.c (default_print_registers_info): Send all output to
4835 ``file'' instead of ``gdb_stdout''.
4837 2002-09-10 Michael Snyder <msnyder@redhat.com>
4839 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4840 LONGEST, and use signed register read (addresses are sign-
4843 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4845 * event-loop.c (gdb_do_one_event): Make public.
4846 * event-loop.h (gdb_do_one_event): Declare.
4848 2002-09-10 Jeff Law <law@redhat.com>
4850 * infttrace.c (child_resume): Simplify and rework to avoid
4853 2002-09-09 Fred Fish <fnf@intrinsity.com>
4855 * printcmd.c (print_scalar_formatted): "len" is the number of
4856 target bytes, NOT the number of target bits.
4858 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4860 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4861 * top.c (init_main): Set rl_terminal_name.
4863 2002-09-08 Aidan Skinner <aidan@velvet.net>
4865 * ada-lang.c (ada_array_bound, ada_type_match,
4866 _initialize_ada_language): Fix K&R definitions.
4867 * ada-tasks.c (get_current_task): Fix K&R definitions.
4868 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4870 2002-09-07 Christopher Faylor <cgf@redhat.com>
4872 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4875 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4877 * i386-tdep.c (i386_register_virtual_type,
4878 i386_register_convertible, i386_register_convert_to_virtual,
4879 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4880 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4881 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4882 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4883 Don't set push_arguments twice.
4885 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4886 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4887 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4888 sigtramp_end to NULL.
4889 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4891 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4893 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4896 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4897 * gdbarch.h, gdbarch.c: Re-generate.
4898 * blockframe.c (find_pc_sect_partial_function): Convert to use
4899 SIGTRAMP_START_P predicate.
4901 2002-09-05 Michael Snyder <msnyder@redhat.com>
4903 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4904 generic_dummy_frame method and old method. Also distinguish
4905 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4906 (arm_extract_return_value): Use new regcache method.
4908 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4909 adjustment that doesn't conform to the ABI.
4910 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4911 saved regcache, not from current regcache.
4913 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4915 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4918 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4920 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4921 if arm_apcs_32 is false.
4923 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4925 GDB 5.3 branch created.
4927 2002-09-03 Theodore A. Roth <troth@verinet.com>
4929 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4930 generic_unwind_get_saved_register.
4932 2002-09-03 David Carlton <carlton@math.stanford.edu>
4934 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4935 argument (PR gdb/653). Update call to smash_to_method_type.
4936 (read_structure_scope): Update call to dwarf2_add_member_fn.
4938 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4940 * x86-64-linux-tdep.c: Include gdb_string.h
4941 * x86-64-linux-nat.c: Ditto.
4943 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4945 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4946 when YYDEBUG is set to 1.
4947 * c-exp.y: Likewise.
4948 * f-exp.y: Likewise.
4949 * jv-exp.y: Likewise.
4950 * m2-exp.y: Likewise.
4951 * p-exp.y: Likewise.
4953 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4955 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4957 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4958 solib_svr4_fetch_link_map_offsets to
4959 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4960 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4961 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4962 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4963 solib-svr4.o, and solib-legacy.o.
4964 * config/i386/tm-nbsd.h: Include solib.h.
4966 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4968 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4969 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4970 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4971 comment noting that this needs its own target configuration.
4972 * config/i386/nbsd.mt: New file.
4973 * config/i386/nbsdaout.mt: Remove.
4974 * config/i386/nbsdelf.mt: Ditto.
4975 * config/i386/tm-nbsdaout.h: Ditto.
4977 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4979 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4980 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4981 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4983 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4984 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4985 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4987 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4989 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4990 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4991 * i386-tdep.h (i386bsd_init_abi): New prototype.
4992 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4993 function declaration.
4994 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4995 for NetBSD-a.out or NetBSD-ELF.
4996 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4997 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4998 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4999 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
5001 (i386nbsd_pc_in_sigtramp): New function.
5002 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5003 i386nbsd_pc_in_sigtramp.
5004 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
5005 and i386nbsdelf_init_abi OS ABI handlers.
5006 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
5007 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5009 2002-09-02 Mark Kettenis <kettenis@gnu.org>
5011 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
5012 registers if the target really has them.
5014 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
5016 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
5019 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
5021 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
5023 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
5024 (alphanbsd_skip_sigtramp_frame): New functions.
5025 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
5026 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
5027 to alphanbsd_sigcontext_addr.
5029 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
5031 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
5033 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
5034 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
5035 nbsd_pc_in_sigtramp.
5036 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
5037 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
5038 * nbsd-tdep.c: Include gdb_string.h.
5039 (nbsd_pc_in_sigtramp): New function.
5040 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
5041 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
5042 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5043 ppcnbsd_pc_in_sigtramp.
5044 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
5045 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5046 shnbsd_pc_in_sigtramp.
5047 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
5048 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
5049 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5051 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
5053 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
5054 watchpoints to NULL.
5055 (insert_breakpoints): set val field of watchpoints if NULL.
5058 2002-08-29 Jim Blandy <jimb@redhat.com>
5060 * symtab.c (lookup_symbol_aux): In the cases where we find a
5061 minimal symbol of an appropriate name and use its address to
5062 select a symtab to read and search, use `name' (as passed to us)
5063 as the demangled name when searching the symtab's global and
5064 static blocks, not the minsym's name.
5066 2002-08-29 Keith Seitz <keiths@redhat.com>
5068 * stack.c (print_frame_info_base): Always set current_source_symtab
5069 and current_source_line.
5071 2002-08-29 Donn Terry <donnte@microsoft.com>
5073 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5075 2002-08-28 Keith Seitz <keiths@redhat.com>
5077 * stack.c (select_frame): Add FIXME concerning selected-frame
5079 (select_frame_command): Send selected-frame-level-changed
5080 event notification, but only if the level actually changed.
5081 (up_silently_base): Add selected-frame-level-changed event
5083 (down_silently_base): Likewise.
5085 2002-08-28 Andrew Cagney <ac131313@redhat.com>
5087 * Makefile.in: Update dependencies for all gdb/*.c files.
5089 2002-08-27 Tom Tromey <tromey@redhat.com>
5091 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5092 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5093 Update dependencies.
5094 * i387-tdep.c: Include gdb_string.h.
5095 * osabi.c: Likewise.
5096 * i386-linux-nat.c: Likewise.
5097 * lin-lwp.c: Likewise.
5098 * ax-gdb.c: Likewise.
5099 * signals/signals.c: Likewise.
5100 * jv-valprint.c: Likewise.
5101 * p-lang.c: Likewise.
5102 * c-valprint.c: Likewise.
5103 * cp-abi.c: Likewise.
5105 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
5107 * cli/cli-script.h (copy_command_lines): Export.
5108 * breakpoint.c: Include cli/cli-script.h.
5109 * Makefile.in (breakpoint.o): Update dependencies.
5111 2002-08-26 Michael Snyder <msnyder@redhat.com>
5113 * breakpoint.c (insert_breakpoints): Protect all references
5114 to 'process_warning'. Shorten long lines.
5116 2002-08-26 Joel Brobecker <brobecker@gnat.com>
5118 * cli/cli-script.c (copy_command_lines): New function.
5119 * defs.h (copy_command_lines): Export.
5120 * testsuite/gdb.base/commands.exp: New tests for commands
5121 attached to a temporary breakpoint, and for commands that
5122 delete the breakpoint they are attached to.
5124 2002-08-26 Michael Snyder <msnyder@redhat.com>
5126 * breakpoint.c (bpstat_stop_status): Instead of copying the
5127 pointer to the breakpoint commands struct, make a new copy
5128 of the struct and point to that.
5129 (bpstat_clear): Free the commands struct.
5130 (bpstat_clear_actions): Free the commands struct.
5131 (bpstat_do_actions): Free the command actions. Also execute
5132 the local cleanups, instead of deleting them.
5133 (delete_breakpoint): Leave the commands field of the bpstat
5134 chain alone -- it will be freed later.
5136 2002-08-26 Kevin Buettner <kevinb@redhat.com>
5138 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5139 deleted in 2002-08-20 commit. This function is still used by
5142 2002-08-26 Keith Seitz <keiths@redhat.com>
5144 * gdb-events.sh: Add selected-frame-level-changed event.
5145 * gdb-events.c: Regenerated.
5146 * gdb-events.h: Regenerated.
5148 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
5151 * inflow.c (terminal_save_ours): New function to save terminal
5153 * inferior.h (terminal_save_ours): Declare.
5154 * target.c (debug_to_terminal_save_ours): New function.
5155 (cleanup_target): Defaults to_terminal_save_ours.
5156 (update_current_target): Inherit to_terminal_save_ours.
5157 (setup_target_debug): Set to_terminal_save_ours.
5158 * target.h (target_terminal_save_ours): New to save terminal settings.
5159 (target_ops): New member to_terminal_save_ours.
5160 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5161 * hpux-thread.c (init_hpux_thread_ops): Likewise.
5162 * inftarg.c (init_child_ops): Likewise.
5163 * m3-nat.c (init_m3_ops): Likewise.
5164 * procfs.c (init_procfs_ops): Likewise.
5165 * wince.c (init_child_ops): Likewise.
5166 * win32-nat.c (init_child_ops): Likewise.
5167 * sol-thread.c (init_sol_thread_ops): Likewise.
5169 2002-08-26 Mark Kettenis <kettenis@gnu.org>
5171 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5172 use regcache_* functions.
5173 (i386_gdbarch_init): Set store_return_value instead of
5174 deprecated_store_return_value.
5176 * regcache.c (regcache_raw_write_signed,
5177 regcache_raw_write_unsigned): New functions.
5178 * regcache.h (regcache_raw_write_signed,
5179 regcache_raw_write_unsigned): New prototypes.
5181 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5183 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5184 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5185 source file dependencies. Cleanup corresponding generator rules.
5187 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5189 * regcache.h (register_offset_hack): Declare.
5190 (regcache_cooked_read_using_offset_hack): Declare.
5191 (regcache_cooked_write_using_offset_hack): Declare.
5193 * regcache.c (register_offset_hack): New function.
5194 (regcache_cooked_read_using_offset_hack): New function.
5195 (regcache_cooked_write_using_offset_hack): New function.
5196 (regcache_dump): Check that the registers, according to their
5197 offset, are packed hard against each other.
5198 (cooked_xfer_using_offset_hack): New function.
5200 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5202 * regcache.c (struct regcache_descr): Add field register_type.
5203 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5205 (init_regcache_descr): Initialize register_type. Pass the descr
5206 to init_legacy_regcache_descr. Use register_type instead of
5207 REGISTER_VIRTUAL_TYPE.
5208 (register_type): New function.
5209 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5210 * regcache.h (register_type): Declare.
5212 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5214 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5215 instead of deprecated_store_return_value. Fix fallout from
5216 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5218 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5220 * regcache.c (max_register_size): New function.
5221 (init_legacy_regcache_descr): Ensure that max_register_size is
5222 large enough for REGISTER_VIRTUAL_SIZE.
5223 * regcache.h (max_register_size): Declare.
5225 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5227 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5229 (e500_extract_return_value): Change type of valbuf pointer to
5232 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5234 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5237 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5238 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5239 long long) to prevent compiler warning on 64-bit systems.
5241 2002-08-23 Andrew Cagney <cagney@redhat.com>
5243 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5244 (DEPRECATED_STORE_RETURN_VALUE): New method.
5245 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5246 * gdbarch.h, gdbarch.c: Re-generate.
5248 * values.c (set_return_value): Pass current_regcache to
5250 * arch-utils.h (legacy_store_return_value): Declare.
5251 * arch-utils.c (legacy_store_return_value): New function.
5252 (legacy_extract_return_value): Update parameters.
5254 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5256 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5257 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5258 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5259 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5260 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5261 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5262 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5263 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5264 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5265 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5268 * i386-tdep.c (i386_extract_return_value): Update.
5269 * arch-utils.c (legacy_extract_return_value): Update.
5270 * frv-tdep.c (frv_gdbarch_init): Update.
5271 * cris-tdep.c (cris_gdbarch_init): Update.
5272 * d10v-tdep.c (d10v_gdbarch_init): Update.
5273 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5274 * m68k-tdep.c (m68k_gdbarch_init): Update.
5275 * mcore-tdep.c (mcore_gdbarch_init): Update.
5276 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5277 * s390-tdep.c (s390_gdbarch_init): Update.
5278 * sparc-tdep.c (sparc_gdbarch_init): Update.
5279 * sh-tdep.c (sh_gdbarch_init): Update.
5280 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5281 * v850-tdep.c (v850_gdbarch_init): Update.
5282 * avr-tdep.c (avr_gdbarch_init): Update.
5283 * ia64-tdep.c (ia64_gdbarch_init): Update.
5284 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5285 * vax-tdep.c (vax_gdbarch_init): Update.
5286 * alpha-tdep.c (alpha_gdbarch_init): Update.
5287 * arm-tdep.c (arm_gdbarch_init): Update.
5288 * mips-tdep.c (mips_gdbarch_init): Update.
5289 * i386-tdep.c (i386_gdbarch_init): Update.
5291 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5293 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5294 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5296 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5298 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5301 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5303 * infrun.c (handle_inferior_event): Move a comment outside of a
5304 function call, in order to avoid indent reformatting this part
5305 of the code in an unreadable way.
5307 2002-08-23 Grace Sainsbury <graces@redhat.com>
5309 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5310 when breakpoints fail. Move general breakpoint error messages to
5312 * breakpoint.c (insert_breakpoints): Change warnings when
5313 breakpoints are nto inserted to specify the type. Remove call to
5314 memory_error when hardware breakpoints can't be inserted. Remove
5315 multiple calls to warning so all messages are sent to the user at
5317 (delete_breakpoints): Make insert error messsages more explicit.
5319 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5321 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5322 gdbserver/ChangeLog.
5324 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5326 * i386-tdep.c: Include "objfiles.h".
5327 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5328 skip_trampoline_code.
5329 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5330 (CPLUS_MARKER): Define to '.'.
5332 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5334 (linux_corefile_thread_callback): Increase args->num_notes.
5335 (linux_make_note_section): Initialize thread_args.num_notes, and
5336 use it to determine whether notes for any threads were created.
5338 2002-08-23 Donn Terry <donnte@microsoft.com>
5340 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5341 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5343 (write_with_trace): Conditionalize out the switch branch handling
5344 PCSHOLD if the corresponding macro is not defined. Likewise for
5345 PRSABORT and PRSTOP.
5346 This change will be needed by the Interix port.
5348 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5350 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5351 write_register wherever possible instead of manipulating the
5352 register bytes directly.
5353 Assign VALUE_CONTENTS to a variable and use that.
5354 The GPR numbers are now dependent on the architecture.
5356 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5358 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5360 (skip_prologue): Add support for BookE/e500 instructions.
5361 (e500_extract_return_value): New function.
5362 (frame_get_saved_regs): Add support for saving ev registers and
5364 (e500_store_return_value): New function.
5365 (rs6000_gdbarch_init): Move up default intializations of
5366 deprecated_extract_return_value and store_return_value. Overwrite
5367 init of store_return_value with e500 specific version.
5368 Set extract_return_value for e500.
5370 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5372 * blockframe.c (generic_call_dummy_register_unwind): Use
5373 regcache_cooked_read to catch cases in which the variable is
5374 stored in a pseudo register.
5376 2002-08-22 Andrew Cagney <cagney@redhat.com>
5378 * NEWS: Mention that the i960 has been made obsolete.
5379 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5381 (remote-nrom.o): Obsolete target.
5382 (remote-nindy.o, i960-tdep.o): Ditto.
5383 * remote-nrom.c: Make file obsolete.
5384 * remote-nindy.c, remote-vx960.c: Ditto.
5385 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5386 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5387 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5388 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5389 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5390 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5391 i960-*-vxworks* obsolete.
5392 * MAINTAINERS: Note that the i960 is obsolete.
5394 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5396 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5397 detach to allow reinitialization.
5399 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5401 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5404 2002-08-22 Jim Blandy <jimb@redhat.com>
5406 * coffread.c (coff_symfile_read): Don't try to read the line
5407 number table from disk if the image file doesn't have a symbol
5408 table; we'll never actually look at the info anyway, and Windows
5409 ships DLL's with bogus file offsets for the line number data.
5411 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5413 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5416 2002-08-21 Michael Snyder <msnyder@redhat.com>
5418 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5419 (MSYMBOL_SIZE): Replace macro with function.
5420 (DEFAULT_MIPS_TYPE): Delete unused macro.
5421 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5422 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5424 2002-08-21 Jim Blandy <jimb@redhat.com>
5426 * valops.c (value_cast): Simplify and correct logic for doing a
5427 static cast from a pointer to a base class to a pointer to a
5430 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5432 * infcmd.c (default_print_registers_info): Replace
5434 (registers_info): Use gdbarch_print_registers_info instead of
5436 * inferior.h (default_print_registers_info): Replace
5438 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5439 (DO_REGISTERS_INFO): Change to a predicate function.
5440 * gdbarch.h, gdbarch.c: Regenerate.
5442 2002-08-21 Keith Seitz <keiths@redhat.com>
5444 * gdb-events.sh: Add target-changed event.
5445 * gdb-events.c: Regenerated.
5446 * gdb-events.c: Regenerated.
5447 * valops.c (value_assign): Add target-changed event notification
5448 to inlval_register, lval_memory, and lval_reg_frame_relative.
5450 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5452 * NEWS: Add an entry regarding the improvement of the next/step
5453 operation on Alpha Tru64 multi-processor machines.
5455 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5457 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5459 * Makefile.in: Update all _h macro definitions.
5460 * Makefile.in (install-gdbtk): Move to install section.
5461 (rdi-share/libangsd.a): Move to end of file.
5463 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5465 * frame.c (frame_register_unwind): When a register, set addrp to
5466 the register's byte.
5468 2002-08-20 Michael Snyder <msnyder@redhat.com>
5470 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5471 used locally, so move them from the target machine header to here.
5472 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5473 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5475 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5477 2002-08-20 Andrew Cagney <cagney@redhat.com>
5479 * NEWS: Mention that the Apollo line was made obsolete.
5480 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5481 m68*-hp-hpux* obsolete.
5482 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5483 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5484 * buildsym.c (make_blockvector): Make static.
5485 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5486 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5487 (ALLDEPFILES): Remove dstread.c.
5488 (dstread.o): Obsolete make rule.
5489 * dstread.c: Makefile obsolete.
5491 * config/m68k/hp300hpux.mt: Ditto.
5492 * config/m68k/hp300hpux.mh: Ditto.
5493 * config/m68k/hp300bsd.mt: Ditto.
5494 * config/m68k/hp300bsd.mh: Ditto.
5495 * config/m68k/apollo68b.mt: Ditto.
5496 * config/m68k/apollo68v.mh: Ditto.
5497 * config/m68k/apollo68b.mh: Ditto.
5499 2002-08-20 Michael Snyder <msnyder@redhat.com>
5501 * mips-tdep.c (mips_in_return_stub): Make static.
5502 (mips_gdbarch_init): Set in_solib_return_trampoline.
5503 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5505 2002-08-20 Michael Snyder <msnyder@redhat.com>
5507 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5508 * gdbarch.c, gdbarch.h: Regenerate.
5509 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5511 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5513 2002-08-20 Michael Snyder <msnyder@redhat.com>
5515 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5516 (mips_gdbarch_init): Set skip_trampoline_code,
5517 in_solib_call_trampoline.
5518 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5519 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5521 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5523 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5525 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5526 vector type for ev registers.
5527 (e500_pseudo_register_read): New function.
5528 (e500_pseudo_register_write): New function.
5529 (e500_dwarf2_reg_to_regnum): New function.
5530 (PPC_UISA_NOFP_SPRS): New macro.
5531 (PPC_EV_REGS): New macro.
5532 (PPC_GPRS_PSEUDO_REGS): New macro.
5533 (registers_e500): New register set for e500.
5534 (variants): Add e500 variant.
5535 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5536 before setting architectural dependent variations. Initialize ev
5537 registers numbers. Add case for e500 architecture. Set the
5538 number of pseudo registers.
5540 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5542 * rs6000-tdep.c: Clean up comments.
5544 2002-08-20 Andrew Cagney <cagney@redhat.com>
5546 * h8300-tdep.c: Re-indent file.
5548 2002-08-20 Jim Blandy <jimb@redhat.com>
5550 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5553 2002-08-20 Keith Seitz <keiths@redhat.com>
5555 * breakpoints.c (watch_command_1): Use internal breakpoint
5556 when setting a watchpoint_scope breakpoint.
5558 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5560 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5561 (build_builtin_type_vec64i): Ditto.
5562 (build_builtin_type_vec128): Ditto.
5563 (build_builtin_type_vec128i): Ditto.
5565 2002-08-19 Michael Snyder <msnyder@redhat.com>
5567 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5568 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5569 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5570 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5571 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5572 CALL_DUMMY_ADDRESS): Delete.
5573 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5574 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5575 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5576 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5577 push_return_address.
5578 (mips_register_raw_size, mips_eabi_use_struct_convention,
5579 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5580 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5581 mips_init_extra_frame_info, mips_eabi_push_arguments,
5582 mips_n32n64_push_arguments, mips_push_return_address,
5583 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5584 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5586 2002-08-19 Michael Snyder <msnyder@redhat.com>
5588 * mips-tdep.c (mips_frame_num_args): New function.
5589 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5590 frame_saved_pc, frame_args_address, frame_locals_address,
5591 frame_num_args, and frame_args_skip.
5592 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5593 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5594 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5595 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5597 2002-08-20 Michael Snyder <msnyder@redhat.com>
5599 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5600 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5601 * mips-tdep.c (mips_store_struct_return): New function.
5602 (mips_extract_struct_value_address): New function.
5603 (mips_gdbarch_init): Set store_struct_return and
5604 extract_struct_value_address.
5606 2002-08-20 David Carlton <carlton@math.stanford.edu>
5608 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5609 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5610 (read_file_scope): Check that line_header is nonzero before
5611 decoding macro information.
5613 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5615 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5616 flag the general-purpose registers as floating-point on targets
5617 that don't support the floating-point registers.
5619 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5621 * rs6000-tdep.c (altivec_register_p): Delete.
5622 (rs6000_do_altivec_registers): Delete.
5623 (rs6000_altivec_registers_info): Delete.
5624 (rs6000_do_registers_info): Delete.
5625 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5626 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5628 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5630 * infcmd.c (do_registers_info): Print vector registers in hex
5632 (print_vector_info): Check that printing registers
5634 (print_float_info): Ditto.
5636 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5638 * mips-tdep.c (mips_gdbarch_init): Update.
5639 (mips_o32_extract_return_value): Rewrite.
5640 (mips_o32_store_return_value): Rewrite.
5641 (mips_o32_xfer_return_value): New function.
5642 (mips_xfer_register): Tweak debug print message. Allow for
5643 buf_offset when dumping the value transfered.
5645 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5647 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5648 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5649 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5650 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5651 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5653 2002-08-14 Michael Snyder <msnyder@redhat.com>
5655 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5657 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5659 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5661 (P): New macro to define a register as a pseudo register.
5662 (R, R4, R8, R16, FR32, R64, R0): Updated.
5663 (struct variant): Add new fields for number of pseudo registers
5664 and number of total registers.
5665 (tot_num_registers): New macro replacing....
5666 (num_registers): ...deleted macro.
5667 (num_registers): New function.
5668 (num_pseudo_registers): New function.
5669 (variants): Update all variants to intialize new fields correctly.
5670 Postpone initialization of number of pseudo regs and real regs.
5671 (init_variants): New function.
5672 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5675 2002-08-19 David Carlton <carlton@math.stanford.edu>
5677 * valops.c (search_struct_field): Change error message to treat
5678 return value of 0 from value_static_field as meaning that field is
5680 (value_struct_elt_for_reference): Ditto.
5681 * values.c (value_static_field): Treat an unresolved location the
5682 same as a nonexistent symbol. Fix PR gdb/635.
5683 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5684 enclosed. Fix PR gdb/574.
5685 * MAINTAINERS: Add self to Write After Approval list.
5687 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5689 * mips-tdep.c (mips_xfer_register): New function.
5690 (mips_n32n64_extract_return_value): Rewrite.
5691 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5692 instead of deprecated_extract_return_value.
5694 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5696 * rs6000-tdep.c (TDEP): Delete macro.
5697 (branch_dest): Replace use of TDEP macro with its body.
5698 (rs6000_pop_frame): Ditto.
5699 (rs6000_push_arguments): Ditto.
5700 (rs6000_skip_trampoline_code): Ditto.
5701 (rs6000_frame_saved_pc): Ditto.
5702 (rs6000_frame_chain): Ditto.
5703 (rs6000_register_name): Ditto.
5704 (rs6000_register_byte): Ditto.
5705 (rs6000_register_raw_size): Ditto.
5706 (rs6000_register_virtual_type): Ditto.
5707 (rs6000_register_convertible): Ditto.
5708 (rs6000_convert_from_func_ptr_addr): Ditto.
5710 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5712 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5714 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5715 MIPS_LINUX_JB_ELEMENT_SIZE.
5716 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5717 for MAX_REGISTER_RAW_SIZE arrays.
5718 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5719 MIPS_LINUX_JB_ELEMENT_SIZE.
5721 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5723 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5725 2002-08-19 Aidan Skinner <aidan@velvet.net>
5727 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5728 ada-valprint.c ada-tasks.c.
5729 (YYFILES): Add ada-exp.y.
5730 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5731 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5732 (ada-exp.tab.o): New target.
5734 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5736 * regcache.c (regcache_xfer_part): New function.
5737 (regcache_raw_read_part): New function.
5738 (regcache_raw_write_part): New function.
5739 (regcache_cooked_read_part): New function.
5740 (regcache_cooked_write_part): New function.
5741 * regcache.h (regcache_raw_read_part): Declare.
5742 (regcache_raw_write_part): Declare.
5743 (regcache_cooked_read_part): Declare.
5744 (regcache_cooked_write_part): Declare.
5746 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5748 * remote.c (remote_open_1): Add async_p.
5749 (remote_async_open_1): Delete.
5750 (open_remote_target): Delete.
5751 (remote_open, extended_remote_open): Update calls to remote_open_1.
5752 (remote_async_open, extended_remote_async_open): Call
5753 remote_open_1 instead of remote_async_open_1.
5755 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5757 * blockframe.c: Fix a few coding standard violations.
5759 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5761 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5763 * config/i386/tm-i386sco5.h: ... here. File removed.
5764 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5766 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5767 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5768 (TM_FILE): Set to tm-i386.h.
5769 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5770 * config/i386/tm-i386v.h: Remove file.
5771 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5772 instead of "i386/tm-i386v.h".
5773 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5774 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5776 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5777 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5780 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5782 * config/i386/nm-i386v.h: Add protection against
5784 (i386_register_u_addr): Remove prototype.
5785 (register_u_addr): New prototype.
5786 (REGISTER_U_ADDR): Redefine accordingly.
5787 * i386v-nat.c: Improve several comments.
5788 (i386_register_u_addr): Change signature and rename to
5789 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5792 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5794 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5795 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5796 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5797 deprecated_extract_return_value.
5798 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5799 rename mips_o32o64_push_arguments.
5800 (mips_gdbarch_init): Update.
5801 (mips_extract_return_value): Delete.
5802 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5803 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5804 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5805 (mips_n32n64_extract_return_value): Clone
5806 mips_extract_return_value.
5807 (mips_store_return_value): Delete.
5808 (mips_o32_store_return_value): Clone mips_store_return_value.
5809 (mips_o64_store_return_value): Clone mips_store_return_value.
5810 (mips_eabi_store_return_value): Clone mips_store_return_value.
5811 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5813 2002-08-18 Aidan Skinner <aidan@velvet.net>
5815 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5816 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5818 2002-08-18 Aidan Skinner <aidan@velvet.net>
5820 * ada-lang.c: Run through gdb_indent.sh.
5821 * ada-lang.h: Run through gdb_indent.sh.
5822 * ada-tasks.c: Run through gdb_indent.sh.
5823 * ada-typeprint.c: Run through gdb_indent.sh.
5824 * ada-valprint.c: Run through gdb_indent.sh.
5826 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5828 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5831 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5833 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5835 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5836 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5838 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5839 write_register_gen instead of write_register_bytes.
5841 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5842 i[3456]-*-osf1mk* configurations have been made obsolete.
5843 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5844 i[3456]86-*-osf1mk* hosts obsolete.
5845 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5847 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5848 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5849 config/i386/i386m3.mt, config/i386/nm-m3.h,
5850 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5851 config/i386/i386mk.mh, config/i386/i386mk.mt,
5852 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5854 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5855 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5856 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5858 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5860 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5861 (hppa_value_returned_from_stack): Declare.
5862 (hppa_extract_return_value): Declare.
5863 * config/pa/hppa.mt: New file.
5864 * configure.tgt: Recognize hppa*-*-*.
5865 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5867 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5869 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5872 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5874 * top.c (gdb_rl_operate_and_get_next): Make sure
5875 operate-and-get-next functions correctly even when the history
5876 list is completely filled.
5878 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5880 * MAINTAINERS (Target Instruction Set Architectures): Rename
5881 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5882 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5883 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5884 already listed under Host/Native.
5886 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5887 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5890 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5892 * config/ia64/ia64.mt: New file.
5893 * config/alpha/alpha.mt: New file.
5894 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5895 ia64-linux-gnu. Mention that ia64-elf is broken.
5896 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5898 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5900 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5901 generic_func_frame_valid instead of func_frame_valid.
5903 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5905 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5906 procfs appears to be broken when debugging on multi-processor
5907 machines. So enable software single stepping in order to avoid
5908 using the procfs interface to do next/step operations, using
5909 internal breakpoints instead.
5911 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5912 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5913 make this pc address equal to the value it would have if the
5914 system stepping capability was used. Also set a new flag used
5915 to ensure that we don't readjust the PC one more time later.
5917 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5918 address by DECR_PC_AFTER_BREAK when software single step is
5919 in use for this architecture, as this has already been taken
5920 care of in handle_inferior_event().
5922 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5924 * infrun.c (handle_inferior_event): Minor reformatting, to make
5925 a rather long condition expression easier to read.
5927 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5929 * Makefile.in (gdbtk.o): Move to end of file.
5930 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5931 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5932 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5933 (gdbtk-wrapper.o, gdbres.o): Ditto.
5935 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5937 * Makefile.in (copying.o): Separate out compile rule.
5938 (hpux-thread.o, procfs.o, signals.o): Ditto.
5939 (v850ice.o, z8k-tdep.o): Ditto.
5940 (tui-file.o): Move to TUI section.
5941 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5942 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5944 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5946 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5947 skip_trampoline_code, for better namespace-proofing.
5949 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5951 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5953 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5955 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5957 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5958 signal, check whether we hit a breakpoint before checking for a
5959 single step breakpoint. Otherwise, GDB fails to notice that a
5960 breakpoint has been hit when stepping onto a breakpoint.
5962 2002-08-16 Keith Seitz <keiths@redhat.com>
5964 * gdb-events.sh (clear_gdb_event_hooks): New function.
5965 * gdb-events.c: Regenerate.
5966 * gdb-events.h: Regenerate.
5968 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5970 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5971 not_a_sw_breakpoint.
5972 * breakpoint.h (bpstat_stop_status): Add parameter names.
5974 2002-08-16 Grace Sainsbury <graces@redhat.com>
5976 * remote.c (remote_insert_hw_breakpoint)
5977 (remote_remove_hw_breakpoint): Fix calculation of length field
5980 2002-08-15 Michael Snyder <msnyder@redhat.com>
5982 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5983 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5984 (supply_fpregset): Ditto.
5986 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5987 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5988 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5989 (TARGET_READ_SP): Delete.
5990 (DO_REGISTERS_INFO): Delete.
5991 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5993 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5994 from macros to functions.
5996 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5997 (mips_register_convertible, mips_register_convert_to_virtual,
5998 mips_register_convert_to_raw): Make static.
5999 (mips_read_sp): New function.
6000 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
6001 (mips_do_registers_info): Make static.
6002 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
6003 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
6004 (mips_register_convert_from_type, mips_register_convert_to_type):
6006 (mips_gdbarch_init): Set up function_start_offset,
6007 register_virtual_size, pc_in_sigtramp.
6009 2002-08-15 Andrew Cagney <ac131313@redhat.com>
6011 * infcmd.c (vector_info): New function.
6012 (_initialize_infcmd): Add command "info vector".
6013 (print_vector_info): New function.
6015 * gdbarch.sh (PRINT_VECTOR_INFO): New method
6016 * gdbarch.h, gdbarch.c: Regenerate.
6018 2002-08-15 Andrew Cagney <ac131313@redhat.com>
6020 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
6021 ``print_all''. Only print vector registers when ``print_all''.
6023 2002-08-15 Andrew Cagney <ac131313@redhat.com>
6025 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
6026 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
6028 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
6029 Add `args' parameter.
6030 * gdbarch.h, gdbarch.c: Regenerate.
6032 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
6034 * infcmd.c (float_info): Call print_float_info.
6035 (print_float_info): New function. By default, print the
6036 floating-point registers.
6038 * arch-utils.h (default_print_float_info): Delete declaration.
6039 * arch-utils.c (default_print_float_info): Delete function.
6041 2002-08-16 Mark Kettenis <kettenis@gnu.org>
6043 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
6046 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
6049 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
6050 * configure.host: Make i[3456]86-*-aix host obsolete.
6051 * configure.tgt: Make i[3456]86-*-aix target obsolete.
6052 * config/i386/i386aix.mh, config/i386/i386aix.mt,
6053 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
6054 config/i386/xm-i386aix.h: Make files obsolete.
6055 * i386aix-nat.c: Make file obsolete.
6056 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
6057 (i386aix-nat.o): Make target obsolete.
6059 * config/i386/nm-gnu.h: Removed.
6060 * config/i386/nm-i386gnu.h: New file.
6061 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
6062 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
6064 * config/i386/tm-i386gnu.h: ... here. Removed.
6065 * config/i386/xm-i386gnu.h: Removed.
6066 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
6067 (NAT_FILE): Set to nm-i386gnu.h.
6068 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
6069 * i386-tdep.c: New file.
6070 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6071 (i386gnu-tdep.o): Specify dependencies.
6073 2002-08-15 Mark Kettenis <kettenis@gnu.org>
6075 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6076 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6077 Adjust a few comments to reflect reality a bit closer.
6078 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6079 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6080 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6081 target_insert_watchpoint, target_remove_watchpoint):
6083 * config/i386/nm-i386sco5.h: ... here.
6084 (kernel_u_size): Add prototype. Improve a few comments and add
6085 protection against multiple inclusion.
6087 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6090 * uw-thread.c (SP_ARG0): Define if not already defined.
6091 * config/i386/tm-i386.h (SO_ARG0): Remove define.
6093 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6095 * config/i386/tm-i386.h: Don't include "regcache.h".
6097 * i387-tdep.h (i387_print_float_info): New prototype.
6098 * i387-tdep.c (print_i387_value, print_i387_ext,
6099 print_i387_status_word, print_i387_control_word): Add `struct
6100 ui_file *' argument and use it for output.
6101 (i387_print_float_info): Renamed from i387_float_info. Add
6102 `struct gdbarch *' and `struct ui_file *' arguments and use the
6104 * i386-tdep.c: Include "i387-tdep.h".
6105 (i386_gdbarch_init): Set print_float_info.
6106 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6107 (FLOAT_INFO): Remove define.
6109 2002-08-13 Michael Snyder <msnyder@redhat.com>
6111 * mips-tdep.c (mips_push_arguments): Rename to
6112 mips_eabi_push_arguments, and tune for EABI.
6113 (MIPS_REGS_HAVE_HOME_P): Delete.
6114 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6115 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6116 Delete references to mips_regs_have_home_p.
6118 2002-08-14 Keith Seitz <keiths@redhat.com>
6120 * Makefile.in (install-gdbtk): Create insight plugin directory.
6121 Install plugins.tcl file.
6123 2002-08-14 Keith Seitz <keiths@redhat.com>
6125 * configure.in: Move SUBDIRS to near top of the file so that
6126 --enable options may add things to it.
6127 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6128 * configure: Regenerate.
6130 2002-08-13 Michael Snyder <msnyder@redhat.com>
6132 * mips-tdep.c (mips_o32o64_push_arguments): New function,
6133 cloned from mips_push_arguments, tuned for o32/o64 ABI.
6134 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6136 2002-08-13 Andrew Cagney <ac131313@redhat.com>
6138 * vax-tdep.c (vax_get_saved_register): Delete function.
6139 (vax_gdbarch_init): Update.
6140 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6141 (ns32k_gdbarch_init): Update.
6142 * alpha-tdep.c (alpha_get_saved_register): Delete function.
6143 (alpha_gdbarch_init): Update.
6145 2002-08-13 Andrew Cagney <cagney@redhat.com>
6147 * regcache.c (init_regcache_descr): Overallocate the
6148 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6149 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6151 (set_register_cached): Add range checking assertions. Use
6154 2002-08-13 Mark Kettenis <kettenis@gnu.org>
6156 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6157 numbers for MMX registers.
6159 2002-08-13 Andrew Cagney <cagney@redhat.com>
6161 * i386-tdep.c (i386_gdbarch_init): Use
6162 generic_unwind_get_saved_register.
6164 2002-08-13 Kevin Buettner <kevinb@redhat.com>
6166 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6167 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6169 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6170 Delete. Add comment regarding this now-deleted target method.
6172 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6174 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6175 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6176 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6177 real PC and the page number (if it's within the memory bank window).
6178 (m68hc11_pseudo_register_write): Likewise when saving.
6179 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6180 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6181 (m68hc11_register_raw_size): And use 32-bit for it.
6182 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6183 16K memory bank is used by the prog; also use the virtual pc.
6185 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6187 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6188 (m68hc11_gdbarch_init): Install it in gdbarch.
6189 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6190 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6191 (MSYMBOL_SIZE): New for documentation.
6192 (insn_return_kind): Enum to specify how a function returns.
6193 (frame_extra_info): Cleanup and record the return mode.
6194 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6195 register in address computation.
6196 (m68hc11_get_return_insn): New to obtain the return instruction used
6198 (m68hc11_frame_init_saved_regs): Take into account the return
6199 instruction used by the function for far and interrupt functions.
6200 (m68hc11_init_extra_frame_info): Take into account page register.
6201 (m68hc11_frame_args_address): Adjust according to the return mode.
6202 (show_regs): Print page register only when it's used.
6204 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6206 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6207 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6208 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6210 (m68hc11_register_raw_size): Likewise.
6212 2002-08-13 Andrew Cagney <cagney@redhat.com>
6214 * i386-tdep.c (i386_register_name): Handle mmx registers.
6215 (mmx_regnum_p): New function.
6216 (i386_mmx_names): New array.
6217 (mmx_num_regs): New variable.
6218 (i386_pseudo_register_read): New function.
6219 (i386_pseudo_register_write): New function.
6220 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6222 * regcache.c (regcache_raw_read_unsigned): New function.
6223 (regcache_raw_read_signed): New function.
6224 * regcache.h (regcache_raw_read_unsigned): Declare.
6225 (regcache_raw_read_signed): Declare.
6227 2002-08-13 Andrew Cagney <cagney@redhat.com>
6229 * regcache.c (regcache_raw_read_as_address): Delete function.
6230 (regcache_cooked_read_signed): New function.
6231 (regcache_cooked_read_unsigned): New function.
6232 * regcache.h (regcache_cooked_read_signed): Declare.
6233 (regcache_cooked_read_unsigned): Declare.
6234 (regcache_raw_read_as_address): Delete declaration.
6236 * blockframe.c (generic_read_register_dummy): Use
6237 regcache_cooked_read_unsigned.
6238 * i386-tdep.c (i386_extract_struct_value_address): Use
6239 regcache_cooked_read_unsigned.
6241 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6243 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6244 double sizes according to ELF ABI flags.
6245 (gdbarch_tdep): Record elf_flags.
6247 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6249 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6250 (m6812_prolog): They can appear in 68HC12 function prologue.
6251 (m68hc11_frame_chain): Cleanup.
6253 2002-08-12 Andrew Cagney <cagney@redhat.com>
6255 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6257 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6258 (i386_linux_register_raw_size): Delete function.
6259 (i386_linux_init_abi): Update.
6260 * i386-tdep.c (i386_register_raw_size): Delete function.
6261 (i386_register_byte): Delete function.
6262 (i386_gdbarch_init): Update.
6263 (i386_register_size): Delete array.
6264 (i386_register_offset): Delete array.
6266 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6267 (REGISTER_RAW_SIZE): Delete macro.
6268 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6269 (REGISTER_BYTE): Delete macro.
6271 2002-08-11 Aidan Skinner <aidan@velvet.net>
6273 * ada-lang.c (ada_lookup_partial_symbol)
6274 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6275 prototype names so that grep ^func works properly.
6277 * ada-lang.c (ada_array_element_type)
6278 (ada_lookup_partial_symbol): Fix typos in parameter list.
6280 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6281 Fix prototype names so that grep ^func works properly.
6283 2002-08-10 Andrew Cagney <cagney@redhat.com>
6284 Elena Zannoni <ezannoni@redhat.com>
6285 Martin M. Hunt <hunt@redhat.com>
6287 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6288 (build_builtin_type_vec128i): Set the vector bit.
6289 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6290 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6291 (build_builtin_type_vec64): New function.
6292 (build_builtin_type_vec64i): New function.
6293 (build_gdbtypes): Initialize builtin_type_vec64 and
6294 builtin_type_vec64i.
6296 2002-08-09 Andrew Cagney <cagney@redhat.com>
6298 * regcache.c (regcache_dump): Compare the register offset
6300 * arch-utils.c (generic_register_byte): New function.
6301 * arch-utils.h (generic_register_byte): Declare.
6302 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6303 * gdbarch.h, gdbarch.c: Regenerate.
6305 2002-08-09 Andrew Cagney <cagney@redhat.com>
6307 * regcache.c: Include "gdbcmd.h"
6308 (_initialize_regcache): Add commands "maintenance print
6309 registers", "maintenance print raw-registers" and "maintenance
6310 print cooked-registers".
6311 (enum regcache_dump_what): Define.
6312 (dump_endian_bytes): New function.
6313 (regcache_dump): New function.
6314 (regcache_print): New function.
6315 (maintenance_print_registers): New function.
6316 (maintenance_print_raw_registers): New function.
6317 (maintenance_print_cooked_registers): New function.
6318 * Makefile.in (regcache.o): Update dependencies.
6320 2002-08-09 Michael Snyder <msnyder@redhat.com>
6322 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6323 (mips_push_arguments): Correct some comments. Use paddr_nz
6324 for printing addresses in debug output. Replace static
6325 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6326 (mips_n32n64_push_arguments): New function, cloned from
6327 mips_push_arguments and tuned for the n32/n64 ABI.
6328 (mips_push_register): Buffer needs dynamic allocation.
6329 (mips_print_register): Ditto.
6330 (do_gp_register_row): Ditto.
6331 (mips_store_return_value): Ditto.
6332 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6334 2002-08-09 Don Howard <dhoward@redhat.com>
6336 * memattr.c (mem_info_command): Print special case of upper bound
6337 as max CORE_ADDR + 1.
6339 2002-08-08 Michael Snyder <msnyder@redhat.com>
6341 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6342 returns structs by ref if they're too big to fit in two registers.
6344 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6346 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6348 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6349 mips_find_saved_regs().
6350 (mips_pop_frame): Likewise.
6352 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6354 * blockframe.c (frame_saved_regs_register_unwind): Revise
6355 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6358 2002-08-09 Grace Sainsbury <graces@redhat.com>
6360 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6361 T-packets; the 'a' is not taken as a register number.
6362 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6363 (remote_stopped_data_address): New functions; add to target
6365 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6366 prototypes to match other implementations of this
6367 function. replace integer argument with pointer -- the length
6368 field in the Z-packet is the length of what is pointed to or 1 if
6369 pointer is null. Add to target vector.
6370 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6374 * remote.c (remote_wait): Add support to extract optional
6375 watchpoint information from T-packet. Ignore unrecognized
6376 optional info in T-packet.
6377 (remote_async_wait): Ditto.
6379 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6381 * cli/cli-dump.c: Change fopen modes to use binary open modes
6382 as defined in include/fopen-bin.h throughout.
6384 2002-08-08 Michael Snyder <msnyder@redhat.com>
6386 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6388 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6390 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6391 assertion failure by returning early after a warning.
6393 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6395 * mips-tdep.c (mips_find_saved_regs): Make static.
6396 (mips_frame_init_saved_regs): New function.
6397 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6398 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6399 (mips_find_saved_regs): Delete declaration.
6401 2002-08-08 Grace Sainsbury <graces@redhat.com>
6403 * remote.c (remote_wait, remote_async_wait): Change
6404 thread_num from int to ULONGEST.
6405 (unpack_varlen_hex): Change result parameter from
6406 int * to ULONGEST *.
6408 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6410 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6411 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6413 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6415 2002-08-08 Andrew Cagney <cagney@redhat.com>
6417 * gcore.c (override_derive_stack_segment): Delete variable.
6418 (preempt_derive_stack_segment): Delete function.
6419 (derive_stack_segment): Delete function.
6420 (default_derive_stack_segment): Renamed to derive_stack_segment.
6421 (override_derive_heap_segment): Delete variable.
6422 (preempt_derive_heap_segment): Delete function.
6423 (derive_heap_segment): Delete function.
6424 (default_derive_heap_segment): Rename to derive_heap_segment.
6426 2002-08-06 Michael Snyder <msnyder@redhat.com>
6428 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6429 * mips-tdep.c (mips_EABI_use_struct_convention,
6430 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6431 New functions. (mips_use_struct_convention): Delete.
6432 (mips_gdbarch_init): set use_gdbarch_convention.
6434 2002-08-06 Michael Snyder <msnyder@redhat.com>
6436 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6437 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6438 mips_o32_reg_struct_has_addr): New functions.
6439 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6441 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6443 * regcache.c (pseudo_register): Delete function.
6444 (fetch_register): Delete function.
6445 (store_register): Delete function.
6446 (regcache_raw_read, legacy_read_register_gen): Use
6447 target_fetch_registers instead of fetch_register.
6448 (legacy_write_register_gen, regcache_raw_write): Use
6449 target_store_register instead of store_register.
6450 (write_register_bytes): Ditto.
6452 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6453 (STORE_PSEUDO_REGISTER): Delete.
6454 * gdbarch.h, gdbarch.c: Regenerate.
6456 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6458 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6459 write dump file binary.
6461 2002-08-05 Michael Snyder <msnyder@redhat.com>
6463 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6464 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6465 (mips_gdbarch_init): Set N32 target to be mips64.
6467 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6469 * frame.c (find_saved_register): Break out of loop once saved
6470 register address is found. Don't mention sparc in loop comment
6473 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6475 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6476 mips_default_saved_regsize to 8.
6478 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6480 * gcore.c: Do not include <sys/procfs.h>.
6481 * Makefile.in (gcore.o): Update dependencies.
6483 2002-08-06 Andrew Cagney <cagney@redhat.com>
6485 * configure.tgt: Make arc-*-* obsolete.
6486 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6487 * MAINTAINERS: Make arc-elf obsolete.
6488 * arc-tdep.c: Make file obsolete.
6489 * config/arc/arc.mt: Ditto.
6490 * config/arc/tm-arc.h: Ditto.
6492 2002-08-05 Theodore A. Roth <troth@verinet.com>
6494 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6496 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6498 * mcore-tdep.c (mcore_gdbarch_init): Use
6499 generic_unwind_get_saved_register instead of
6500 generic_get_saved_register.
6501 * v850-tdep.c (v850_gdbarch_init): Ditto.
6502 * frv-tdep.c (frv_gdbarch_init): Ditto.
6503 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6504 * s390-tdep.c (s390_gdbarch_init): Ditto.
6505 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6506 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6507 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6509 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6511 * objfiles.h: Add missing #include "symfile.h"
6513 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6515 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6517 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6518 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6521 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6523 * NEWS: Cleanup and nitpick.
6525 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6527 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6529 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6531 * Makefile.in (gdbtk-bp.o): Update dependencies.
6532 (gdbtk-register.o): Ditto.
6533 (gdbtk-varobj.o): Ditto.
6535 2002-08-03 Andrew Cagney <cagney@redhat.com>
6537 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6538 m68hc11_fetch_pseudo_register.
6539 (m68hc11_pseudo_register_write): Replace
6540 m68hc11_store_pseudo_register.
6541 (m68hc11_gdbarch_init): Update.
6543 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6545 * gdbarch.sh: Include "gdb_string.h".
6546 * gdbarch.c: Regenerate.
6548 * regcache.c: Include "gdb_string.h".
6549 * ax-general.c: Ditto.
6551 * std-regs.c: Ditto.
6552 * fbsd-proc.c: Ditto.
6555 * Makefile.in (regcache.o): Update dependencies.
6556 (thread.o, gdbarch.o): Ditto.
6557 (ax-general.o, gdbarch.o): Ditto.
6558 (varobj.o, std-regs.o): Ditto.
6559 (fbsd-proc.o): Specify dependencies.
6561 2002-08-02 Andrew Cagney <cagney@redhat.com>
6563 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6565 (regcache_cooked_write): Ditto.
6567 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6569 * regcache.c (regcache_cooked_read): New function.
6570 (regcache_cooked_write): New function.
6571 (read_register_gen): Rewrite using regcache_cooked_read.
6572 (write_register_gen): Rewrite using regcache_cooked_write.
6574 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6577 2002-08-02 Andrew Cagney <cagney@redhat.com>
6579 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6580 Replace the architecture methods register_read and register_write.
6581 * gdbarch.h, gdbarch.c: Regenerate.
6582 * regcache.c (init_regcache_descr): Update.
6583 (read_register_gen): Update.
6584 (write_register_gen): Update.
6585 (supply_register): Update comment.
6587 * sh-tdep.c (sh_gdbarch_init): Update.
6588 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6589 `regcache' and `gdbarch' parameters. Make `buffer' a void
6590 pointer. Update code.
6591 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6592 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6593 void pointer. Update code.
6594 (sh64_register_write): Delete.
6595 (sh4_register_read): Delete.
6596 (sh64_register_read): Delete.
6597 (sh4_register_write): Delete.
6598 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6599 void pointer, `to' parameter a void pointer.
6600 (sh_sh64_register_convert_to_raw): Ditto.
6602 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6604 * mips-tdep.c (mips_register_virtual_type): Use architecture
6605 invariant return values.
6607 2002-08-01 Andrew Cagney <cagney@redhat.com>
6609 * linux-proc.c: Include "gdb_string.h".
6610 * Makefile.in (linux-proc.o): Update dependency list.
6612 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6614 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6617 2002-08-01 Grace Sainsbury <graces@redhat.com>
6619 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6620 to_insert_watchpoint, to_remove_watchpoint,
6621 to_stopped_by_watchpoint, to_stopped_data_address,
6622 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6623 target vecctor. Define their corresponding macros so they call
6626 * target.c: Add default and debug versions of for
6627 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6628 to_insert_watchpoint, to_remove_watchpoint,
6629 to_stopped_by_watchpoint, to_stopped_data_address,
6630 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6632 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6634 * mips-tdep.c (mips_register_virtual_type): New function.
6635 (mips_gdbarch_init): Register mips_register_virtual_type()
6636 with gdbarch machinery.
6637 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6638 this file instead of tm-bigmips.h.
6639 (MIPS_REGSIZE): Delete this macro.
6640 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6641 multiarch version in mips-tdep.c will be found.
6643 2002-08-01 Andrew Cagney <cagney@redhat.com>
6645 * NEWS: Menion that CHILL has been made obsolete.
6647 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6648 * stabsread.c (read_range_type): Ditto.
6649 * gdbtypes.h: Ditto.
6650 * language.c (binop_type_check): Ditto.
6651 (binop_result_type): Ditto.
6652 (integral_type): Ditto.
6653 (character_type): Ditto.
6654 (string_type): Ditto.
6655 (boolean_type): Ditto.
6656 (structured_type): Ditto.
6657 (lang_bool_type): Ditto.
6658 (binop_type_check): Ditto.
6659 * language.h (_LANG_chill): Ditto.
6660 * dwarfread.c (set_cu_language): Ditto.
6661 * dwarfread.c (CHILL_PRODUCER): Ditto.
6662 * dwarfread.c (handle_producer): Ditto.
6663 * expression.h (enum exp_opcode): Ditto.
6664 * eval.c: Ditto for comments.
6665 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6666 * expprint.c (print_subexp): Ditto.
6667 (print_subexp): Ditto.
6668 * valops.c (value_cast): Ditto.
6669 (search_struct_field): Ditto.
6670 * value.h (COERCE_VARYING_ARRAY): Ditto.
6671 * symfile.c (init_filename_language_table): Ditto.
6672 (add_psymbol_with_dem_name_to_list): Ditto.
6673 * valarith.c (value_binop): Ditto.
6675 * valops.c (value_slice): Ditto.
6676 * symtab.h (union language_specific): Ditto.
6677 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6678 (SYMBOL_DEMANGLED_NAME): Ditto.
6679 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6680 * defs.h (enum language): Ditto.
6681 * symtab.c (got_symtab): Ditto.
6682 * utils.c (fprintf_symbol_filtered): Ditto.
6684 * ch-typeprint.c: Make file obsolete.
6685 * ch-valprint.c: Make file obsolete.
6686 * ch-lang.h: Make file obsolete.
6687 * ch-exp.c: Make file obsolete.
6688 * ch-lang.c: Make file obsolete.
6690 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6692 (TARGET_FLAGS_TO_PASS): Ditto.
6693 (CHILLFLAGS): Obsolete.
6695 (CHILL_FOR_TARGET): Obsolete.
6696 (CHILL_LIB): Obsolete.
6697 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6699 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6700 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6702 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6705 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6707 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6708 This does not change anything at the moment, but will be helpful
6709 later when full Ada support is integrated.
6711 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6713 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6716 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6718 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6719 and save it in a local variable. Use variable in later test.
6721 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6723 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6724 test. (Thanks to Daniel Jacobowitz.)
6726 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6728 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6729 (mips_abi_strings): Add "n64".
6730 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6732 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6734 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6735 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6737 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6739 * utils.c (host_pointer_to_address, address_to_host_pointer):
6740 Use gdb_assert() instead of explicit call to internal_error().
6742 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6744 * Makefile.in (rs6000-nat.o): Update dependencies.
6746 From Nicholas Duffek:
6747 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6748 (aix-thread.o): New rule.
6749 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6750 * config/powerpc/aix432.mh: New file.
6752 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6754 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6755 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6756 (fetch_core_registers, ppc_linux_supply_gregset)
6757 (ppc_linux_supply_fpregset): New functions.
6758 (ppc_linux_regset_core_fns): New.
6759 (_initialize_ppc_linux_tdep): Call add_core_fns.
6760 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6761 and ppc_linux_supply_gregset.
6762 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6763 (supply_fpregset): Call ppc_linux_supply_fpregset.
6764 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6766 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6768 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6770 * symtab.c (lookup_symbol): Demangle before lowercasing.
6772 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6774 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6776 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6777 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6778 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6779 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6781 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6782 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6783 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6784 (avr-tdep.o, mon960-rom.o): Ditto.
6785 (aout_stabs_gnu_h): Define.
6786 (symtab_h): Remove $(gdb_obstack_h).
6788 2002-07-30 Jim Blandy <jimb@redhat.com>
6790 Patch from David Carlton <carlton@math.stanford.edu>:
6791 * gdbinit.in: Move the `dir' commands that add GDB's own source
6792 directory to the search path to the end, so that the `gdb' source
6793 directory will be searched first.
6795 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6797 * gdb_obstack.h: New file.
6798 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6799 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6800 * objfiles.h: Include "gdb_obstack.h".
6801 * Makefile.in (gdb_obstack_h): Define.
6802 (symtab_h): Add $(gdb_obstack_h).
6803 (objfiles_h): Add $(gdb_obstack_h).
6805 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6806 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6807 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6808 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6809 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6810 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6811 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6812 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6814 * Makefile.in (bcache.o): Update dependencies.
6815 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6816 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6817 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6818 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6819 (stabsread.o, symfile.o, symmisc.o): Ditto.
6820 (symtab.o, typeprint.o, macroexp.o): Ditto.
6821 (macrotab.o, mdebugread.o): Ditto.
6822 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6823 (coff_ecoff_h, aout_aout64_h): Define.
6824 (aout_stabs_gnu_h, libaout_h): Define.
6826 2002-07-29 Andrew Cagney <cagney@redhat.com>
6828 * regcache.c (struct regcache_descr): Rename nr_registers to
6829 nr_cooked_registers. Revise comments describing the structure
6831 (init_regcache_descr): Update.
6832 (init_legacy_regcache_descr): Update.
6833 (read_register_gen, write_register_gen): When a cooked register in
6834 the raw register range, directly access the value from the raw
6837 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6839 * z8k-tdep.c: Do not include "obstack.h".
6840 * h8300-tdep.c, h8500-tdep.c: Ditto.
6841 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6842 * valprint.c, v850-tdep.c: Ditto.
6843 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6844 * mn10200-tdep.c: Ditto.
6846 * Makefile.in (z8k-tdep.o): Update dependencies.
6847 (m68hc11-tdep.o, valprint.o): Ditto.
6848 (v850-tdep.o, d10v-tdep.o): Ditto.
6849 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6850 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6851 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6852 (sh_opc_h, gdb_sim_sh_h): Define.
6853 (elf_sh_h, elf_bfd_h): Define.
6854 (opcode_m68hc11_h): Define.
6855 (OPCODES_SRC, OPCODES_DIR): define.
6856 (OPCODES): Use $(OPCODES_DIR).
6857 (gdb_sim_d10v_h): Rename sim_d10v_h.
6858 (gdb_sim_arm_h): Rename sim_arm_h.
6860 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6862 * utils.c (host_pointer_to_address, address_to_host_pointer):
6863 Change internal_error() message to indicate function responsible
6866 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6868 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6869 calls to local_hex_string_custom().
6871 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6873 * irix5-nat.c: Move IRIX shared library support from here...
6874 * solib-irix.c: ...to here. Revised substantially to work with
6875 generic solib framework.
6877 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6878 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6879 * mips-irix-tdep.c: New file.
6881 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6882 (mips-irix-tdep.o, solib-irix.o): New rules.
6883 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6885 * config/mips/irix6.mt (TDEPFILES): Likewise.
6886 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6888 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6890 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6891 disabled (via ``#if 0'') includes.
6893 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6895 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6896 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6897 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6898 Add support for the fpscr register.
6899 * rs6000-nat.c (regmap, fetch_inferior_registers)
6900 (store_inferior_registers, fetch_core_registers): Likewise.
6902 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6904 * rs6000-nat.c (language.h): Include.
6905 (special_regs): Delete this array.
6906 (regmap): New function.
6907 (fetch_register, store_register): Use regmap() to map gdb
6908 register numbers to ptrace register numbers. Also, use
6909 outputs from regmap() to make decisions regarding type of
6910 ptrace() call to make. In particular, don't compare against
6911 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6912 (fetch_inferior_registers, store_inferior_registers): Where
6913 possible, obtain register numbers from tdep struct. Don't
6914 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6915 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6916 (LAST_UISA_SP_REGNUM): Delete.
6918 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6920 * rs6000-nat.c (ppc-tdep.h): Include.
6921 (fetch_registers, store_register, fetch_core_registers): Don't
6922 access registers[] directly. Instead, use supply_register() or
6923 regcache_collect() as appropriate.
6924 (find_toc_address): Format hex address with local_hex_string().
6926 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6928 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6931 2002-07-24 Tom Tromey <tromey@redhat.com>
6933 * jv-exp.y: Marked all strings with _().
6934 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6936 (MethodInvocation, CastExpression, parse_number, yyerror,
6937 java_type_from_name, push_expression_name, yylex): Typo fixes.
6939 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6941 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6942 (tee_file_flush, tee_file_write, tee_file_fputs)
6943 (tee_file_isatty): New.
6944 * ui-file.h (tee_file_new): Add prototype.
6946 2002-07-24 Aidan Skinner <aidan@velvet.net>
6948 * ada-lang.c: Change k&r style function definitions to prototyped
6950 * ada-typeprint.c: Change k&r style function definitions to prototyped
6952 * ada-valprint.c: Change k&r style function definitions to prototyped
6955 2002-07-24 Andrew Cagney <cagney@redhat.com>
6957 * README: Remove reference to remote-bug.
6958 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6960 (m88k-nat.o): Delete rule.
6961 (m88k-tdep.o): Delete rule.
6962 (remote-bug.o): Delete rule.
6963 * MAINTAINERS: Mark as obsolete.
6964 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6965 * m88k-tdep.c: Make file obsolete.
6966 * config/m88k/m88k.mh: Ditto.
6967 * config/m88k/delta88v4.mh: Ditto.
6968 * config/m88k/delta88v4.mt: Ditto.
6969 * config/m88k/delta88.mt: Ditto.
6970 * config/m88k/delta88.mh: Ditto.
6971 * remote-bug.c: Ditto.
6972 * config/m88k/tm-delta88.h: Ditto.
6973 * config/m88k/nm-delta88v4.h: Ditto.
6974 * config/m88k/xm-delta88.h: Ditto.
6975 * config/m88k/xm-dgux.h: Ditto.
6976 * config/m88k/tm-m88k.h: Ditto.
6977 * config/m88k/nm-m88k.h: Ditto.
6978 * config/m88k/tm-delta88v4.h: Ditto.
6979 * m88k-nat.c: Ditto.
6980 * cxux-nat.c: Ditto.
6981 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6982 and m88*-*-* obsolete.
6983 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6986 2002-07-24 Andrew Cagney <cagney@redhat.com>
6988 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6989 constant. Same for local pointer variables.
6990 (extract_signed_integer): Ditto.
6991 * defs.h (extract_unsigned_integer): Update.
6992 (extract_signed_integer): Update.
6994 2002-07-24 Andrew Cagney <cagney@redhat.com>
6996 * regcache.c (regcache_raw_write): Change buf parameter to a
6997 constant void pointer.
6998 (regcache_raw_read): Change buf parameter to a void pointer.
6999 (legacy_write_register_gen): Change myaddr parameter a constant
7001 (supply_register): Change val parameter to a const void pointer.
7002 * regcache.h (regcache_raw_write): Update declaration.
7003 (regcache_raw_read): Update declaration.
7004 (supply_register): Update declaration.
7006 2002-07-24 Tom Tromey <tromey@redhat.com>
7008 * defs.h (gdb_readline_wrapper): Declare.
7009 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
7010 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
7011 * top.c (gdb_readline_wrapper): New function.
7012 (command_line_input): Use it.
7014 2002-07-24 Andrew Cagney <cagney@redhat.com>
7016 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
7017 regcache_read and regcache_write.
7018 (regcache_raw_read_as_address): Replace regcache_read_as_address.
7019 * regcache.c: Update.
7020 * sh-tdep.c (sh64_push_arguments): Update comment.
7021 (sh_pseudo_register_read): Update.
7022 (sh_pseudo_register_write): Update.
7023 (sh4_register_read): Update.
7024 (sh4_register_write): Update.
7025 (sh64_pseudo_register_read): Update.
7026 (sh64_pseudo_register_write): Update.
7027 (sh64_register_read): Update.
7028 (sh64_register_write): Update.
7029 * i386-tdep.c (i386_extract_return_value): Update.
7030 (i386_extract_struct_value_address): Update.
7031 (i386_extract_return_value): Update.
7032 * blockframe.c (generic_read_register_dummy): Update.
7033 (generic_call_dummy_register_unwind): Update
7034 * infrun.c (write_inferior_status_register): Update.
7036 2002-07-23 Jim Blandy <jimb@redhat.com>
7038 * parser-defs.h (expression_context_pc): Make this extern.
7039 (Thanks to Michael Snyder.)
7041 2002-07-23 Andrew Cagney <ac131313@redhat.com>
7043 GDB 5.2.1 released from 5.2 branch.
7044 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
7045 * README: Update to mention 5.2.1.
7047 2002-07-23 Mark Salter <msalter@redhat.com>
7049 * remote.c (remote_read_bytes): Fix check for error.
7051 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7053 * aix-thread.c (language.h): Include.
7054 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7055 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
7056 Print newlines at end of debug messages.
7057 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
7058 (pdc_write_data): Use local_hex_string() instead of %llx formats.
7060 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7062 * aix-thread.c (ppc-tdep.h): Include.
7063 (special_register_p): New function.
7064 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
7065 (store_regs_user_thread): Use register number information from
7066 gdbarch_tdep struct instead of hardcoded offsets relative to
7067 FIRST_UISA_SP_REGNUM.
7068 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
7069 special_register_p() instead of using FPLAST_REGNUM and
7070 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7071 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
7072 will be MQ's register number.
7074 2002-07-22 Michael Snyder <msnyder@redhat.com>
7076 * aix-thread.c (ops): Rename to aix_thread_ops.
7077 (base_ops): Rename to base_target.
7078 (ops_attach): Rename to aix_thread_attach.
7079 (ops_detach): Rename to aix_thread_detach.
7080 (ops_resume): Rename to aix_thread_detach.
7081 (ops_wait): Rename to aix_thread_wait.
7082 (ops_kill): Rename to aix_thread_kill.
7083 (init_ops): Rename to init_aix_thread_ops.
7084 (ops_fetch_register): Rename to aix_thread_fetch_register.
7085 (ops_store_register): Rename to aix_thread_store_register.
7086 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7087 (ops_thread_alive): Rename to aix_thread_thread_alive.
7088 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7089 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
7090 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7091 (fetch_regs_lib): Rename to fetch_regs_user_thread.
7092 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7093 (store_regs_lib): Rename to store_regs_user_thread.
7094 (store_regs_kern): Rename to store_regs_kernel_thread.
7096 2002-07-22 Michael Snyder <msnyder@redhat.com>
7098 * aix-thread.c (ops_prepare_to_store): Eliminate.
7099 (init_ops): Don't initialize ops.prepare_to_store.
7100 (store_regs_kern): Pre-fetch register buffers from child,
7101 because some registers may not be in the cache. Copy
7102 regs from register cache only if they are cached.
7103 (store_regs_lib): Copy regs from register cache only
7105 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7106 fill_gprs64): Ditto.
7108 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7110 * aix-thread.c (gdb_assert.h): Include.
7111 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7112 register sizes (from register cache) match size of buffer holding
7114 (fill_sprs32): Change parameter types to match those in the ptrace()
7116 (store_regs_lib): Likewise, but for 32-bit temporary variables.
7117 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7119 2002-07-22 Michael Snyder <msnyder@redhat.com>
7121 * aix-thread.c (supply_sprs64): Cosmetic change.
7122 (supply_sprs32): Cosmetic change.
7123 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7124 (fill_sprs64): Use regcache_collect instead of read_register.
7125 (store_regs_lib): Use regcache_collect instead of
7126 read_register. Use fill_sprs32 instead of fill_sprs64,
7127 if debugging a 32-bit architecture.
7128 (store_regs_kern): Use fill_gprs64 etc. to pull the values
7129 out of the register cache, instead of passing a pointer into
7130 the register cache directly to ptrace. Use regcache_collect
7131 insteaad of read_register.
7132 (ops_prepare_to_store): Use target_read_registers instead
7133 of read_register_bytes.
7135 2002-07-20 Aidan Skinner <aidan@velvet.net>
7137 * MAINTAINERS: Add self under write after approval.
7139 2002-07-20 Aidan Skinner <aidan@velvet.net>
7141 * ada-tasks.c: Change k&r style function definitions to prototyped
7144 2002-07-19 Andrew Cagney <ac131313@redhat.com>
7146 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7147 * x86-64-tdep.c: Include "objfiles.h".
7148 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7149 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7151 2002-07-17 Michal Ludvig <michal@suse.cz>
7153 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7154 (update_context): Initialise cfa variable.
7156 2002-07-17 Michael Snyder <msnyder@redhat.com>
7158 * aix-thread.c: Shorten some long lines.
7159 Bring comments into line with code spec.
7161 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7163 * infrun.c: Re-indent using gdb_indent.sh.
7165 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7167 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7168 Leave the indentation temporarily untouched, to minimize the diffs.
7170 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
7172 * stabsread.c: Make os9k sections of the code obsolete,
7174 * stabsread.h: Make os9k sections of the code obsolete.
7176 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7178 * linux-low.c (regsets_store_inferior_registers): Add free()
7179 at the end of a loop to prevent memory leak.
7180 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7181 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7182 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7184 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7186 2002-07-17 Jim Blandy <jimb@redhat.com>
7188 * macrocmd.c (info_macro_command): Remove newline from error
7191 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7193 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7194 (sh_gdbarch_init): Use it for sh-dsp.
7196 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7198 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7199 64-bit DWARF2 format.
7201 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7203 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7204 <sys/proc.h> when not available.
7206 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7208 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7209 * stabsread.c: Make os9k sections of the code obsolete.
7210 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7211 * config/i386/i386os9k.mt: Make file obsolete.
7212 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7213 (COMMON_OBS): Remove os9kread.o
7214 (SFILES): Remove os9kread.c.
7215 (os9kread.o, remote-os9k.o): Make target obsolete.
7216 * remote-os9k.c: Make file obsolete.
7217 * os9kread.c: Make file obsolete.
7220 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7222 * NEWS: Mention that the FR30 has been made obsolete.
7223 * fr30-tdep.c: Make file obsolete.
7224 * config/fr30/tm-fr30.h: Ditto.
7225 * config/fr30/fr30.mt: Ditto.
7226 * configure.tgt: Make fr30-*-elf obsolete.
7227 * MAINTAINERS: Make fr30-elf obsolete.
7229 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7231 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7232 found is not inside a section.
7234 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7236 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7238 (pdc_realloc): Use xrealloc() instead of realloc().
7240 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7242 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7243 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7244 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7247 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7249 * aix-thread.c (ptrace_check): Eliminate goto.
7250 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7253 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7255 * aix-thread.c (gdbcmd.h): Include.
7256 (DEBUG, DBG, DBG2, dbg): Eliminate.
7257 (debug_aix_thread): New static global.
7258 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7259 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7260 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7261 invocations to DBG and DBG2 macros to test against
7262 ``debug_aix_thread'' and call fprintf_unfiltered().
7263 (_initialize_aix_thread): Add new command "set debug aix-thread".
7265 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7267 From Gerhard Tonn <TON@de.ibm.com>:
7268 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7269 instead of supply_register.
7271 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7273 * dwarf2cfi.c: Include "gdb_assert.h".
7274 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7276 (update_context): Do not use __func__. Add missing ``break''.
7277 (update_context): Do not use __func__.
7279 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7281 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7282 and its setting. Set gdbarch instruction printing functions
7283 directly. For non-rs6000 case use new function
7284 gdb_print_insn_powerpc.
7285 (gdb_print_insn_powerpc): New function.
7287 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7289 * NEWS: Mention that the d30v has been marked obsolete.
7290 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7291 * configure.tgt: Mark d30v-*-* as obsolete.
7292 * d30v-tdep.c: Mark file as obsolete.
7293 * config/d30v/d30v.mt: Ditto.
7294 * config/d30v/tm-d30v.h: Ditto.
7296 2002-07-13 Aidan Skinner <aidan@velvet.net>
7298 * ada-tasks.c (add_task_entry): replace calls to
7299 malloc() with xmalloc
7300 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7302 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7303 ada_finish_decode_line_1, all_sals_for_line
7304 ada_breakpoint_rewrite): replace calls to free() with xfree()
7306 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7308 From Nicholas Duffek (with minor changes by Martin Hunt,
7309 Louis Hamilton, and Kevin Buettner):
7310 * aix-thread.c: New file.
7312 2002-07-12 Petr Sorfa <petrs@caldera.com>
7314 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7315 complaint for invalid attribute class or form.
7316 (read_func_scope): DW_AT_frame_base
7317 better handling of DW_AT_block*.
7318 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7319 better handling of DW_AT_block*.
7320 (read_common_block): DW_AT_location
7321 better handling of DW_AT_block*.
7322 (read_partial_die): DW_AT_location better handling
7324 (new_symbol): DW_AT_external better handling of
7325 DW_AT_block*. Proper initialization of variable
7327 (attr_form_is_block): New function that returns true
7328 if the attribute's form is of DW_FORM_block*.
7330 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7332 * valops.c (find_method_list): Remove comment about
7333 removed STATIC_MEMFUNCP argument.
7334 (value_find_oload_method_list): Likewise.
7336 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7338 From Nicholas Duffek:
7339 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7340 target_new_objfile_hook.
7342 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7344 From Nicholas Duffek:
7345 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7348 2002-07-12 Andrew Cagney <cagney@redhat.com>
7350 * MAINTAINERS: Mention --enable-sim-build-warnings.
7351 (m68hc11-elf): Disable sim build warnings.
7352 (m32r-elf): Mark as broken obsolete candidate.
7353 (x86_64-linux-gnu): Mark as buildable with -Werror.
7354 (arm-elf): Change -w to ``,'' which enables warnings but not
7357 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7359 * bcache.h: Update copyright.
7360 (struct bstring, struct bcache): Move definition to "bcache.c".
7361 Replaced by opaque declaration.
7362 (bcache_xfree): Replace free_bcache.
7363 (bcache_xmalloc, bcache_memory_used): Declare.
7365 * bcache.c: Update copyright.
7366 (struct bstring, struct bcache): Moved to here from "bcache.h".
7368 (bcache_xmalloc, bcache_memory_used): New functions.
7369 (bcache_xfree): Replace function free_bcache.
7371 * Makefile.in (objfiles.o): Add $(bcache_h).
7372 (objfiles_h): Remove $(bcache_h).
7373 (symfile.o): Add $(bcache_h).
7375 * symmisc.c: Update copyright.
7376 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7377 (print_objfile_statistics): Use bcache_memory_used.
7379 * symfile.c: Include "bcache.h".
7380 (reread_symbols): Use bcache_xfree.
7381 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7382 (add_psymbol_to_list): Pass psymbol_cache by value.
7383 (add_psymbol_with_dem_name_to_list): Ditto.
7385 * objfiles.h: Update copyright.
7386 (struct bcache): Declare opaque. Do not include "bcache.h".
7387 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7389 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7391 * objfiles.c: Include "bcache.h". Update copyright.
7392 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7394 (free_objfile): Use bcache_xfree.
7396 2002-07-11 Grace Sainsbury <graces@redhat.com>
7398 * monitor.c (monitor_fetch_register): Make name a constant.
7399 (monitor_store_register): Same.
7401 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7403 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7404 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7405 (finish_block) For non-function blocks, hash the symbol table. For
7406 function blocks, mark the symbol table as unhashed.
7407 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7408 (msymbol_hash_iw): Likewise.
7409 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7411 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7412 (lookup_minimal_symbol): Likewise for both.
7413 * symtab.h (struct block): Add `hashtable' flag. Comment the
7415 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7416 (ALL_BLOCK_SYMBOLS): Update.
7417 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7418 (struct symbol): Add `hash_next' pointer.
7419 * symtab.c (lookup_block_symbol): Search using the hash table when
7421 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7422 (search_symbols, find_addr_symbol): Likewise.
7424 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7425 (read_dst_symtab): Likewise.
7426 * jv-lang.c (get_java_class_symtab): Likewise.
7427 * mdebugread.c: Include "gdb_assert.h".
7428 (shrink_block): Assert that the block being modified is not hashed.
7429 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7430 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7432 (dump_symtab): Recognize hashed blocks.
7433 * printcmd.c (print_frame_args): Assert that function blocks do not
7434 have hashed symbol tables.
7435 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7436 (fill_in_ada_prototype, debug_print_block): Likewise.
7437 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7439 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7441 * stack.c (print_frame): Use result of frame_address_in_block()
7442 instead of fi->pc when evaluating symbols.
7443 (backtrace_command_1): Ditto.
7445 2002-07-11 Andrew Cagney <cagney@redhat.com>
7447 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7450 * arm-tdep.c (arm_register_name): Make return type constant.
7452 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7454 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7456 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7457 * s390-tdep.c (s390_fp_regnum): Ditto.
7458 (s390_read_fp): Ditto.
7459 (s390_pop_frame): Ditto.
7460 (_initialize_s390_tdep): Ditto.
7461 * remote.c (get_remote_state): Ditto.
7462 * procfs.c (mappingflags): Ditto.
7463 * memattr.c (_initialize_mem): Ditto.
7464 * mcore-tdep.c (mcore_pop_frame): Ditto.
7465 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7466 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7467 * language.c (set_case_str): Ditto.
7468 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7469 * frv-tdep.c (new_variant): Ditto.
7470 (frv_stopped_data_address): Ditto.
7471 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7472 (context_alloc): Ditto.
7473 (frame_state_alloc): Ditto.
7474 (unwind_tmp_obstack_init): Ditto.
7475 (unwind_tmp_obstack_free): Ditto.
7476 (cfi_read_fp): Ditto.
7477 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7478 (cris_pop_frame): Ditto.
7479 * c-lang.c (scanning_macro_expansion): Ditto.
7480 (finished_macro_expansion): Ditto.
7481 (c_preprocess_and_parse): Ditto.
7482 * gdbarch.sh: Ditto.
7483 * gdbarch.h, gdbarch.c: Regenerate.
7484 * config/mn10200/tm-mn10200.h: Adjust indentation.
7485 * target.c: Adjust indentation.
7486 * symtab.h: Adjust indentation.
7487 * stabsread.h: Adjust indentation.
7488 * remote-es.c: Adjust indentation.
7489 * os9kread.c: Adjust indentation.
7491 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7493 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7494 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7496 2002-07-10 Grace Sainsbury <graces@redhat.com>
7498 * NEWS: Mention m68k, mcore multi-arching.
7499 * MAINTAINERS: Change status of m68k, mcore to reflect
7502 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7504 * valops.c (find_overload_match): Free oload_syms.
7506 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7508 Define HAVE_SYS_PROC_H if sys/proc.h exists
7509 * configure.in: Add check for sys/proc.h
7510 * config.in: Regenerate.
7511 * configure: Regenerate.
7513 2002-07-09 Grace Sainsbury <graces@redhat.com>
7515 * config/m68k/tm-m68k.h: Remove macros wrapped in
7516 #if !GDB_MULTI_ARCH.
7518 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7520 * config.in, configure: Regenerate.
7522 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7524 * dwarf2cfi.c: Include "gcore.h".
7525 (execute_stack_op): Fix implementation of the
7526 DW_OP_deref and DW_OP_deref_size operators by letting do their
7527 lookup in the target.
7529 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7531 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7532 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7535 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7537 Fix PR gdb/595, gdb/602
7538 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7539 Don't call value_cast, just read the vtable pointer; update comments
7542 2002-07-05 Grace Sainsbury <graces@redhat.com>
7544 * config/mcore/tm-mcore.h: Remove file.
7545 * config/mcore/mcore.mt: Remove definition of TM_FILE
7546 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7548 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7550 * i386bsd-tdep.c: Include "gdb_string.h".
7552 2002-07-04 Grace Sainsbury <graces@redhat.com>
7554 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7555 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7557 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7558 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7559 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7560 (RETVAL_REGNUM): Move macros from tm-mcore.h
7561 (mcore_reg_struct_has_addr): New function.
7562 (mcore_gdbarch_init): Added initializations for the macros removed
7565 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7567 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7568 traditonal string branding within the ELF header.
7570 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7572 * symtab.c (remove_params): New function.
7573 (make_symbol_overload_list): Use it instead of cplus_demangle.
7574 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7576 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7578 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7580 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7582 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7583 and tdep->sigtramp_end.
7584 * i386obsd-nat.c: New file.
7585 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7587 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7588 Don't call get_current_frame().
7590 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7592 * i386-nat.c (child_post_startup_inferior): New function
7593 calling i386_cleanup_dregs if
7594 I386_USE_GENERIC_WATCHPOINTS is defined.
7595 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7596 conditional to acknowledge that i386-nat.c has its
7597 own child_post_startup_inferior function.
7599 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7601 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7602 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7603 instead of MAX_REGISTER_RAW_SIZE.
7604 (i386_extract_return_value, i386_extract_struct_value_address):
7605 Convert to use regcache.
7606 (i386_gdbarch_init): Set max_register_raw_size and
7607 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7608 Set extract_return_value and extract_struct_value_address instead
7609 of their deprecated variants.
7611 Convert i386 target to generic dummy frames.
7612 * i386-tdep.c: Include "symfile.h".
7613 (i386_frameless_signal_p): Consider a function to be frameless if
7614 the pc points at the first instruction of the function.
7615 (i386_frame_chain): Handle (generic) call dummies.
7616 (i386_frame_saved_pc): Likewise.
7617 (i386_frame_init_saved_regs): Remove code dealing with call
7618 dummies on the stack.
7619 (i386_push_dummy_frame): Removed.
7620 (i386_call_dummy_words): Removed.
7621 (i386_fix_call_dummy): Removed.
7622 (i386_push_return_address): New function.
7623 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7624 parameter, and don't call get_current_frame.
7625 (i386_pop_frame): New function.
7626 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7627 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7628 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7629 call_dummy_length to 0, set call_dummy_words to NULL, set
7630 sizeof_call_dummy_words to 0, set fix_call_dummy to
7631 generic_fix_call_dummy, set pc_in_call_dummy to
7632 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7633 generic_push_dummy_frame, set push_return_address to
7634 i386_push_return_address and set frame_chain_valid to
7635 generic_file_frame_chain_valid.
7637 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7639 * gdbarch.sh (struct regcache): Add opaque declaration.
7640 (EXTRACT_RETURN_VALUE): New architecture method.
7641 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7642 * gdbarch.h, gdbarch.c: Regenerate.
7643 * arch-utils.c (legacy_extract_return_value): New function.
7644 * arch-utils.h (legacy_extract_return_value): Declare.
7645 * values.c (value_being_returned): Re-enable code handling
7646 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7647 deprecated_grub_regcache_for_registers call to block handling
7648 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7649 (EXTRACT_RETURN_VALUE): Do not define.
7651 2002-07-03 Grace Sainsbury <graces@redhat.com>
7653 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7654 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7655 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7656 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7657 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7658 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7659 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7660 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7661 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7662 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7663 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7664 argument so the function fits the prototype in the architecture
7666 (mcore_pop_frame): Remove argument so the function fits the
7667 prototype. Use get_current_frame instead of the argument.
7668 (mcore_push_arguments): Change type of struct_return so the
7669 function can be used in the architecture vector.
7670 (mcore_store_struct_return): Add.
7671 (mcore_frame_init_saved_regs): Add.
7672 (mcore_gdbarch_init): Add function calls to replace the macros
7673 removed from tm-mcore.h
7675 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7677 * infcmd.c (print_return_value): Remove compatibility code calling
7678 deprecated_grub_regcache_for_registers.
7680 * values.c: Include "regcache.h".
7681 (value_being_returned): Update. Use
7682 deprecated_grub_regcache_for_registers to extract the register
7684 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7685 ``struct regcache''.
7686 * Makefile.in (values.o): Add dependency on $(regcache_h).
7688 * inferior.h (run_stack_dummy): Change type of second parameter to
7689 a ``struct regcache''.
7690 * valops.c (hand_function_call): Change type of retbuf to ``struct
7691 regcache''. Allocate using regcache_xmalloc, clean using
7692 make_cleanup_regcache_xfree.
7693 * infcmd.c (run_stack_dummy): Update. Use
7694 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7696 * regcache.c (do_regcache_xfree): New function.
7697 (make_cleanup_regcache_xfree): New function.
7698 * regcache.h (make_cleanup_regcache_xfree): Declare.
7700 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7702 * event-top.c (command_line_handler): Don't read past
7703 beginning of buffer.
7705 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7707 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7709 (varobj_create): Store frame_id for root.
7710 (varobj_gen_name): Use xasprintf.
7711 (varobj_update): Save and restore frame using get_frame_id() and
7713 (create_child): Use xasprintf.
7714 (new_root_variable): Initialize frame_id.
7715 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7716 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7717 to prevent memory leak.
7719 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7721 * valops.c (hand_function_call): Move declaration of retbuf to
7722 start of function, allocate using malloc, add a cleanup but before
7723 the inf_status cleanup, cleanup the buffer. Rename local variable
7724 old_chain to inf_status_cleanup.
7726 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7728 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7730 * cli/cli-decode.c (cmd_func_p): New function.
7731 (cmd_func): New function.
7733 * command.h: Add cmd_func() and cmd_func_p().
7735 2002-07-03 Grace Sainsbury <graces@redhat.com>
7737 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7738 (REGISTER_SIZE): Remove.
7739 (MAX_REGISTER_RAW_SIZE): Remove.
7740 (REGISTER_VIRTUAL_TYPE): Remove.
7741 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7742 (REGISTER_NAME): Remove.
7743 (USE_GENERIC_DUMMY_FRAMES): Remove.
7744 (CALL_DUMMY): Remove.
7745 (CALL_DUMMY_START_OFFSET): Remove.
7746 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7747 (CALL_DUMMY_LOCATION): Remove.
7748 (FIX_CALL_DUMMY): Remove.
7749 (CALL_DUMMY_ADDRESS): Remove.
7750 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7751 (SAVE_DUMMY_FRAME_TOS): Remove.
7752 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7753 (mcore_register_virtual_type): New function.
7754 (mcore_register_byte): New function.
7755 (mcore_register_size): New function.
7756 (mcore_register_name): New function.
7757 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7758 macros removed from tm-mcore.h.
7759 (mcore_dump_tdep): Add.
7760 (_initialize_mcore_tdep): Add gdbarch_register call.
7762 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7764 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7765 frameless_look_for_prologue, such that we actually call this
7768 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7770 * frame.h (frame_address_in_block): New function.
7772 * blockframe.c (frame_address_in_block): New function extracted
7773 from get_frame_block().
7774 (get_frame_block): Use frame_address_in_block().
7775 (block_innermost_frame): Use frame_address_in_block() to match
7776 the frame pc address against the block boundaries rather than
7777 the frame pc directly. This prevents a failure when a frame pc
7778 is actually a return-address pointing immediately after the end
7781 2002-07-02 Grace Sainsbury <graces@redhat.com>
7783 * MAINTAINERS: Add self under write after approval.
7785 2002-07-02 Grace Sainsbury <graces@redhat.com>
7787 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7788 used in architecture vector. The default is
7789 m68k_local_breakpoint_from_pc.
7790 (m68k_local_breakpoint_from_pc): Add.
7791 (enum): Add register numbers from tm-m68k.h.
7792 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7794 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7795 GDB_MULTI_ARCH_PARTIAL.
7796 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7797 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7799 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7800 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7801 to enum in m68k-tdep.c
7803 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7805 * solib-osf.c (open_map): Compute the list of shared libraries
7806 loaded by the inferior, rather than the list of libraries loaded
7807 by GDB itself. Otherwise, GDB ends up reading the symbols from
7808 the wrong shared libraries...
7810 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7812 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7813 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7815 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7817 (FRAMELESS_SIGNAL): Remove function.
7818 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7819 i386_linux_saved_pc_after_call): Removed.
7820 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7821 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7822 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7824 * i386-tdep.c (i386_frameless_signal_p): New function.
7825 (i386_frame_chain): Deal with frameless signals.
7826 (i386_sigtramp_saved_sp): New function.
7827 (i386_frame_saved_pc): Deal with frameless signals.
7828 (i386_saved_pc_after_call): Make sure the correct value is
7829 returned just after entry into a sigtramp.
7830 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7831 i386fbsd4_sc_sp_offset): New variables.
7832 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7833 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7834 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7835 similiar to what we already did for sc_pc_offset.
7836 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7839 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7841 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7843 * config/i386/tm-x86-64linux.h: New.
7844 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7846 * config/i386/nm-x86-64.h: Rename to ...
7847 * config/i386/nm-x86-64linux.h: ... this one.
7848 * config/i386/x86-64linux.mh: Reflect the above change.
7850 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7852 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7853 with sigcontext_addr. Add sc_sp_offset.
7854 (i386bsd_sigtramp_saved_pc): Remove prototype.
7855 (i386bsd_sicontext_addr): Add prototype.
7856 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7857 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7858 (i386_svr4_sigtramp_saved_pc): Removed.
7859 (i386_svr4_sigcontext_addr): New function.
7860 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7861 Initialize tdep->sigcontext_addr instead. Initialize
7862 tdep->sc_pc_offset and tdep->sc_sp_offset.
7863 (i386_gdbarch_init): Likewise.
7864 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7866 (i386bsd_sigtramp_saved_pc): Remove function.
7867 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7868 Initialize tdep->sigcontext_addr instead. Initialize
7870 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7871 of tdep->sigtramp_saved_pc.
7872 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7873 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7876 * i386-tdep.c (i386_frameless_function_invocation,
7877 i386_frame_num_args, i386_frame_init_saved_regs,
7878 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7879 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7880 i386_extract_return_value, i386_store_return_value,
7881 i386_extract_struct_value_address, i386_register_virtual_type,
7882 i386_register_convertible, i386_register_convert_to_virtual,
7883 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7884 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7887 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7889 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7891 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7892 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7893 this macro. Include "value.h".
7895 2002-06-30 Aidan Skinner <aidan@velvet.net>
7897 * ada-exp.tab.c: remove as it's a generated file
7898 * ada-lex.c: remove as it's a generated file
7900 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7902 * config/i386/tm-i386.h (struct frame_info, struct
7903 frame_saved_regs, struct value, struct type): Remove forward
7906 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7907 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7908 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7909 (FILL_FPXREGSET): Define.
7911 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7913 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7914 i[3456]86-*-netbsd* case.
7915 * config/i386/tm-obsd.h: Removed.
7916 * config/i386/obsd.mt: Removed.
7917 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7919 (MH_CFLAGS): Add -DYYDEBUG=0.
7921 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7922 i386nbsd_sc_pc_offset on OpenBSD too.
7924 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7925 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7926 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7928 * i386bsd-tdep.c: Include "arch-utils.h".
7929 (i386bsd_aout_in_solib_call_trampoline): New function.
7930 (i386bsd_init_abi): Set in_solib_call_trampoline to
7931 i386bsd_aout_in_solib_call_trampoline.
7932 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7933 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7935 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7937 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7938 (struct obstack, struct bcache): Add opaque declarations.
7939 * Makefile.in (macrotab_h): Update
7941 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7943 * blockframe.c (generic_find_dummy_frame): Change return type to
7944 ``struct regcache''.
7945 (struct dummy_frame): Replace field ``registers'' with regcache, a
7946 struct regcache object.
7947 (generic_find_dummy_frame): Update.
7948 (generic_push_dummy_frame): Update. Use regcache_xfree,
7949 regcache_xmalloc and regcache_cpy.
7950 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7952 (deprecated_generic_find_dummy_frame): Update.
7953 (generic_read_register_dummy): Update. Use
7954 regcache_read_as_address.
7955 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7956 (generic_get_saved_register): Update. Use regcache_read.
7958 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7960 * Makefile.in (objfiles_h): Add $(bcache_h).
7961 * objfiles.h: Include "bcache.h".
7963 * Makefile.in (symtab_h): Remove $(bcache_h).
7964 * symtab.h: Do not include "bcache.h".
7966 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7968 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7969 generic_func_frame_chain_valid.
7971 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7973 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7974 * config/i386/tm-fbsd.h: Likewise.
7976 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7978 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7979 generic_unwind_get_saved_register.
7981 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7983 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7984 * regcache.c (supply_register): Add missing argument to
7985 register_buffer call.
7987 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7989 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7990 Solaris /bin/grep does not not like it. From Peter Schauer.
7992 2002-06-26 Tom Tromey <tromey@redhat.com>
7994 * command.h (add_setshow_cmd): Declare.
7995 (add_setshow_cmd_full): Declare.
7996 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7997 returns void. Use add_setshow_cmd_full.
7998 (add_setshow_cmd_full): New function.
7999 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
8000 (add_setshow_boolean_cmd): Likewise.
8002 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
8004 * config/vax/tm-vax.h: Protect from multiple inclusion.
8005 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
8006 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
8007 * config/vax/tm-vaxbsd.h: ...here. New file.
8008 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
8010 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
8012 * config/vax/tm-vax.h (BREAKPOINT): Remove.
8013 (BELIEVE_PCC_PROMOTION): Remove.
8014 (AP_REGNUM): Move to...
8015 * config/vax/nm-vax.h: ...here.
8016 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
8017 (vax_breakpoint_from_pc): New function.
8018 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
8019 and gdbarch_believe_pcc_promotion.
8021 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
8023 * Makefile.in (vax_tdep_h): Define.
8024 (vax-tdep.o): Use $(vax_tdep_h).
8025 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
8026 (vax_dump_tdep): New function.
8027 (_initialize_vax_tdep): Register vax_dump_tdep.
8028 * vax-tdep.h: Include osabi.h.
8029 (struct gdbarch_tdep): New.
8031 2002-06-26 Andrew Cagney <cagney@redhat.com>
8033 * frame.h (deprecated_generic_find_dummy_frame): Rename
8034 generic_find_dummy_frame.
8035 * blockframe.c (generic_find_dummy_frame): Make static.
8036 (deprecated_generic_find_dummy_frame): New function.
8037 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
8038 generic_find_dummy_frame with deprecated_find_dummy_frame.
8039 (sh64_nofp_frame_init_saved_regs): Ditto.
8040 (sh_fp_frame_init_saved_regs): Ditto.
8041 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
8042 (s390_frame_chain): Ditto.
8043 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8045 2002-06-26 Grace Sainsbury <graces@redhat.com>
8047 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
8048 gdbarch vector are at the top.
8050 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
8051 (FRAME_ARGS_ADDRESS): Remove.
8052 (FRAME_LOCALS_ADDRESS): Remove.
8053 (FRAME_NUM_ARGS): Remove.
8054 (FRAME_ARGS_SKIP): Remove.
8055 * m68k-tdep.c (enum): Add eumeration of special register numbers.
8056 (m68k_gdbarch_init): Add gdbarch initializations for macros
8057 undefined in tm-m68k.h
8059 2002-06-26 Grace Sainsbury <graces@redhat.com>
8061 * monitor.h: Add the function regname to monitor_ops
8062 structure. This way NUM_REGS does not have to be a constant.
8063 * monitor.c (monitor_fetch_register): Added support for regname
8064 function. The function is called if the array regnames is NULL.
8065 (monitor_store_register): Same.
8066 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
8068 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
8069 cpu32bug_cmds.regname to point to new function.
8070 * abug-rom.c (abug_regname): Same as above.
8071 (init_abug_cmds): Same.
8072 * dbug-rom.c (dbug_regname): Same as above.
8073 (init_dbug_cmds): Same.
8074 * remote-est.c (est_regname): Same.
8075 (init_est_cmds): Same.
8076 * rom68k-rom.c (rom68k_regname): Same.
8077 (init_rom68k_cmds): Same.
8079 2002-06-25 Tom Tromey <tromey@redhat.com>
8081 * breakpoint.c (delete_command): Don't repeat `delete' commands.
8083 2002-06-25 Andrew Cagney <cagney@redhat.com>
8085 * infrun.c (stop_registers): Change variable's type to ``struct
8087 (xmalloc_inferior_status): Delete function.
8088 (free_inferior_status): Delete function.
8089 (normal_stop): Use regcache_cpy.
8090 (struct inferior_status): Change type of fields ``stop_registers''
8091 and ``registers'' to ``struct regcache''.
8092 (write_inferior_status_register): Use regcache_write.
8093 (save_inferior_status): Instead of calling
8094 xmalloc_inferior_status, allocate the inf_status buffer directly.
8095 Use regcache_dup_no_passthrough and regcache_dup to save the
8097 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8098 Replace the stop_registers regcache instead of overriding it. Use
8099 regcache_xfree. Instead of calling free_inferior_status, xfree
8100 the buffer directly.
8101 (discard_inferior_status): Use regcache_xfree. Instead of calling
8102 free_inferior_status, xfree the buffer directly.
8103 (build_infrun): Use regcache_xmalloc.
8104 (_initialize_infrun): Delete redundant call to build_infrun.
8106 * Makefile.in (infcmd.o): Add $(regcache_h).
8108 * infcmd.c: Include "regcache.h".
8109 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8110 obtain the address of `stop_registers' register buffer.
8111 (print_return_value): Ditto.
8113 * inferior.h (struct regcache): Add opaque declaration.
8114 (stop_registers): Change variable's declared type to ``struct
8117 2002-06-24 Tom Tromey <tromey@redhat.com>
8119 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8120 * target.c (initialize_targets): Fixed typo in
8121 trust-readonly-sections `show' documentation.
8123 * main.c: Marked all strings with _().
8125 2002-06-24 Don Howard <dhoward@redhat.com>
8127 * memattr.c (create_mem_region): Treat hi == 0 as a special case
8128 that means max CORE_ADDR+1.
8129 (lookup_mem_region): Ditto.
8130 (mem_info_command): Ditto.
8132 2002-06-24 Grace Sainsbury <graces@redhat.com>
8134 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8135 (REGISTER_BYTES_OK): Remove.
8136 (REGISTER_BYTES): Remove.
8137 (STORE_STRUCT_RETURN): Remove.
8138 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8139 (STORE_RETURN_VALUE): Remove.
8140 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8141 (FRAME_CHAIN): Remove.
8142 (FRAMELESS_FUNCTION_INVOCATION): Remove.
8143 (FRAME_SAVED_PC): Remove.
8144 * m68k-tdep.c (m68k_register_bytes_ok):Add.
8145 (m68k_store_struct_return): Add.
8146 (m68k_deprecated_extract_return_value): Add.
8147 (m68k_deprecated_extract_struct_value_address): Add.
8148 (m68k_store_return_value): Add.
8149 (m68k_frame_chain): Add.
8150 (m68k_frameless_function_invocation): Add.
8151 (m68k_frame_saved_pc): Add.
8152 (m68k_gdbarch_init): added set_gdbarch calls for new
8153 functions and deleted macros.
8155 2002-06-23 Tom Tromey <tromey@redhat.com>
8157 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8158 (ALLDEPFILES): Likewise.
8159 (udiheaders): Removed.
8160 (udip2soc.o): Likewise.
8161 (udi2go32.o): Likewise.
8163 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8165 2002-06-22 Andrew Cagney <ac131313@redhat.com>
8167 * infrun.c (_initialize_infrun): Delete unnecessary call to
8170 * regcache.h: Update comments describing the regcache_cpy family
8172 (regcache_save, regcache_restore): Delete declaration.
8173 (regcache_save_no_passthrough): Delete declaration.
8174 (regcache_restore_no_passthrough): Delete declaration.
8175 * regcache.c (regcache_save): Delete function.
8176 (regcache_save_no_passthrough): Delete function.
8177 (regcache_restore): Delete function.
8178 (regcache_restore_no_passthrough): Delete function.
8180 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8182 * config/m68k/tm-m68k.h: Fix typo.
8183 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8184 (m68k_frame_init_saved_regs): Declare.
8186 2002-06-21 Jim Blandy <jimb@redhat.com>
8188 Remove some vestiges of Harris 88k support.
8189 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8190 register numbering quirk.
8191 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8192 odd symbols occurring in Harris 88k ELF targets.
8194 2002-06-21 Tom Tromey <tromey@redhat.com>
8196 * gdb_locale.h: New file.
8197 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8198 (defs_h): Added gdb_locale.h.
8199 * configure, config.in: Rebuilt.
8200 * configure.in (PACKAGE): Define.
8201 * defs.h: Include gdb_locale.h.
8202 * main.c (captured_main): Call setlocale, bindtextdomain,
8205 2002-06-21 Dave Brolley <brolley@redhat.com>
8207 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8208 * config/frv/frv.mt: New file.
8209 * config/frv/tm-frv.h: New file.
8210 * configure.tgt: Support frv-*-*.
8211 * Makefile.in (frv-tdep.o): New target.
8212 * frv-tdep.c: New file.
8213 * NEWS: Mention frv.
8215 2002-06-21 Dave Brolley <brolley@redhat.com>
8217 * MAINTAINERS: Add self to "Write After Approval" list.
8219 2002-06-21 Grace Sainsbury <graces@redhat.com>
8221 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8222 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8223 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8224 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8225 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8227 * m68k-tdep.c: Include arch-utils.h
8228 (m68k_register_raw_size): Add.
8229 (m68k_register_virtual_size): Add.
8230 (m68k_register_virtual_type): Add.
8231 (m68k_register_name): Add.
8232 (m68k_stack_align): Add.
8233 (m68k_register_byte): Add.
8234 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8237 2002-06-21 Grace Sainsbury <graces@redhat.com>
8239 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8240 m68k_find_saved_regs.
8241 (m68k_pop_frame): Removed saved_regs structure, and replaced
8242 references to it with frame->saved_regs.
8243 (m68k_gdbarch_init): Added function calls to initialize the
8245 (m68k_fix_call_dummy): Add.
8246 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8247 (CALL_DUMMY): Remove.
8248 (CALL_DUMMY_LENGTH): Remove.
8249 (CALL_DUMMY_START_OFFSET): Remove.
8250 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8251 (FIX_CALL_DUMMY): Remove.
8252 (PUSH_DUMMY_FRAME): Remove.
8253 (POP_FRAME): Remove.
8255 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8257 * parse.c (parse_fprintf): New function used to avoid calls to
8258 fprintf in bison parser generated debug code.
8259 * parser-defs.h: Declaration of new parse_fprintf function.
8260 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8261 Set YYDEBUG to 1 by default.
8262 Set YYFPRINTF as parse_fprintf.
8264 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8266 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8268 (pointer_encoding, enum ptr_encoding): New.
8269 (execute_cfa_program): Take care about pointer encoding.
8270 (dwarf2_build_frame_info): Only call parse_frame_info for
8271 .debug_frame and .eh_frame.
8272 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8273 fixed augmentation handling, added relative addressing,
8274 ignore duplicate FDEs. Added comments.
8275 * dwarf2cfi.c: Reindented.
8277 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8279 * event-top.c (command_handler): Don't use space_at_cmd_start
8280 unless there is sbrk() on the host. Assign time and space data
8281 to union fields of the appropriate length.
8283 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8285 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8286 x86_64_register_name. Return type changed to 'const char *'.
8287 (x86_64_register_name2nr): Rename to x86_64_register_number.
8288 (x86_64_gdbarch_init): Update to reflect the change.
8289 * x86-64-tdep.h: Ditto.
8290 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8291 (supply_fpregset): Ditto.
8293 2002-06-19 Andrew Cagney <cagney@redhat.com>
8295 * regcache.h: Update copyright.
8296 (struct regcache, struct gdbarch): Add opaque declarations.
8297 (current_regcache): Declare global variable.
8298 (regcache_read, regcache_write): Add gdbarch parameter.
8299 (regcache_save, regcache_save_no_passthrough)
8300 (regcache_restore, regcache_restore_no_passthrough)
8301 (regcache_dup, regcache_dup_no_passthrough)
8302 (regcache_cpy, regcache_cpy_no_passthrough)
8303 (deprecated_grub_regcache_for_registers)
8304 (deprecated_grub_regcache_for_register_valid)
8305 (regcache_valid_p): Add function declarations.
8307 * regcache.c: Update copyright.
8308 (regcache_descr_handle): New global variable.
8309 (struct regcache_descr): Define.
8310 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8311 (regcache_descr, xfree_regcache_descr): New functions.
8312 (struct regcache): Define.
8313 (regcache_xmalloc, regcache_xfree): New functions.
8314 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8315 (regcache_dup, regcache_dup_no_passthrough): New functions.
8316 (regcache_valid_p, regcache_read_as_address): New functions.
8317 (deprecated_grub_regcache_for_registers): New function.
8318 (deprecated_grub_regcache_for_register_valid): New function.
8319 (current_regcache): New global variable.
8320 (register_buffer): Add regcache parameter. Update calls.
8321 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8322 (read_register_gen, write_register_gen): Update register_buffer
8323 call. Test for legacy_p instead of gdbarch_register_read_p or
8324 gdbarch_register_write_p.
8325 (regcache_collect): Update register_buffer call.
8326 (build_regcache): Rewrite. Use deprecated grub functions.
8327 (regcache_save, regcache_save_no_passthrough): New functions.
8328 (regcache_restore, regcache_restore_no_passthrough): New
8330 (_initialize_regcache): Create the regcache_data_handle. Swap
8331 current_regcache global variable.
8333 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8334 parameter to regcache_read and regcache_write calls.
8335 (sh4_register_read): Ditto.
8336 (sh64_pseudo_register_read): Ditto.
8337 (sh64_register_read): Ditto.
8338 (sh_pseudo_register_write): Ditto.
8339 (sh4_register_write): Ditto.
8340 (sh64_pseudo_register_write): Ditto.
8341 (sh64_register_write): Ditto.
8343 * defs.h (XCALLOC): Define.
8345 2002-06-19 Grace Sainsbury <graces@redhat.com>
8347 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8348 * m68k-tdep.c (m68k_gdbarch_init): Added.
8349 (m68k_dump_tdep): Added.
8351 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8353 * ada-lang.c (fill_in_ada_prototype): Update comment.
8355 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8357 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8359 (mips_abi_string, mips_abi_strings): New.
8360 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8361 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8362 tdep->mips_abi_string. Honor mips_abi_string. Default to
8363 O32 if no ABI is found.
8364 (mips_dump_tdep): Use mips_abi_strings.
8365 (mips_abi_update): New function.
8366 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8367 ``set mips abi'' and ``show mips abi''. Check the size of
8370 2002-06-19 Andrew Cagney <cagney@redhat.com>
8372 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8375 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8377 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8378 current frame using only the first stack size adjustment. All
8379 subsequent size adjustments are not considered to be part of
8380 the "static" part of the current frame.
8381 Compute the address of the saved registers relative to the
8382 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8383 in use in this frame.
8385 2002-06-18 Don Howard <dhoward@redhat.com>
8387 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8388 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8389 suggesting this solution.
8391 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8393 * config/romp/xm-rtbsd.h: Delete file.
8394 * config/romp/rtbsd.mh: Delete file.
8396 2002-06-18 Keith Seitz <keiths@redhat.com>
8398 * breakpoint.c (condition_command): Post breakpoint_modify
8399 when a condition is added to an existing breakpoint.
8400 (commands_command): Likewise for commands.
8401 (set_ignore_count): Likewise for ignore counts.
8402 If no tty, do not simply return, still need to send event
8404 (ignore_command): Only print a newline if the command came
8406 Don't call breakpoints_changed, since this is now properly
8407 handled by set_ignore_count.
8409 2002-06-18 Andrew Cagney <cagney@redhat.com>
8411 * MAINTAINERS: Note that cris-elf target can be compiled with
8413 * cris-tdep.c (cris_register_name): Make return type constant.
8414 (cris_breakpoint_from_pc): Ditto.
8416 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8418 * frame.h (struct frame_info): Change type of context to
8421 2002-06-17 Andrew Cagney <cagney@redhat.com>
8423 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8425 * gdbarch.h, gdbarch.c: Regenerate.
8426 * config/mips/tm-mips.h (mips_register_name): Update.
8427 * i386-tdep.h (i386_register_name): Update.
8428 * mips-tdep.c (mips_register_name): Update
8429 * alpha-tdep.c (alpha_register_name): Update.
8430 * arch-utils.c (legacy_register_name): Update.
8431 * arch-utils.h (legacy_register_name): Update.
8432 * avr-tdep.c (avr_register_name): Update.
8433 * ia64-tdep.c (ia64_register_name): Update.
8434 * i386-tdep.c (i386_register_name): Update.
8435 * sparc-tdep.c (sparc32_register_name): Update.
8436 (sparc64_register_name): Update.
8437 (sparclite_register_name): Update.
8438 (sparclet_register_name): Update.
8439 * sh-tdep.c (sh_generic_register_name): Update.
8440 (sh_sh_register_name): Update.
8441 (sh_sh3_register_name): Update.
8442 (sh_sh3e_register_name): Update.
8443 (sh_sh_dsp_register_name): Update.
8444 (sh_sh3_dsp_register_name): Update.
8445 (sh_sh4_register_name): Update.
8446 (sh_sh64_register_name): Update.
8447 * s390-tdep.c (s390_register_name): Update.
8448 * rs6000-tdep.c (rs6000_register_name): Update.
8449 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8450 (ns32k_register_name_32382): Update.
8451 * d10v-tdep.c (d10v_ts2_register_name): Update.
8452 (d10v_ts3_register_name): Update.
8453 * xstormy16-tdep.c (xstormy16_register_name): Update.
8454 * vax-tdep.c (vax_register_name): Update.
8455 * v850-tdep.c (v850_register_name): Update.
8456 * m68hc11-tdep.c (m68hc11_register_name): Update.
8457 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8458 (am33_register_name): Update.
8460 2002-06-17 Grace Sainsbury <graces@redhat.com>
8462 * m68k-tdep.c: Reindented.
8464 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8466 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8467 list of predefined types.
8469 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8471 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8472 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8473 REGISTER_CONVERT_TO_RAW): Remove defines.
8474 (i386_register_virtual_type, i386_register_convertible,
8475 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8477 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8478 macros mentioned above.
8480 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8481 (i386lynx_saved_pc_after_call): Remove prototype.
8482 * i386ly-tdep.c: Include "i386-tdep.h".
8483 (i386lynx_saved_pc_after_call): Make static. Use
8484 read_memory_nobpt instead of read_memory. Use
8485 read_memory_unsigned_integer instead of read_memory_integer.
8486 (i386lynx_init_abi): New function.
8487 (i386lynx_coff_osabi_sniffer): New function.
8488 (_initialize_i386bsd_tdep): New function.
8490 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8491 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8492 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8493 (i386_fix_call_dummy): Remove prototype.
8494 * i386-tdep.c (i386_call_dummy_words): New variable.
8495 (i386_gdbarch_init): Adjust for removal of the
8496 macros mentioned above.
8498 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8500 * command.h (add_setshow_auto_boolean_cmd): Replace
8501 add_set_auto_boolean_cmd.
8502 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8503 add_set_auto_boolean_cmd.
8504 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8505 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8506 mask-address'' command.
8507 (show_mask_address): Add cmd parameter.
8508 * remote.c (add_packet_config_cmd): Update. Change type of
8509 set_func and show_func to cmd_sfunc_ftype.
8510 (_initialize_remote): Update `set remote Z-packet'
8511 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8512 (show_remote_protocol_e_packet_cmd): Ditto.
8513 (show_remote_protocol_E_packet_cmd): Ditto.
8514 (show_remote_protocol_P_packet_cmd): Ditto.
8515 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8516 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8517 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8518 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8519 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8520 (show_remote_protocol_Z_packet_cmd): Ditto.
8521 (show_remote_protocol_binary_download_cmd): Ditto.
8522 (show_remote_cmd): Pass NULL to all of above.
8524 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8526 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8527 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8528 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8529 POP_FRAME): Remove defines.
8530 (i386_push_arguments, i386_store_struct_return,
8531 i386_extract_return_value, i386_store_return_value,
8532 i386_extract_struct_value_address, i386_push_dummy_frame,
8533 i386_pop_frame): Renove prototypes.
8534 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8535 macros mentioned above.
8537 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8539 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8540 add_set_boolean_cmd.
8541 (add_setshow_cmd): New function.
8542 * command.h (add_setshow_boolean_cmd): Replace
8543 add_set_boolean_cmd.
8544 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8545 and ``set rdiromatzero''.
8546 * maint.c (_initialize_maint_cmds): Update commented out code.
8547 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8548 * target.c (initialize_targets): Update `set
8549 trust-readonly-sections'.
8550 * remote.c (_initialize_remote): Update `set remotebreak'.
8552 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8554 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8555 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8556 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8557 fit into multi-arch framework.
8558 (i386_breakpoint_from_pc): New function.
8559 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8562 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8563 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8564 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8565 (i386_frameless_function_invocation, i386_frame_num_args,
8566 i386_frame_init_saved_regs): Remove prototypes.
8567 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8568 macros mentioned above.
8570 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8572 * cli/cli-decode.c (set_cmd_cfunc): Update.
8573 (set_cmd_sfunc): Update.
8574 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8575 (set_cmd_sfunc, set_cmd_cfunc): Update.
8576 * cli/cli-decode.h: Update.
8578 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8580 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8581 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8583 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8585 * defs.h (auto_boolean): Declare enum.
8586 * command.h (cmd_auto_boolean): Delete enum.
8587 * mips-tdep.c (mask_address_var): Update.
8588 (mips_mask_address_p): Update.
8589 (show_mask_address): Update.
8590 * remote.c (struct packet_config): Update.
8591 (update_packet_config): Update.
8592 (show_packet_config_cmd): Update.
8593 (packet_ok): Update.
8594 (add_packet_config_cmd): Update.
8595 (_initialize_remote):
8596 * command.h: Update.
8597 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8598 (do_setshow_command): Update.
8599 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8600 * cli/cli-decode.h: Update.
8602 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8604 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8605 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8606 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8607 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8608 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8609 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8611 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8612 list of DJGPP COFF targets.
8614 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8615 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8616 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8617 (FP0_REGNUM): Remove define.
8618 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8619 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8620 (i386_register_virtual_size): Remove protoype.
8621 * i386-tdep.c (i386_register_virtual_size): Removed.
8622 (i386_extract_return_value, i386_store_return_value): Use
8623 FP0_REGNUM instead of NUM_FREGS to determine whether the
8624 floating-point registers are available.
8625 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8626 Adjust for removal of macros mentioned above.
8628 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8630 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8632 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8634 (supply_gregset, fill_gregset): Remove use of register keyword and
8635 remove declaration for regmap. Use I386_NUM_GREGS instead of
8636 NUM_REGS and NUM_FREGS.
8637 (FPREGSET_FSAVE_OFFSET): Remove.
8638 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8639 NUM_FREGS to determine whether the floating-point registers are
8642 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8643 gnu_store_registers): Replace usage of NUM_GREGS with
8646 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8647 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8648 usage of NUM_GREGS with I386_NUM_GREGS.
8650 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8652 * i386bsd-nat.c: Include "i386-tdep.h".
8653 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8656 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8657 and associated comment. They no longer make any sense, since we
8658 don't use this file anymore on Linux.
8660 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8661 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8662 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8663 elements in these arrays.
8664 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8667 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8669 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8670 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8672 2002-06-14 Andrew Cagney <cagney@redhat.com>
8674 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8675 EXTRACT_RETURN_VALUE.
8676 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8677 EXTRACT_STRUCT_VALUE_ADDRESS.
8678 * gdbarch.h, gdbarch.c: Regenerate.
8680 * values.c (value_being_returned): Handle
8681 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8682 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8684 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8685 * arm-tdep.c (arm_gdbarch_init): Update.
8686 * avr-tdep.c (avr_gdbarch_init): Update.
8687 * cris-tdep.c (cris_gdbarch_init): Update.
8688 * d10v-tdep.c (d10v_gdbarch_init): Update.
8689 * ia64-tdep.c (ia64_gdbarch_init): Update.
8690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8691 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8692 * s390-tdep.c (s390_gdbarch_init): Update.
8693 * sh-tdep.c (sh_gdbarch_init): Update.
8694 * s390-tdep.c (s390_gdbarch_init): Update.
8695 * sparc-tdep.c (sparc_gdbarch_init): Update.
8696 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8697 * v850-tdep.c (v850_gdbarch_init): Update.
8698 * vax-tdep.c (vax_gdbarch_init): Update.
8699 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8700 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8702 * config/arc/tm-arc.h: Update.
8703 * config/d30v/tm-d30v.h: Update.
8704 * config/fr30/tm-fr30.h: Update.
8705 * config/h8300/tm-h8300.h: Update.
8706 * config/h8500/tm-h8500.h: Update.
8707 * config/i386/tm-i386.h: Update.
8708 * config/i386/tm-ptx.h: Update.
8709 * config/i386/tm-symmetry.h: Update.
8710 * config/i960/tm-i960.h: Update.
8711 * config/m32r/tm-m32r.h: Update.
8712 * config/m68k/tm-delta68.h: Update.
8713 * config/m68k/tm-linux.h: Update.
8714 * config/m68k/tm-m68k.h: Update.
8715 * config/m88k/tm-m88k.h: Update.
8716 * config/mcore/tm-mcore.h: Update.
8717 * config/mips/tm-mips.h: Update.
8718 * config/mn10200/tm-mn10200.h: Update.
8719 * config/pa/tm-hppa.h: Update.
8720 * config/pa/tm-hppa64.h: Update.
8721 * config/sparc/tm-sp64.h: Update.
8722 * config/sparc/tm-sparc.h: Update.
8723 * config/sparc/tm-sparclet.h: Update.
8724 * config/z8k/tm-z8k.h: Update.
8726 2002-06-14 Andrew Cagney <cagney@redhat.com>
8728 * Makefile.in (i386_linux_tdep_h): Define.
8729 (i386_tdep_h, i387_tdep_h): Define.
8730 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8731 $(i386_tdep_h) and $(i387_tdep_h).
8732 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8734 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8736 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8737 Already covered by the default.
8739 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8740 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8741 (i386_gdbarch_init): Initialize long_double_format and long_double
8744 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8745 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8747 * config/i386/i386sol2.mh: ... here.
8748 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8749 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8750 (SIGCONTEXT_PC_OFFSET): Remove define.
8751 (IN_SIGTRAMP): Remove define.
8752 * i386-sol2-tdep.c: New file.
8754 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8755 * config/i386/tm-i386nw.h: Removed.
8757 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8758 USE_STRUCT_CONVENTION): Remove defines.
8759 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8760 (get_longjmp_target): Remove prototype.
8761 (IN_SIGTRAMP): Remove define.
8762 (i386bsd_in_sigtramp): Remove prototype.
8763 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8764 function. Update comment accordingly
8765 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8766 (FRAME_SAVED_PC): Remove define.
8767 (i386bsd_frame_saved_pc): Remove prototype.
8768 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8769 GET_LONGJMP_TARGET): Remove defines.
8770 (get_longjmp_target): Remove prototype.
8771 (IN_SIGTRAMP): Remove define.
8772 (i386bsd_in_sigtramp): Remove prototype.
8773 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8774 function. Update comment accordingly
8775 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8776 (FRAME_SAVED_PC): Remove define.
8777 (i386bsd_frame_saved_pc): Remove prototype.
8778 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8780 (USE_STRUCT_CONVENTION): Remove prototype.
8781 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8783 (_initialize_i386bsd_nat): Revise logic to determine some
8784 constants at compile time when compiling a native GDB. Warn if
8785 things don't match up with what we expect.
8786 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8788 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8789 to use date stored in `struct gdbarch_tdep'.
8790 (i386bsd_sigcontext_offset): Remove varaible.
8791 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8792 stored in `struct gdbarch_tdep'.
8793 (i386bsd_frame_saved_pc): Make static.
8794 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8795 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8796 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8797 i386fbsd4_sc_pc_offset): New variables.
8798 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8799 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8801 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8803 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8804 Modify the value of i386fbsd_sigtramp_start and
8805 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8806 i386fbsd_sigtramp_end.
8807 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8810 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8811 define to i386-linux-tdep.h.
8812 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8813 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8815 (i386_linux_register_name, i386_linux_register_byte,
8816 i386_linux_register_raw_size): Remove prototypes.
8817 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8818 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8819 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8820 TARGET_WRITE_PC): Remove defines.
8821 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8822 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8823 i386_linux_write_pc): Remove prototypes.
8824 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8825 (get_longjmp_target): Remove prototype.
8826 * i386-linux-tdep.h: New file.
8827 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8828 * i386-linux-tdep.c: Include "i386-tdep.h" and
8829 "i386-linux-tdep.h".
8830 (i386_linux_register_name, i386_linux_register_byte,
8831 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8832 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8834 (i386_linux_init_abi): New function.
8835 (_initialize_i386_linux_tdep): New function.
8837 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8838 (i386_saved_pc_after_call): Remove prototype.
8839 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8840 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8841 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8842 (i386_register_name, i386_stab_reg_to_regnum,
8843 i386_dwarf_reg_to_regnum): Remove prototypes.
8844 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8845 SIZEOF_SSE_REGS): Remove defines.
8846 (REGISTER_BYTES): Remove define.
8847 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8848 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8849 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8850 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8851 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8852 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8853 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8854 (get_longjmp_target): Remove prototype.
8855 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8856 (sigtramp_saved_pc): Remove define.
8857 (i386v4_sigtramp_saved_pc): Remove prototype.
8858 * config/i386/tm-go32.h (FRAME_CHAIN,
8859 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8860 (i386go32_frame_saved_pc): Remove prototype.
8861 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8862 (get_longjmp_target): Remove prototype.
8863 * i386-tdep.h: Include "osabi.h".
8864 (enum i386_abi): Removed.
8865 (enum struct_return): New enum.
8866 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8867 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8868 sc_pc_offset members.
8869 (i386_gdbarch_register_os_abi): Remove prototype.
8870 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8871 I386_SSE_NUM_REGS): New defines.
8872 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8873 I386_SSE_SIZEOF_REGS): New defines.
8874 (i386_register_name, i386_register_byte, i386_register_raw_size):
8876 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8877 (i386bsd_sigtramp_saved_pc): New prototype.
8878 * i386-tdep.c: Don't include "elf-bfd.h".
8879 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8880 i386_frame_chain, i386_saved_pc_after_call): Make static.
8881 (i386_frame_saved_pc): Rewrite to call architecture dependent
8882 function to deal with signal handlers. Make static.
8883 (i386go32_frame_saved_pc): Removed.
8884 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8886 (i386_get_longjmp_target): New function.
8887 (default_struct_convention, pcc_struct_convention,
8888 reg_struct_convention, valid_conventions, struct_convention): New
8890 (i386_use_struct_convention): New function.
8891 (i386v4_sigtramp_saved_pc): Renamed to
8892 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8893 (i386_pc_in_sigtramp): New function.
8894 (i386_abi_names): Removed.
8895 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8896 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8898 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8899 i386_gdbarch_register_os_abi): Removed.
8900 (struct i386_abi_handler): Removed.
8901 (i386_abi_handler_list): Removed.
8902 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8904 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8905 i386_nw_init_abi): New functions.
8906 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8907 Use set_gdbarch_xxx() calls instead of relying on macros for a
8909 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8910 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8911 Register the various architecture variants defined in this file.
8913 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8915 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8916 (struct main_type): Remove arg_types member. Update comments for
8918 (TYPE_ARG_TYPES): Remove.
8919 (TYPE_FN_FIELD_ARGS): Update.
8920 (smash_to_method_type): Update prototype.
8922 * c-typeprint.c (cp_type_print_method_args): Take method type
8923 instead of argument list. Use new argument layout. Simplify.
8924 (c_type_print_args): Use new argument layout. Simplify.
8925 (c_type_print_base): Update call to cp_type_print_method_args.
8926 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8927 argument; use die->type instead. Update call to
8928 smash_to_method_type.
8929 (read_structure_scope): Update call to dwarf2_add_member_fn.
8930 * gdbtypes.c (allocate_stub_method): Update comment.
8931 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8932 Use new argument layout.
8933 (check_stub_method): Use new argument layout. Don't count
8934 void as an argument.
8935 (print_arg_types): Update comments. Use new argument layout.
8936 (recursive_dump_type): Don't print arg_types member.
8937 * hpread.c (hpread_read_struct_type): Use new argument layout.
8938 (fixup_class_method_type): Likewise.
8939 (hpread_type_lookup): Likewise.
8940 * stabsread.c (read_type): Update calls to read_args and
8941 smash_to_method_type.
8942 (read_args): Use new argument layout. Simplify.
8943 * valops.c (typecmp): Use new argument layout. Update parameters
8944 and comments. Simplify.
8945 (hand_function_call): Use new argument layout.
8946 (search_struct_method): Update call to typecmp.
8947 (find_overload_match): Use new argument layout.
8949 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8951 * NEWS: Mention multithreaded debug support for gdbserver.
8953 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8955 * MAINTAINERS: Mention NEWS.
8957 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8959 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8960 (struct mips_objfile_private, compare_pdr_entries): New.
8961 (non_heuristic_proc_desc): Read the ".pdr" section if it
8964 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8966 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8967 (arm_debug): New static variable.
8968 (_initialize_arm_tdep): Add ``set debug arm'' command.
8970 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8972 * Makefile.in (sim_arm_h): Define.
8973 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8974 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8975 (arm_register_sim_regno): New function, map an internal REGNUM
8976 onto a simulator register number.
8977 (arm_gdbarch_init): Set register_sim_regno.
8979 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8981 * MAINTAINERS: Add self.
8983 2002-06-11 Jim Blandy <jimb@redhat.com>
8985 * source.c (source_info): Mention whether the symtab has
8986 information about preprocessor macros.
8988 Call the command `info macro', not `show macro'.
8989 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8991 (_initialize_macrocmd): Register `info_macro_command' in
8992 `infolist', not `showlist'.
8994 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8996 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8997 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8998 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8999 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
9000 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
9002 (set_mipsfpu_single_command, set_mipsfpu_double_command)
9003 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
9004 (_initialize_mips_tdep): Remove dead code.
9005 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
9006 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
9007 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
9008 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
9009 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
9010 MIPS_LAST_FP_ARG_REGNUM): Remove.
9012 2002-06-11 Michal Ludvig <mludvig@suse.cz>
9014 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
9015 (unwind_tmp_obstack_free, parse_frame_info)
9016 (update_context, cfi_read_fp, cfi_write_fp)
9017 (cfi_frame_chain, cfi_init_extra_frame_info)
9018 (cfi_virtual_frame_pointer): Use the above function.
9019 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
9021 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
9023 * v850-tdep.c (v850_type_is_scalar): New function.
9024 (v850_use_struct_convention): Match current gcc implementation
9025 as close as possible.
9026 (v850_push_arguments): Fix stack_offset handling. Don't write
9027 struct_addr into register. This is done by v850_store_struct_return.
9028 (v850_extract_return_value): Care for structs.
9029 (v850_store_return_value): Ditto.
9030 (v850_store_struct_return): Actually write address.
9032 2002-06-11 Michal Ludvig <mludvig@suse.cz>
9034 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
9035 without debug information too.
9037 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9039 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
9040 Make multi-arch pure.
9041 * gdbarch.h, gdbarch.c: Re-generate.
9042 * arm-tdep.c (arm_print_float_info): Update.
9043 * arch-utils.h (default_print_float_info): Update.
9044 * arch-utils.c (default_print_float_info): Update.
9045 * infcmd.c (float_info): Update call.
9047 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9049 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
9050 the front of the initialize list.
9052 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9054 * infrun.c (struct inferior_status): Replace fields
9055 selected_frame_address and selected_level with field
9057 (save_inferior_status): Update. Use get_frame_id.
9058 (struct restore_selected_frame_args): Delete.
9059 (restore_selected_frame): Update. Use frame_find_by_id.
9060 (restore_inferior_status): Update.
9062 * breakpoint.h (struct breakpoint): Change type of
9063 watchpoint_frame to frame_id.
9064 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
9065 call to get_current_frame.
9066 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
9068 (watchpoint_check): Use frame_find_by_id.
9070 * frame.h (record_selected_frame): Delete declaration.
9071 * stack.c (record_selected_frame): Delete function.
9073 * frame.h (struct frame_id): Define.
9074 (get_frame_id): Declare.
9075 (frame_find_by_id): Declare.
9076 * frame.c (frame_find_by_id): New function.
9077 (get_frame_id): New function.
9079 2002-06-10 Andrey Volkov <avolkov@transas.com>
9081 * ser-e7kpc.c: Fix duplicated define and call of
9082 _initialize_ser_e7000pc
9084 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9086 * signals/signals.c (target_signal_from_host): Fix #ifdef
9088 (do_target_signal_to_host): Likewise.
9090 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9092 * mips-tdep.c (mips_find_abi_section): New function.
9093 (mips_gdbarch_init): Call it.
9095 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9097 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9098 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
9099 after Andrew's 2002-06-08 gdbarch change.
9101 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9103 * i386-linux-nat.c (suppy_gregset): Don't supply
9104 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9106 (fill_gregset): Don't fetch it under the same circumstances.
9108 2002-06-09 Andrew Cagney <cagney@redhat.com>
9110 * Makefile.in (callback_h): Define.
9111 (remote_sim_h): Update path to remote-sim.h.
9112 (remote-rdp.o): Add $(callback_h).
9113 (remote-sim.o): Use $(callback_h).
9114 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9115 * remote-rdp.c: Include "gdb/callback.h".
9117 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9119 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9120 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9122 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9124 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9125 * rdi-share/serpardr.c: Ditto.
9126 * rdi-share/unixcomm.c: Ditto.
9127 * rdi-share/serdrv.c: Ditto.
9128 * rdi-share/hostchan.h: Ditto.
9129 * rdi-share/hostchan.c: Ditto.
9130 * rdi-share/host.h: Ditto.
9131 * rdi-share/devsw.c: Ditto.
9133 * objfiles.h: Change type of obj_private to void pointer.
9134 * pa64solib.c: Update copyright. Don't include "assert.h", use
9135 strcmp instead of STREQ, use LONGEST, do not use PTR
9136 * somsolib.c: Ditto.
9138 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9139 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9140 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9142 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9144 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9145 (default_get_saved_register): Delete function.
9146 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9147 generic_unwind_get_saved_register.
9148 * gdbarch.h, gdbarch.c: Re-generate.
9150 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9152 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9153 generic_func_frame_chain_valid.
9154 * gdbarch.h, gdbarch.c: Re-generate.
9155 * blockframe.c (generic_func_frame_chain_valid): Only check
9156 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
9157 passing FP to PC_IN_CALL_DUMMY.
9160 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9162 * gdbarch.sh (struct gdbarch_data): Add field init_p.
9163 (register_gdbarch_data): Initialize init_p.
9164 (gdbarch_data): Initialize data pointer using the init function.
9165 (init_gdbarch_data): Delete function.
9166 (gdbarch_update_p): Update.
9167 (initialize_non_multiarch): Update.
9168 (struct gdbarch): Add field initialized_p.
9169 * gdbarch.h, gdbarch.c: Re-generate.
9171 2002-06-07 Michal Ludvig <mludvig@suse.cz>
9173 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9174 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9175 better do the things actually here.
9176 * x86-64-tdep.c (x86_64_register_name2nr): New.
9177 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9178 (x86_64_gdbarch_init): Respect the above change.
9179 * x86-64-tdep.h (x86_64_register_name2nr)
9180 (x86_64_register_nr2name): Add prototypes.
9181 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9183 2002-06-06 Michael Snyder <msnyder@redhat.com>
9185 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9186 Delete extra braces and re-indent.
9187 (d10v_store_return_value): Char return values
9188 must be shifted over by one byte in R0.
9189 (d10v_extract_return_value): Delete extra braces, re-indent.
9191 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9193 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9194 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9195 (d10v_integer_to_address): Rewrite.
9196 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9197 the d10v specific functions which take care of converting to the
9200 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9202 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9203 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9205 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9207 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9209 * config/tm-linux.h: Ditto.
9210 * config/alpha/tm-alphalinux.h: Ditto.
9211 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9212 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9213 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9214 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9215 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9216 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9217 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9218 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9219 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9220 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9221 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9222 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9223 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9224 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9225 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9226 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9227 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9228 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9229 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9230 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9231 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9232 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9233 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9234 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9235 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9236 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9237 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9238 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9239 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9240 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9241 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9242 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9243 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9244 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9245 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9246 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9247 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9249 2002-05-04 Aidan Skinner <aidan@velvet.net>
9251 * ada-exp.tab.c: New file
9252 * ada-exp.y: New file
9253 * ada-lang.c: New file
9254 * ada-lang.h: New file
9255 * ada-lex.c: New file
9256 * ada-lex.l: New file
9257 * ada-tasks.c: New file
9258 * ada-typeprint.c: New file
9259 * ada-valprint.c: New file
9261 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9263 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9264 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9266 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9268 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9269 insetead of ppc-linux-tdep.o.
9270 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9271 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9273 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9275 2002-05-07 Christian Groessler <chris@groessler.org>
9276 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9277 bit register contents for little endian hosts.
9279 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9281 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9284 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9286 * gdbarch.h: Regenerate.
9288 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9290 * MAINTAINERS: Add everyone to write-after-approval list.
9292 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9294 * stack.c (frame_info): Use frame_register_unwind instead of
9295 saved_regs. Mention when the SP is on the stack or in a register.
9297 * frame.h (frame_register_unwind_ftype): Define. Document.
9298 (struct frame_info): Add field register_unwind and
9299 register_unwind_cache.
9300 (frame_register_unwind): Declare.
9301 (generic_unwind_get_saved_register): Declare.
9303 * frame.c (frame_register_unwind): New function.
9304 (generic_unwind_get_saved_register): New function.
9306 * blockframe.c (generic_call_dummy_register_unwind): New function.
9307 (frame_saved_regs_register_unwind): New function.
9308 (set_unwind_by_pc): New function.
9309 (create_new_frame): New function.
9310 (get_prev_frame): New function.
9312 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9314 * a29k-share/: Delete directory.
9315 * remote-vx29k.c: Delete file.
9317 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9319 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9320 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9322 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9324 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9325 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9328 (sparcnbsd-tdep.o): New dependency lists.
9329 * NEWS: Note new UltraSPARC NetBSD native configuration.
9330 * configure.host (sparc64-*-netbsd*): New host.
9331 * configure.tgt (sparc-*-netbsdelf*)
9332 (sparc-*-netbsd*): Set gdb_target to nbsd.
9333 (sparc64-*-netbsd*): New target.
9334 * sparc64nbsd-nat.c: New file.
9335 * sparcnbsd-nat.c: New file.
9336 * sparcnbsd-tdep.c: New file.
9337 * sparcnbsd-tdep.h: New file.
9338 * config/sparc/nbsd.mt: New file.
9339 * config/sparc/nbsd64.mh: New file.
9340 * config/sparc/nbsd64.mt: New file.
9341 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9342 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9344 * config/sparc/nbsdaout.mt: Remove.
9345 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9346 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9348 * config/sparc/nbsdelf.mt: Remove.
9349 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9350 sparc-nat.c compatiblity defines.
9351 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9352 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9353 * config/sparc/tm-nbsd64.h: New file.
9354 * config/sparc/tm-nbsdaout.h: Remove.
9355 * config/sparc/xm-nbsd.h: Remove.
9357 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9359 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9360 * sparc-tdep.c: Include osabi.h.
9361 (gdbarch_tdep): Add osabi member.
9362 (_initialize_sparc_tdep): Use gdbarch_register.
9363 (sparc_gdbarch_init): Use generic OS ABI framework.
9364 (sparc_dump_tdep): New function.
9366 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9368 * corefile.c (do_captured_read_memory_integer): Return non-zero
9370 (safe_read_memory_integer): Copy result of memory read when
9371 status is non-zero. Also, add comments.
9373 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9375 * Makefile.in (ppc_tdep_h): Define.
9378 (rs6000-tdep.o): Use $(ppc_tdep_h).
9381 (ppcnbsd-tdep.o): New dependency lists.
9382 * ppc-tdep.h: Use generic OS ABI framework.
9383 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9384 (ppc_linux_init_abi): New functions.
9385 (ppc_sysv_abi_broken_use_struct_convention)
9386 (ppc_sysv_abi_use_struct_convention)
9387 (ppc_sysv_abi_push_arguments): Move to...
9388 * ppc-sysv-tdep.c: ...here.
9389 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9390 * rs6000-tdep.c (process_note_abi_tag_sections)
9391 (get_elfosabi): Remove.
9392 (rs6000_gdbarch_init): Use generic OS ABI framework.
9393 (rs6000_dump_tdep): New function.
9394 (_initialize_rs6000_tdep): Use gdbarch_register.
9395 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9396 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9397 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9398 of ppc-linux-tdep.o.
9399 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9400 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9401 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9402 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9403 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9404 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9406 2002-05-29 Jim Blandy <jimb@redhat.com>
9408 * macroscope.c (default_macro_scope): Put `void' in empty argument
9411 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9413 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9414 * arch-utils.c: Include "sim-regno.h".
9415 * gdbarch.sh: Don't include "sim-regno.h".
9416 * gdbarch.h, gdbarch.c: Regenerate.
9417 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9419 * arch-utils.h (legacy_register_sim_regno): To here.
9420 * remote-sim.c (legacy_register_sim_regno): Move function from
9422 * arch-utils.c (legacy_register_sim_regno): To here.
9424 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9426 * sim-regno.h: New file.
9427 * Makefile.in (sim_regno_h): Define.
9428 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9429 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9430 (legacy_register_sim_regno): New function.
9431 (one2one_register_sim_regno): New function.
9432 (gdbsim_fetch_register): Rewrite.
9433 (gdbsim_store_register): Only store a register when
9434 REGISTER_SIM_REGNO is valid.
9435 * d10v-tdep.c: Include "sim-regno.h".
9436 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9437 (d10v_ts3_register_sim_regno): Ditto.
9438 * gdbarch.sh: Include "sim-regno.h".
9439 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9440 * gdbarch.h, gdbarch.c: Regenerate.
9441 * arch-utils.h (default_register_sim_regno): Delete declaration.
9442 * arch-utils.c (default_register_sim_regno): Delete function.
9444 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9446 * ppcnbsd-nat.c: Rewrite.
9447 * ppcnbsd-tdep.c: New file.
9448 * ppcnbsd-tdep.h: New file.
9449 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9450 solib.o, and solib-svr4.o.
9451 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9452 nbsd-tdep.o, and corelow.o.
9454 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9456 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9457 `tr' and `sed'. Mention that `broken' targets are not expected to
9460 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9462 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9463 Let PC point right after the prologue before looking up symbols.
9465 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9467 * i386-tdep.c (i386_register_virtual_type): Return
9468 builtin_type_vec128i for SSE registers.
9470 * gdbtypes.h (builtin_type_vec128i): Declare.
9472 * gdbtypes.c (build_builtin_type_vec128i): New function.
9473 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9474 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9475 (build_gdbtypes): Initialize new builtin vector types.
9476 (_initialize_gdbtypes): Register new vector types with gdbarch.
9478 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9480 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9481 since it has been multi-arch'd.
9482 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9483 Move Alpha and VAX multi-arch news entries to same section
9484 as other multi-arch news.
9486 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9488 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9489 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9490 static. Rename some register numbers to put them in ns32k-tdep
9492 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9493 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9495 (_initialize_ns32k_tdep): Use gdbarch_register.
9496 * ns32k-tdep.h: New file.
9497 * ns32knbsd-tdep.c: New file.
9498 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9499 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9500 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9501 REGISTER_BYTES, REGISTER_BYTE): Remove.
9502 * config/ns32k/tm-ns32k.h: New file.
9503 * config/ns32k/tm-umax.h: Remove.
9505 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9507 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9508 ns32k_store_struct_return, ns32k_extract_return_value,
9509 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9511 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9512 ns32k_saved_pc_after_call.
9513 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9514 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9515 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9516 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9517 ns32k_extract_struct_value_address.
9519 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9521 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9522 ns32k_fix_call_dummy): New.
9523 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9524 ns32k_call_dummy_words.
9525 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9526 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9527 CALL_DUMMY_NARGS): Remove.
9528 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9530 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9532 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9533 ns32k_frame_saved_pc, ns32k_frame_args_address,
9534 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9535 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9536 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9537 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9538 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9539 (BREAKPOINT): Remove..
9540 (FRAME_CHAIN): Define as ns32k_frame_chain.
9541 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9542 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9543 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9544 (FRAME_FIND_SAVED_REGS): Remove.
9545 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9546 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9547 (POP_FRAME): Define as ns32k_pop_frame.
9549 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9551 * ns32k-tdep.c (ns32k_register_byte_32082,
9552 ns32k_register_byte_32382, ns32k_register_raw_size,
9553 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9555 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9556 ns32k_register_byte_32382.
9557 * config/ns32k/tm-umax.h: Update copyright years.
9558 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9559 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9560 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9561 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9562 (ns32k_get_enter_addr): Fix prototype.
9564 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9566 * ns32k-tdep.c: Update copyright years.
9567 (ns32k_register_name_32082): New function.
9568 (ns32k_register_name_32382): Ditto.
9569 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9570 (REGISTER_NAME): Define as ns32k_register_name_32382.
9571 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9572 (REGISTER_NAME): Define as ns32k_register_name_32082.
9574 2002-05-24 Jim Blandy <jimb@redhat.com>
9576 * dwarf2read.c (free_line_header): Use xfree, not free.
9578 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9580 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9581 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9583 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9585 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9587 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9589 From Ross Alexander at NEC Europe:
9590 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9592 2002-05-23 Michael Snyder <msnyder@redhat.com>
9594 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9595 for input, rather than parse_and_eval_address.
9597 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9599 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9600 * Makefile.in (sim_d10v_h): Update definition.
9602 2002-05-24 Andrew Cagney <cagney@redhat.com>
9604 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9605 change `2002-05-22 Michael Snyder' below.
9606 (d10v_push_arguments): Ditto.
9607 (d10v_extract_return_value): Ditto.
9609 2002-05-23 Jim Blandy <jimb@redhat.com>
9611 * macrotab.c (check_for_redefinition): Don't complain if the new
9612 definition is the same as the previous one. Take more arguments
9613 to allow the comparison.
9614 (macro_define_object, macro_define_function): Pass more arguments
9615 to check_for_redefinition.
9617 2002-05-22 Michael Snyder <msnyder@redhat.com>
9619 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9620 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9621 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9622 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9623 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9624 Add a temp variable to save a call (and a memory read).
9625 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9626 if possible (so that PC_IN_CALL_DUMMY will work).
9628 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9630 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9632 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9634 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9636 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9637 (dwarf2_build_frame_info): Add offset to fde->initial_location
9638 so that frames of shared libraries are mapped correctly.
9639 (execute_stack_op): Change type of 'result' from ULONGEST to
9642 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9644 * config/alpha/tm-nbsd.h: Include solib.h.
9646 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9648 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9649 assumptions about the host's byte order.
9651 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9653 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9655 * alphanbsd-tdep.c: Include solib-svr4.h.
9656 * shnbsd-tdep.c: Ditto.
9658 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9660 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9661 nbsd-tdep.h to dependency list.
9662 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9663 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9664 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9665 nbsdaout.mh and nbsdelf.mh consistently.
9666 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9667 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9668 nbsdaout.mt and nbsdelf.mh consistently.
9669 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9670 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9671 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9672 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9673 a.out shared library stuff from here...
9674 * config/nm-nbsdaout.h: ...to here.
9675 * config/tm-nbsd.h: Remove.
9676 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9677 * config/arm/nbsd.mh: Remove.
9678 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9680 * config/arm/nbsdaout.mh: New file.
9681 * config/arm/nbsdelf.mh: New file.
9682 * config/arm/nm-nbsdaout.h: New file.
9683 * config/i386/nbsd.mh: Remove.
9684 * config/i386/nbsd.mt: Remove.
9685 * config/i386/nbsdaout.mh: New file.
9686 * config/i386/nbsdaout.mt: New file.
9687 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9688 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9689 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9690 i386_register_u_addr): Remove.
9691 * config/i386/nm-nbsdaout.h: New file.
9692 * config/i386/nm-nbsdelf.h: Remove.
9693 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9694 (USE_STRUCT_CONVENTION): Remove.
9695 * config/i386/tm-nbsdaout.h: New file.
9696 * config/i386/tm-nbsdelf.h: Remove.
9697 * config/m68k/nbsd.mh: Remove.
9698 * config/m68k/nbsd.mt: Remove.
9699 * config/m68k/nbsdaout.mh: New file.
9700 * config/m68k/nbsdaout.mt: New file.
9701 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9702 * config/m68k/nm-nbsdaout.h: New file.
9703 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9704 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9705 * config/ns32k/nbsd.mh: Remove.
9706 * config/ns32k/nbsd.mt: Remove.
9707 * config/ns32k/nbsdaout.mh: New file.
9708 * config/ns32k/nbsdaout.mt: New file.
9709 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9710 * config/ns32k/nm-nbsdaout.h: New file.
9711 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9712 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9713 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9714 (SVR4_SHARED_LIBS): Remove.
9715 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9716 * config/sparc/nbsd.mh: Remove.
9717 * config/sparc/nbsd.mt: Remove.
9718 * config/sparc/nbsdaout.mh: New file.
9719 * config/sparc/nbsdaout.mt: New file.
9720 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9721 * config/sparc/nbsdelf.mt: New file.
9722 * config/sparc/nm-nbsdaout.h: New file.
9723 * config/sparc/nm-nbsdelf.h: Remove.
9724 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9725 * config/sparc/tm-nbsdaout.h: New file.
9727 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9729 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9731 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9733 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9735 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9737 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9739 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9741 * NEWS: Note new MIPS NetBSD native configuration.
9742 * configure.host (mips*-*-netbsd*): New host.
9743 * configure.tgt (mips*-*-netbsd*): New target.
9744 * mipsnbsd-nat.c: New file.
9745 * mipsnbsd-tdep.c: New file.
9746 * mipsnbsd-tdep.h: New file.
9747 * config/mips/nbsd.mh: New file.
9748 * config/mips/nbsd.mt: New file.
9749 * config/mips/nm-nbsd.h: New file.
9750 * config/mips/tm-nbsd.h: New file.
9752 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9754 * Makefile.in (SFILES): Add osabi.c.
9755 (COMMON_OBS): Add osabi.o.
9756 (osabi.o): New dependency list.
9757 * osabi.c: New file.
9758 * osabi.h: New file.
9759 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9761 * Makefile.in (alpha_tdep_h): Define and use instead of
9763 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9764 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9766 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9767 * alpha-tdep.h: Include osabi.h.
9768 (alpha_abi): Remove.
9769 (gdbarch_tdep): Use generic OS ABI framework.
9770 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9771 gdbarch_register_osabi.
9772 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9773 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9774 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9776 * Makefile.in (sh_tdep_h): Add osabi.h.
9777 * sh-tdep.h (sh_osabi): Remove.
9778 (gdbarch_tdep): Use generic OS ABI framework.
9779 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9780 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9781 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9782 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9784 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9785 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9786 gdbarch_register_osabi.
9787 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9788 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9789 (get_elfosabi): Rename to...
9790 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9791 ABI framework support routines.
9792 (arm_gdbarch_init): Use generic OS ABI framework.
9793 (arm_dump_tdep): Likewise.
9794 (_initialize_arm_tdep): Likewise.
9795 * arm-tdep.h: Include osabi.h.
9797 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9799 (arm_gdbarch_register_os_abi): Remove prototype.
9800 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9801 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9803 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9804 * mips-tdep.c: Include osabi.h.
9805 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9808 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9810 * h8300-tdep.c: Fix formatting.
9812 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9814 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9815 printing vector registers.
9817 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9819 From Fernando Nasser:
9820 * remote.c (remote_async_open_1): Re-throw the exception when the
9822 (remote_cisco_open): Ditto.
9823 (remote_open_1): Ditto.
9825 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9827 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9828 (remote_start_remote): Add uiout parameter. Pass through to
9829 remote_start_remote_dummy.
9830 (remote_open_1): Use catch_exception instead of catch_errors.
9831 (remote_async_open_1): Ditto.
9832 (remote_cisco_open): Ditto.
9834 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9836 * remote.c (remote_start_remote): Replace PTR with void pointer.
9837 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9840 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9842 * gdb_indent.sh: Allow the script to be run in the sim directory.
9844 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9846 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9847 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9849 * corelow.c (core_open): Only call set_gdbarch_from_file if
9852 2002-05-17 Andrey Volkov <avolkov@transas.com>
9854 * h8300-tdep.c: Add support of EXR register
9855 * config/h8300/tm-h8300.h: Ditto.
9857 2002-05-17 Andrey Volkov <avolkov@transas.com>
9859 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9861 2002-05-17 Andrey Volkov <avolkov@transas.com>
9863 * h8300-tdep.c: Change literal regnums to REGNO.
9865 2002-05-17 Jim Blandy <jimb@redhat.com>
9867 * NEWS: Note addition of macro support.
9869 Expand preprocessor macros in C expressions.
9870 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9871 (scan_macro_expansion, scanning_macro_expansion,
9872 finished_macro_expansion): New function declarations.
9873 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9874 variable declarations.
9875 * parser-defs.h (expression_context_pc): New declaration.
9876 * parse.c (expression_context_pc): New variable.
9877 (parse_exp_1): Set expression_context_pc, as well as
9878 expression_context_block.
9879 * c-exp.y (yylex): If we're not already reading the result of a
9880 macro expansion, try to macro-expand the next token. When we're
9881 done scanning a macro expansion, switch back to the mainline text.
9882 Commas and `if's in a macro's expansion don't terminate the input.
9883 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9884 (macro_original_text, macro_expanded_text,
9885 expression_macro_lookup_func, expression_macro_lookup_baton): New
9887 (scan_macro_expansion, scanning_macro_expansion,
9888 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9889 c_preprocess_and_parse): New functions.
9890 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9891 c_preprocess_and_parse, instead of c_parse.
9892 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9893 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9895 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9897 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9898 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9899 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9901 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9903 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9905 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9907 * Makefile.in (sh_tdep_h): Define and use.
9908 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9909 register enum): Move to...
9910 * * sh-tdep.h: ...here.
9911 * sh-tdep.c: Include sh-tdep.h.
9912 * sh3-rom.c: Likewise.
9913 * shnbsd-tdep.c: Likewise.
9915 2002-05-16 Michael Snyder <msnyder@redhat.com>
9917 * arm-tdep.c: Spelling fix in comment.
9919 2002-05-16 Jim Blandy <jimb@redhat.com>
9921 Add commands for manually expanding macros and showing their
9923 * macrocmd.c, macroscope.c, macroscope.h: New files.
9924 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9925 (macroscope_h): New variable.
9926 (HFILES_NO_SRCDIR): Add macroscope.h.
9927 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9928 (macroscope.o, macrocmd.o): New rules.
9930 Teach the Dwarf 2 reader to read macro information.
9931 * dwarf2read.c: #include "macrotab.h".
9932 (dwarf_macinfo_buffer): New variable.
9933 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9935 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9936 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9937 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9938 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9939 dwarf2_macro_spaces_in_definition): New complaints.
9940 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9941 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9942 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9943 the partial symbol table.
9944 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9945 from what's recorded in the partial symbol table.
9946 (read_file_scope): If the compilation unit has a
9947 `DW_AT_macro_info' attribute, read its macro information.
9948 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9950 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9953 * ser-tcp.c: Don't include <netinet/udp.h>.
9955 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9957 * MAINTAINERS: Update my email address.
9959 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9961 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9962 include file of the same name.
9964 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9966 * configure.tgt: Mark v850 as multi-arched.
9967 * config/v850/tm-v850.h: Remove file.
9968 * config/v850/v850.mt: Eliminate TM_FILE.
9970 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9972 * v850-tdep.c: Full multi-arch.
9973 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9974 Define GDB_MULTI_ARCH to 2.
9976 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9978 * p-exp.y (current_type): New static variable.
9979 Carries the type of the expression at the position that is parsed.
9980 (push_current_type, pop_current_type): Two new functions. Used
9981 to store/restore current_type in expression on specific tokens.
9982 (search_field): New static variable. Set to one after parsing a point
9983 as at that point only a FIELDNAME token should be searched.
9984 (FIELDNAME): New token. After a point only a token belonging to
9985 current_type type definition is allowed.
9986 (all over token rules): reset and change current_type according
9988 (exp '[' rule): insert implicit array index field if
9989 exp is a pascal string type.
9991 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9993 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9994 frame info. Use frame_info's saved_regs instead of matching member
9995 in extra_frame_info throughout.
9996 (v850_frame_init_saved_regs): New function.
9997 (v850_init_extra_frame_info): Move most functionality into
9998 v850_frame_init_saved_regs().
9999 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
10000 (v850_frame_find_saved_regs): Remove declaration.
10001 (FRAME_FIND_SAVED_REGS): Remove definition.
10002 (v850_frame_init_saved_regs): Add declaration.
10003 (FRAME_INIT_SAVED_REGS): Add definition.
10005 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
10007 * v850-tdep.c: Begin multi-arch'ing v850.
10008 (v850_target_architecture_hook): Remove function.
10009 (v850_gdbarch_init): New function. Add code previously in
10010 v850_target_architecture_hook().
10011 (_initialize_v850_tdep): Don't set target_architecture_hook.
10012 Call register_gdbarch_init() instead.
10014 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
10016 * gdbtypes.h (struct cplus_struct_type): Remove args field.
10017 * hpread.c (hpread_read_struct_type): Remove assignments to args.
10018 (fixup_class_method_type): Likewise.
10020 2002-05-15 Jim Blandy <jimb@redhat.com>
10022 Add macro structures to GDB's symbol tables. Nobody puts anything
10024 * symtab.h (struct symtab): New member: `macro_table'.
10025 * buildsym.h (pending_macros): New global variable.
10026 * buildsym.c: #include "macrotab.h".
10027 (buildsym_init): Initialize `pending_macros'.
10028 (end_symtab): If we found macro information while reading a CU's
10029 debugging info, do build a symtab structure for it. Make the
10030 symtab point to the macro information, and clear the
10031 `pending_macros' pointer which held it while we were reading the
10033 (really_free_pendings): Free any pending macro table.
10034 * objfiles.h (struct objfile): New member: `macro_cache'.
10035 * objfiles.c (allocate_objfile): Set allocate and free functions
10036 for the macro cache's objstack.
10037 (free_objfile): Empty the macro cache's obstack.
10038 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
10039 set new allocate and free functions for it.
10040 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
10041 free functions for the macro cache's objstack. (Why is this
10042 function building its own objfile?)
10043 * symmisc.c (print_objfile_statistics): Print statistics on the
10045 * Makefile.in: Note that buildsym.o depends on macrotab.h.
10047 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
10049 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
10050 (REGISTER_U_ADDR): Delete definition.
10051 (arm_register_u_addr): Delete declaration.
10053 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
10055 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
10056 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
10058 2002-05-14 Andrew Cagney <ac131313@redhat.com>
10060 * regcache.c (register_valid): Revise comments refering to "Not
10061 available" and "unavailable".
10062 * frame.c (frame_register_read): Ditto.
10063 * findvar.c (value_of_register): Ditto.
10065 2002-05-15 Andrew Cagney <cagney@redhat.com>
10067 * Makefile.in (remote_sim_h): Replace remote-sim_h.
10068 (remote-sim.o): Update dependencies.
10069 (d10v-tdep.o): Specify dependencies.
10070 (sim_d10v_h): Define.
10072 2002-05-14 Jim Blandy <jimb@redhat.com>
10074 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10075 * macrotab.c (macro_lookup_inclusion, find_definition,
10076 new_macro_table): Same.
10078 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10079 not `! strcmp ()'. This is a dubious improvement.
10080 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10082 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10083 although it's not necessary, to avoid a warning.
10085 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10087 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10088 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10089 TYPE_INSTANCE_FLAGS.
10090 (struct main_type): New.
10091 (struct type): Move most members to struct main_type. Change
10092 cv_type and as_type to new type_chain member. Add instance_flags.
10093 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10094 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10095 (finish_cv_type): Remove prototype.
10096 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
10098 (alloc_type_instance): New function.
10099 (smash_type): New function.
10100 (make_pointer_type, make_reference_type, make_function_type)
10101 (smash_to_member_type, smash_to_method_type): Call smash_type.
10102 (make_qualified_type): New function.
10103 (make_type_with_address_space): Call make_qualified_type.
10104 (make_cv_type): Likewise.
10105 (finish_cv_type): Remove unnecessary function.
10106 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
10107 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10108 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10109 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10110 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10111 * hpread.c (hpread_read_struct_type): Likewise.
10112 * stabsread.c (read_struct_type): Likewise.
10114 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
10116 * configure.tgt: Add a catch all sh* target, for cases like
10117 sh[2,3,4]-elf and sh-hms.
10119 2002-05-14 Keith Seitz <keiths@redhat.com>
10121 * event-loop.c (create_file_handler): Don't do anything but
10122 update data when we are given a fd which we are already
10125 2002-05-14 Michal Ludvig <mludvig@suse.cz>
10127 * dwarf2cfi.c (context_cpy): Copy registers correctly.
10128 (update_context): Use __func__ in warnings.
10130 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10132 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
10133 and tcp_close to net_open and net_close.
10134 (net_open): Accept "udp:" and "tcp:" specifications. Connect
10135 using UDP if requested. Don't try to disable Nagle on UDP
10137 * remote.c (remote_serial_open): New function. Warn about UDP.
10138 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10140 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10142 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10144 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10146 * configure.tgt: Remove sh-hms target.
10147 * MAINTAINERS: Don't list sh-hms as a separate target.
10149 2002-05-13 Jim Blandy <jimb@redhat.com>
10151 Add first preprocessor macro-expansion files.
10152 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10153 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10154 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10155 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10156 (COMMON_OBS): Add macrotab.o, macroexp.o.
10157 (macroexp.o, macrotab.o): New rules.
10159 2002-05-13 Andrew Cagney <ac131313@redhat.com>
10161 * config/m88k/tm-m88k.h: Update copyright.
10162 (m88k_target_write_pc): Declare
10163 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10164 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10165 (SHIFT_INST_REGS): Update definition.
10166 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10167 using old definition of TARGET_WRITE_PC.
10168 * regcache.c (generic_target_write_pc): Delete code handling
10170 * gdbarch.sh (NNPC_REGNUM): Delete.
10171 * gdbarch.h, gdbarch.c: Regenerate.
10173 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
10175 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10176 builtin reg number.
10178 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10180 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10181 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10182 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10184 * c-typeprint.c (cp_type_print_method_args): Likewise.
10185 (c_type_print_args): Likewise.
10186 * d10v-tdep.c (d10v_push_arguments): Likewise.
10187 (d10v_extract_return_value): Likewise.
10188 * expprint.c (print_subexp): Likewise.
10189 * gdbtypes.c (lookup_primitive_typename): Likewise.
10190 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10191 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10192 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10193 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10194 (TYPE_VECTOR): Likewise.
10195 * hpread.c (hpread_read_struct_type)
10196 (fix_static_member_physnames, fixup_class_method_type)
10197 (hpread_type_lookup): Likewise.
10198 * mdebugread.c (parse_symbol, parse_type): Likewise.
10199 * p-lang.c (is_pascal_string_type): Likewise.
10200 * valops.c (hand_function_call): Likewise.
10201 * x86-64-tdep.c (classify_argument): Likewise.
10203 * hpread.c (hpread_read_function_type)
10204 (hpread_read_doc_function_type): Call replace_type.
10205 * dstread.c (create_new_type): Delete.
10206 (decode_dst_structure, process_dst_function): Call alloc_type.
10207 Use type access macros.
10209 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10211 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10212 the're not supported by the current architecture.
10213 (i387_fill_fxsave): Likewise.
10215 2002-05-12 Fred Fish <fnf@redhat.com>
10217 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10218 sect_index_xxx members to index the first slot in section_offsets
10219 if all of the section_offsets are zero.
10221 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10223 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10224 checked in with last change.
10226 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10228 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10229 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10232 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10234 * Makefile.in: Update dependencies.
10236 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10238 * language.c (local_hex_string_custom): Simplify. Do not depend
10239 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10241 * memattr.c (mem_info_command): Replace calls to
10242 longest_local_hex_string and longest_local_hex_string_custom.
10243 * buildsym.c (make_blockvector): Ditto.
10244 * solib.c (info_sharedlibrary_command): Ditto.
10245 * tracepoint.c (tracepoints_info): Ditto.
10246 * symtab.c (print_msymbol_info): Ditto.
10248 * language.c (local_hex_string): Delete.
10249 (local_hex_string_custom): Delete.
10250 (longest_local_hex_string): Rename to local_hex_string.
10251 (longest_local_hex_string_custom): Rename to
10252 local_hex_string_custom.
10253 * language.h (local_hex_string): Change parameter type to LONGEST.
10254 (local_hex_string_custom): Ditto.
10255 (longest_local_hex_string): Delete declaration.
10256 (longest_local_hex_string_custom): Ditto.
10258 * solib.c: Update copyright.
10259 * memattr.c: Update copyright.
10261 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10263 * arch-utils.h (legacy_register_to_value): Declare.
10264 (legacy_value_to_register): Declare.
10265 (legacy_convert_register_p): Declare.
10266 * arch-utils.c (legacy_register_to_value): New function.
10267 (legacy_value_to_register): New function.
10268 (legacy_convert_register_p): New function.
10270 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10271 (VALUE_TO_REGISTER): Define.
10272 (CONVERT_REGISTER_P): Define.
10273 * gdbarch.h, gdbarch.c: Regenerate.
10275 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10277 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10278 CONVERT_REGISTER_P.
10280 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10281 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10283 * Makefile.in: Update dependencies for valops.c.
10284 * valops.c: Include "gdb_assert.h".
10285 (typecmp): Skip THIS parameter to methods.
10286 (find_method_list): Remove static_memfuncp argument,
10287 update callers. Check for stub methods.
10288 (find_value_oload_method_list): Don't set *static_memfuncp.
10289 (find_overload_match): Don't check for stub methods. Assert
10290 that methods are not stubbed. Handle static methods.
10291 (value_find_oload_method_list): Remove static_memfuncp argument.
10292 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10293 to the argument list for static stub methods.
10294 * value.h (value_find_oload_method_list): Update prototype.
10296 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10298 * arch-utils.h (generic_register_size): Declare.
10299 (generic_register_raw_size, generic_register_virtual_size): Delete
10301 * arch-utils.c (generic_register_raw_size): Delete.
10302 (generic_register_size): New function.
10303 (generic_register_virtual_size): Delete.
10305 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10306 default generic_register_size.
10307 * gdbarch.h, gdbarch.c: Re-generate.
10309 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10310 register_virtual_size.
10311 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10312 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10314 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10316 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10317 * gdbarch.h, gdbarch.c: Regenerate.
10318 * gnu-v3-abi.c: Update copyright.
10319 (vtable_address_point_offset): Update.
10320 (gnuv3_rtti_type): Update.
10321 (gnuv3_baseclass_offset): Update.
10322 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10323 (init_fetch_link_map_offsets): Update.
10324 * remote.c (get_remote_state): Update.
10326 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10328 * TODO: Remove value_headof/value_from_vtable_info comment.
10329 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10330 * values.c (value_headof, value_from_vtable_info): Delete.
10331 * value.h (value_from_vtable_info): Delete prototype.
10333 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10335 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10336 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10338 (gdb_assert_h): Define.
10339 (gdb_wait_h): Define.
10340 (gdb_regex_h): Define.
10342 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10344 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10345 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10347 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10349 * nbsd-tdep.c: Fix comment.
10351 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10353 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10354 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10355 (nbsd-tdep.o): New dependency list.
10356 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10358 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10359 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10360 * nbsd-tdep.c: New file.
10361 * nbsd-tdep.h: New file.
10362 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10364 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10365 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10366 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10367 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10369 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10371 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10372 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10373 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10374 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10375 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10376 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10378 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10380 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10381 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10382 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10383 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10384 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10385 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10386 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10388 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10390 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10391 fetch_elfcore_registers to...
10392 * i386nbsd-tdep.c: ...here.
10393 (i386nbsd_use_struct_convention): Rename to...
10394 (i386nbsd_aout_use_struct_convention): ...this.
10395 (i386nbsd_supply_reg): New function.
10396 (i386nbsd_fill_reg): New function.
10397 (fetch_core_registers): Use i386nbsd_supply_reg.
10398 (fetch_elfcore_registers): Likewise.
10399 (_initialize_i386nbsd_tdep): New function.
10400 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10401 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10402 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10403 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10404 (i386nbsd_aout_use_struct_convention): ...this.
10406 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10408 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10409 (store_inferior_registers): Use shnbsd_fill_reg.
10410 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10411 sh_nbsd_supply_register): Collapse into...
10412 (shnbsd_supply_reg): ...this.
10413 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10414 (shnbsd_fill_reg): ...this.
10415 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10416 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10417 (fetch_core_registers): Use shnbsd_supply_reg.
10418 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10419 (sh_nbsd_core_fns): Rename to...
10420 (shnbsd_core_fns): ...this.
10421 (sh_nbsd_elfcore_fns): Rename to...
10422 (shnbsd_elfcore_fns): ...this.
10423 (sh_nbsd_init_abi): Rename to...
10424 (shnbsd_init_abi): ...this.
10425 (_initialize_sh_nbsd_tdep): Rename to...
10426 (_initialize_shnbsd_tdep): ...this.
10427 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10428 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10429 sh_nbsd_fill_register): Remove prototypes.
10430 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10432 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10434 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10435 (i387-nat.o): Delete dependency list.
10436 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10437 (x86-64-linux-nat.o): Likewise.
10438 * i387-nat.c: Delete file, moving contents to...
10439 * i387-tdep.c: ...here.
10440 * i387-nat.h: Rename...
10441 * i387-tdep.h: ...to this.
10442 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10443 * i386-linux-nat.c: Likewise.
10444 * i386bsd-nat.c: Likewise.
10445 * i386gnu-nat.c: Likewise.
10446 * i386nbsd-nat.c: Likewise.
10447 * i386v4-nat.c: Likewise.
10448 * x86-64-linux-nat.c: Likewise.
10449 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10450 * config/i386/go32.mh (NATDEPFILES): Likewise.
10451 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10452 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10453 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10454 * config/i386/linux.mh (NATDEPFILES): Likewise.
10455 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10456 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10457 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10458 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10460 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10462 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10463 (alphanbsd-nat.o): Remove dependency list.
10464 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10465 * alphanbsd-nat.c: Delete. Contents moved to...
10466 * alphanbsd-tdep.c: ...here.
10467 (_initialize_alphanbsd_tdep): Register core functions.
10468 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10470 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10472 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10473 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10474 (alphanbsd-nat.o): Likewise.
10475 (alphabsd-tdep.o): New dependency list.
10476 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10477 (fill_gregset): Use alphabsd_fill_reg.
10478 (supply_fpregset): Use alphabsd_supply_fpreg.
10479 (fill_fpregset): Use alphabsd_fill_fpreg.
10480 (fetch_inferior_registers): Use struct reg and struct fpreg
10481 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10482 and alphabsd_supply_fpreg.
10483 (store_inferior_registers): Use struct reg and struct fpreg
10484 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10485 and alphabsd_fill_fpreg.
10486 * alphabsd-tdep.c: New file.
10487 * alphabsd-tdep.h: New file.
10488 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10489 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10490 alphabsd_supply_fpreg.
10491 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10492 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10494 2002-05-11 Eric Christopher <echristo@redhat.com>
10496 * mips-tdep.c (mips_double_register_type): Fix thinko.
10497 (mips_single_register_type): Ditto.
10498 * MAINTAINERS: Add self.
10500 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10502 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10503 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10504 right thing on architectures with different endianness and/or
10507 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10509 From Christian Limpach <chris@Pin.LU>
10510 * configure.in: Change sed expression which comments out
10511 NATDEPFILES to also comment out continuation lines.
10512 * configure: Regenerate.
10514 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10516 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10519 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10521 * sh-tdep.c: Include correct file.
10523 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10525 New support for sh64-elf (sh5) target.
10527 * configure.tgt: For sh64-elf target, default to sh-elf.
10529 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10530 (struct gdbarch_tdep): Add new fields for new registers and ABI
10533 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10534 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10535 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10536 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10537 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10538 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10539 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10540 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10541 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10542 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10543 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10544 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10545 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10546 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10547 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10548 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10549 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10550 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10551 sign_extend, sh64_nofp_frame_init_saved_regs,
10552 sh64_init_extra_frame_info, sh64_get_saved_register,
10553 sh64_extract_struct_value_address, sh64_pop_frame,
10554 sh64_push_arguments, sh64_extract_return_value,
10555 sh64_store_return_value, sh64_show_media_regs,
10556 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10557 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10558 sh_sh64_register_virtual_type,
10559 sh_sh64_register_convert_to_virtual,
10560 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10561 sh64_register_read, sh64_pseudo_register_write,
10562 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10563 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10564 sh64_do_pseudo_register, sh_compact_do_registers_info,
10565 sh64_do_registers_info, sh_gdbarch_init): New functions.
10567 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10569 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10571 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10573 * linespec.c (decode_line_1): Check for a double quote after
10574 a filename correctly.
10576 2002-05-10 Jim Blandy <jimb@redhat.com>
10578 Properly track the size of the current objfile's .debug_line section.
10579 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10580 (DWARF_LINE_SIZE): New macro.
10581 (dwarf2_build_psymtabs_hard): Record the line section's size in
10582 the partial symbol table.
10583 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10586 2002-05-10 Petr Sorfa <petrs@caldera.com>
10588 * ia64-tdep.c: Handle breakpoints on L instruction type
10589 in MLX instruction bundle by moving the breakpoint to
10590 the third slot (X instruction type) as L holds only data.
10592 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10594 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10595 (process_one_symbol): Complain about discarding local symbols
10596 due to a misplaced N_LBRAC entry.
10598 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10600 From Daniel Berlin <dan@cgsoftware.com>
10601 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10602 decrease the depth we are at, in the case of templates.
10604 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10606 * mips-tdep.c (mips_float_register_type): New function.
10607 (mips_double_register_type): New function.
10608 (mips_print_register): Use them.
10609 (do_fp_register_row): Likewise.
10611 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10613 * signals/signals.c (signals): Remove conditional compilation around
10614 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10615 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10617 2002-05-09 Michael Snyder <msnyder@redhat.com>
10619 * remote-rdp.c (remote_rdp_can_run): Remove.
10621 2002-05-09 Tom Tromey <tromey@redhat.com>
10623 * jv-valprint.c (java_val_print): Handle `char' as a special case
10626 2002-05-09 Michael Snyder <msnyder@redhat.com>
10628 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10629 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10630 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10631 str r(0123),[sp,#nn].
10632 (arm_skip_prologue): Ditto. Also make disassembly
10633 order-independent by placing it in a loop.
10635 2002-05-06 Michael Snyder <msnyder@redhat.com>
10637 * stabsread.c (read_type): Add recognition for new attribute:
10638 "@V;" means that an array type is actually a vector.
10639 This is analogous to the vector flag that's been added to dwarf2.
10641 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10643 * i386-tdep.h (i386_abi): New enum.
10644 (struct gdbarch_tdep): Replace os_ident member with abi.
10645 (i386_gdbarch_register_os_abi): New prototype.
10646 * i386-tdep.c (i386_abi_names): New array.
10647 (process_note_abi_tag_sections): Removed.
10648 (process_note_sections): New function.
10649 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10650 (struct i386_abi_handler): New struct.
10651 (i386_abi_handler_list): New variable.
10652 (i386_gdbarch_register_os_abi): New function.
10653 (i386_gdbarch_init): Adapt for the changes given above.
10655 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10657 * gregset.h: Say "GNU/Linux".
10659 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10661 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10662 (build_gdbtypes): Build builtin_type_v2_float.
10663 (_initialize_gdbtypes): Register new builtin type.
10665 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10667 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10668 (clear_gdbarch_swap): New function.
10669 (initialize_non_multiarch): Call.
10670 (gdbarch_update_p): Before calling init(), swap out and clear the
10671 existing architecture.
10672 * gdbarch.c: Regenerate.
10674 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10676 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10679 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10681 * sh-nbsd-nat.c: Rename to...
10682 * shnbsd-nat.c: ...this.
10683 * sh-nbsd-tdep.c: Rename to...
10684 * shnbsd-tdep.c: ...this.
10685 * sh-nbsd-tdep.h: Rename to...
10686 * shnbsd-tdep.h: ...this.
10687 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10688 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10690 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10692 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10693 concatenation for command help messages.
10695 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10697 * NEWS: Note new sh*-*-netbsdelf* configuration.
10698 * configure.host: Set gdb_host_cpu to sh for all sh*.
10699 (sh*-*-netbsdelf*): New host.
10700 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10701 (sh*-*-netbsdelf*): New target.
10702 * sh-nbsd-nat.c: New file.
10703 * sh-nbsd-tdep.c: New file.
10704 * sh-nbsd-tdep.h: New file.
10705 * config/sh/nbsd.mh: New file.
10706 * config/sh/nbsd.mt: New file.
10707 * config/sh/nm-nbsd.h: New file.
10708 * config/sh/tm-nbsd.h: New file.
10710 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10712 * sh-tdep.c (sh_osabi_names): Declare.
10713 (process_note_abi_tag_sections): New function.
10714 (get_elfosabi): Ditto.
10715 (sh_gdbarch_register_os_abi): Ditto.
10716 (sh_dump_tdep): Ditto.
10717 _initialize_sh_tdep): Use gdbarch_register to register
10718 sh_gdbarch_init and sh_dump_tdep.
10719 * config/sh/tm-sh.h (sh_osabi): Declare.
10720 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10722 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10724 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10725 (thumb_scan_prologue): Ditto.
10726 (arm_find_callers_reg): Ditto.
10727 (arm_frame_chain): Ditto.
10728 (arm_init_extra_frame_info): Ditto.
10729 (arm_frame_saved_pc): Ditto.
10730 (arm_pop_frame): Ditto.
10731 (arm_push_return_address): New function.
10732 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10733 call_dummy_location, call_dummy_breakpoint_offset_p,
10734 call_dummy_breakpoint_offset, call_dummy_p,
10735 call_dummy_stack_adjust_p, call_dummy_words,
10736 sizeof_call_dummy_words, call_dummy_start_offset,
10737 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10738 call_dummy_address, push_return_address and push_dummy_frame for
10739 generic dummy frames.
10741 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10743 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10744 size computation for alloca.
10745 (sh_fp_frame_init_saved_regs): Likewise.
10747 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10749 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10750 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10751 * arm-tdep.c (arm_store_return_value): Use them.
10752 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10753 * remote-rdp.c (remote_rdp_fetch_register): Use
10754 ARM_MAX_REGISTER_RAW_SIZE.
10755 (remote_rdp_store_register): Likewise.
10757 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10759 * dwarf2cfi.c: Code cleanup, removed unused variables,
10760 added default labels to switch {} statements.
10761 * x86-64-tdep.c: Ditto.
10762 * x86-64-linux-nat.c: Ditto.
10764 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10766 * solib.h: Protect against multiple inclusion.
10768 2002-05-06 Jim Blandy <jimb@redhat.com>
10770 Add first preprocessor macro-expansion files.
10771 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10772 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10773 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10774 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10775 (COMMON_OBS): Add macrotab.o, macroexp.o.
10776 (macroexp.o, macrotab.o): New rules.
10778 Separate the job of reading the line number info statement program
10779 header (...expialidocious) out into its own function.
10780 * dwarf2read.c (struct line_head, struct filenames, struct
10781 directories): Replace with...
10782 (struct line_header): New structure, containing the full
10783 contents of the statement program header, including the
10784 include directory and file name tables.
10785 (read_file_scope): If we have line number info, instead of just
10786 calling dwarf_decode_lines to do all the work, call
10787 dwarf_decode_line_header first to get a `struct line_header'
10788 containing the data in the statement program header, and then
10789 pass that to dwarf_decode_lines, which will pick up where that
10790 left off. Be sure to clean up the `struct line_header' object.
10791 (dwarf_decode_line_header, free_line_header, add_include_dir,
10792 add_file_name): New functions.
10793 (dwarf_decode_lines): Move all the code to read the statement
10794 program header into dwarf_decode_line_header. Take the line
10795 header it built as the first argument, instead of the offset to
10796 the compilation unit's line number info. Use the new `struct
10797 line_header' type instead of the old structures. No need to do
10798 cleanups here now, since we don't allocate anything.
10799 (dwarf2_statement_list_fits_in_line_number_section,
10800 dwarf2_line_header_too_long): New complaints.
10802 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10804 * gdbtypes.c (init_vector_type): New function.
10805 (build_builtin_type_vec128): Simplify the representation of SIMD
10807 (build_gdbtypes): Initialize new builtin vector types.
10808 (_initialize_gdbtypes): Register new vector types with gdbarch.
10809 (builtin_type_v4_float, builtin_type_v4_int32,
10810 builtin_type_v8_int16, builtin_type_v16_int8,
10811 builtin_type_v2_int32, builtin_type_v4_int16,
10812 builtin_type_v8_int8): New (renamed) SIMD types.
10814 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10816 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10817 (i387_fill_fxsave): Likewise.
10819 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10821 * alpha-tdep.c (alpha_extract_return_value): Don't use
10822 non-constant array size in prototype.
10824 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10826 From Brian Taylor <briant at model dot com>:
10827 * ui-out.c (ui_out_field_core_addr): Use the function
10828 longest_local_hex_string_custom'to format addresses > 32 bits
10831 * ui-out.c (ui_out_field_core_addr): Update comment.
10833 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10835 * stack.c (select_and_print_frame): Make static. Delete the
10837 (func_command): Update call.
10838 (select_frame_command): Delete code computing the frame level.
10839 * frame.h (select_and_print_frame): Delete declaration.
10841 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10843 * sparc-tdep.c (sparc_get_saved_register): Comment why
10844 get_prev_frame call is safe.
10846 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10848 * frame.h (select_frame): Delete level parameter.
10849 * stack.c (select_frame): Update. Use frame_relative_level to
10850 obtain the frame's level.
10851 (select_and_print_frame): Update call.
10852 (select_frame_command): Ditto.
10853 (up_silently_base): Ditto.
10854 (down_silently_base): Ditto.
10855 * ocd.c (ocd_start_remote): Ditto.
10856 * remote-rdp.c (remote_rdp_open): Ditto.
10857 * remote-mips.c (mips_initialize): Ditto.
10858 (common_open): Ditto.
10859 * remote-e7000.c (e7000_start_remote): Ditto.
10860 * m3-nat.c (select_thread): Ditto.
10861 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10862 (child_get_current_exception_event): Ditto.
10863 * varobj.c (varobj_create): Ditto.
10864 (varobj_update): Ditto.
10865 (c_value_of_root): Ditto.
10866 * tracepoint.c (finish_tfind_command): Ditto.
10867 * corelow.c (core_open): Ditto.
10868 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10869 * thread.c (info_threads_command): Ditto.
10870 (switch_to_thread): Ditto.
10871 * infrun.c (normal_stop): Ditto.
10872 (restore_selected_frame): Ditto.
10873 (restore_inferior_status): Ditto.
10874 * breakpoint.c (insert_breakpoints): Ditto.
10875 (watchpoint_check): Ditto.
10876 (bpstat_stop_status): Ditto.
10877 (do_enable_breakpoint): Ditto.
10878 * blockframe.c (flush_cached_frames): Ditto.
10879 (reinit_frame_cache): Ditto.
10881 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10883 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10886 2002-05-04 Jim Blandy <jimb@redhat.com>
10888 * gdbtypes.c (replace_type): Doc fix.
10890 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10892 * valprint.c (strcat_longest): Delete commented out function.
10895 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10897 * MAINTAINERS: Mark a29k as deleted.
10898 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10899 Move new configurations to the top.
10900 * configure.tgt: Remove a29k.
10901 * config/a29k/tm-vx29k.h: Delete.
10902 * config/a29k/vx29k.mt: Delete.
10903 * config/a29k/tm-a29k.h: Delete.
10904 * config/a29k/a29k-udi.mt: Delete.
10905 * config/a29k/a29k.mt: Delete.
10906 * a29k-tdep.c: Delete.
10907 * remote-udi.c: Delete.
10908 * remote-mm.c: Delete.
10909 * remote-eb.c: Delete.
10910 * remote-adapt.c: Delete.
10911 * Makefile.in: Remove obsolete code.
10912 * config/s390/s390x.mt: Ditto.
10913 * config/s390/s390.mt: Ditto.
10914 * config/sparc/sparclynx.mh: Ditto.
10915 * config/sparc/linux.mh: Ditto.
10916 * config/pa/hppaosf.mh: Ditto.
10917 * config/pa/hppabsd.mh: Ditto.
10918 * config/ns32k/nbsd.mt: Ditto.
10919 * config/mips/vr5000.mt: Ditto.
10920 * config/m68k/sun3os4.mh: Ditto.
10921 * config/m68k/nbsd.mt: Ditto.
10922 * config/m68k/m68klynx.mh: Ditto.
10923 * config/m32r/m32r.mt: Ditto.
10924 * config/i386/x86-64linux.mt: Ditto.
10925 * config/i386/nbsdelf.mt: Ditto.
10926 * config/i386/nbsd.mt: Ditto.
10927 * config/i386/i386lynx.mh: Ditto.
10929 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10931 * target.c (debug_print_register): New function. Handle oversize
10933 (debug_to_fetch_registers): Call.
10934 (debug_to_store_registers): Call.
10936 2002-05-03 Jim Blandy <jimb@redhat.com>
10938 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10939 (read_type): Doc fix.
10940 * gdbtypes.c (replace_type): Doc fix.
10942 * stabsread.c (multiply_defined_struct): New complaint.
10943 (read_struct_type): If the type we were passed isn't empty, or
10944 incomplete, don't read the new struct type into it; complain,
10945 and return the original type unchanged. Take a new `type_code'
10946 argument, which is the type code for the new type.
10947 (read_type): Rather than storing the type's type code here, pass
10948 it as an argument to read_struct_type, and let that take care of
10949 storing it. That way, we don't overwrite the original type code,
10950 so read_struct_type can use it to decide whether we're overwriting
10951 something we shouldn't.
10952 (complain_about_struct_wipeout): New function.
10954 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10956 * gdbarch.sh: Assert that gdbarch is non-NULL.
10957 * gdbarch.c: Regenerate.
10959 2002-05-03 Jason Merrill <jason@redhat.com>
10961 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10964 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10966 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10967 (x86_64_dwarf2gdb_regno_map_length),
10968 (x86_64_dwarf2_reg_to_regnum): Added.
10969 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10970 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10971 (_initialize_x86_64_tdep): Synced with the change above.
10972 (x86_64_skip_prologue): Reformulated message.
10974 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10976 * f-exp.y: Also use new prev_lexptr variable
10977 to improve error reporting. Based on Michael Snyder
10978 2002-04-24 dated patch to c-exp.y.
10979 * jv-exp.y: Likewise.
10980 * m2-exp.y: Likewise.
10982 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10984 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10985 we are dealing with vectors.
10987 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10989 * config/m68k/tm-nbsd.h: Obvious fix,
10990 correct machine name.
10992 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10994 * p-typeprint.c (pascal_type_print_base): Add support
10995 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10997 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10999 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
11000 for fondamental pascal 'char' type.
11002 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
11004 * p-lang.h (is_pascal_string_type): Declaration changed,
11005 new sixth argument of type char ** added.
11006 * p-lang.c (is_pascal_string_type): Implementation
11007 changed. Args length_pos, length_size, string_pos, char_size
11008 can now be NULL. New argument arrayname set to the field
11009 name of the char array. Return value set to char array
11010 field index plus one.
11011 * p-valprint.c (pascal_val_print): Adapt to new declaration of
11012 is_pascal_string_type function.
11014 2002-05-02 Andrew Cagney <cagney@redhat.com>
11016 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
11017 <cagney@redhat.com> change.
11018 * gdbarch.c: Regenerate.
11020 2002-05-02 Andrew Cagney <cagney@redhat.com>
11022 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
11023 before probing for a new one. Detect errorenous gdbarch_init
11025 * gdbarch.c: Regenerate.
11027 2002-05-01 Andrew Cagney <cagney@redhat.com>
11029 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
11030 * config/mcore/tm-mcore.h: Ditto. Update copyright.
11031 * config/v850/tm-v850.h: Ditto. Update copyright.
11033 2002-04-30 Andrew Cagney <ac131313@redhat.com>
11035 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
11038 2002-04-30 Michael Snyder <msnyder@redhat.com>
11040 * arm-tdep.c: Whitespace clean-ups.
11041 (arm_skip_prologue): Fix thinko; two lines
11042 should have been removed as part of 4/24 change.
11044 2002-04-30 Kevin Buettner <kevinb@redhat.com>
11046 * rs6000-tdep.c: Added comment describing how fpscr register
11047 numbers were chosen.
11049 2002-04-30 Michael Snyder <msnyder@redhat.com>
11051 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
11053 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11055 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
11056 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
11057 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
11059 2002-04-29 Kevin Buettner <kevinb@redhat.com>
11061 From Louis Hamilton <hamilton@redhat.com>:
11062 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
11063 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
11064 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
11065 not bfd-private xcoff data, to determine wordsize.
11066 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
11068 2002-04-29 Andrew Cagney <ac131313@redhat.com>
11070 GDB 5.2 released from 5.2 branch.
11072 2002-04-29 Michal Ludvig <mludvig@suse.cz>
11074 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11075 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11076 (x86_64_register_info_table): Added comments with register numbers.
11078 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11080 * rs6000-tdep.c (rs6000_extract_return_value,
11081 rs6000_store_return_value): Handle returning vectors.
11082 (rs6000_gdbarch_init): Use
11083 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11084 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11086 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11088 (ppc_sysv_abi_push_arguments): Handle vector parameters.
11089 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11091 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11093 * hpread.c (hpread_psymtab_to_symtab_1,
11094 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11095 with fprintf_unfiltered (gdb_stderr,...).
11097 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11099 * remote-array.c (printf_monitor, write_monitor,
11100 array_insert_breakpoint, array_remove_breakpoint ):
11101 Replace fprintf (stderr,...
11102 with fprintf_unfiltered (gdb_stderr,....
11103 * remote-es.c: Likewise.
11104 * remote-os9k.c: Likewise.
11105 * remote-st.c: Likewise.
11107 2002-04-28 Andreas Schwab <schwab@suse.de>
11109 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11110 linux-proc.o and gcore.o.
11112 2002-04-26 Michal Ludvig <mludvig@suse.cz>
11114 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11115 code without frame pointers.
11117 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11119 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11120 ON_STACK is needed.
11122 2002-04-26 Ben Elliston <bje@redhat.com>
11124 * target.c (do_xfer_memory): Correct reference to the new option
11125 "trust-readonly-sections".
11127 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
11129 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11130 * gdbtypes.c (recursive_dump_type): Output the vector flag.
11131 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11133 (read_array_type): Record the fact that this array type is really a
11134 vector (i.e. are passed in by value).
11136 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
11138 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11139 * alpha-tdep.c (alpha_sigcontext_addr): New function.
11140 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11141 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11142 * alpha-linux-tdep.c: Include frame.h.
11143 (alpha_linux_sigcontext_addr): New function.
11144 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11145 alpha_linux_sigcontext_addr.
11146 * alpha-osf1-tdep.c: Include gdbcore.h.
11147 (alpha_osf1_sigcontext_addr): New function.
11148 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11149 alpha_osf1_sigcontext_addr.
11150 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11151 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11153 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11155 * stack.c (selected_frame_level):
11156 (select_frame): Do not set selected_frame_level.
11157 * frame.h (selected_frame_level): Delete declaration.
11159 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11161 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11162 convert_from_func_ptr-addr when AIX / PowerOpen.
11164 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11166 * valops.c (hand_function_call): Call
11167 generic_save_call_dummy_addr.
11168 * frame.h (generic_save_call_dummy_addr): Declare.
11169 * blockframe.c (struct dummy_frame): Add fields call_lo and
11171 (generic_find_dummy_frame): Check for PC in range call_lo to
11172 call_hi instead of entry_point_address.
11173 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11174 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11175 (generic_save_call_dummy_addr): New function.
11177 2002-04-24 David S. Miller <davem@redhat.com>
11179 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11180 sparc_skip_prologue.
11181 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11182 information to find prologue when possible.
11183 (sparc_prologue_frameless_p): Call examine_prologue directly.
11184 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11185 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11187 (SKIP_PROLOGUE): Likewise.
11189 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11191 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11192 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11193 indicate that the condition it was testing is always true.
11194 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11195 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11196 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11198 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11200 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11201 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11202 tdep->jb_pc and tdep->jb_elt_size.
11203 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11204 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11205 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11206 * alpha-nat.c (get_longjmp_target): Remove.
11207 (JB_ELEMENT_SIZE): Ditto.
11209 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11210 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11211 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11212 to alpha_get_longjmp_target.
11213 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11214 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11215 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11217 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11219 * README: Update to GDB 5.2.
11221 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11223 * gdbarch.sh (LC_ALL): Set to `c'.
11225 2002-04-25 Theodore A. Roth <troth@verinet.com>
11227 * avr-tdep.c: Ran through gdb_indent.sh.
11229 2002-04-25 Theodore A. Roth <troth@verinet.com>
11231 * MAINTAINERS: Add myself as AVR maintainer.
11232 * NEWS: Note new target avr.
11234 2002-04-25 Theodore A. Roth <troth@verinet.com>
11236 * Makefile.in: Add support for AVR target.
11237 * configure.tgt: Add support for AVR target.
11238 * avr-tdep.c: New file
11239 * config/avr/avr.mt: New file.
11241 2002-04-25 Theodore A. Roth <troth@verinet.com>
11243 * MAINTAINERS: Add myself to write-after-approval.
11245 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11247 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11248 with fprintf_unfiltered (gdb_stderr,....
11250 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11253 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11255 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11257 * p-exp.y: Also use new prev_lexptr variable
11258 to improve error reporting. Based on Michael Snyder
11259 2002-04-24 dated patch to c-exp.y.
11261 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11263 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11264 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11265 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11267 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11269 (FUNCTION_START_OFFSET): Remove.
11270 (BREAKPOINT): Ditto.
11272 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11274 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11277 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11279 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11280 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11281 alpha_linux_pc_in_sigtramp.
11282 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11283 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11284 alpha_osf1_pc_in_sigtramp.
11285 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11286 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11287 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11288 alphafbsd_pc_in_sigtramp.
11289 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11290 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11291 alphanbsd_pc_in_sigtramp.
11292 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11293 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11295 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11297 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11299 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11301 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11303 (alphanbsd-nat.o): New dependency list.
11304 (alphanbsd-tdep.o): Ditto.
11305 * NEWS: Note new native NetBSD/alpha configuration.
11306 * alphanbsd-nat.c: New file.
11307 * alphanbsd-tdep.c: Ditto.
11308 * configure.host (alpha*-*-netbsd*): New host.
11309 * configure.tgt (alpha*-*-netbsd*): New target.
11310 * config/alpha/nbsd.mh: New file.
11311 * config/alpha/nbsd.mt: Ditto.
11312 * config/alpha/nm-nbsd.h: Ditto.
11313 * config/alpha/tm-nbsd.h: Ditto.
11315 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11317 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11318 (alpha-osf1-tdep.o): New dependency list.
11319 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11320 and skip_sigtramp_frame members.
11321 * alpha-linux-tdep.c: Include gdbcore.h.
11322 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11323 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11324 * alpha-osf1-tdep.c: New file.
11325 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11327 (alpha_frame_past_sigtramp_frame): New function.
11328 (alpha_dynamic_sigtramp_offset): Ditto.
11329 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11330 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11331 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11332 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11333 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11334 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11335 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11336 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11337 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11338 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11339 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11340 to find_solib_trampoline_target.
11341 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11342 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11343 (SKIP_TRAMPOLINE_CODE): Remove.
11344 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11345 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11346 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11347 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11348 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11349 (PROC_SIGTRAMP_MAGIC): Ditto.
11350 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11351 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11352 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11353 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11354 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11356 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11358 * NEWS: Note that Alpha targets are now multi-arch.
11360 2002-04-24 Michael Snyder <msnyder@redhat.com>
11362 * parser-defs.h (prev_lexptr): New external variable.
11363 * parse.c (parse_exp_1): Set prev_lexptr to null before
11364 calling the language-specific parser.
11365 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11366 (yyerror): Use prev_lexptr in error reporting.
11368 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11370 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11371 * gregset.h: If FILL_FPXREGSET is defined, provide
11372 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11373 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11374 is defined, call fill_fpxregset.
11376 2002-04-24 Roland McGrath <roland@frob.com>
11378 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11379 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11380 (supply_gregset, supply_fpregset): New functions.
11382 * gnu-nat.c (gnu_find_memory_regions): New function.
11383 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11384 (gnu_xfer_memory): Add a cast.
11386 2002-04-24 Michael Snyder <msnyder@redhat.com>
11388 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11389 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11390 of argument regs ("str r(0123), [r11, #-nn"]).
11391 (arm_skip_prologue): Better handling for frameless functions.
11392 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11393 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11395 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11397 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11398 NUM_PSEUDO_REGS can be used.
11400 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11402 * arch-utils.h: Update copyright.
11404 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11405 * gdbarch.h, gdbarch.c: Re-generate.
11407 * inferior.h (IN_SIGTRAMP): Delete definition.
11408 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11409 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11411 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11412 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11413 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11414 (find_proc_framesize): Ditto.
11415 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11416 (alpha_init_extra_frame_info): Ditto.
11417 * infrun.c (handle_inferior_event): Ditto.
11418 (handle_inferior_event): Ditto.
11419 (check_sigtramp2): Ditto.
11420 * blockframe.c (create_new_frame): Ditto.
11421 (get_prev_frame): Ditto.
11422 * ppc-linux-tdep.c: Update comments.
11423 * i386-linux-tdep.c: Update comments.
11424 * breakpoint.c (bpstat_what): Update comment.
11426 2002-04-24 David S. Miller <davem@redhat.com>
11428 * i960-tdep.c (register_in_window_p): New function.
11429 (i960_find_saved_register): Use it instead of
11430 REGISTER_IN_WINDOW_P.
11431 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11433 * symtab.h (find_stab_function_addr): Kill extern.
11434 * minsyms.c (find_stab_function_addr): Remove from here...
11435 * dbxread.c: ... to here, and mark it static.
11437 2002-04-20 David S. Miller <davem@redhat.com>
11439 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11440 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11442 2002-04-21 David S. Miller <davem@redhat.com>
11444 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11445 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11446 (vx_write_register): Likewise.
11448 2002-04-23 J. Brobecker <brobecker@gnat.com>
11450 * source.c (is_regular_file): New function.
11451 (openp): Check wether file to open is a regular file
11452 to avoid opening directories.
11454 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11456 * findvar.c (extract_signed_integer): Cast printf argument
11457 to suppress format warning.
11458 (extract_unsigned_integer): Likewise.
11459 * infcmd.c (registers_info): Likewise.
11460 * top.c (get_prompt_1): Likewise.
11461 * valops.c (value_assign): Likewise.
11462 * valprint.c (print_decimal): Likewise.
11464 2002-04-22 H.J. Lu (hjl@gnu.org)
11466 * c-exp.y (typebase): Support
11468 [long|long long|short] [signed|unsigned] [int|]
11472 signed [long|long long|short] int
11474 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11476 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11478 * vax-tdep.h: New file.
11479 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11480 Make several routines static.
11481 (vax_get_saved_register): New function.
11482 (vax_gdbarch_init): New function.
11483 (_initialize_vax_tdep): Register vax_gdbarch_init.
11484 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11485 Remove macros now under the control of gdbarch.
11487 2002-04-22 Michael Snyder <msnyder@redhat.com>
11489 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11490 Some whitespace and coding standards tweaks.
11492 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11494 * vax-tdep.c: Include regcache.h.
11495 (vax_call_dummy_words): New.
11496 (sizeof_vax_call_dummy_words): New.
11497 (vax_fix_call_dummy): New function.
11498 (vax_saved_pc_after_call): Ditto.
11499 * config/vax/tm-vax.h: Don't include regcache.h.
11500 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11501 (CALL_DUMMY): Remove.
11502 (CALL_DUMMY_WORDS): Define.
11503 (SIZEOF_CALL_DUMMY_WORDS): Define.
11504 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11506 2002-04-18 Michael Snyder <msnyder@redhat.com>
11508 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11510 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11512 * vax-tdep.c (vax_frame_chain): New function.
11513 (vax_push_dummy_frame): Ditto.
11514 (vax_pop_frame): Ditto.
11515 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11516 (FRAMELESS_FUNCTION_INVOCATION): Use
11517 generic_frameless_function_invocation_not.
11518 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11519 (POP_FRAME): Use vax_pop_frame.
11521 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11523 * vax-tdep.c (vax_store_struct_return): New function.
11524 (vax_extract_return_value): Ditto.
11525 (vax_store_return_value): Ditto.
11526 (vax_extract_struct_value_address): Ditto.
11527 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11528 vax_store_struct_return.
11529 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11530 (STORE_RETURN_VALUE): Use vax_store_return_value.
11531 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11533 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11535 * vax-tdep.c (vax_frame_saved_pc): New function.
11536 (vax_frame_args_address_correct): Ditto.
11537 (vax_frame_args_address): Ditto.
11538 (vax_frame_locals_address): Ditto.
11539 (vax_frame_num_args): Move code to be in proximity to
11540 other frame-related functions.
11541 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11542 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11543 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11544 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11545 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11547 2002-04-22 H.J. Lu (hjl@gnu.org)
11549 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11552 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11554 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11555 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11556 (FRAME_INIT_SAVED_REGS): New macro.
11558 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11560 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11562 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11564 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11566 (fetch_osf_core_registers): Likewise.
11567 (supply_gregset): Likewise.
11569 2002-04-22 J. Brobecker <brobecker@gnat.com>
11571 * symfile.h (get_section_index): Define.
11572 * symfile.c (get_section_index): New function.
11573 * mdebugread.c (SC_IS_SBSS): New macro.
11574 (SC_IS_BSS): Return true for the scBss storage class only, as
11575 the scSBss storage class refers to the .sbss section.
11576 (parse_partial_symbols): Discard the symbols which associated
11577 section does not exist.
11578 Make sure to use the .sbss section index for symbols which
11579 storage class is scBss, rather than using the .bss section index.
11581 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11583 * vax-tdep.c: Update copyright years.
11584 (vax_register_name): New function.
11585 (vax_register_byte): Ditto.
11586 (vax_register_raw_size): Ditto.
11587 (vax_register_virtual_size): Ditto.
11588 (vax_register_virtual_type): Ditto.
11589 * config/vax/tm-vax.h: Update copyright years.
11590 (REGISTER_NAMES): Remove.
11591 (REGISTER_NAME): Define.
11592 (REGISTER_BYTE): Use vax_register_byte.
11593 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11594 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11595 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11597 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11599 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11601 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11603 2002-04-21 David S. Miller <davem@redhat.com>
11605 * arch-utils.c (generic_prologue_frameless_p): Kill
11606 SKIP_PROLOGUE_FRAMELESS_P code.
11607 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11609 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11610 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11611 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11613 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11614 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11615 (sparc_gdbarch_init): Pass it to
11616 set_gdbarch_prologue_frameless_p.
11618 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11620 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11621 (alphabsd-nat.o): New dependency list.
11623 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11625 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11627 (alpha-linux-tdep.o): New dependency list.
11628 (alphafbsd-tdep.o): Likewise.
11630 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11632 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11634 * alpha-tdep.c: ...from here.
11635 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11637 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11639 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11640 prototype from here...
11641 * alpha-tdep.h: ...to here.
11643 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11645 * frame.h (selected_frame_level): Document as deprecated.
11646 (frame_relative_level): Declare.
11647 * stack.c (frame_relative_level): New function.
11648 (selected_frame_level): Document as deprecated.
11649 (select_frame): Do not set the selected_frame_level.
11651 * stack.c (frame_info, record_selected_frame): Update.
11652 (frame_command, current_frame_command): Update.
11653 (up_silently_base, up_command, down_silently_base): Update.
11654 (down_command): Update.
11655 * inflow.c (kill_command): Update.
11656 * tracepoint.c (finish_tfind_command): Update.
11657 * corelow.c (core_open): Update.
11658 * thread.c (info_threads_command): Update.
11659 (do_captured_thread_select): Update.
11660 * infcmd.c (finish_command): Update.
11661 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11663 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11665 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11667 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11669 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11672 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11674 * alphafbsd-tdep.c: Update copyright years. Include
11676 (alphafbsd_use_struct_convention): Make static.
11677 (alphafbsd_init_abi): New function.
11678 (_initialize_alphafbsd_tdep): New function.
11679 * config/alpha/tm-fbsd.h: Update copyright years.
11680 (USE_STRUCT_CONVENTION): Remove.
11682 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11684 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11685 an Alpha ABI variant.
11686 (alpha_abi_handler_list): Declare.
11687 (alpha_gdbarch_register_os_abi): New function.
11688 (alpha_gdbarch_init): Give registered ABI variant handlers a
11689 chance to tweak the gdbarch once we have set up defaults.
11690 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11692 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11694 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11695 to standard_coerce_float_to_double.
11696 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11698 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11700 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11701 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11702 from gdbarch_tdep rather than a constant.
11703 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11704 the default text address for all Alpha Unix ABIs.
11705 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11706 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11708 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11710 * alpha-tdep.h: New file. Includes several Alpha target constants
11712 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11713 let gdbarch deal with.
11714 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11715 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11716 to dependency list.
11717 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11718 Alpha target register names.
11719 * alphabsd-nat.c: Likewise.
11720 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11721 Alpha target register names. Make serveral routines static.
11722 (alpha_get_saved_register): New function.
11723 (alpha_abi_names): New.
11724 (process_note_abi_tag_sections): New function.
11725 (get_elfosabi): New function.
11726 (alpha_gdbarch_init): New function.
11727 (alpha_dump_tdep): New function.
11728 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11730 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11732 * frame.c (find_saved_register): Delete #ifdef
11733 HAVE_REGISTER_WINDOWS code.
11734 * config/sparc/tm-sparc.h: Update comments.
11735 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11737 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11739 * i960-tdep.c (i960_find_saved_register): New function.
11740 (i960_get_saved_register): New function.
11741 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11742 (i960_get_saved_register): Declare.
11743 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11745 2002-04-20 David S. Miller <davem@redhat.com>
11747 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11749 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11751 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11752 instead of NUM_PSEUDO_REGS.
11754 2002-04-20 David S. Miller <davem@redhat.com>
11756 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11757 GDB_MULTI_ARCH_PARTIAL
11758 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11759 define, let tm-sp64.h do it.
11761 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11763 * frame.c (find_saved_register): Avoid a NULL pointer
11764 dereference and actually walk the frame list.
11766 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11768 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11769 sorted in most most-recent-used order. Document.
11770 * gdbarch.h, gdbarch.c: Regenerate.
11772 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11774 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11776 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11777 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11778 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11781 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11784 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11785 (build_builtin_type_vec128): Ditto.
11786 (append_composite_type_field): Fix calculation of type length in
11789 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11791 * config/djgpp/README: Update.
11793 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11796 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11798 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11799 (alpha_setup_arbitrary_frame): ...to this.
11800 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11801 for alpha_setup_arbitrary_frame.
11803 2002-04-18 Andrew Cagney <cagney@redhat.com>
11805 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11806 * gdbarch.h, gdbarch.c: Regenerate.
11808 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11809 * target.h (memory_breakpoint_from_pc): Update declaration.
11810 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11812 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11813 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11814 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11815 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11816 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11817 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11818 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11819 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11820 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11821 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11822 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11823 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11825 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11827 * monitor.c (monitor_insert_breakpoint): Ditto.
11828 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11830 * config/mcore/tm-mcore.h: Update copyright.
11831 * mem-break.c: Ditto.
11832 * xstormy16-tdep.c: Ditto.
11834 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11836 * p-exp.y: Add precedence rule for '^' token.
11837 This removes the shift/reduce conflicts.
11838 Remove the comment concerning these shift/reduce conflicts.
11840 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11842 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11843 (registers_powerpc_nofp): New register set for processors
11844 without floating point unit.
11846 2002-04-18 David S. Miller <davem@redhat.com>
11848 * MAINTAINERS: Add myself to write-after-approval.
11850 2002-04-17 Michael Snyder <msnyder@redhat.com>
11852 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11854 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11856 * rs6000-tdep.c (frame_initial_stack_address): Use
11857 frame_register_read to read the alloca_reg.
11859 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11861 * frame.c (find_saved_register): Find saved registers in the next
11865 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11867 * gdbarch.sh (LANG): Set to ``c''.
11869 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11871 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11873 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11875 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11878 * hpread.c (hpread_get_lntt): Add declaration.
11879 Also fix PR gdb/391.
11881 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11883 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11884 * aclocal.m4, configure: Re-generate.
11887 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11889 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11890 instead of tm_print_insn.
11892 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11894 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11896 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11898 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11899 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11900 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11902 2002-04-12 Don Howard <dhoward@redhat.com>
11904 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11905 max_user_call_depth.
11906 (init_cmd_lists): Initialize the new value;
11907 * cli/cli-script.c (execute_user_command): Limit the call depth of
11908 user defined commands. This avoids a core-dump when user commands
11909 are infinitly recursive.
11911 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11913 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11914 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11915 from tdep struct instead of DEFAULT_LR_SAVE.
11916 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11917 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11918 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11920 2002-04-12 Michael Snyder <msnyder@redhat.com>
11922 * Remote.c: Spelling fix.
11923 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11924 If no symbol found for "sbrk", try "_sbrk".
11925 (make_output_phdrs): Use bfd_section_name.
11926 (gcore_copy_callback): Use bfd_section_name.
11927 * eval.c: Indentation fix-ups.
11928 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11929 in case it gets applied to an address that is already
11930 in the instruction space.
11931 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11932 * symfile.c: Fix indentation, long lines.
11933 * source.c: White space fix-up.
11935 2002-04-12 Andrew Cagney <cagney@redhat.com>
11937 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11938 * frame.c (frame_register_read): New function. Return non-zero on
11940 (read_relative_register_raw_bytes_for_frame): Delete.
11941 (read_relative_register_raw_bytes): Delete.
11942 * frame.h (frame_register_read): Declare.
11943 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11944 * sh-tdep.c: Ditto.
11945 * infcmd.c (do_registers_info): Ditto.
11946 * hppa-tdep.c: Ditto.
11947 * rs6000-tdep.c: Ditto.
11948 * h8500-tdep.c: Ditto.
11949 * mips-tdep.c: Ditto.
11950 * h8300-tdep.c: Ditto.
11951 * z8k-tdep.c: Ditto.
11953 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11955 From Jimi X <jimix@watson.ibm.com>:
11956 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11959 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11961 From Jimi X <jimix@watson.ibm.com>:
11962 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11965 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11967 From Jimi X <jimix@watson.ibm.com>:
11968 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11969 register sets for these processor variants.
11971 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11973 * regformats/reg-ppc.dat: Support FPSCR.
11975 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11977 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11978 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11979 Add fpscr as an invalid/unfetchable register.
11980 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11981 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11982 (fill_fpregset): Add support for register fpscr.
11983 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11984 (fill_gregset): Account for the fact that register ``mq'' might
11986 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11987 (registers_power): Add fpscr to register set at slot 71.
11988 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11989 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11991 2002-04-11 Michael Snyder <msnyder@redhat.com>
11993 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11994 * configure: Regenerate.
11995 * config.in: Regenerate.
11996 * acconfig.h: Add define for _SYSCALL32.
11997 * core-sol2.c: Remove #define _SYSCALL32.
11998 * solib-legacy.c: Remove #define _SYSCALL32.
12000 2002-04-10 Andrew Cagney <ac131313@redhat.com>
12002 * stack.c (select_frame): Cleanup internal error message, do not
12005 2002-04-10 Andrew Cagney <ac131313@redhat.com>
12007 * stack.c (select_frame): Check that selected_frame and the
12008 specified level are as expected.
12009 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
12011 * frame.h (struct frame_info): Add field `level'. Update
12013 Work-in-progress PR gdb/464.
12015 2002-04-10 Andrew Cagney <ac131313@redhat.com>
12017 * maint.c (maint_print_section_info): Rename print_section_info.
12018 (print_bfd_section_info, print_objfile_section_info): Update.
12019 * inferior.h (struct gdbarch): Add opaque declaration.
12020 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
12021 * gdbarch.h: Regenerate.
12023 2002-04-10 Michal Ludvig <mludvig@suse.cz>
12025 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
12026 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
12027 (kernel_u_size): Added.
12028 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
12029 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
12031 2002-04-04 Jim Ingham <jingham@apple.com>
12033 * valarith.c (find_size_for_pointer_math): New function, either returns
12034 the size for a pointer's target, returns 1 for void *, or errors for
12036 (value_add, value_sub): use find_size_for_pointer_math.
12038 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
12040 * linux-low.c (linux_look_up_symbols): New hook.
12041 (linux_target_ops): Add linux_look_up_symbols.
12042 * remote-utils.c (decode_address): New function.
12043 (look_up_one_symbol): New function.
12044 * server.c (handle_query): Call target look_up_symbols hook.
12045 * server.h (look_up_one_symbol): Add prototype.
12046 * target.h (struct target_ops): Add look_up_symbols hook.
12048 2002-04-09 Andrew Cagney <ac131313@redhat.com>
12050 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
12051 override FP_REGNUM with frame->fp. Update copyright.
12052 * parse.c (num_std_regs, std_regs): Delete.
12053 (target_map_name_to_register): Do not search std_regs. Update
12054 function description.
12055 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
12056 declarations. Update copyright.
12059 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
12061 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
12062 after the last symbol in a block.
12064 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
12066 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
12067 is non zero as a found symbol.
12069 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12071 * findvar.c: Include "builtin-regs.h".
12072 (value_of_register): Call value_of_builtin_reg when applicable.
12073 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12074 (target_map_name_to_register): Call
12075 builtin_reg_map_name_to_regnum.
12076 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12077 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12078 (builtin_regs_h): Define.
12079 (builtin-regs.o): New target.
12080 (findvar.o): Add $(builtin_regs_h).
12081 * builtin-regs.c, builtin-regs.h: New files.
12082 * std-regs.c: New file.
12083 Partial fix for PR gdb/251.
12085 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12087 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12088 it's no longer required.
12090 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12092 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12094 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12096 From Jimi X <jimix@watson.ibm.com>:
12097 * rs6000-tdep.c (rs6000_software_single_step): Use
12098 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12099 and size. Use target_insert_breakpoint() and
12100 target_remove_breakpoint() to insert and remove breakpoints
12101 instead of explicit memory reads and writes.
12103 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12105 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12106 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12107 ELF_OBJECT_FORMAT ifdef.
12109 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12111 From Jimi X <jimix@watson.ibm.com>:
12112 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12114 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12116 From Jimi X <jimix@watson.ibm.com>:
12117 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12118 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12120 2002-04-07 Mark Kettenis <kettenis@gnu.org>
12122 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12123 s/asprintf/xasprintf/.
12124 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12126 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12128 I believe Jeff Law denies responsability for this one:
12129 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12130 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12131 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12132 Work-around for PR gdb/366.
12134 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12136 * remote-e7000.c (write_small, e7000_read_inferior_memory,
12137 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12138 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12140 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12142 * sh-tdep.c (sh_fp_frame_init_saved_regs,
12143 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12146 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12148 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12151 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12153 * README (Reporting Bugs in GDB): Document the bug web page as the
12154 prefered way of submitting bugs.
12157 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12159 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12160 -1. Update comment.
12161 * gdbarch.h, gdbarch.c: Re-generate.
12163 2002-04-07 Andreas Schwab <schwab@suse.de>
12165 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12166 buffer to regcache_collect.
12168 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12170 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12171 * gdbarch.c, gdbarch.h: Re-generate.
12173 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12175 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12176 declaration. Fix -Werror.
12178 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12180 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12181 * gdbarch.c: Regenerate.
12183 2002-04-05 Michael Snyder <msnyder@redhat.com>
12185 * breakpoint.c (clear_command): Rewrite middle section to
12186 combine two loops with identical control conditions.
12187 Add a cleanup to eliminate a memory leak.
12188 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12190 2002-04-05 H.J. Lu (hjl@gnu.org)
12192 * solib-svr4.c (bkpt_names): Add "__start".
12194 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12196 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12197 as test for 64 bit target.
12199 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12201 * h8500-tdep.c (h8500_write_fp): Delete function.
12202 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12203 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12204 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12206 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12207 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12209 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12210 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12211 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12212 (d10v_write_fp): Delete function.
12213 * inferior.h (write_fp, generic_target_write_fp): Delete
12215 * regcache.c (generic_target_write_fp): Delete function.
12216 (write_fp): Delete function.
12217 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12218 * gdbarch.h, gdbarch.c: Regenerate.
12219 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12220 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12221 (sparc64_write_fp): Delete declaration.
12222 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12223 (h8500_write_fp): Delete declaration.
12225 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12227 * sparc-tdep.c (sparc64_write_fp): Delete.
12228 (sparc_push_dummy_frame): Replace write_fp call with code to store
12230 (sparc_gdbarch_init): Do not initialize write_fp.
12232 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12234 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12237 2002-03-29 Jim Blandy <jimb@redhat.com>
12239 * stack.c (get_selected_block): Add new argument `addr_in_block',
12240 used to return the exact code address we used to select the block,
12241 not just the block.
12242 * blockframe.c (get_frame_block, get_current_block): Same.
12243 * frame.h (get_frame_block, get_current_block,
12244 get_selected_block): Update declarations.
12245 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12246 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12248 2002-04-05 Michael Snyder <msnyder@redhat.com>
12250 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12253 2002-04-05 J. Brobecker <brobecker@gnat.com>
12255 * utils.c (xfullpath): New function.
12256 * defs.h (xfullpath): Add declaration.
12257 * source.c (openp): Use xfullpath in place of gdb_realpath to
12258 avoid resolving the basename part of filenames when the
12259 associated file is a symbolic link. This fixes a potential
12260 inconsistency between the filenames known to GDB and the
12261 filenames it prints in the annotations.
12262 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12263 to be able to match a filename with either the real filename, or
12264 the name of any symbolic link to this file.
12265 (lookup_partial_symtab): Ditto.
12267 2002-04-04 Michael Snyder <msnyder@redhat.com>
12269 * breakpoint.c: Add support for hardware breakpoints in overlays.
12270 (overlay_events_enabled): New state variable.
12271 (insert_breakpoints): Use overlay_events_enabled to decide
12272 whether to attempt to set a breakpoint at the overlay load addr.
12273 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12274 (remove_breakpoint): Use overlay_events_enabled to decide
12275 whether breakpoints need to be removed from overlay load addr.
12276 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12277 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12278 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12279 disable_overlay_breakpoints): Update overlay_events_enabled.
12281 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12283 * dwarf2read.c (struct function_range): New.
12284 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12285 (check_cu_functions): New.
12286 (read_file_scope): Initialize global function lists.
12287 Call dwarf_decode_line after processing children.
12288 (read_func_scope): Add to global function list.
12289 (dwarf_decode_lines): Call check_cu_functions everywhere
12290 record_line is called. Call record_line with a linenumber
12291 of 0 to mark sequence ends.
12293 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12295 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12296 change sync with glibc.
12298 2002-04-03 Jim Blandy <jimb@redhat.com>
12300 * configure.in: Call AC_C_INLINE.
12301 * configure: Regenerated.
12303 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12305 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12306 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12308 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12310 * NEWS: Mention gcore support on FreeBSD/i386.
12312 * fbsd-proc.c: New file.
12313 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12314 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12316 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12319 2002-03-29 Jim Blandy <jimb@redhat.com>
12321 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12322 unescaped newlines in string literals, but newer ones don't. So
12325 2002-03-26 Michael Snyder <msnyder@redhat.com>
12326 Andrew Cagney <cagney@redhat.com>
12328 * cli/cli-dump.c: New file. Dump memory to file,
12329 restore file to memory.
12330 * cli/cli-dump.h: New file.
12331 * Makefile.in: Add rules, dependencies for cli-dump.o.
12332 * NEWS: Mention new commands.
12334 2002-03-28 Michael Snyder <msnyder@redhat.com>
12336 * symfile.c (symbol_file_add): Move test for null symbols to later.
12338 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12340 From veksler at il.ibm.com:
12341 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12342 the xstrduped original path.
12345 2002-03-27 Michael Snyder <msnyder@redhat.com>
12347 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12348 * infcmd.c (_initialize_infcmd): Ditto.
12349 * language.c (_initialize_language): Ditto.
12350 * symfile.c (_initialize_symfile): Ditto.
12351 * top.c (_init_main): Ditto.
12352 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12354 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12356 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12357 vector registers handling.
12358 (skip_prologue): Handle new AltiVec instructions. Fill in new
12359 fields of frame data.
12360 (frame_get_saved_regs): Fill in information for AltiVec registers.
12362 2002-03-27 Jim Blandy <jimb@redhat.com>
12364 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12365 a function; leave this macro here to invoke that function.
12366 (symbol_init_mangled_name): Declaration for that function.
12367 * symtab.c (symbol_init_mangled_name): New function.
12369 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12371 * valarith.c: Replace strerror with safe_strerror.
12372 * tracepoint.c: Ditto.
12373 * lin-lwp.c: Ditto.
12374 * go32-nat.c: Ditto.
12376 * gnu-nat.c: Ditto.
12378 2002-03-27 Andreas Schwab <schwab@suse.de>
12380 * event-top.c (command_line_handler): Remove useless if.
12382 2002-03-27 Andreas Jaeger <aj@suse.de>
12384 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12387 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12389 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12390 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12391 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12392 (x86_64_linux_dr_get_status, supply_gregset),
12393 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12394 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12395 (x86_64_register_info_table): Add.
12396 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12397 (x86_64_register_raw_size, x86_64_register_virtual_type),
12398 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12399 general x86_64_register_info_table.
12400 (i386_gdbarch_init): gdbarch_register_bytes is now set
12401 dynamicaly during initialization.
12402 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12403 * gdbserver/linux-x86-64-low.c: Ditto.
12405 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12407 * gdbserver/server.c (main): Call target_signal_to_host_p
12408 and target_signal_to_host on signals received from the remote.
12409 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12410 target_signal_from_host on signals sent to the remote.
12411 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12412 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12414 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12416 * signals/signals.c: Include "server.h" in gdbserver build.
12417 (target_signal_from_name): Don't use STREQ.
12418 (_initialize_signals): Likewise. Don't include function in
12421 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12423 * signals.c: Moved to...
12424 * signals/signals.c: Here.
12425 * Makefile (signals.o): Update.
12427 2002-03-26 Jeff Law (law@redhat.com)
12429 * somread.c (som_symtab_read): Remove some commented out code and
12430 updated related comments. Do not set the minimal symbol table to
12431 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12432 in a dynamic executable.
12433 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12434 where we are unable to find the minimal symbol for the given
12437 2002-03-25 Jeff Law (law@redhat.com)
12439 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12441 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12443 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12445 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12447 * command.h: Update copyright.
12448 (struct cmd_list_element): Replace definition with opaque
12450 (enum cmd_types): Document that it will eventually be moved to
12452 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12453 (MALLOCED_REPLACEMENT): Delete macro.
12454 * Makefile.in (cli_decode_h): Add $(command_h).
12455 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12456 * top.c: Include "cli/cli-decode.h".
12457 * completer.c: Include "cli/cli-decode.h".
12458 * maint.c: Include "cli/cli-decode.h".
12459 * cli/cli-decode.h: Include "command.h".
12460 (enum command_class): Delete.
12461 (enum cmd_types): Comment out.
12462 (enum cmd_auto_boolean): Delete.
12463 (enum var_types): Delete.
12465 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12467 * cli/cli-decode.c: Include "gdb_assert.h".
12468 (add_set_or_show_cmd): New static function.
12469 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12470 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12471 all fields, such as func, from the set command.
12473 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12475 * MAINTAINERS (sh-elf): Change warning flag to -w.
12477 2002-03-23 Andrew Cagney <cagney@redhat.com>
12479 * defs.h (error): Add printf format attribute.
12480 * thread-db.c (thread_from_lwp): Fix error format string.
12481 * stack.c (parse_frame_specification): Ditto.
12482 * cli/cli-decode.c (undef_cmd_error): Ditto.
12483 * scm-lang.c (scm_lookup_name): Ditto.
12484 * tracepoint.c (trace_error): Ditto.
12485 * remote-utils.c (usage): Ditto.
12486 * remote.c (compare_sections_command): Ditto.
12489 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12491 * gdbtypes.c (append_composite_type_field): New function.
12492 (init_composite_type): New function.
12493 * gdbtypes.h (append_composite_type_field): Declare.
12494 (init_composite_type): Ditto.
12496 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12498 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12500 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12501 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12502 structure returning convention for SYSV ABI case, but not
12503 for GNU/Linux, FreeBSD, or NetBSD.
12505 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12507 * symtab.h (lookup_block_symbol): Add mangled_name argument
12510 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12511 with new mangled_name argument.
12512 * linespec.c (decode_line_1): Likewise.
12513 * valops (value_of_this): Likewise.
12514 * symtab.c (lookup_transparent_type): Likewise.
12515 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12516 (lookup_symbol): If we are given a mangled name, pass it down
12517 to lookup_symbol_aux.
12518 (lookup_block_symbol): If we are given a mangled name to check
12519 against, only return symbols which match it.
12521 2002-03-22 Christopher Faylor <cgf@redhat.com>
12523 * win32-nat.c (child_create_inferior): Check for proper shell to use
12524 here, in case the user changes it on the fly.
12525 (_initialize_inftarg): Remove shell path considerations.
12527 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12529 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12530 for gdbarch_max_register_raw_size and max_register_virtual_size.
12531 Adjust copyright year.
12533 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12535 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12536 in a function to cover the entire beginning of the function
12537 as well if it does not already.
12539 2002-03-21 Tom Rix <trix@redhat.com>
12541 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12542 (rs6000_ptrace64): Renamed from ptrace64.
12544 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12546 * gdbserver/remote-utils.c (remote_open): Don't call
12547 getprotobyname, we're all using TCP here so just use
12549 * gdbserver/gdbreplay.c (remote_open): Ditto.
12551 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12553 * regcache.c (_initialize_regcache): No need to call
12554 build_regcache() at this time; it gets called whenever
12555 the gdbarch changes.
12557 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12559 * sparc-nat.c: Include sys/param.h where possible.
12561 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12564 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12565 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12566 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12568 * stabsread.c (rs6000_builtin_type): Likewise.
12569 (read_sun_floating_type): Likewise.
12571 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12573 * stabsread.c (read_member_functions): Remove skip code for duplicate
12574 constructor/destructor methods. Use standard parsing for these
12575 methods and just do not chain them to the list of methods after
12578 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12580 * coffread.c: Remove redundant static declarations. Replace
12581 occurrences of `PTR' with `void *'.
12582 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12583 * top.h (quit_cover): Likewise.
12584 * defs.h (catch_errors): Likewise.
12586 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12588 * defs.h (XMALLOC): Define.
12589 * gdb-events.sh (XMALLOC): Delete macro.
12590 * gdb-events.c, gdb-events.h: Regenerate.
12591 * gdbarch.sh (XMALLOC): Delete macro.
12592 * gdbarch.c: Regenerate.
12593 * serial.c (XMALLOC): Delete macro.
12594 * ui-file.c (XMALLOC): Ditto.
12595 * ser-unix.h (XMALLOC): Ditto.
12596 * sh-tdep.c (XMALLOC): Ditto.
12597 * ui-out.c (XMALLOC): Ditto.
12598 * utils.c (XMALLOC): Ditto.
12599 * i386-tdep.c (XMALLOC): Ditto.
12600 * gdb-events.c (XMALLOC): Ditto.
12601 * d10v-tdep.c (XMALLOC): Ditto.
12602 * cli-out.c (XMALLOC): Ditto.
12604 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12605 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12606 * ui-file.c, ui-out.c: Ditto.
12608 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12610 * command.h (struct cmd_list_element): Add field context.
12611 (set_cmd_context, get_cmd_context): Declare.
12612 * cli/cli-decode.h: Ditto.
12613 * cli/cli-decode.c (get_cmd_context): New function.
12614 (set_cmd_context): New function.
12615 (add_cmd): Initialize context.
12616 Part of fixing PR gdb/145 and PR gdb/146.
12618 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12620 * cli/cli-decode.c (cmd_type): New function.
12621 * command.h (cmd_type): Declare.
12622 * infrun.c (set_schedlock_func): Call function cmd_type.
12623 * kod.c (kod_set_os): Call cmd_type.
12624 * cris-tdep.c (cris_version_update): Use function cmd_type.
12625 (cris_mode_update, cris_abi_update): Ditto.
12627 * command.h: (execute_cmd_post_hook): Declare.
12628 (execute_cmd_pre_hook): Declare.
12629 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12630 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12631 functions. Execute pre/post hook while ensuring that afterwords
12632 hook_in is cleared.
12633 * top.c (execute_command): Use execute_cmd_post_hook, and
12634 execute_cmd_pre_hook to execute pre/post commands.
12635 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12637 (hook_stop_stub): Call execute_cmd_pre_hook.
12639 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12641 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12642 set'' and this leads to a core dump. Move xstrdup of
12643 operating_system to after check that it is not NULL.
12645 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12647 * kod.c (kod_set_os): Remove unnecessary check that
12648 ``command->type'' is set_cmd.
12650 * valprint.c (set_input_radix): Use input_radix.
12651 (set_output_radix): Use output_radix.
12652 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12655 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12657 * value.h (struct value): Delete field ``substring_addr''. Change
12658 aligner fields to force_doublest_align, force_longest_align,
12659 force_core_addr_align and force_pointer_aligh.
12661 * value.h (struct value): Fix typo in above change.
12663 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12665 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12666 to fix internal_error from ``maintenance print architecture''.
12668 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12670 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12671 for gcc versions after gcc-2.8.1.
12673 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12675 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12676 for method resolution. Restore adjustment of ``this'' pointer after
12677 calling value_struct_elt, which was accidentally removed during the
12680 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12682 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12684 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12685 get_saved_register.
12686 * value.h (value_of_register): Update.
12688 2002-03-14 Richard Henderson <rth@redhat.com>
12690 * configure.in: Detect declaration for canonicalize_file_name.
12691 * utils.c (canonicalize_file_name): Declare, if needed.
12692 (gdb_realpath): Prefer realpath if available and usable.
12693 * config.in, configure: Rebuild.
12695 2002-03-14 Richard Henderson <rth@redhat.com>
12697 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12698 a constant array bound.
12700 * MAINTAINERS: Add myself to write-after-approval.
12702 2002-03-14 Michael Snyder <msnyder@redhat.com>
12704 * symfile.c (syms_from_objfile): Return immediately if no syms.
12705 (symbol_file_add): Return immediately if no syms.
12706 (find_sym_fns): Return immediately if no syms.
12708 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12710 * gdbserver/remote-util.c (remote_open): Print remote-side's
12711 IP address when remote debugging over the network.
12713 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12715 * config/sparc/fbsd.mh: Fix copyright.
12716 * config/sparc/fbsd.mt: Likewise.
12718 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12720 * MAINTAINERS: Fix typo in name of gdb warnings option.
12721 (x86-64): Fix formating so that this can be parsed by awk.
12723 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12725 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12726 * defs.h: Include "gdb/signals.h".
12727 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12729 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12731 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12732 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12735 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12736 Don Howard <dhoward@redhat.com>
12738 * mips-tdep.c (ST0_FR): Define.
12739 (mips2_fp_compat): New function, temporarily disabled.
12740 (mips_read_fp_register_single): New function.
12741 (mips_read_fp_register_double): New function.
12742 (mips_print_register): Use them.
12743 (do_fp_register_row): Likewise.
12745 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12747 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12750 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12752 * stabsread.c (read_member_functions): Fix is_stub test for
12753 static member functions, improve comment.
12755 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12757 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12758 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12759 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12760 commands that set boolean values.
12761 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12762 (arm_rdi_resume): Always initialize PC.
12763 (arm_rdi_open): Don't use rslt as a boolean.
12764 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12765 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12766 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12767 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12769 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12771 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12772 * configure: Rebuilt.
12774 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12776 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12777 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12779 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12781 * cli/cli-decode.c (set_cmd_completer): New function.
12782 * command.h (set_cmd_completer): Declare.
12783 * cli/cli-decode.h (set_cmd_completer): Ditto.
12785 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12786 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12787 * win32-nat.c (_initialize_inftarg): Ditto.
12788 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12789 * proc-api.c (_initialize_proc_api): Ditto.
12790 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12791 * source.c (_initialize_source): Ditto.
12792 * exec.c (_initialize_exec): Ditto.
12793 * solib.c (_initialize_solib): Ditto.
12794 * top.c (init_main): Ditto.
12795 * tracepoint.c (_initialize_tracepoint): Ditto.
12796 * symfile.c (_initialize_symfile): Ditto.
12797 * printcmd.c (_initialize_printcmd): Ditto.
12798 * infcmd.c (_initialize_infcmd): Ditto.
12799 * corefile.c (_initialize_core): Ditto.
12801 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12803 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12805 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12807 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12809 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12811 * NEWS: Update headings, 5.2 has branched.
12813 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12815 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12816 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12817 (register_addr, REGISTER_RAW_SIZE): Likewise.
12818 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12819 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12821 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12823 * MAINTAINERS (x86-64): Add myself.
12824 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12825 changed value_ptr -> struct value *
12827 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12829 * configure.host (sparc64-*-freebsd): Add.
12830 * configure.tgt: Likewise.
12831 * config/sparc/fbsd.mh: New file.
12832 * config/sparc/fbsd.mt: Likewise.
12833 * config/sparc/nm-fbsd.h: Likewise.
12834 * config/sparc/tm-fbsd.h: Likewise.
12836 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12838 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12839 regformats/reg-s390x.dat.
12841 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12843 * utils.c: Add FIXME explaining true/false problem.
12845 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12847 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12849 2002-02-28 Michael Chastain <mec@shout.net>
12851 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12853 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12855 * gdbserver/linux-s390-low.c: New file.
12856 * regformats/reg-s390.dat: New file.
12857 * regformats/reg-s390x.dat: New file.
12858 * gdbserver/configure.srv: Add S/390.
12859 * gdbserver/Makefile.in: Add S/390.
12860 * configure.tgt: Enable gdbserver for S/390.
12862 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12864 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12865 first line of the doc string for "info dos", except at the end of
12866 the sentence, since the short help stops at the first period.
12868 2002-02-28 Jason Merrill <jason@redhat.com>
12870 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12872 2002-02-27 Fred Fish <fnf@redhat.com>
12874 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12875 comment (dumy -> dummy).
12877 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12879 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12881 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12883 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12885 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12887 * gdbserver/acconfig.h: New file.
12888 * gdbserver/i387-fp.c: New file.
12889 * gdbserver/i387-fp.h: New file.
12890 * gdbserver/linux-x86-64.c: New file.
12891 * regformats/reg-x86-64.dat: New file.
12892 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12893 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12894 * gdbserver/configure.in: Add support for regsets.
12895 * gdbserver/config.in: Regenerate.
12896 * gdbserver/configure: Regenerate.
12897 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12898 * gdbserver/linux-low.h: New file.
12899 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12901 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12902 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12903 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12904 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12905 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12906 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12907 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12908 "i387-fp.h". Add PTRACE_GETREGS and friends.
12909 * gdbserver/regcache.c (supply_register): New function.
12910 (supply_register_by_name): New function.
12911 (collect_register): New function.
12912 (collect_register_by_name): New function.
12914 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12916 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12917 (config.status): Add configure.srv dependency.
12918 (server_h): Add config.h dependency.
12920 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12922 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12923 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12924 * gdbserver/configure.srv: Change i386-*-linux* to use
12927 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12929 * x86-64-tdep.c: Re-indent. Update copyright date.
12931 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12933 From Michal Ludvig <mludvig@suse.cz>:
12934 * x86-64-tdep.c (value.h): Delete.
12935 (gdb_assert.h): Include.
12936 (x86_64_register_convert_to_virtual,
12937 x86_64_register_convert_to_raw ): Add check which lets only
12938 floating-point values to be converted.
12939 (value_push): Delete.
12940 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12941 (i386_gdbarch_init): Number of register_bytes fixed.
12943 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12945 * MAINTAINERS: Add x86-64 target.
12947 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12949 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12950 * osfsolib.c (solib_map_sections): Ditto.
12951 * irix5-nat.c (solib_map_sections): Ditto.
12952 * corelow.c (gdb_check_format): Ditto.
12953 * symfile.c (symfile_bfd_open): Ditto.
12954 * solib.c (solib_map_sections): Ditto.
12957 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12959 * remote.c (_initialize_remote): By default, disable ``e'' and
12960 ``E'' step out-of-range packets.
12962 2002-02-26 Andreas Schwab <schwab@suse.de>
12964 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12965 m68k_linux_frame_saved_pc.
12966 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12968 (SIGCONTEXT_PC_OFFSET): Remove.
12969 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12970 m68k_linux_sigtramp_saved_pc): New functions.
12971 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12972 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12973 (UCONTEXT_PC_OFFSET): Define.
12974 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12975 non-RT and RT signal trampolines.
12977 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12979 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12980 (TARGET_NBPG, STACK_END_ADDR): Delete
12981 (VARIABLES_INSIDE_BLOCK): Delete.
12983 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12985 * utils.c (perror_with_name): Make string parameter constant.
12986 (print_sys_errmsg): Ditto.
12988 * defs.h (perror_with_name): Update.
12989 (print_sys_errmsg): Update.
12992 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12994 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12995 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12997 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12999 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
13000 if it already matches the current architecture from the exec file.
13001 Include arch-utils.h for gdbarch_info_init prototype.
13002 * Makefile.in (rs6000-nat.o): Update dependencies.
13004 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
13006 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
13007 list of exported variables.
13009 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
13011 * gdbserver/configure.srv: New file.
13012 * gdbserver/configure.in: Use configure.srv instead
13013 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
13015 * gdbserver/configure: Regenerated.
13016 * gdbserver/terminal.h: New file.
13017 * gdbserver/Makefile.in: Update for configure changes. Remove
13018 more unneeded include paths.
13020 2002-02-24 Andrew Cagney <ac131313@redhat.com>
13022 From wiz at danbala:
13023 * config/sparc/tm-sp64.h: Fix grammar and typos.
13026 2002-02-24 Andrew Cagney <ac131313@redhat.com>
13028 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
13029 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
13030 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
13031 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
13032 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
13033 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
13034 * s390-tdep.c: Ditto.
13035 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
13036 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
13037 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
13038 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
13039 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
13040 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
13041 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
13042 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
13043 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
13044 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
13047 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13049 * lin-thread.c: Delete file.
13050 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
13051 to gdb_proc_service.h.
13052 * configure: Re-generate.
13054 * ocd.c (ocd_open): Do not try to open the "ocd" device.
13055 * serial.c (serial_open): Delete check for "ocd".
13058 * Makefile.in (linux-thread.o): Delete target.
13059 * linux-thread.c: Delete file.
13061 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
13062 renamed SH files to be consistent.
13064 * symtab.c (sort_search_symbols): Use xfree.
13066 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13068 * arm-linux-tdep.c (arm_linux_init_abi): Register
13069 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13070 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13071 definition with undef, since we don't want the sysvr4 definition.
13072 (SKIP_TRAMPOLINE_CODE): Likewise.
13074 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13076 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13078 * configure.in: (AC_CHECK_FUNCS) Added test for
13079 canonicalize_file_name Regenerated.
13080 * config.in, configure: Regenerated.
13081 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13082 defined use canonicalize_file_name.
13084 2002-02-23 Michael Chastain <mec@shout.net>
13086 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13088 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13090 * README: Remove references to cygnus.com.
13091 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13092 dot com'' form. Remove references to cygnus.com and sourceware.
13094 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13096 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13097 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13098 1003.1-2001 no longer allows "head -1".
13099 * gdb/Makefile.in (version.c): Likewise.
13100 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13101 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13102 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
13104 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13106 * cli/cli-decode.c (cmd_cfunc_eq): New function.
13107 * command.h (cmd_cfunc_eq): Declare.
13108 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13110 * cli/cli-cmds.h (is_complete_command): Change parameter to a
13111 ``struct cmd_list_element *''.
13112 * cli/cli-cmds.c (is_complete_command): Update. Use
13114 * top.c (execute_command): Pass the command to
13115 is_complete_command.
13116 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13118 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13120 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13121 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13122 architecture defines.
13123 * s390-tdep.c (s390_gdbarch_init): Likewise.
13125 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13127 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13128 (arm_linux_push_arguments): Likewise.
13129 (arm_linux_init_abi): Register them. Also register linux-specific
13131 (find_minsym_and_objfile): Use strcmp, not STREQ.
13132 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13133 (arm_linux_call_dummy_words): Delete declaration.
13134 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13135 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13137 (LOWEST_PC): Delete.
13139 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13141 * maint.c (print_section_info): Do not prepend `0x' to filepos
13142 output, it will be handled by local_hex_string_custom.
13144 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13146 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13147 (store_newfpe_double, store_newfpe_extended, store_fpregister)
13148 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13150 2002-02-22 Jim Blandy <jimb@redhat.com>
13152 Indicate that the bcache functions don't change the strings
13154 * bcache.h (bcache, hash): Add `const' keywords to declarations.
13155 * bcache.c (bcache, hash): Add `const' keywords to definitions.
13157 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
13159 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13161 2002-02-21 Christopher Faylor <cgf@redhat.com>
13163 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13164 find the complete path to a loaded DLL.
13166 2002-02-21 Fred Fish <fnf@redhat.com>
13168 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13169 that marks the end of the range of a function, enter a line number
13170 entry that has a line number of zero and a PC offset that matches
13171 the end of the function. This starts a range of PC's for which no
13172 line number information is known.
13173 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13174 PC's for which no line number info is found (line number is zero)
13175 then we didn't find any valid line information.
13176 * symtab.h: Document use of zero line number entry.
13178 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13180 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13181 (have_ptrace_getvrregs): Define for run time checks.
13182 (gdb_vrregset_t): New type for Altivec register handling.
13183 (fetch_register, store_register): Fetch/store altivec register
13185 (fetch_altivec_register, store_altivec_register): New functions.
13186 (supply_vrregset, fill_vrregset): New functions.
13187 (fetch_altivec_registers, store_altivec_registers): New functions.
13188 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13191 2002-02-21 Jiri Smid <smid@suse.cz>
13193 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13195 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13197 * Makefile.in (armnbsd-nat.o): Update dependencies.
13198 * armnbsd-nat.c (supply_gregset): New function. Common code to
13199 supply the integer register set.
13200 (supply_fparegset): New function. Similar for FPA registers.
13201 (fetch_regs, fetch_fp_regs): Use them.
13202 (fetch_core_registers): Likewise.
13203 (fetch_elfcore_registers): New function.
13204 (arm_netbsd_elfcore_fns): New core-file type specification.
13205 (_initialize_arm_netbsd_nat): Register it.
13207 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13209 * armnbsd-nat.c: Include gdbcore.h.
13210 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13211 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13212 'void' to declaration, to shut up ARI.
13213 (fetch_core_registers): Make static. Rewrite using supply_register.
13214 (arm_netbsd_core_fns): New core-file type specification.
13215 (_initialize_arm_netbsd_nat): New function.
13217 2002-02-21 Christopher Faylor <cgf@redhat.com>
13219 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13222 2002-02-20 Christopher Faylor <cgf@redhat.com>
13224 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13227 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13229 * jv-exp.y (parse_number): Change type of implicit longs
13230 to builtin_type_uint64.
13232 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13234 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13235 to be an integer instead of a `union wait'.
13237 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13239 * mips-linux-nat.c: Call the operating system GNU/Linux.
13240 * mips-linux-tdep.c: Likewise.
13241 * mips-tdep.c: Likewise.
13243 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13246 * jv-exp.y (parse_number): Handle 64-bit integers.
13248 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13250 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13251 AC_STDC_HEADERS to AC_HEADER_STDC.
13252 * gdbserver/configure: Regenerated.
13254 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13256 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13258 * sparc-tdep.c (get_longjmp_target): Likewise.
13260 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13262 * News: Add news about ARM and Multi-arch. Mention the new target
13265 2002-02-19 Jim Blandy <jimb@redhat.com>
13267 * stabsread.c (error_type_complaint): Improve error message.
13269 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13271 * gdbserver/README: Update documentation.
13272 * gdbserver/configure.in: Update configury to match documentation.
13273 * gdbserver/Makefile.in: Likewise.
13274 * gdbserver/configure: Regenerated.
13275 * gdbserver/aclocal.m4: New file, generated by aclocal.
13276 * gdbserver/config.in: New file, generated by autoheader.
13278 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13280 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13283 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13285 * arm-tdep.h (enum arm_float_model): New enum.
13286 (struct gdbarch_tdep): Add fp_model.
13287 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13288 up floating-point conversions until we know the floating-point model
13289 in use by the inferior. Don't complain about being unable to
13290 determine the ABI of the inferior when we don't have one.
13291 (arm_extract_return_value): Support different floating-point models.
13292 (arm_store_return_value): Likewise.
13293 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13295 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13297 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13299 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13300 of ``current_gdbarch''.
13302 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13304 * armnbsd-nat.c : ANSIfy all function declarations.
13305 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13306 (fetch_inferior_registers): Re-implement in terms of above.
13307 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13308 (store_inferior_registers): Re-implement in terms of above.
13310 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13312 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13314 * arm-linux-tdep.c: Likewise.
13315 * config/arm/tm-linux.h: Likewise.
13317 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13319 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13320 * config/arm/nbsd.mt (TM_FILE): Delete.
13321 * config/arm/tm-nbsd.h: Delete.
13323 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13325 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13326 Initialize CALL_DUMMY_LENGTH.
13328 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13330 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13332 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13333 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13334 defines one thing and that is incorrect for this port.
13335 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13337 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13339 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13341 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13343 * win32-nat.c (display_selector): New function. Displays information
13344 about the information returned by GetThreadSelectorEntry API function.
13345 (display_selectors): New function. Displays the infomation of
13346 the selector given as argument, or of CS, DS ans FS selectors
13347 if no argument is given.
13348 ( _initialize_inftarg): Add "w32" as info prefix command.
13349 Add "info w32 selector" as command calling display_selectors.
13351 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13353 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13354 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13357 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13359 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13361 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13363 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13364 (arm_fix_call_dummy): Call it.
13365 (arm_call_dummy_breakpoint_offset): Delete.
13366 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13367 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13369 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13371 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13372 Default to func_frame_chain_valid.
13373 * gdbarch.h, gdbarch.c: Re-generate.
13374 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13376 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13378 * ppc-linux-nat.c: Update copyright.
13379 (fetch_register, store_register): Add tid parameter, don't compute
13381 (fetch_ppc_registers, store_ppc_registers): Add tid
13382 parameter. Pass it along to callees.
13383 (fetch_inferior_registers, store_inferior_registers): Compute tid
13384 here, and pass it to calleed functions.
13385 (fill_gregset, supply_fpregset): Clean up formatting.
13387 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13389 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13390 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13392 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13394 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13395 * gdbarch.c gdbarch.h: Regenerate.
13396 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13398 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13399 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13400 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13402 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13403 * arm-tdep.c (arm_get_longjmp_target): New function.
13404 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13405 this to a positive value register arm_get_longjmp_target as the
13407 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13408 (arm_linux_init_abi): Set up longjmp description in tdep.
13409 * armnbsd-nat.c (get_longjmp_target): Delete.
13410 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13411 description in tdep.
13412 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13413 (get_longjmp_target): Delete declaration.
13414 (GET_LONGJMP_TARGET): Delete.
13415 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13416 (GET_LONGJMP_TARGET): Delete.
13418 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13420 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13421 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13422 of ``current_gdbarch''.
13424 2002-02-17 Tom Tromey <tromey@redhat.com>
13426 * cli/cli-cmds.c (compare_strings): New function.
13427 (complete_command): Only print each unique item once.
13428 * completer.h (complete_line): Declare.
13429 * completer.c (complete_line): New function.
13430 (line_completion_function): Use it.
13432 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13434 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13435 * gdbarch.h, gdbarch.c: Re-generate.
13437 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13439 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13441 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13443 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13444 * valops.c (value_arg_coerce): Don't take the address of a reference
13445 to convert an argument to a reference.
13447 2002-02-15 Christopher Faylor <cgf@redhat.com>
13449 * win32-nat.c (get_image_name): New function.
13450 (handle_load_dll): Use get_image_name function.
13451 (get_child_debug_event): Avoid registering debug events until possibly
13452 execed process is started.
13453 (child_create_inferior): Allow invocation via shell so that command
13454 line redirection, etc. works ok.
13455 (_initialize_inftarg): Add new command: "set shell" to control whether
13456 a shell is used to start a process.
13458 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13460 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13461 instead of find_register_by_number.
13462 (cannot_store_register): Likewise.
13464 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13466 * dwarf2read.c: Replace fprintf (stderr, ...) by
13467 fprintf_unfiltered (gdb_stderr, ...).
13469 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13471 * gdbserver/gdbserver.1: Document --attach.
13473 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13475 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13477 * arm-tdep.c (arm_default_arm_le_breakpoint)
13478 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13479 (arm_default_thumb_be_breakpoint): New. Initialize them from
13480 traditional breakpoint defines.
13481 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13482 (arm_gdbarch_init): Initialize new breakpoint variables.
13483 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13484 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13485 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13486 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13488 (arm_netbsd_init_abi_common): ... here; new function.
13489 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13490 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13491 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13492 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13494 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13496 * arm-tdep.h (enum arm_abi): New enum.
13497 (struct gdbarch_tdep): New structure.
13498 (LOWEST_PC): Provide a default.
13499 (arm_gdbarch_register_os_abi): Declare new function.
13500 * arm-tdep.c (arm_abi_names): New array.
13501 (process_note_abi_tag_sections): New function.
13502 (get_elfosabi): New function.
13503 (arm_gdbarch_register_os_abi): New function.
13504 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13505 support for that ABI has been built in, then call the appropriate
13506 configuration routine. Use gdbarch_num_regs() to get the number
13508 (arm_dump_tdep): New function.
13509 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13510 place-holder functions.
13511 (_initialize_arm_tdep): Register them.
13512 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13514 * armnbsd-tdep.c: New file.
13515 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13516 * config/arm/nbsd.mt (TDEPFILES): Add it.
13517 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13519 * armnbsd-nat.c: Include regcache.h.
13520 * Makefile.in (armnbsd-nat.o): Update dependency list.
13522 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13524 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13526 * gdbserver/Makefile.in: Fix typos in target rules.
13528 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13530 Fix part of PR gdb/267.
13531 * linespec.c (find_methods): Handle constructors specially for now.
13533 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13535 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13537 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13538 standard_coerce_float_to_double().
13540 2002-02-14 Christopher Faylor <cgf@redhat.com>
13542 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13545 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13547 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13548 find_variant_by_name, because it confuses the multiarch
13549 framework. Return NULL if there isn't an architecture with the
13550 user supplied name, instead of forcing a different one without
13551 recording the change with the multiarch machinery.
13552 (find_variant_by_name): Delete.
13554 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13556 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13557 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13559 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13561 * stack.c (print_frame_info_base): When calling
13562 print_frame_info_listing_hook, set current_source_symtab.
13564 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13566 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13567 and remove unused $(INCLUDE_DIR).
13568 Add regcache.c to OBS.
13569 Add generated register protocol files to clean target.
13570 Update dependencies for new objects, obsolete old target code.
13572 * gdbserver/linux-low.c: Remove all platform-specific code to
13573 new files. Remove various dead code. Update to use regcache
13575 * gdbserver/remote-utils.c (fromhex): Add return statement
13577 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13579 (input_interrupt): Add integer parameter to match prototype
13580 of a signal handler.
13581 (outreg): Use register_data ().
13582 (prepare_resume_reply): Use gdbserver_expedite_regs.
13583 * gdbserver/server.c (main): Dynamically allocate own_buf because
13584 PBUFSIZ is no longer constant. Use registers_to_string () and
13585 registers_from_string ().
13586 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13587 for error (), fatal (), and warning (). Update definition of
13588 PBUFSIZ to use regcache functionality. Add include guard.
13589 * gdbserver/utils.c (fatal): Add missing ``const''.
13590 (warning): New function.
13592 * regformats/regdat.sh: Include "regcache.h" in generated files.
13593 Provide init_registers () function.
13594 * regformats/regdef.h: Add prototype for set_register_cache ().
13597 * gdbserver/linux-arm-low.c: New file.
13598 * gdbserver/linux-i386-low.c: New file.
13599 * gdbserver/linux-ia64-low.c: New file.
13600 * gdbserver/linux-m68k-low.c: New file.
13601 * gdbserver/linux-mips-low.c: New file.
13602 * gdbserver/linux-ppc-low.c: New file.
13603 * gdbserver/linux-sh-low.c: New file.
13605 * gdbserver/regcache.c: New file.
13606 * gdbserver/regcache.h: New file.
13608 * gdbserver/low-linux.c: Removed obsolete file.
13610 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13612 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13613 * config/i386/linux.mt: Likewise.
13614 * config/ia64/linux.mt: Likewise.
13615 * config/m68k/linux.mh: Likewise.
13616 * config/powerpc/linux.mh: Likewise.
13617 * config/mips/linux.mt: Likewise.
13619 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13621 * config/i386/i386lynx.mh: Mark gdbserver variables
13622 as (currently) obsolete for this target.
13623 * config/i386/nbsd.mt: Likewise.
13624 * config/i386/nbsdelf.mt: Likewise.
13625 * config/m32r/m32r.mt: Likewise.
13626 * config/m68k/m68klynx.mh: Likewise.
13627 * config/m68k/nbsd.mt: Likewise.
13628 * config/m68k/sun3os4.mh: Likewise.
13629 * config/mips/vr5000.mt: Likewise.
13630 * config/ns32k/nbsd.mt: Likewise.
13631 * config/pa/hppabsd.mh: Likewise.
13632 * config/pa/hppaosf.mh: Likewise.
13633 * config/powerpc/nbsd.mt: Likewise.
13634 * config/rs6000/rs6000lynx.mh: Likewise.
13635 * config/s390/s390.mt: Likewise.
13636 * config/s390/s390x.mt: Likewise.
13637 * config/sparc/sparclynx.mh: Likewise.
13638 * config/sparc/sun4os4.mh: Likewise.
13639 * config/i386/x86-64linux.mt: Likewise.
13640 * config/sparc/linux.mh: Likewise.
13642 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13644 * configure.tgt: Configure gdbserver only for known working
13645 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13646 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13647 SUBDIRS if it is configured. Update comment for ${nativefile}.
13648 * configure: Regenerated.
13650 2002-02-13 Michael Snyder <msnyder@redhat.com>
13652 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13654 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13655 (default_gcore_mach): Just return 0, work around a problem in bfd.
13656 (default_gcore_target): OK to return NULL if exec_bfd is null.
13657 (make_mem_sec): Use a cast, avoid a warning.
13659 * procfs.c (find_memory_regions_callback): Use a cast instead of
13660 calling host_pointer_to_address (which complains if
13661 sizeof (host pointer) != sizeof (target pointer)).
13662 (procfs_make_note_section): Avoid overflow in psargs string.
13664 * procfs.c (procfs_make_note_section): Make the default
13665 implementation return an error.
13667 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13669 * procfs.c (procfs_make_note_section): Provide a default definition
13670 (for alpha-dec-osf4.0f). Fix typos.
13672 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13674 * linux-proc.c: Add include of regcache.h.
13675 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13677 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13679 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13680 * memattr.c (create_mem_region): Disallow useless empty region.
13681 Regions are half-open intervals, so allow [A..B) [B..C) as
13684 2002-02-13 Michael Chastain <mec@shout.net>
13686 * defs.h: Kill CONST_PTR.
13687 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13688 * c-lang.c (c_builtin_types): Likewise.
13689 * ch-lang.c (ch_builtin_types): Likewise.
13690 * f-lang.c (f_builtin_types): Likewise.
13691 * language.c (unknown_builtin_types): Likewise.
13692 * m2-lang.c (m2_builtin_types): Likewise.
13693 * p-lang.c (pascal_builtin_types): Likewise.
13694 * scm-lang.c (c_builtin_types): Likewise.
13696 2002-02-13 Keith Seitz <keiths@redhat.com>
13698 * arm-tdep.h (arm_get_next_pc): Add declaration.
13700 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13702 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13703 with other related struct-returning functions.
13704 (arm_extract_struct_value_address): New function.
13705 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13706 initialize float_format, double_format and long_double_format as
13707 appropriate to the endianness of the target.
13708 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13709 (arm_use_struct_convention): Delete declaration.
13710 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13712 2002-02-13 Keith Seitz <keiths@redhat.com>
13714 * defs.h (core_addr_to_string_nz): New function.
13716 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13718 Apply missing bits of 2002-01-15 patch.
13719 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13720 (fill_fpregset): Use i387_fill_fsave.
13722 2002-02-12 Keith Seitz <keiths@redhat.com>
13724 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13725 (core_addr_to_string_nz): New function.
13727 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13729 * arm-linux-nat.c: Really include arm-tdep.h.
13730 * config/arm/tm-linux.h (struct type, struct value): Declare.
13732 2002-02-11 Michael Snyder <msnyder@redhat.com>
13734 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13735 (gcore section): Ifdef for Solaris and Unixware only.
13736 (procfs_do_thread_registers): Unixware needs one lwpstatus
13737 per thread (not one prstatus or pstatus).
13738 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13739 not over all gdb threads. For unixware, call elfcore_write_pstatus
13740 once before iterating over threads.
13742 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13744 * arm-tdep.h: New file.
13745 * arm-tdep.c: Include arm-tdep.h.
13746 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13747 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13748 (arm_print_float_info, arm_register_type, convert_to_extended)
13749 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13750 (arm_extract_return_value, arm_register_name): Make static.
13751 (arm_software_single_step): Similarly. Fix types in declaration.
13752 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13753 (arm_store_return_value, arm_store_struct_return): New functions.
13754 (arm_gdbarch_init): Register the above functions. Also register
13755 call_dummy_start_offset, sizeof_call_dummy_words,
13756 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13757 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13758 max_register_virtual_size, register_size. Set up
13759 prologue_cache.saved_regs here, rather than ...
13760 (_initialize_arm_tdep): ... here.
13761 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13763 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13764 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13765 (arm_print_float_info, arm_register_type, convert_to_extended)
13766 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13767 (arm_extract_return_value, arm_register_name): Delete declarations.
13768 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13769 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13770 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13771 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13772 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13773 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13774 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13775 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13776 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13777 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13778 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13779 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13781 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13782 * remote-rdi.c remote-rdp.c: Likewise.
13783 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13784 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13785 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13788 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13789 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13790 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13791 from non-ARM_ prefixed definitions.
13792 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13794 * remote-rdi.c remote-rdp.c: Likewise.
13795 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13797 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13799 * arm-tdep.c (arm_frameless_function_invocation)
13800 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13801 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13802 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13803 (arm_pop_frame, arm_get_next_pc): Make static.
13804 (arm_gdbarch_init): Register above in gdbarch structure.
13805 (arm_read_fp): Renamed from arm_target_read_fp.
13806 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13807 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13808 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13809 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13810 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13811 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13812 (arm_pc_is_thumb_dummy): Delete declarations.
13813 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13814 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13815 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13816 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13818 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13820 * symtab.c (compare_search_syms): New function.
13821 (sort_search_symbols): New function.
13822 (search_symbols): Sort symbols after searching rather than
13825 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13827 * NEWS: Linux -> GNU/Linux.
13829 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13831 * gdbarch.sh: For for level one methods, disallow a definition
13832 when partially multi-arched. Add comments explaining rationale.
13833 * gdbarch.h: Re-generate.
13835 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13837 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13838 multi-arch partial.
13840 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13842 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13843 field. Use diff -u.
13844 * gdbarch.c: Re-generate.
13846 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13848 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13849 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13852 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13854 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13855 multi-arch partial.
13856 (PUSH_ARGUMENTS): Switch to using predefault.
13857 * gdbarch.c: Regenerate.
13859 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13861 * valops.c (PUSH_ARGUMENTS): Delete definition.
13862 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13863 partial. Default to default_push_arguments.
13864 * gdbarch.h, gdbarch.c: Regenerate.
13866 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13868 * defs.h (throw_exception): Rename return_to_top_level. Update
13870 * utils.c (error_stream, internal_verror, quit): Ditto.
13871 * top.c (throw_exception, catcher): Ditto.
13872 * sparclet-rom.c (sparclet_load): Ditto.
13873 * remote.c (interrupt_query, minitelnet): Ditto.
13874 * remote-sds.c (interrupt_query): Ditto.
13875 * remote-mips.c (mips_error, mips_kill): Ditto.
13876 * ocd.c (interrupt_query): Ditto.
13877 * monitor.c (monitor_interrupt_query): Ditto.
13878 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13879 * target.h: Update comment.
13881 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13883 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13885 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13886 default_double_format.
13887 * gdbarch.h, gdbarch.c: Re-generate.
13888 * findvar.c (floatformat_unknown): Delete variable definition.
13889 * doublest.h (floatformat_unknown): Delete variable declaration.
13891 2002-02-09 Jim Blandy <jimb@redhat.com>
13893 * stabsread.c (read_type): Add code to parse Sun's syntax for
13894 prototyped function types.
13896 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13898 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13899 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13901 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13903 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13904 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13905 now _initialize_xcoffsolib gets called again and overrides the
13906 commands from solib.c in a native configuration.
13908 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13910 * doublest.c (store_typed_floating): Don't try to return a value.
13913 2002-02-08 Jim Blandy <jimb@redhat.com>
13915 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13916 is prototyped and has no arguments, print its argument list as
13919 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13921 * MAINTAINERS (write-after-approval): Add myself.
13922 (paper-trail): I've escaped!
13924 2002-02-08 Christopher Faylor <cgf@redhat.com>
13926 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13928 (_initialize_check_for_gdb_ini): Ditto.
13930 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13932 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13933 xaprintf -> xasprintf.
13935 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13937 * win32-nat.c: Remove use of printf and sprintf functions.
13939 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13941 * arm-tdep.c (arm_frame_chain_valid): Make static.
13942 (arm_push_arguments): Likewise.
13943 (arm_gdbarch_init): New function.
13944 (_initialize_arm_tdep): Call it.
13945 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13946 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13947 (FRAME_CHAIN_VALID): Delete.
13948 (arm_frame_chain_valid): Delete declaration.
13949 (PUSH_ARGUMENTS): Delete.
13950 (arm_push_arguments): Delete declaration.
13951 (CALL_DUMMY_P): Delete.
13953 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13954 Corinna Vinschen <vinschen@redhat.com>
13956 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13957 on builtin float types.
13959 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13961 * utils.c: Include <curses.h> before "bfd.h".
13962 * tui/tui-hooks.c: Likewise.
13963 * tui/tui.c: Likewise.
13964 * tui/tuiCommand.c: Likewise.
13965 * tui/tuiData.c: Likewise.
13966 * tui/tuiDataWin.c: Likewise.
13967 * tui/tuiDisassem.c: Likewise.
13968 * tui/tuiGeneralWin.c: Likewise.
13969 * tui/tuiIO.c: Likewise.
13970 * tui/tuiLayout.c: Likewise.
13971 * tui/tuiRegs.c: Likewise.
13972 * tui/tuiSource.c: Likewise.
13973 * tui/tuiSourceWin.c: Likewise.
13974 * tui/tuiStack.c: Likewise.
13975 * tui/tuiWin.c: Likewise.
13977 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13979 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13980 to include space for pseudoregs as well. Update loops accordingly.
13981 (sh_fp_frame_init_saved_regs): Ditto.
13982 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13984 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13986 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13987 Add Richard Earnshaw to Arm maintainers.
13989 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13991 * defs.h (warning_begin): Delete declaration.
13993 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13996 2002-02-07 Michael Snyder <msnyder@redhat.com>
13998 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13999 Logic bug, remove misplaced else.
14001 2002-02-07 Klee Dienes <klee@apple.com>
14003 * fork-inferior.c (fork_inferior): Add '!' to the list of
14004 characters that need to be quoted when building a string for the
14005 shell. Quote '!' specifically with a backslash, since CSH chokes
14006 when trying to evaluate "str!str".
14008 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
14010 * rdi-share/host.h: Only provide a typedef for bool if it is not
14013 2002-02-04 Michael Snyder <msnyder@redhat.com>
14015 * breakpoint.h (enum bptype): Add new overlay event bp type.
14016 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
14018 * breakpoint.c (create_internal_breakpoint): New function.
14019 (internal_breakpoint_number): Moved into create_internal_breakpoint.
14020 (create_longjmp_breakpoint): Use create_internal_breakpoint.
14021 (create_thread_event_breakpoint): Ditto.
14022 (create_solib_event_breakpoint): Ditto.
14023 (create_overlay_event_breakpoint): New function.
14024 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
14025 (update_breakpoints_after_exec): Delete and re-initialize
14026 overlay event breakpoints after an exec. Add FIXME comment
14027 about longjmp breakpoint.
14028 (print_it_typical): Ignore overlay event breakpoints.
14029 (print_one_breakpoint): Ditto.
14031 (bpstat_what): Do not stop for overlay event breakpoints.
14032 (delete_breakpoint): Don't delete overlay event breakpoints.
14033 (breakpoint_re_set_one): Delete the overlay event breakpoint.
14034 (breakpoint_re_set): Re-create overlay event breakpoint.
14036 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
14037 (overlay_manual_command): Disable overlay breakpoints.
14038 (overlay_off_command): Disable overlay breakpoints.
14040 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14042 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
14043 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
14044 to here from config/tm-arm.h.
14045 (coff_sym_is_thumb): Make static.
14046 (arm_elf_make_msymbol_special): New function.
14047 (arm_coff_make_msymbol_special): New function.
14048 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
14049 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
14050 (coff_sym_is_thumb): Delete declaration.
14051 (arm_elf_make_msymbol_special): Declare.
14052 (arm_coff_make_msymbol_special): Declare.
14053 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
14054 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
14056 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14058 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
14060 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14062 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
14063 * gdbarch.c gdbarch.h: Regenerate.
14064 * arch-utils.c (default_print_float_info): New function.
14065 * arch-utils.h (default_print_float_info): Prototype it.
14066 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
14067 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
14068 (PRINT_FLOAT_INFO): Document it.
14070 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14071 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14072 (PRINT_FLOAT_INFO): Define.
14074 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
14076 * win32-nat.c (_initialize_check_for_gdb_ini):
14077 Add typecast to sprintf argument to suppress a warning.
14079 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
14081 * win32-nat.c (last_sig): Changed type of variable to target_signal,
14082 to allow easier handling of pass state.
14083 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14084 that gives exception name and address.
14085 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14086 and set last_sig value to ourstatus->value.sig. Some missing
14088 (child_continue): Correctly report continue_status.
14089 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14090 TARGET_SIGNAL_0 (new default value).
14091 (child_resume): consider sig argument passed to decide if
14092 the exception should be passed to debuggee or not.
14094 2002-02-05 Michael Snyder <msnyder@redhat.com>
14096 * regcache.c (fetch_register): Call target_fetch_register
14097 only if we don't call FETCH_PSEUDO_REGISTER.
14098 (store_register): Call target_store_register only if we
14099 don't call STORE_PSEUDO_REGISTER.
14101 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
14103 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14104 ELF_MAKE_MSYMBOL_SPECIAL.
14105 * gdbarch.c, gdbarch.h: Regenerate.
14106 * arch-utils.c (default_make_msymbol_special): New function.
14107 * arch-utils.h (default_make_msymbol_special): Export.
14108 * elfread.c (elf_symtab_read): Compile use of
14109 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14111 * coffread.c (coff_symtab_read): Ditto, for
14112 COFF_MAKE_MSYMBOL_SPECIAL.
14114 2002-02-05 Jim Blandy <jimb@redhat.com>
14116 * solib-svr4.c (svr4_truncate_ptr): New function.
14117 (svr4_relocate_section_addresses): Do the address arithmetic with
14118 the appropriate truncation for target addresses, even when
14119 CORE_ADDR is larger than a target address.
14121 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14123 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14126 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14128 * gdbserver/linux-low.c (kill_inferior): Remove commented out
14131 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14133 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14135 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14137 * gdbserver/linux-low.c: Remove unused include files.
14139 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14141 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14142 (read_inferior_memory): Use it.
14143 (write_inferior_memory): Likewise.
14145 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14147 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14148 grubbing through sys_errlist.
14150 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14152 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14154 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14155 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14157 2002-02-04 Andrew Cagney <ac131313@redhat.com>
14159 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14160 (do_sfunc, set_cmd_sfunc): New functions.
14162 * command.h (struct cmd_list_element): Add field func.
14163 * cli/cli-decode.h (struct cmd_list_element): Ditto.
14164 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14165 * cli/cli-decode.h: Ditto.
14167 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14168 (help_all, help_cmd_list): Ditto.
14169 (find_cmd, complete_on_cmdlist): Ditto.
14170 * top.c (execute_command): Ditto.
14172 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14175 * infcmd.c (notice_args_read): Fix function signature.
14177 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14178 * cli/cli-decode.c (add_set_cmd): Ditto.
14179 * utils.c (initialize_utils): Ditto.
14180 * maint.c (_initialize_maint_cmds): Ditto.
14181 * infrun.c (_initialize_infrun): Ditto.
14182 * demangle.c (_initialize_demangler): Ditto.
14183 * remote.c (add_packet_config_cmd): Ditto.
14184 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14185 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14186 * proc-api.c (_initialize_proc_api): Ditto.
14187 * kod.c (_initialize_kod): Ditto.
14188 * valprint.c (_initialize_valprint): Ditto.
14189 * top.c (init_main): Ditto.
14190 * infcmd.c (_initialize_infcmd): Ditto.
14191 * corefile.c (_initialize_core): Ditto.
14192 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14193 * arch-utils.c (initialize_current_architecture): Ditto.
14194 (_initialize_gdbarch_utils): Ditto.
14195 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14197 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14198 * wince.c (_initialize_inftarg): Ditto.
14199 * symfile.c (_initialize_symfile): Ditto.
14200 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14201 * language.c (_initialize_language): Ditto.
14202 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14204 2002-02-04 Michael Snyder <msnyder@redhat.com>
14206 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14208 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14210 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14211 Add rules for building the register data files.
14213 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14215 * regformats/regdat.sh: Add braces to the definition of
14216 expedite_regs_${arch}.
14218 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14220 * regformats/regdef.h (struct reg): Add comment describing the
14221 requirements for offset and size fields.
14223 2002-02-04 Andreas Schwab <schwab@suse.de>
14225 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14226 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14228 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14230 * gdbarch.sh (copyright): Update years in generated header.
14231 (SMASH_TEXT_ADDRESS): Add rule.
14232 * gdbarch.h, gdbarch.c: Re-generate.
14233 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14234 * dbxread.c: Likewise.
14235 * dwarfread.c: Likewise.
14236 * elfread.c: Likewise.
14237 * somread.c: Likewise.
14239 * arm-tdep.c (arm_smash_text_address): New function.
14240 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14242 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14244 Add support for hardware watchpoints on win32 native.
14245 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14246 CONTEXT_DEBUG_REGISTERS.
14247 (dr variable): New variable. Static array containing a local copy
14248 of debug registers.
14249 (debug_registers_changed): New variable. Reflects when debug registers
14250 are changed and need to be written to inferior.
14251 (debug_registers_used): New variable. Reflects when any debug register
14252 was set, used when new threads are created.
14253 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14255 (thread_rec): Set dr array if id is the thread of current_event .
14256 (child_continue, child_resume): Change the debug registers for all
14257 threads if debug_registers_changed.
14258 (child_add_thread): Change the debug registers if debug_registers_used.
14259 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14260 Link nm.h to new nm-cygwin.h file.
14261 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14262 of hardware registers.
14264 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14266 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14267 Restore behavour broken by 2002-01-20 Andrew Cagney
14268 <ac131313@redhat.com> IEEE_FLOAT removal.
14270 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14272 * c-valprint.c (c_val_print): Pass a proper valaddr to
14273 cp_print_class_method.
14274 * valops.c (search_struct_method): If there is only one method
14275 and args is NULL, return that method.
14277 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14279 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14280 accessing tag_name directly.
14282 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14284 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14285 of accessing tag_name directly.
14287 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14290 * gdbtypes.c (replace_type): New function.
14291 * gdbtypes.h (replace_type): Add prototype.
14292 * stabsread.c (read_type): Use replace_type.
14294 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14296 * Makefile.in (memattr.o): Add missing dependencies rule.
14298 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14300 * breakpoint.c (break_at_finish_command): Really export.
14301 (break_at_finish_at_depth_command): Ditto.
14302 (tbreak_at_finish_command): Ditto.
14303 * hppa-tdep.c: Include completer.h.
14304 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14305 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14307 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14309 * utils.c (do_write): New function.
14310 (error_stream): Rewrite combining the code from error_begin and
14312 (verror): Rewrite using error_stream.
14313 (error_begin): Delete function.
14315 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14317 * utils.c (error_begin): Make static.
14318 * defs.h (error_begin): Delete declaration.
14320 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14321 (decode_line_1): Use cplusplus_error instead of error_begin,
14322 cplusplus_hint and return_to_top_level.
14323 * coffread.c (coff_symfile_read): Use error instead of error_begin
14324 and return_to_top_level.
14325 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14327 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14329 * language.h (type_error, range_error): Make string parameter
14331 * language.c (warning_pre_print): Delete extern declaration.
14332 * dwarfread.c (warning_pre_print): Ditto.
14333 * language.c (type_error, range_error): Rewrite to use verror and
14334 vwarning instead of warning_begin.
14336 2002-02-01 Michael Snyder <msnyder@redhat.com>
14338 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14339 (set_ignore_count): Move misplaced comment back where it belongs.
14341 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14343 * command.h (NO_FUNCTION): Delete macro.
14344 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14345 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14346 * tracepoint.c (_initialize_tracepoint): Ditto.
14347 * cli/cli-decode.c (add_set_cmd): Ditto.
14348 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14350 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14352 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14353 Update ``this'' pointer when calling virtual functions.
14355 2002-02-01 Michael Snyder <msnyder@redhat.com>
14357 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14358 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14360 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14362 * regformats/reg-arm.dat: New file.
14363 * regformats/reg-i386.dat: New file.
14364 * regformats/reg-ia64.dat: New file.
14365 * regformats/reg-m68k.dat: New file.
14366 * regformats/reg-mips.dat: New file.
14367 * regformats/reg-ppc.dat: New file.
14368 * regformats/reg-sh.dat: New file.
14369 * regformats/regdef.h: New file.
14370 * regformats/regdat.sh: New file.
14372 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14374 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14375 (arm_frame_args_address, arm_frame_locals_address): New functions.
14376 (arm_frame_num_args): New function.
14377 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14378 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14379 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14381 2002-01-31 Michael Snyder <msnyder@redhat.com>
14383 * breakpoint.c (break_at_finish_command): Export.
14384 (break_at_finish_at_depth_command): Export.
14385 (tbreak_at_finish_command): Export.
14386 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14387 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14388 "txbreak" commands, which are HPPA specific.
14390 * printcmd.c (disassemble_command): Remove an ancient
14391 artifact of an old merge.
14393 * symfile.h (enum overlay_debugging_state):
14394 Define enum constant values for overlay mode.
14395 * symfile.c (overlay_debugging): Use enums instead of literals.
14396 (overlay_is_mapped, overlay_auto_command,
14397 overlay_manual_command): Ditto.
14399 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14400 breakpoint_here_p, breakpoint_inserted_here_p,
14401 breakpoint_thread_match, bpstat_stop_status,
14402 describe_other_breakpoints, check_duplicates, clear_command):
14403 Coding standard fixes.
14405 * target.c (target_xfer_memory): Add spaces, coding standard.
14406 (do_xfer_memory): Add missing line to trust-readonly
14407 code: check bfd SEC_READONLY flag for section.
14409 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14411 * PROBLEMS: Fix typo, 5.1->5.1.1.
14413 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14415 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14416 data symbols, since we search based on textlow and texthigh.
14417 (find_pc_sect_symtab): Likewise.
14419 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14421 * defs.h (vwarning): Declare.
14422 * utils.c (vwarning): New function.
14423 (warning): Call vwarning.
14424 (warning_begin): Delete function.
14426 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14427 the warning message.
14428 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14431 2002-01-30 Michael Snyder <msnyder@redhat.com>
14433 * NEWS: Mention "set trust-readonly-sections" command.
14434 Mention generate-core-file command.
14436 2002-01-15 Michael Snyder <msnyder@redhat.com>
14438 * target.c: New command, "set trust-readonly-sections on".
14439 (do_xfer_memory): Honor the suggestion to trust readonly sections
14440 by reading them from the object file instead of from the target.
14441 (initialize_targets): Register command "set trust-readonly-sections".
14443 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14445 * parse.c (target_map_name_to_register): Simplify, search regs and
14446 pseudo-regs using a single loop.
14448 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14450 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14452 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14454 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14455 * config/i386/i386v42mp.mh: Add i387-nat.o .
14456 * i386v4-nat.c: Include i387-nat.h.
14457 (supply_fpregset): Use i387_supply_fsave.
14458 (fill_fpregset): Use i387_fill_fsave.
14460 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14462 * arm-tdep.c (arm_call_dummy_words): Define.
14463 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14464 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14465 (CALL_DUMMY_WORDS): Define.
14466 (arm_call_dummy_words): Declare.
14467 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14468 (arm_linux_call_dummy_words): Declare.
14470 2002-01-30 Andreas Schwab <schwab@suse.de>
14472 * m68klinux-nat.c: Fix last change to use regcache_collect
14473 instead of referencing registers[] directly.
14475 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14477 * parse.c (target_map_name_to_register): Delete code wrapped in
14478 #ifdef REGISTER_NAME_ALIAS_HOOK.
14480 2002-01-28 Michael Snyder <msnyder@redhat.com>
14482 * regcache.c (legacy_read_register_gen): Need to be able to
14483 read pseudo-register as well as real register.
14484 (legacy_write_register_gen): Ditto.
14486 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14488 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14489 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14490 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14491 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14492 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14493 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14494 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14495 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14496 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14497 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14498 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14499 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14500 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14501 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14502 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14503 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14504 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14505 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14506 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14507 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14509 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14511 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14512 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14513 (initialize_current_architecture): Update target_byte_order using
14514 information from BFD.
14515 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14516 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14518 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14520 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14521 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14523 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14524 #ifdef INVALID_FLOAT.
14525 * infcmd.c (do_registers_info): Ditto.
14526 * values.c (unpack_double): Ditto. Add comment.
14528 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14529 already commented out.
14531 2002-01-26 Andreas Schwab <schwab@suse.de>
14533 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14534 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14535 registers and add support for PTRACE_GETREGS.
14537 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14539 GDB 5.1.1 released from 5.1 branch.
14540 * NEWS: Add 5.1.1 news.
14541 * README: Sync with 5.1 branch.
14543 2002-01-23 Fred Fish <fnf@redhat.com>
14545 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14546 stabstring on initial malloc. Reallocing will copy it for us,
14549 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14551 * Makefile.in (hpread_h): Delete.
14552 (HFILES_NO_SRCDIR): Remove hpread.h.
14553 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14554 (hpread.o): Update dependencies.
14555 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14557 * hp-psymtab-read.c: Remove file.
14558 * hp-symtab-read.c: Remove file.
14559 * hpread.h: Remove file.
14561 * hpread.c: Merge all contents of hp-psymtab-read.c,
14562 hp-symtab-read.c and hpread.h into this file, as it was prior to
14565 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14566 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14567 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14568 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14570 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14572 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14573 fill_gregset): Call gdbarch_tdep() just once, assign result to
14574 variable and use that, instead of calling the function several
14577 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14579 * configure.host: Accept sparcv9 as alias for sparc64.
14580 * configure.tgt: Likewise.
14582 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14584 * solib-aix5.c (build_so_list_from_mapfile)
14585 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14586 arguments is not reversed.
14587 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14588 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14590 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14592 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14593 modified version of obsolete sh_fetch_pseudo_register.
14594 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14595 (sh4_register_read): New function.
14596 (sh_pseudo_register_write): New function. Renamed and modified
14597 version of obsolete sh_store_pseudo_register.
14598 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14599 (sh4_register_write): New function.
14600 (sh_gdbarch_init): Remove setting of gdbarch function
14601 fetch_pseudo_register and store_pseudo_register. Remove setting of
14602 register_convert_to_raw, register_convert_to_virtual,
14603 register_convertible.
14604 (sh_sh4_register_convertible): Delete. No longer needed. All is
14605 taken care by architecture specific functions
14606 register_read/register_write.
14607 (sh_sh4_register_convert_to_virtual): Make static.
14608 (sh_sh4_register_convert_to_raw): Ditto.
14610 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14612 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14613 (floatformat_is_nan, floatformat_mantissa): Ditto.
14615 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14616 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14617 builtin_type_ieee_double_little,
14618 builtin_type_ieee_double_littlebyte_bigword,
14619 builtin_type_m68881_ext, builtin_type_i960_ext,
14620 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14621 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14622 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14623 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14625 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14627 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14628 parameter. Set frameless flag if it exists and depended of
14629 whether the scanned function is frameless or not.
14630 (xstormy16_skip_prologue): If function is frameless, return
14631 result of xstormy16_scan_prologue().
14632 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14635 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14637 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14638 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14639 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14640 sh_sh4_register_byte, sh_sh4_register_raw_size,
14641 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14642 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14643 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14644 sh_store_pseudo_register, sh_do_pseudo_register): Call
14645 gdbarch_tdep() just once, assign result to variable and use that,
14646 instead of calling the function several times.
14648 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14650 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14651 macros instead of LAST_FPU_CTRL_REGNUM.
14652 (store_register): Likewise.
14654 2002-01-21 Jim Blandy <jimb@redhat.com>
14656 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14657 is up-to-date before running the program, not just when a program
14660 2002-01-21 Fred Fish <fnf@redhat.com>
14662 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14663 when we have found all instructions we are looking for.
14665 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14667 * arm-tdep.c (arm_register_name): New function.
14668 (arm_registers_names): Make static.
14669 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14670 (arm_register_name): Declare.
14671 (REGISTER_NAME): Use it.
14673 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14674 Kevin Buettner <kevinb@redhat.com>
14676 Convert arm targets to new FRAME interface.
14677 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14678 (arm_frame_find_save_regs): Delete.
14679 (arm_frame_init_saved_regs): New.
14680 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14681 Allocate extra_info as required. Convert all uses of fsr.regs
14682 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14684 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14685 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14686 (check_prologue_cache, save_prologue_cache): Likewise.
14687 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14688 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14689 (FRAME_FIND_SAVED_REGS): Delete.
14690 (arm_frame_find_saved_regs): Delete prototype.
14691 (arm_frame_init_saved_regs): New prototype.
14692 (FRAME_INIT_SAVED_REGS): Define.
14694 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14696 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14698 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14700 From Jeff Law <law@redhat.com>:
14701 * infttrace.c: Include <sys/pstat.h>.
14702 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14703 exec file if the ttrace equivalent fails.
14705 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14707 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14708 (closeLogFile): Ditto.
14710 2002-01-20 Michael Chastain <mec@shout.net>
14712 * top.c (print_gdb_version): Bump copyright year to 2002.
14714 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14716 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14717 Zannoni and Eli Zaretskii.
14719 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14721 * buildsym.c: Update copyright years.
14722 * c-typeprint.c: Likewise.
14723 * dwarf2read.c: Likewise.
14724 * f-typeprint.c: Likewise.
14725 * gdbtypes.c: Likewise.
14726 * gdbtypes.h: Likewise.
14727 * hp-symtab-read.c: Likewise.
14728 * hpread.c: Likewise.
14729 * mdebugread.c: Likewise.
14730 * p-typeprint.c: Likewise.
14732 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14734 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14735 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14736 byte-order selectable.
14737 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14738 * arch-utils.c: Ditto.
14739 (set_endian): Ditto.
14740 (set_endian_from_file): Ditto.
14741 * gdbserver/low-sim.c (create_inferior): Ditto.
14742 * gdbarch.sh: Ditto.
14743 * gdbarch.h: Re-generate.
14744 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14745 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14746 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14747 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14748 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14749 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14750 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14751 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14753 * config/mips/tm-wince.h: Remove #undef of macro
14754 TARGET_BYTE_ORDER_SELECTABLE.
14755 * config/sh/tm-wince.h: Ditto.
14757 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14759 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14760 member function fields. Add accessor macro
14761 TYPE_FN_FIELD_ARTIFICIAL.
14762 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14763 * c-typeprint.c (c_type_print_base): Skip artificial member
14766 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14768 * f-typeprint.c: Delete unused function f_type_print_args.
14769 * p-typeprint.c: Delete unused function pascal_type_print_args.
14771 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14773 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14774 comment. Add ``artificial'' to ``union field_location''.
14776 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14778 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14779 * mdebugread.c (parse_symbol): Likewise.
14780 * stabsread.c (define_symbol): Likewise.
14781 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14782 initializing TYPE_FIELD_BITPOS to n (obsolete).
14783 (hpread_doc_function_type): Likewise.
14784 * hpread.c (hpread_function_type): Likewise.
14786 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14788 * configure.in (host_makefile_frag): Only require a host makefile
14789 fragment when a native build.
14790 * configure: Re-generate.
14792 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14794 * doublest.h (floatformat_from_type): Declare.
14795 * doublest.c (floatformat_from_type): New function.
14796 (convert_typed_floating): Use.
14798 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14799 call to function floatformat_from_type.
14801 * gdbarch.sh (IEEE_FLOAT): Delete.
14802 * gdbarch.h, gdbarch.c: Re-generate.
14803 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14804 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14805 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14806 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14807 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14808 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14809 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14810 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14811 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14812 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14813 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14814 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14816 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14817 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14818 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14819 * sh-tdep.c (sh_gdbarch_init): Ditto.
14820 * mips-tdep.c (mips_gdbarch_init): Ditto.
14821 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14822 * cris-tdep.c (cris_gdbarch_init): Ditto.
14824 2002-01-20 Jiri Smid <smid@suse.cz>
14826 * configure.host, configure.tgt: Support x86-64.
14827 * NEWS: Note new target x86-64.
14829 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14830 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14831 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14832 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14833 x86-64-linux-nat.o): Fix dependencies.
14835 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14837 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14838 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14839 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14840 * config/sparc/xm-sun4os4.h: Delete file.
14841 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14843 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14845 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14846 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14847 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14848 * config/i386/i386lynx.mh (XM_FILE): Delete.
14849 * config/rs6000/xm-rs6000ly.h: Delete file.
14850 * config/sparc/xm-sparclynx.h: Delete file.
14851 * config/m68k/xm-m68klynx.h: Delete file.
14852 * config/i386/xm-i386lynx.h: Delete file.
14853 * config/xm-lynx.h: Delete file.
14854 * config/djgpp/fnchange.lst: Update.
14856 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14858 * alpha-tdep.c (alpha_register_byte): New function.
14859 (alpha_register_raw_size): Ditto.
14860 (alpha_register_virtual_size): Ditto.
14861 (alpha_skip_prologue_internal): Renamed from
14862 alpha_skip_prologue.
14863 (alpha_skip_prologue): New version that calls
14864 alpha_skip_prologue_internal.
14865 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14866 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14867 second argument from alpha_skip_prologue.
14868 (REGISTER_BYTE): Use alpha_register_byte.
14869 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14870 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14871 (FRAMELESS_FUNCTION_INVOCATION): Use
14872 generic_frameless_function_invocation_not.
14873 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14874 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14876 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14878 * config/mips/xm-news-mips.h: Delete file.
14879 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14881 * config/m88k/xm-m88k.h: Delete file.
14882 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14883 * config/m88k/xm-delta88v4.h: Ditto.
14884 * config/m88k/xm-delta88.h: Ditto.
14886 * config/alpha/xm-fbsd.h: Delete file.
14887 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14889 * config/sparc/xm-sparc.h: Delete file.
14890 * Makefile.in (xm-sun4os4.h): Delete dependency.
14891 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14892 * config/sparc/xm-sun4os4.h: Ditto.
14893 * config/sparc/xm-linux.h: Ditto.
14895 * config/i386/xm-windows.h: Delete file.
14897 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14899 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14900 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14902 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14904 * alpha-tdep.c (alpha_call_dummy_words): New.
14905 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14906 (CALL_DUMMY_P): Define.
14907 (CALL_DUMMY_WORDS): Define.
14908 (SIZEOF_CALL_DUMMY_WORDS): Define.
14910 2002-01-19 Per Bothner <per@bothner.com>
14912 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14913 isn't NULL, which can happen with some gcj-3.x-produced code.
14915 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14917 * alpha-tdep.c (alpha_register_virtual_type): New function.
14918 (alpha_init_frame_pc_first): Ditto.
14919 (alpha_fix_call_dummy): Ditto.
14920 (alpha_store_struct_return): Ditto.
14921 (alpha_extract_struct_value_address): Ditto.
14922 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14923 alpha_register_virtual_type.
14924 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14925 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14926 alpha_extract_struct_value_address.
14927 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14928 (INIT_FRAME_PC): Use init_frame_pc_noop.
14929 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14931 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14933 * i386gnu-nat.c: Include "i386-tdep.h".
14934 (fetch_fpregs): Simplify code dealing with uninitialized floating
14935 point states such that it doesn't require FP7_REGNUM.
14937 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14939 * alpha-tdep.c (frame_extra_info): New.
14940 (alpha_find_saved_regs): Make static. Use
14942 (alpha_frame_init_saved_regs): New function.
14943 (alpha_frame_saved_pc): Use frame->extra_info.
14944 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14945 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14946 (init_extra_frame_info): Rename to...
14947 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14948 (alpha_print_extra_frame_info): New function.
14949 (alpha_frame_locals_address): Ditto.
14950 (alpha_frame_args_address): Ditto.
14951 (alpha_pop_frame): Use frame->extra_info.
14952 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14953 alpha_frame_args_address.
14954 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14955 (alpha_find_saved_regs): Remove prototype.
14956 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14957 (EXTRA_FRAME_INFO): Remove.
14958 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14959 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14961 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14963 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14964 (alpha_cannot_fetch_register): Ditto.
14965 (alpha_cannot_store_register): Ditto.
14966 (alpha_register_convertible): Ditto.
14967 (alpha_use_struct_convention): Ditto.
14968 * config/alpha/tm-alpha.h: Update copyright years.
14969 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14970 (INNER_THAN): Use core_addr_lessthan.
14971 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14972 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14973 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14974 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14975 (FRAME_CHAIN): Remove unnecessary cast.
14977 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14979 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14982 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14984 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14985 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14986 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14987 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14988 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14989 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14990 * x86-64-linux-nat.c: Ditto.
14992 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14994 * alpha-tdep.c (alpha_register_name): New function.
14995 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14996 (REGISTER_NAME): Define.
14998 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
15000 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
15002 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
15004 * alpha-tdep.c: Update copyright years.
15005 (alpha_next_pc): New function.
15006 (alpha_software_single_step): Ditto.
15007 * config/alpha/tm-alpha.h: Add prototype for
15008 alpha_software_single_step.
15010 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
15012 * alphabsd-nat.c: Update copyright years.
15013 (fill_gregset): Use regcache_collect.
15014 (fill_fpregset): Likewise.
15015 (fetch_inferior_registers): Only fetch integer registers
15016 if requested to do so.
15017 (store_inferior_registers): Only store integer registers
15018 if requested to do so.
15020 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15022 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
15023 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
15024 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
15025 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
15026 * config/alpha/fbsd.mh (XDEPFILES): Delete.
15027 * config/arm/linux.mh (XDEPFILES): Delete.
15028 * config/arm/nbsd.mh (XDEPFILES): Delete.
15029 * config/i386/i386dgux.mh (XDEPFILES): Delete.
15030 * config/i386/i386sol2.mh (XDEPFILES): Delete.
15031 * config/i386/i386m3.mh (XDEPFILES): Delete.
15032 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
15033 * config/i386/i386gnu.mh (XDEPFILES): Delete.
15034 * config/i386/fbsd.mh (XDEPFILES): Delete.
15035 * config/i386/i386bsd.mh (XDEPFILES): Delete.
15036 * config/i386/i386sco5.mh (XDEPFILES): Delete.
15037 * config/i386/i386v4.mh (XDEPFILES): Delete.
15038 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
15039 * config/i386/i386sco4.mh (XDEPFILES): Delete.
15040 * config/i386/i386aix.mh (XDEPFILES): Delete.
15041 * config/i386/go32.mh (XDEPFILES): Delete.
15042 * config/i386/cygwin.mh (XDEPFILES): Delete.
15043 * config/i386/i386lynx.mh (XDEPFILES): Delete.
15044 * config/i386/i386mach.mh (XDEPFILES): Delete.
15045 * config/i386/i386v32.mh (XDEPFILES): Delete.
15046 * config/i386/linux.mh (XDEPFILES): Delete.
15047 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
15048 * config/i386/ncr3000.mh (XDEPFILES): Delete.
15049 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
15050 * config/i386/i386sco.mh (XDEPFILES): Delete.
15051 * config/i386/i386v.mh (XDEPFILES): Delete.
15052 * config/i386/nbsd.mh (XDEPFILES): Delete.
15053 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
15054 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
15055 * config/i386/symmetry.mh (XDEPFILES): Delete.
15056 * config/i386/obsd.mh (XDEPFILES): Delete.
15057 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
15058 * config/ia64/linux.mh (XDEPFILES): Delete.
15059 * config/ia64/aix.mh (XDEPFILES): Delete.
15060 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
15061 * config/m68k/dpx2.mh (XDEPFILES): Delete.
15062 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
15063 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
15064 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
15065 * config/m68k/linux.mh (XDEPFILES): Delete.
15066 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
15067 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
15068 * config/m68k/nbsd.mh (XDEPFILES): Delete.
15069 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15070 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15071 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15072 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15073 * config/m88k/delta88.mh (XDEPFILES): Delete.
15074 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15075 * config/m88k/m88k.mh (XDEPFILES): Delete.
15076 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15077 * config/mips/linux.mh (XDEPFILES): Delete.
15078 * config/mips/irix6.mh (XDEPFILES): Delete.
15079 * config/mips/irix5.mh (XDEPFILES): Delete.
15080 * config/mips/irix4.mh (XDEPFILES): Delete.
15081 * config/mips/irix3.mh (XDEPFILES): Delete.
15082 * config/mips/decstation.mh (XDEPFILES): Delete.
15083 * config/mips/mipsm3.mh (XDEPFILES): Delete.
15084 (NATDEPFILES): Move core-aout.o to here.
15085 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15086 * config/pa/hpux1020.mh (XDEPFILES): Delete.
15087 * config/pa/hppabsd.mh (XDEPFILES): Delete.
15088 * config/pa/hppahpux.mh (XDEPFILES): Delete.
15089 * config/pa/hpux11w.mh (XDEPFILES): Delete.
15090 * config/pa/hppaosf.mh (XDEPFILES): Delete.
15091 * config/pa/hpux11.mh (XDEPFILES): Delete.
15092 * config/powerpc/aix.mh (XDEPFILES): Delete.
15093 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15094 * config/powerpc/linux.mh (XDEPFILES): Delete.
15095 * config/romp/rtbsd.mh: Rename XDEPFILES.
15096 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15097 * config/rs6000/aix4.mh (XDEPFILES): Delete.
15098 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15099 * config/s390/s390.mh (XDEPFILES): Delete.
15100 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15101 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15102 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15103 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15104 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15105 * config/sparc/nbsd.mh (XDEPFILES): Delete.
15106 * config/sparc/linux.mh (XDEPFILES): Delete.
15107 * config/vax/vaxult.mh (XDEPFILES): Delete.
15108 * config/vax/vaxult2.mh (XDEPFILES): Delete.
15109 * Makefile.in (DEPFILES): Remove XDEPFILES.
15111 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15113 * utils.c (internal_verror): Fix comments, default is yes not no.
15114 Update queries to match. Default to quit and dump core.
15116 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15118 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
15120 * defs.h, event-top.c, gdbcmd.h: Ditto.
15121 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15122 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15123 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15124 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15125 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15126 * mi/mi-main.c:Ditto.
15128 * stack.c, symfile.c: Update copyright.
15130 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15132 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15133 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15134 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15135 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15137 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15139 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15140 * gdbserver/low-lynx.c (myattach): Likewise.
15141 * gdbserver/low-nbsd.c (myattach): Likewise.
15142 * gdbserver/low-sim.c (myattach): Likewise.
15143 * gdbserver/low-sparc.c (myattach): Likewise.
15144 * gdbserver/low-sun3.c (myattach): Likewise.
15146 * gdbserver/low-linux.c (myattach): New function.
15148 * gdbserver/server.c (attach_inferior): New function.
15149 (main): Handle "--attach".
15151 2002-01-16 Andrew Cagney <ac131313@redhat.com>
15153 * MAINTAINERS (language support): Daniel Jacobwitz is C++
15156 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
15158 * c-typeprint.c (is_type_conversion_operator): Add additional
15159 check for non-conversion operators.
15161 2002-01-15 Michael Snyder <msnyder@redhat.com>
15163 * linux-proc.c: Add "info proc" command, a la procfs.c.
15164 (read_mapping): New function, abstract and re-use code.
15165 (linux_find_memory_regions): Use new func read_mapping.
15166 (linux_info_proc_cmd): New function, implement "info proc".
15167 (_initialize_linux_proc): Add new command "info proc".
15169 2002-01-15 Michael Snyder <msnyder@redhat.com>
15171 * symfile.c (generic_load): Use bfd_map_over_sections method
15172 instead of manipulating bfd structure members directly.
15173 (add_section_size_callback): New function, bfd sections callback
15174 used by generic_load.
15175 (load_sections_callback): New function, bfd sections callback
15176 used by generic_load.
15178 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15180 [Based on work by Jim Blandy]
15181 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15182 (builtin_type_vec128): Export.
15183 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15185 (builtin_type_vec128): New builtin type for 128 bit vector
15187 (build_gdbtypes): Initialize builtin_type_v16qi and
15188 builtin_type_v8hi. Create the vec128 register builtin type
15190 (build_builtin_type_vec128): New function.
15191 (_initialize_gdbtypes): Register builtin_type_v16qi and
15192 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15193 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15194 AltiVec register to new builtin type.
15196 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15198 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15201 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15203 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15204 CLEAN_UP_REGISTER_VALUE.
15205 * regcache.c (supply_register): Update only call.
15207 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15209 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15210 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15211 a29k-*-vxworks* targets as obsolete.
15213 2002-01-14 Michael Snyder <msnyder@redhat.com>
15215 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15216 until we can resolve portability issues.
15217 * gregset.h: Remove references to fpxregs.
15218 * gcore.c (gcore_command): Initialize note_sec to NULL.
15220 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15222 * signals.c (target_signal_to_name): Rewrite. Only use
15223 signals[].name when in bounds and non-NULL.
15225 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15227 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15228 * signals.c (target_signal_to_name): Verify that SIG is within the
15229 bounds of the signals array.
15231 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15233 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15235 2002-01-13 Keith Seitz <keiths@redhat.com>
15237 * stack.c (print_frame_info_base): Print the frame's pc
15238 only if when print_frame_info_listing_hook is not defined.
15240 2002-01-13 Keith Seitz <keiths@redhat.com>
15242 * varobj.c (varobj_set_value): Make sure that there were no
15243 errors evaluating the object before attempting to set its
15245 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15246 so this offset adjustment is no longer necessary.
15247 (create_child): Don't set the error flag if the child is
15248 a CPLUS_FAKE_CHILD.
15249 (value_of_child): If value_fetch_lazy fails, return NULL
15250 so that callers will be notified that an error occurred.
15251 (c_value_of_variable): Delay check of variable's validity
15252 until later. We actually want all structs and unions to have
15254 Do not return "???" for variables which could not be evaluated.
15255 This error condition must be returned to the caller so that it
15256 can get the error condition from gdb.
15257 (cplus_name_of_child): Adjust index for vptr before figuring
15258 out the name of the child.
15259 (cplus_value_of_child): If a child's (real) parent is not valid,
15260 don't even bother trying to give a value for it. Just return
15261 an error. Change all instances in this function.
15262 (cplus_type_of_child): If our parent is one of the "fake"
15263 parents, we need to get at the type of the real parent, and
15264 derive the child's true type using this information.
15266 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15268 From 2002-01-09 John Marshall <johnm@falch.net>:
15269 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15270 sources.redhat.com, and tweak some related URLs which had
15271 suffered from linkrot.
15273 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15276 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15277 structures passed in registers.
15279 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15281 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15282 white space which prevented compilation. Reported by DSK
15283 <dsk@student.unsw.edu.au>.
15285 2002-01-11 Michael Snyder <msnyder@redhat.com>
15287 * symfile.c (build_section_addr_info_from_section_tab):
15288 Use bfd access method instead of manipulating bfd directly.
15289 (syms_from_objfile): Ditto.
15290 (simple_overlay_update_1): Ditto.
15291 (simple_overlay_update): Ditto.
15292 (generic_load): Ditto.
15293 (overlay_unmapped_address): FIXME comment, bfd access methods.
15294 (sections_overlap): FIXME comment, bfd access methods.
15295 (pc_in_mapped_range): FIXME comment, bfd access methods.
15296 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15297 (section_is_mapped): FIXME comment, bfd access methods.
15298 (section_is_overlay): FIXME comment, bfd access methods.
15300 * symfile.c (generic_load): Whitespace and long line cleanups.
15301 Remove duplicate variable, change several local variables to
15302 more appropriate data types.
15303 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15305 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15307 From Peter Schauer:
15308 * language.c (longest_local_hex_string_custom): Use phex_nz to
15309 convert NUM to a hex string.
15311 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15313 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15315 Update Copyright year.
15317 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15319 * language.c (longest_raw_hex_string): Delete unused function.
15321 2002-01-11 Petr Sorfa <petrs@caldera.com>
15323 * MAINTAINERS (write-after-approval): Add myself.
15324 * dwarf2read.c (read_tag_string_type): Handling of
15326 (read_tag_string_type): FORTRAN fix to prevent propagation of
15328 (set_cu_language): Handling of DW_LANG_Fortran95
15330 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15332 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15333 GETPID(inferior_ptid).
15334 (store_inferior_registers): Likewise.
15336 2002-01-10 Jason Merrill <jason@redhat.com>
15338 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15341 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15343 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15344 and bfd/elf32-sh-nbsd.c.
15346 2002-01-10 Michael Snyder <msnyder@redhat.com>
15348 * NEWS: Mention --pid and corefile/proc-id behavior change.
15350 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15351 * gcore.c: Include cli/cli-decode.h instead of command.h.
15353 * main.c (captured_main): Add new command line option "--pid".
15354 If the second command line argument (following the symbol-file)
15355 begins with a digit, try to attach to it before trying to open
15357 (print_gdb_help): Document the "--pid" argument.
15359 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15361 * completer.c (command_completer): New function.
15363 * completer.h <command_completer>: Add prototype.
15365 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15366 completer for the "help" command.
15368 2002-01-09 Jason Merrill <jason@redhat.com>
15370 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15372 2002-01-09 Michael Snyder <msnyder@redhat.com>
15374 * i386-linux-nat.c (fill_fpxregset): Make global.
15375 (store_fpxregset): Ditto.
15377 * gregset.h (gdb_fpxregset_t): Define.
15378 (supply_fpxregset): Prototype.
15379 (fill_fpxregset): Prototype.
15381 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15383 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15385 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15386 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15387 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15389 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15391 * MAINTAINERS: Update target maintainer rules so that any
15392 Maintainer can approve a tested patch for a maintenance-only
15395 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15397 * MAINTAINERS (write-after-approval): Add myself.
15399 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15402 2002-01-08 Michael Snyder <msnyder@redhat.com>
15404 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15405 real name of the executable, rather than the /proc name.
15407 2002-01-03 Michael Snyder <msnyder@redhat.com>
15409 Implement a "generate-core-file" command in gdb, save target state.
15410 * gcore.c: New file. Implement new command 'generate-core-file'.
15411 Save a corefile image of the current state of the inferior.
15412 * linux-proc.c: Add linux-specific code for saving corefiles.
15413 * target.h (struct target_ops): Add new target vectors for saving
15414 corefiles; to_find_memory_regions and to_make_corefile_notes.
15415 (target_find_memory_regions): New macro.
15416 (target_make_corefile_notes): New macro.
15417 * target.c (update_current_target): Inherit new target methods.
15418 (dummy_find_memory_regions): New place-holder method.
15419 (dummy_make_corefile_notes): New place-holder method.
15420 (init_dummy_target): Initialize new dummy target vectors.
15421 * exec.c (exec_set_find_memory_regions): New function.
15422 Allow the exec_ops vector for memory regions to be taken over.
15423 (exec_make_note_section): New function, target vector method.
15424 * defs.h (exec_set_find_memory_regions): Export prototype.
15425 * procfs.c (proc_find_memory_regions): New function, corefile method.
15426 (procfs_make_note_section): New function, corefile method.
15427 (init_procfs_ops): Set new target vector pointers.
15428 (find_memory_regions_callback): New function.
15429 (procfs_do_thread_registers): New function.
15430 (procfs_corefile_thread_callback): New function.
15431 * sol-thread.c (sol_find_memory_regions): New function.
15432 (sol_make_note_section): New function.
15433 (init_sol_thread_ops): Initialize new target vectors.
15434 * inftarg.c (inftarg_set_find_memory_regions): New function.
15435 Allow to_find_memory_regions vector to be taken over.
15436 (inftarg_set_make_corefile_notes): New function.
15437 Allow to_make_corefile_notes vector to be taken over.
15438 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15439 interface layer if not target_has_execution (may be a corefile).
15440 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15441 * config/sparc/sun4sol2.mh: Ditto.
15442 * config/alpha/alpha-linux.mh: Ditto.
15443 * config/arm/linux.mh: Ditto.
15444 * config/i386/x86-64linux.mh: Ditto.
15445 * config/ia64/linux.mh: Ditto.
15446 * config/m68k/linux.mh: Ditto.
15447 * config/mips/linux.mh: Ditto.
15448 * config/powerpc/linux.mh: Ditto.
15449 * config/sparc/linux.mh: Ditto.
15451 2002-01-07 Michael Snyder <msnyder@redhat.com>
15453 * arm-linux-nat.c: Remove references to regcache.c internal data
15454 (registers[] and register_valid[]).
15456 2002-01-07 Michael Snyder <msnyder@redhat.com>
15458 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15459 so that attaching to a pid will automatically read the process's
15460 symbol file and shlibs.
15461 * Makefile.in: Add rule for linux-proc.o.
15462 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15463 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15464 * config/arm/linux.mh: Ditto.
15465 * config/i386/linux.mh: Ditto.
15466 * config/i386/x86-64linux.mh: Ditto.
15467 * config/ia64/linux.mh: Ditto.
15468 * config/m68k/linux.mh: Ditto.
15469 * config/mips/linux.mh: Ditto.
15470 * config/powerpc/linux.mh: Ditto.
15471 * config/sparc/linux.mh: Ditto.
15473 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15475 * win32-nat.c: Add i386-tdep.h dependency.
15477 2002-01-07 Michael Snyder <msnyder@redhat.com>
15479 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15480 instead of bfd_get_arch_size. Don't bail out just because
15481 there's no exec_bfd.
15483 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15484 * p-valprint.c (pascal_object_print_value): Ditto.
15485 * somread.c (som_symtab_read): Ditto.
15486 * symfile.c (simple_free_overlay_region_table): Ditto.
15487 * valops.c (value_assign): Ditto.
15489 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15490 use tilde_expand and strerror for opening save-tracepoints file.
15492 * thread-db.c (thread_db_new_objfile): Indendation fix.
15494 * infptrace.c (GDB_MAX_ALLOCA): New define.
15495 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15496 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15497 can be overridden with whatever value is appropriate to the host).
15498 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15499 alloca to allocate potentially large buffer.
15500 * rs6000-nat.c (child_xfer_memory): Ditto.
15501 * symm-nat.c (child_xfer_memory): Ditto.
15502 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15504 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15506 From Nick Clifton <nickc@redhat.com>
15507 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15509 2002-01-07 Michael Snyder <msnyder@redhat.com>
15511 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15512 Don't use exec_bfd if it's NULL.
15514 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15516 * valops.c (value_arg_coerce): Fix formatting.
15518 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15520 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15521 * gnu-nat.c: Ditto.
15523 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15525 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15526 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15527 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15528 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15529 z8k-coff have not been multi-arched. Update z8k-coff build
15532 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15534 * MAINTAINERS: Mark a29k target as obsolete.
15535 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15536 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15538 * NEWS: Note that a29k targets are obsolete.
15539 * a29k-tdep.c: Mark as obsolete.
15540 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15541 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15542 a29k-*-vxworks* targets as obsolete.
15543 * remote-adapt.c: Obsolete.
15544 * remote-eb.c: Obsolete.
15545 * remote-mm.c: Obsolete.
15546 * remote-udi.c: Obsolete.
15547 * config/a29k/a29k-udi.mt: Obsolete.
15548 * config/a29k/a29k.mt: Obsolete.
15549 * config/a29k/tm-a29k.h: Obsolete.
15550 * config/a29k/tm-vx29k.h: Obsolete.
15551 * config/a29k/vx29k.mt: Obsolete.
15553 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15555 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15556 with BFD_ENDIAN_BIG.
15558 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15560 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15561 * configure, config.in: Re-generate.
15562 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15563 * defs.h: Do not include <endian.h>.
15565 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15567 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15568 * config.in: Regenerate.
15569 * configure.in: Update copyright years.
15570 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15571 * configure: Regenerate.
15572 * i386bsd-nat.c: Update copyright years.
15573 (fill_gregset): Use regcache_collect.
15574 (fetch_inferior_registers): Only fetch integer registers
15575 if requested to do so. Add support for XMM registers
15576 using PT_GETXMMREGS.
15577 (store_inferior_registers): Only store integer registers
15578 if requested to do so. Add support for XMM registers
15579 using PT_SETXMMREGS.
15580 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15581 (store_inferior_registers): Remove.
15582 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15583 (fetch_elfcore_registers): New function.
15584 (i386nbsd_elfcore_fns): New.
15585 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15586 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15588 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15589 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15590 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15591 * config/i386/tm-nbsd.h: Update copyright years.
15592 (HAVE_SSE_REGS): Define.
15593 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15594 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15595 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15596 (SIGCONTEXT_PC_OFFSET): Remove.
15597 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15599 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15601 * configure.tgt: Remove powerpc-*-macos* target.
15602 * config/m68k/xm-mpw.h: Delete file.
15603 * config/xm-mpw.h: Delete file.
15604 * ser-mac.c: Delete file.
15605 * mpw-make.sed: Delete file.
15606 * mpw-config.in: Delete file.
15607 * mac-xdep.c: Delete file.
15608 * mac-gdb.r: Delete file.
15609 * mac-defs.h: Delete file.
15610 * mac-nat.c: Delete file.
15611 * config/powerpc/macos.mh: Delete file.
15612 * config/powerpc/macos.mt: Delete file.
15613 * config/powerpc/nm-macos.h: Delete file.
15614 * config/powerpc/tm-macos.h: Delete file.
15615 * source.c (openp, open_source_file): Remove obsolete code.
15616 * top.c (gdb_readline): Ditto.
15617 * utils.c (query): Ditto.
15618 * event-top.c (display_gdb_prompt): Ditto.
15619 * Makefile.in (ser-mac.o): Delete obsolete target.
15622 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15624 * defs.h (BIG_ENDIAN): Delete macro definition.
15625 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15626 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15627 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15628 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15629 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15630 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15631 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15632 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15633 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15634 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15635 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15636 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15637 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15638 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15639 * gdbarch.c: Re-generate.
15641 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15643 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15646 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15648 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15650 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15652 * value.h (value_ptr): Delete typedef.
15654 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15656 * i386nbsd-nat.c: Update copyright years.
15657 Include i386-tdep.h.
15659 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15661 * stabsread.c: Update copyright years.
15663 From Debashis Mahata <debashis.mahata@wipro.com>:
15664 (read_struct_fields): Deal with Sun C compiler erroneous stab
15665 output for structs and unions.
15668 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15670 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15673 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15675 * cp-abi.c: Fix whitespace.
15676 (baseclass_offset): New wrapper function.
15677 * cp-abi.h (baseclass_offset): Add prototype.
15678 (struct cp_abi_ops): Add baseclass_offset pointer.
15680 * valops.c (vb_match): Move to...
15681 * gnu-v2-abi.c (vb_match): here.
15682 * valops.c (baseclass_offset): Move to...
15683 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15685 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15687 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15688 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15689 * hpacc-abi.c (init_hpacc_ops): Likewise.
15691 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15693 * valops.c (find_overload_match): Accept obj as a
15694 reference parameter. Update it before returning.
15695 * value.h (find_overload_match): Update prototype.
15696 * eval.c (evaluate_subexp_standard): Pass object to
15697 find_overload_match by reference.
15699 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15701 * valarith.c: Replace value_ptr with struct value pointer. Remove
15702 register attribute from value declarations.
15705 * scm-lang.c (scm_lookup_name): Ditto.
15707 2002-01-03 Michael Snyder <msnyder@redhat.com>
15709 Abstract the functionality of iterating over mapped memory
15710 regions into a general purpose iterator function.
15711 * procfs.c (iterate_over_mappings): New function, general purpose
15712 iterator for memory sections.
15713 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15714 (solib_mappings_callback): New function, callback for above.
15715 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15716 (info_mappings_callback): New function, callback for above.
15718 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15720 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15722 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15723 * i386-tdep.c: Include "elf-bfd.h".
15724 (process_note_abi_tag_sections): New function.
15725 (i386_gdbarch_init): Add code to recognize various OS/ABI
15728 * maint.c (_initialize_maint_cmds): Add missing \ in
15731 For older changes see ChangeLog-2001
15737 version-control: never